/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f4c;
    --primary-light: #3d7a64;
    --primary-dark: #1a4032;
    --accent-color: #c9a96e;
    --accent-light: #d4b884;
    --bg-color: #f5f3ef;
    --bg-card: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-light: #95a5a6;
    --border-color: #e0ddd5;
    --shadow-color: rgba(44, 95, 76, 0.1);
    --gradient-primary: linear-gradient(135deg, #2c5f4c 0%, #3d7a64 100%);
    --gradient-accent: linear-gradient(135deg, #c9a96e 0%, #d4b884 100%);
    --gradient-bg: linear-gradient(180deg, #f5f3ef 0%, #ede8e0 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(44, 95, 76, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 110, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px var(--shadow-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(44, 95, 76, 0.3);
}

.logo-text h1 {
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(44, 95, 76, 0.08);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-title {
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    max-width: fit-content;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.agent-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(44, 95, 76, 0.2);
    border-color: var(--primary-light);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(44, 95, 76, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.agent-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    padding: 28px;
    z-index: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.agent-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Individual icon colors */
.tongue-icon { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.face-icon { background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); }
.ear-icon { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.hand-icon { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.eye-icon { background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); }
.sweat-icon { background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); }
.psychology-icon { background: linear-gradient(135deg, #9b59b6 0%, #772864 100%); }
.posture-icon { background: linear-gradient(135deg, #2c5f4c 0%, #1a4032 100%); }
.audio-icon { background: linear-gradient(135deg, #c9a96e 0%, #b8945e 100%); }

.card-title {
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 44px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.card-tag {
    font-size: 12px;
    color: var(--accent-color);
    background: rgba(201, 169, 110, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.card-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-button:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

.card-button i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.card-button:hover i {
    transform: translateX(3px);
}

/* 健康知识问答卡片：整体对齐银润康·中医智能体问答界面的橙/棕主题 */
.agent-card[data-agent="qa"] .qa-icon { background: #B89E7E; }
.agent-card[data-agent="qa"] .card-tag {
    color: #A08358;
    background: rgba(184, 158, 126, 0.14);
}
.agent-card[data-agent="qa"] .card-button {
    background: #A08358;
}
.agent-card[data-agent="qa"] .card-button:hover {
    background: #8A6F45;
}
.agent-card[data-agent="qa"]:hover {
    border-color: #B89E7E;
    box-shadow: 0 12px 40px rgba(184, 158, 126, 0.28);
}
.agent-card[data-agent="qa"] .card-glow {
    background: radial-gradient(circle, rgba(184, 158, 126, 0.18) 0%, transparent 70%);
}

/* Features Section */
.features {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.feature-item h4 {
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-size: 18px;
    font-weight: 600;
}

.footer-text {
    font-size: 13px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .card-content {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.agent-card:nth-child(1) { animation-delay: 0.1s; }
.agent-card:nth-child(2) { animation-delay: 0.2s; }
.agent-card:nth-child(3) { animation-delay: 0.3s; }
.agent-card:nth-child(4) { animation-delay: 0.4s; }
.agent-card:nth-child(5) { animation-delay: 0.5s; }
.agent-card:nth-child(6) { animation-delay: 0.6s; }
.agent-card:nth-child(7) { animation-delay: 0.7s; }
.agent-card:nth-child(8) { animation-delay: 0.8s; }
.agent-card:nth-child(9) { animation-delay: 0.9s; }
