:root {
    --primary-color: #e05f95;
    --secondary-color: #fef0f5;
    --accent-color: #f191b7;
    --text-color: #5c4149;
    --light-text: #987580;
    --background: #fff5f8;
    --card-bg: #fffcfd;
    --shadow: 0 4px 20px rgba(224, 95, 149, 0.12);
    --gradient-start: #f8a5c2;
    --gradient-mid: #e05f95;
    --gradient-end: #c2436e;
    --tag-bg: #ffecf2;
    --button-color: #e05f95;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 40px;
}

header {
    display: none;
}

.logo-container {
    margin-bottom: 0;
}

.logo-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    margin-top: 0;
}

h1 a {
    text-decoration: none;
    color: inherit;
}

.subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 5px 20px 20px 20px;
}

.search-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.option-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(240, 182, 203, 0.2), rgba(224, 95, 149, 0.1));
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px rgba(224, 95, 149, 0.5);
    transform: translateY(-3px);
    position: relative;
    z-index: 2;
}

.search-input {
    display: flex;
    margin-bottom: 15px;
}

input[type="text"] {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(224, 95, 149, 0.2);
}

.crystal-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 15px;
    cursor: pointer;
}

.crystal-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(224, 95, 149, 0.2);
}

button {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    border: none;
    padding: 14px 25px;
    margin-left: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.analyze-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
}

.analysis-type {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.analysis-type button {
    flex: 1;
    background: linear-gradient(135deg, rgba(240, 182, 203, 0.2), rgba(224, 95, 149, 0.1));
    color: var(--primary-color);
    font-size: 14px;
    padding: 10px;
}

.analysis-type button.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
}

.results-container {
    margin-top: 30px;
}

.results-title {
    margin-bottom: 15px;
    color: var(--primary-color);
    display: block;
}

.placeholder-text {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text);
    background-color: var(--card-bg);
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.placeholder-text p {
    margin-bottom: 10px;
}

.placeholder-text p:last-child {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

.crystal-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
    overflow: hidden;
    transition: all 0.3s;
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
}

.crystal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.5;
    z-index: 0;
}

.crystal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.rank-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(246, 246, 240, 0.7);
    border-radius: 10px;
    font-size: 22px;
    font-weight: 500;
    color: #695a26;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 3;
    font-family: 'Arial', sans-serif;
    opacity: 0.85;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 180, 110, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(198, 180, 110, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(198, 180, 110, 0);
        transform: scale(1);
    }
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.crystal-name {
    position: relative;
    font-size: 2.4rem;
    color: #695a26;
    margin-bottom: 20px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
    z-index: 1;
}

.crystal-icon {
    display: block;
    width: 50px;
    height: 50px;
    margin: 10px auto 0;
    opacity: 0.9;
}

.crystal-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    z-index: 1;
    position: relative;
}

.crystal-tag {
    background-color: rgba(198, 180, 110, 0.2);
    color: #695a26;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.crystal-detail-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
    margin: 0 auto 30px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    z-index: 1;
    position: relative;
}

.crystal-details-section {
    text-align: left;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    padding: 0;
}

.crystal-details-table {
    margin: 20px 0;
    background-color: #f8f9ff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.details-table-title {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
}

.crystal-data-table {
    width: 100%;
    border-collapse: collapse;
}

.crystal-data-table th,
.crystal-data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.crystal-data-table th {
    width: 20%;
    background-color: #fff0f7;
    color: var(--primary-color);
    font-weight: 600;
}

.crystal-data-table tr:last-child th,
.crystal-data-table tr:last-child td {
    border-bottom: none;
}

.crystal-data-table tr:hover td {
    background-color: #fff5f9;
}

.scenario-box, .match-reason, .usage-box {
    margin-top: 15px;
    margin-bottom: 15px;
}

.crystal-detail {
    margin-top: 12px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.effect-tags {
    margin-bottom: 10px;
}

.effect-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    border-radius: 20px;
    padding: 5px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.2s;
}

.effect-tag:hover {
    background: linear-gradient(135deg, rgba(240, 182, 203, 0.3), rgba(224, 95, 149, 0.2));
    transform: translateY(-2px);
}

.scenario-text {
    font-size: 16px;
    color: #34495e;
    font-weight: 500;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.property-item {
    font-size: 14px;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 6px;
}

.combination-box {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.detail-label {
    font-weight: bold;
    color: #666;
    margin-right: 5px;
}

.top-rank-card {
    border: 1px solid #e74c3c;
    box-shadow: 0 5px 25px rgba(231, 76, 60, 0.15);
}

.top-rank-name {
    color: #e74c3c;
    margin-top: 5px;
    margin-bottom: 20px;
    padding-left: 40px;
}

.crystal-image-container {
    width: 120px;
    height: 120px;
    min-width: 120px;
    margin: 0 auto;
}

.crystal-info {
    flex: 1;
}

.crystal-themes {
    margin-top: 10px;
    font-size: 15px;
}

.themes-label {
    color: #666;
}

.crystal-detail-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.crystal-detail-img:hover {
    transform: scale(1.05);
}

.crystal-details-section {
    margin-top: 15px;
}

.scenario-box {
    background-color: #fff0f7;
    border-left: 3px solid #e05f95;
    border-radius: 4px;
    padding: 10px 15px;
}

.scenario-title {
    font-weight: bold;
    color: #e05f95;
    margin-bottom: 5px;
}

.scenario-content {
    font-size: 14px;
    color: #666;
}

.best-match-badge {
    background-color: #e05f95;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    margin-left: 8px;
}

.match-reason {
    background-color: #feeef5;
    border-left: 3px solid #f191b7;
    border-radius: 4px;
    padding: 10px 15px;
}

.reason-title {
    font-weight: bold;
    color: #f191b7;
    margin-bottom: 5px;
}

.reason-content {
    font-size: 14px;
    color: #666;
}

.best-match-note {
    color: #c2436e;
    font-weight: 500;
    margin-top: 5px;
    display: inline-block;
}

.usage-box {
    background-color: #fff8fa;
    border-left: 3px solid #f8a5c2;
    border-radius: 4px;
    padding: 10px 15px;
}

.usage-title {
    font-weight: bold;
    color: #f8a5c2;
    margin-bottom: 5px;
}

.usage-content {
    font-size: 14px;
    color: #666;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.property-item {
    font-size: 14px;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 6px;
}

.combination-box {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.detail-label {
    font-weight: bold;
    color: #666;
    margin-right: 5px;
}

.top-rank-card {
    border: 1px solid #e05f95;
    box-shadow: 0 5px 25px rgba(224, 95, 149, 0.15);
}

.top-rank-name {
    color: #e05f95;
    margin-top: 5px;
    margin-bottom: 20px;
    padding-left: 40px;
}

/* 修改模态框CSS样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 24px;
    color: #333;
    z-index: 1001;
    transition: all 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
    background-color: #f8f8f8;
}

.modal-image {
    max-width: 90vw;
    max-height: 75vh;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-caption {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    margin-top: 15px;
    border-radius: 30px;
    text-align: center;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

/* 修改移动端样式，增强移动端选项卡体验 */
@media (max-width: 600px) {
    .modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .modal-image {
        max-width: 90%;
    }
    
    .modal-caption {
        max-width: 90%;
        padding: 8px;
        font-size: 14px;
    }
    
    /* 改进移动端选项卡 */
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        gap: 5px;
        padding-bottom: 5px;
    }
    
    .tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .tab {
        padding: 12px 15px;
        white-space: nowrap;
        flex: 0 0 auto;
        font-size: 15px;
    }
    
    .tab.active {
        background-color: rgba(224, 95, 149, 0.1);
        border-radius: 8px 8px 0 0;
    }
    
    .tab-content {
        padding-top: 10px;
    }
    
    /* 确保选项卡内容容器完整显示 */
    .search-container {
        padding-bottom: 20px;
    }
}

/* 添加推荐级别样式 */
.recommendation-level {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.level-5 {
    background-color: #ffe6ef;
    border-left: 3px solid #e05f95;
}

.level-5 .level-stars {
    font-weight: bold;
    color: #e05f95;
}

.level-4 {
    background-color: #ffedf3;
    border-left: 3px solid #e274a1;
}

.level-4 .level-stars {
    font-weight: bold;
    color: #e274a1;
}

.level-3 {
    background-color: #fff2f7;
    border-left: 3px solid #e68bb1;
}

.level-3 .level-stars {
    font-weight: bold;
    color: #e68bb1;
}

.level-2 {
    background-color: #fff5f9;
    border-left: 3px solid #eca3c0;
}

.level-2 .level-stars {
    font-weight: bold;
    color: #eca3c0;
}

.level-1 {
    background-color: #fff8fa;
    border-left: 3px solid #f0b6cb;
}

.level-1 .level-stars {
    font-weight: bold;
    color: #f0b6cb;
}

/* 恢复一些被删除但必要的样式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.crystal-nav {
    margin-bottom: 20px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 10px;
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.nav-link {
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
}

.crystal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.crystal-item-with-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.crystal-item-with-img img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
}

.crystal-item-with-img .crystal-name-small {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

.crystal-item-with-img:hover {
    background: linear-gradient(135deg, rgba(240, 182, 203, 0.3), rgba(224, 95, 149, 0.2));
    transform: translateY(-2px);
}

.search-crystal-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
    outline: none;
    transition: all 0.3s;
}

.search-crystal-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(224, 95, 149, 0.2);
}

.no-results {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
    color: #666;
    border: 1px dashed #ddd;
    animation: fadeInUp 0.5s ease forwards;
}

.no-results::before {
    content: "🔍";
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.6;
}

/* 增强水晶卡片图片样式 */
.crystal-image-container img {
    transition: transform 0.3s;
    cursor: pointer;
}

.crystal-image-container img:hover {
    transform: scale(1.05);
}

/* 修复导航样式 */
.crystal-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 15px;
}

.crystal-image-container {
    width: 120px;
    height: 120px;
    min-width: 120px;
    margin: 0 auto;
}

.crystal-info {
    flex: 1;
}

/* 添加媒体查询处理移动端样式 */
@media (max-width: 600px) {
    .search-input {
        flex-direction: column;
    }
    
    button {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .crystal-name {
        font-size: 1.3rem;
        padding-right: 0;
        margin-top: 25px;
    }
    
    .match-score {
        top: 15px;
        left: 15px;
        right: auto;
    }
    
    /* 保持卡点在手机上也是2列布局 */
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* 让按卡点选项卡内的选项卡更紧凑 */
    .option-card {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .crystal-card {
        padding: 15px;
    }
    
    .crystal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 添加选项的选中样式 - 只使用外发光效果 */
.chakra-option.selected,
.element-option.selected,
.zodiac-option.selected,
.effect-option.selected {
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-color), 0 0 25px rgba(224, 95, 149, 0.4);
    position: relative;
    z-index: 2;
    border: 2px solid var(--primary-color);
    animation: gentle-glow 1.5s infinite alternate;
}

@keyframes gentle-glow {
    from {
        box-shadow: 0 0 15px var(--primary-color), 0 0 25px rgba(224, 95, 149, 0.4);
    }
    to {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px rgba(224, 95, 149, 0.6);
    }
}

/* 水晶链接样式 */
.crystal-link {
    color: #e05f95;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.crystal-link:hover {
    color: #c2436e;
    text-decoration: underline;
}

.crystal-link::after {
    content: '✧';
    font-size: 0.8em;
    margin-left: 2px;
    color: #f8a5c2;
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    margin: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 5px;
    margin: 0;
}

.modal-close:hover {
    color: #e05f95;
}

/* 水晶详情内联展示卡片样式 */
.expandable-card {
    display: none;
    position: relative;
    margin: 20px 0;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
}

.expandable-card.active {
    display: block;
    max-height: 2000px;
    animation: expandCard 0.5s forwards;
}

@keyframes expandCard {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.expandable-card-content {
    padding: 20px;
}

.expandable-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.expandable-card-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.expandable-card-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.expandable-card-close:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.expandable-card-body {
    padding: 0;
}

/* 水晶详情样式 */
.crystal-details h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.crystal-details h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(224, 95, 149, 0.3), rgba(224, 95, 149, 0.8), rgba(224, 95, 149, 0.3));
    border-radius: 3px;
}

.crystal-details-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.crystal-details-image:hover {
    transform: scale(1.05);
}

.crystal-tag {
    display: inline-block;
    background-color: #ffecf2;
    color: #e05f95;
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 50px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.crystal-details-section {
    margin-top: 20px;
}

.crystal-detail-item {
    background-color: #fff5f8;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.crystal-detail-title {
    font-weight: 600;
    color: #e05f95;
    margin-bottom: 8px;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .modal-content {
        padding: 20px 15px;
        max-width: 95%;
        margin: 10px;
    }
    
    .crystal-details h3 {
        font-size: 1.5rem;
    }
    
    .crystal-detail-item {
        padding: 12px;
    }
}

/* 修改复制链接按钮样式 */
.copy-link-btn,
.copy-link-button {
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    text-align: center;
    justify-content: center;
}

.copy-link-btn:hover,
.copy-link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* 复制成功的提示样式 */
.copy-success-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-success-toast.show {
    opacity: 1;
}

/* 辅助样式 - 适用于在HTML中直接添加内联样式的元素 */
.chakra-grid, .element-grid, .effects-grid, .zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.zodiac-grid {
    grid-template-columns: repeat(4, 1fr);
}

.chakra-option, .element-option, .effect-option, .zodiac-option {
    background-color: #f5f5f5;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-grid {
    margin-top: 20px;
}

/* 调试信息样式 */
#debugInfo {
    display: none !important;
}

/* 确保内容区域在移动设备上也有合适的宽度 */
@media only screen and (max-width: 768px) {
    .modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .modal-image {
        max-width: 90%;
    }
    
    .modal-caption {
        max-width: 90%;
        padding: 8px;
        font-size: 14px;
    }
}

/* 确保文本在移动设备上容易阅读 */
@media only screen and (max-width: 480px) {
    .crystal-name {
        font-size: 1.8rem !important;
    }
    
    .crystal-tag {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
}

/* Add styles for chakra options */
.chakra-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.chakra-desc {
    font-size: 0.9em;
}

.chakra-option[data-chakra="顶轮"] {
    background-color: #a678e2;
    color: white;
}

.chakra-option[data-chakra="第三眼轮"] {
    background-color: #5d62b5;
    color: white;
}

.chakra-option[data-chakra="喉轮"] {
    background-color: #5da4df;
    color: white;
}

.chakra-option[data-chakra="心轮"] {
    background-color: #4caf50;
    color: white;
}

.chakra-option[data-chakra="太阳轮"] {
    background-color: #ffeb3b;
    color: black;
}

.chakra-option[data-chakra="生殖轮"] {
    background-color: #ff9800;
    color: white;
}

.chakra-option[data-chakra="海底轮"] {
    background-color: #f44336;
    color: white;
}

/* Add styles for element options */
.element-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.element-desc {
    font-size: 0.9em;
}

.element-option[data-element="火"] {
    background-color: #ff5722;
    color: white;
}

.element-option[data-element="水"] {
    background-color: #2196f3;
    color: white;
}

.element-option[data-element="土"] {
    background-color: #8d6e63;
    color: white;
}

.element-option[data-element="风"] {
    background-color: #b2dfdb;
    color: black;
}

.element-option[data-element="光"] {
    background-color: #ffecb3;
    color: black;
}

.element-option[data-element="金"] {
    background-color: #ffd700;
    color: black;
}

/* Add styles for effect options */
.effect-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.effect-desc {
    font-size: 0.9em;
}

.effect-option[data-effect="招财"] {
    background-color: #ffe57f;
    color: #5d4037;
}

.effect-option[data-effect="爱情"] {
    background-color: #f8bbd0;
    color: #880e4f;
}

.effect-option[data-effect="事业"] {
    background-color: #bbdefb;
    color: #0d47a1;
}

.effect-option[data-effect="健康"] {
    background-color: #c8e6c9;
    color: #1b5e20;
}

.effect-option[data-effect="防护"] {
    background-color: #d7ccc8;
    color: #3e2723;
}

.effect-option[data-effect="人缘"] {
    background-color: #ffccbc;
    color: #bf360c;
}

.effect-option[data-effect="情绪"] {
    background-color: #d1c4e9;
    color: #4527a0;
}

.effect-option[data-effect="智慧"] {
    background-color: #b3e5fc;
    color: #01579b;
}

.effect-option[data-effect="沟通"] {
    background-color: #b2ebf2;
    color: #006064;
}

/* Add styles for zodiac options */
.zodiac-option[data-zodiac="白羊座"] {
    background-color: #ffcdd2;
}

.zodiac-option[data-zodiac="金牛座"] {
    background-color: #bbdefb;
}

.zodiac-option[data-zodiac="双子座"] {
    background-color: #c8e6c9;
}

.zodiac-option[data-zodiac="巨蟹座"] {
    background-color: #d1c4e9;
}

.zodiac-option[data-zodiac="狮子座"] {
    background-color: #ffe0b2;
}

.zodiac-option[data-zodiac="处女座"] {
    background-color: #b2dfdb;
}

.zodiac-option[data-zodiac="天秤座"] {
    background-color: #f8bbd0;
}

.zodiac-option[data-zodiac="天蝎座"] {
    background-color: #d7ccc8;
}

.zodiac-option[data-zodiac="射手座"] {
    background-color: #ffe082;
}

.zodiac-option[data-zodiac="摩羯座"] {
    background-color: #b0bec5;
}

.zodiac-option[data-zodiac="水瓶座"] {
    background-color: #b3e5fc;
}

.zodiac-option[data-zodiac="双鱼座"] {
    background-color: #e1bee7;
}

/* 症状和情绪查询相关样式 */
.symptom-info-box {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    color: var(--light-text);
    border-left: 4px solid var(--primary-color);
}

.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.symptom-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

.symptom-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background-color: #f9f4ff;
    border-color: var(--primary-color);
}

.category-subtitle {
    font-size: 1.3rem !important;
    color: var(--primary-color) !important;
    margin: 30px 0 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid rgba(224, 95, 149, 0.3);
    position: relative;
}

.category-subtitle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--primary-color);
}

#symptomOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#symptomOverlay.active {
    opacity: 1;
    visibility: visible;
}

.symptom-detail {
    background-color: #fff;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 1001;
    max-width: 90%;
    max-height: 90vh;
    width: 750px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.symptom-detail.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.no-crystal-data, 
.no-crystal-match {
    text-align: center;
    padding: 20px;
    color: var(--light-text);
    font-style: italic;
    background-color: rgba(255,255,255,0.7);
    border-radius: 8px;
}

/* 文字内容区域的最小高度，保证足够的空间显示 */
.symptom-section p {
    margin: 0;
    line-height: 1.5;
    min-height: 24px;
}

/* 水晶图标中心对齐 */
.related-crystal {
    justify-content: center;
}

/* 关闭按钮改良 */
.close-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background-color: rgba(255,255,255,0.25);
    border: none;
    color: white;
    font-size: 22px;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    outline: none;
    padding: 0;
    margin: 0;
    position: relative;
    right: 0;
    text-align: center;
}

.close-btn:hover {
    background-color: rgba(255,255,255,0.4);
    transform: rotate(90deg);
}

/* 确保症状标题和关闭按钮的布局正确 */
.symptom-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.symptom-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.symptom-content {
    padding: 20px;
}

/* Grid layout for the four info cards - ensuring they stay in one row */
.symptom-content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    grid-auto-rows: 1fr; /* Make all rows the same height */
}

/* Belief cards container with relative positioning for arrow placement */
.belief-container {
    margin-bottom: 25px;
    padding: 0;
    background-color: transparent;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; 
    grid-column: 1 / -1;
    position: relative;
}

/* Add connecting arrow between belief cards */
.belief-container::after {
    content: "→";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #666 !important; /* Override the .belief-section * rule */
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1;
}

/* General belief section styling */
.belief-section {
    position: relative;
    margin-bottom: 15px !important;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
    padding: 18px 20px;
    min-height: 150px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.belief-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* Styling for "信念卡点" (limiting belief) card */
.belief-section:first-of-type {
    background-color: #f54848;
    color: white;
    box-shadow: 0 3px 10px rgba(245, 72, 72, 0.3);
    border-left: none;
}

.belief-section:first-of-type h4 {
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.2rem;
    position: relative;
    font-weight: 600;
}

.belief-section:first-of-type h4::before {
    content: "😢";
    margin-right: 10px;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styling for "信念替换" (empowering belief) card */
.belief-section:nth-of-type(2) {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
    border-left: none;
    margin-bottom: 0 !important;
}

.belief-section:nth-of-type(2) h4 {
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.2rem;
    position: relative;
    font-weight: 600;
}

.belief-section:nth-of-type(2) h4::before {
    content: "😊";
    margin-right: 10px;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Belief card content styling */
.belief-section p {
    flex-grow: 1;
    margin: 0 0 0 38px;
    line-height: 1.6;
    color: white !important; /* Force white color for better contrast */
    font-size: 1.05rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Add subtle text shadow for better readability */
}

/* Ensure all text in belief cards is white */
.belief-section * {
    color: white !important;
}

/* Styling for info cards */
.symptom-section {
    background-color: #f9f5fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.symptom-content-grid .symptom-section {
    margin-bottom: 0;
    min-height: 100px;
}

.symptom-section h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(224, 95, 149, 0.2);
    padding-bottom: 8px;
}

.symptom-section p {
    margin: 0;
    line-height: 1.5;
    color: #444;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Crystal recommendation section styling */
.crystal-recommendation-section {
    margin-top: 20px;
    background-color: #f0e6f5;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related-crystals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.related-crystal {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    padding: 15px 10px;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #f0e6f5;
}

.related-crystal:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(224, 95, 149, 0.3);
    border-color: var(--primary-color);
}

.related-crystal img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.related-crystal:hover img {
    transform: scale(1.1);
}

.related-crystal span {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .symptom-content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .belief-container {
        grid-template-columns: 1fr;
        grid-column: auto;
    }
    
    .belief-container::after {
        top: calc(50% - 30px);
        transform: rotate(90deg);
    }
    
    .related-crystals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .symptom-detail {
        width: 95%;
    }
    
    .belief-section {
        padding: 15px;
    }
    
    .belief-section h4 {
        font-size: 1.1rem;
    }
    
    .belief-section h4::before {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .belief-section p {
        margin: 0;
        font-size: 1rem;
    }
}

/* Hide search functionality in symptom tab */
#symptomTab .search-container {
    display: none;
}

/* Ensure the modal content is properly scrollable on small screens */
@media (max-height: 700px) {
    .symptom-detail {
        max-height: 85vh;
    }
}

/* 情绪选项卡样式 */
.emotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.emotion-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
    position: relative;
    border: 1px solid #f8e1eb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    overflow: hidden;
    font-weight: 500;
}

.emotion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
    opacity: 0.6;
    transition: all 0.3s;
}

.emotion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(224, 95, 149, 0.15);
    border-color: var(--primary-color);
}

.emotion-item:hover::before {
    height: 5px;
    opacity: 1;
}

/* 选中状态样式 */
.emotion-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(224, 95, 149, 0.3);
    transform: translateY(-3px);
}

.emotion-item.active::before {
    height: 5px;
    background: white;
    opacity: 0.7;
}

/* 情绪分类标题样式 */
.emotion-category-header {
    grid-column: 1 / -1;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(224, 95, 149, 0.3);
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.emotion-category-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(224, 95, 149, 0.2);
    margin-left: 15px;
}

/* 高亮匹配文本 */
.highlight-match {
    background-color: rgba(224, 95, 149, 0.2);
    color: var(--primary-color);
    font-weight: bold;
    padding: 0 2px;
    border-radius: 3px;
}

/* 情绪选项卡动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#emotionTab .emotion-item {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--animation-order, 0) * 0.05s);
    opacity: 0;
}

/* 移动端响应式优化 */
@media (max-width: 600px) {
    .emotion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .emotion-item {
        padding: 12px 10px;
        min-height: 50px;
        font-size: 0.9rem;
    }
    
    .emotion-popup {
        width: 95%;
        height: 75vh;
        padding: 15px;
    }
    
    .emotion-popup-content {
        max-height: 60vh;
    }
    
    .emotion-popup-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .emotion-popup-title {
        font-size: 1.1rem;
    }
}

/* 情绪选项小泡泡提示 */
.emotion-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    width: 600px;
    height: 80vh;
    padding: 25px;
    z-index: 999;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
}

.emotion-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.emotion-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.emotion-popup-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.emotion-popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    box-sizing: border-box;
    line-height: 1;
    text-align: center;
    min-width: 32px;
    min-height: 32px;
    overflow: hidden;
}

.emotion-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.emotion-popup-content {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -5px;
}

.emotion-popup-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid var(--accent-color);
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.emotion-popup-item:hover {
    background: #f0f0f0;
    transform: translateX(2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.emotion-popup-item-header {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.emotion-popup-description {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.5;
}

.emotion-popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.emotion-popup-tag {
    background: rgba(224, 95, 149, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    color: var(--primary-color);
    border: 1px solid rgba(224, 95, 149, 0.2);
}

.emotion-popup-tag.chakra-tag {
    background: rgba(142, 68, 173, 0.1);
    color: #8e44ad;
    border: 1px solid rgba(142, 68, 173, 0.2);
}

.emotion-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.emotion-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 修改情绪列表项的样式 */
.emotion-item {
    position: relative;
}

/* 添加品质鉴别链接样式 */
.header-links {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.quality-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(90deg, #e05f95, #f5a9cb);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(224, 95, 149, 0.2);
}

.quality-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(224, 95, 149, 0.3);
}

/* 移动设备响应式 */
@media (max-width: 768px) {
    .header-links {
        position: static;
        text-align: center;
        margin-top: 10px;
        transform: none;
    }
    
    .quality-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* 新增移动端导航栏样式 */
.mobile-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #e05f95, #f191b7);
    color: white;
    box-shadow: 0 3px 15px rgba(224, 95, 149, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 5px;
    transition: all 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
    
    /* 添加品牌水印效果 */
    position: relative;
    overflow: hidden;
}

/* 添加品牌水印背景 */
.mobile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.mobile-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-logo span {
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-nav-links {
    display: flex;
    align-items: center;
}

.mobile-nav-link {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 按钮悬停时的动画效果 */
.mobile-nav-link::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s, opacity 0.5s;
}

.mobile-nav-link:hover::after {
    opacity: 1;
    transform: scale(1);
}

.mobile-content-wrapper {
    padding-top: 70px;
    transition: padding-top 0.3s ease;
}

/* 当导航栏缩小时的样式 */
.mobile-header.scrolled {
    height: 52px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-mid));
}

.mobile-header.scrolled .mobile-logo img {
    width: 38px;
    height: 38px;
}

.mobile-header.scrolled .mobile-logo span {
    font-size: 1.2rem;
}

/* 移除之前基于设备的媒体查询 */
@media (min-width: 769px) {
    /* 使搜索容器响应式 */
    .search-container {
        margin-top: 20px;
    }
}

/* 修复移除的样式 */
.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mobile-nav-link i {
    font-size: 1rem;
}

/* 翻译加载指示器样式 */
.translation-loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-size: 16px;
}

.translation-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.translation-loading-text {
    font-weight: bold;
}

/* 语言切换按钮样式 */
#languageToggle {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

#languageToggle:hover {
    color: #e05f95;
}

#languageToggle .fa-globe {
    margin-right: 5px;
}

/* 确保所有图片在翻译过程中不被翻译 */
img.no-translate {
    max-width: 100%;
}

/* 防止翻译中的布局跳动 */
[data-translate-key] {
    min-height: 1em;
}

.mobile-nav-link i {
    margin-right: 3px;
}

/* Removing translation-related styles */

img.no-translate {
    max-width: 100%;
}

[data-translate-key] {
    transition: opacity 0.2s;
}

/* 水晶选择器彩虹色圆形按钮样式 */
.crystal-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
    justify-content: center;
}

.crystal-button {
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

.crystal-button:hover,
.crystal-button.active {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* 各种水晶的默认颜色 */
.crystal-button[data-crystal="all"] {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
    background-size: 400% 400%;
    animation: rainbow 5s ease infinite;
    font-size: 0.9rem;
    width: 70px;
    height: 70px;
}

@keyframes rainbow {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

.crystal-button[data-crystal="white-quartz"] {
    background: linear-gradient(135deg, #ffffff, #f0f0f0, #e0e0e0);
    color: #666;
}

.crystal-button[data-crystal="golden-rutilated-quartz"] {
    background: linear-gradient(135deg, #ffd700, #daa520, #b8860b);
}

.crystal-button[data-crystal="amethyst"] {
    background: linear-gradient(135deg, #9370db, #8a2be2, #4b0082);
}

.crystal-button[data-crystal="rose-quartz"] {
    background: linear-gradient(135deg, #ffb6c1, #ff69b4, #db7093);
}

.crystal-button[data-crystal="citrine"] {
    background: linear-gradient(135deg, #ffd700, #ffa500, #ff8c00);
}

.crystal-button[data-crystal="green-phantom"] {
    background: linear-gradient(135deg, #00fa9a, #3cb371, #2e8b57);
}

.crystal-button[data-crystal="smoky-quartz"] {
    background: linear-gradient(135deg, #a0522d, #8b4513, #654321);
}

.crystal-button[data-crystal="aquamarine"] {
    background: linear-gradient(135deg, #7fffd4, #5f9ea0, #4682b4);
}

.crystal-button[data-crystal="moonstone"] {
    background: linear-gradient(135deg, #e6e6fa, #b0c4de, #87ceeb);
}

.crystal-button[data-crystal="strawberry-quartz"] {
    background: linear-gradient(135deg, #ff6347, #ff4500, #dc143c);
}

.crystal-button[data-crystal="red-line-stone"] {
    background: linear-gradient(135deg, #cd5c5c, #b22222, #8b0000);
}

.crystal-button[data-crystal="golden-strawberry-quartz"] {
    background: linear-gradient(135deg, #ffa07a, #fa8072, #e9967a);
}

.crystal-button[data-crystal="obsidian"] {
    background: linear-gradient(135deg, #2f4f4f, #1a1a1a, #000000);
}

.crystal-button[data-crystal="garnet"] {
    background: linear-gradient(135deg, #800000, #a52a2a, #8b0000);
}

.crystal-button[data-crystal="lapis-lazuli"] {
    background: linear-gradient(135deg, #191970, #000080, #00008b);
}

.crystal-button[data-crystal="labradorite"] {
    background: linear-gradient(135deg, #2f4f4f, #36454f, #6c7b8b);
}

.crystal-button[data-crystal="tigers-eye"] {
    background: linear-gradient(135deg, #cd853f, #d2691e, #8b4513);
}

.crystal-button[data-crystal="topaz"] {
    background: linear-gradient(135deg, #ffd700, #daa520, #b8860b);
}

.crystal-button[data-crystal="tourmaline"] {
    background: linear-gradient(135deg, #50c878, #00ff7f, #2e8b57);
}

.crystal-button[data-crystal="lepidolite"] {
    background: linear-gradient(135deg, #dda0dd, #d8bfd8, #ba55d3);
}

.crystal-button[data-crystal="orange-calcite"] {
    background: linear-gradient(135deg, #ffa500, #ff8c00, #ff7f50);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .crystal-button {
        width: 50px;
        height: 50px;
        font-size: 0.75rem;
        padding: 5px;
    }
    
    .crystal-button[data-crystal="all"] {
        width: 60px;
        height: 60px;
    }
    
    .crystal-selector {
        gap: 8px;
    }
} 