/* ===== 协会官网首页 - 中国国学风格 ===== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Ma+Shan+Zheng&display=swap');

/* 颜色体系：水墨黑 + 宣纸黄 + 印章红 + 翡翠绿 */
:root {
    --ink: #1a1a1a;
    --ink-light: #3a3a3a;
    --rice: #f7f3e9;        /* 宣纸色 */
    --rice-dark: #ede6d3;
    --seal: #c23b22;        /* 印章红 */
    --seal-light: #d65a4a;
    --jade: #2d6a4f;        /* 翡翠绿 */
    --jade-dark: #1b4332;
    --gold: #c9956b;        /* 古铜金 */
    --shadow-ink: rgba(26,26,26,0.12);
}

.home-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航栏 ===== */
.home-navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(26,26,26,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,149,107,0.3);
}
.home-navbar .home-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.home-logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
    width: 48px; height: 48px;
    border-radius: 6px;
    background: var(--seal);
    display: flex; align-items: center; justify-content: center;
    color: var(--rice); font-size: 0.72rem; font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(194,59,34,0.3);
}
.logo-title {
    font-size: 1.15rem; font-weight: 700; color: var(--rice);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 2px;
}
.logo-sub { font-size: 0.65rem; color: rgba(247,243,233,0.5); letter-spacing: 1px; }

.home-nav-links { display: flex; gap: 2px; list-style: none; }
.home-nav-links a {
    color: rgba(247,243,233,0.75); text-decoration: none;
    padding: 8px 16px; border-radius: 4px; font-size: 0.9rem;
    font-family: 'Noto Serif SC', serif;
    transition: all 0.2s; letter-spacing: 1px;
}
.home-nav-links a:hover { color: var(--gold); background: rgba(201,149,107,0.08); }

.home-nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-select {
    background: rgba(247,243,233,0.1); color: var(--rice);
    border: 1px solid rgba(201,149,107,0.3);
    padding: 6px 10px; border-radius: 4px; font-size: 0.82rem;
    cursor: pointer; outline: none;
}
.lang-select option { color: #333; }

.login-dropdown { position: relative; }
.login-trigger {
    background: var(--seal); color: var(--rice); border: none;
    padding: 9px 22px; border-radius: 4px; font-size: 0.88rem;
    cursor: pointer; font-weight: 600;
    font-family: 'Noto Serif SC', serif; letter-spacing: 2px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(194,59,34,0.3);
}
.login-trigger:hover { background: var(--seal-light); transform: translateY(-1px); }
.login-menu {
    display: none; position: absolute; top: 100%; right: 0;
    margin-top: 10px;
    background: var(--rice); border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    min-width: 300px; padding: 10px; z-index: 1001;
    border: 1px solid var(--rice-dark);
}
.login-menu.show { display: block; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.login-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px; border-radius: 8px; text-decoration: none;
    color: var(--ink); transition: background 0.15s;
}
.login-item:hover { background: var(--rice-dark); }
.login-icon { font-size: 1.8rem; }
.login-label { font-weight: 600; font-size: 0.96rem; font-family: 'Noto Serif SC', serif; }
.login-desc { font-size: 0.78rem; color: #888; }

/* ===== Hero 横幅 ===== */
.home-hero {
    position: relative; min-height: 520px;
    background: var(--ink);
    display: flex; align-items: center; overflow: hidden;
}
/* 水墨山水背景 */
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(45,106,79,0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201,149,107,0.15) 0%, transparent 50%),
        linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 40%, #1a1a1a 100%);
}
/* 山水 SVG 装饰 */
.hero-mountains {
    position: absolute; bottom: 0; left: 0; right: 0;
    opacity: 0.15;
}
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--rice); padding: 80px 20px; }
.hero-content h1 {
    font-size: 3rem; font-weight: 900;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 8px; margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, #f7f3e9 0%, #c9956b 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem; opacity: 0.7; margin-bottom: 40px;
    font-family: 'Noto Serif SC', serif; letter-spacing: 4px;
}
.hero-stats {
    display: flex; justify-content: center; gap: 50px; margin-bottom: 40px;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.stat-num {
    font-size: 2.4rem; font-weight: 700; color: var(--gold);
    font-family: 'Noto Serif SC', serif;
}
.stat-label { font-size: 0.85rem; opacity: 0.6; letter-spacing: 2px; }

.hero-btn {
    display: inline-block; background: transparent; color: var(--gold);
    padding: 12px 40px; border: 1px solid var(--gold); border-radius: 0;
    font-size: 1rem; font-weight: 600; text-decoration: none;
    font-family: 'Noto Serif SC', serif; letter-spacing: 4px;
    transition: all 0.3s;
}
.hero-btn:hover { background: var(--gold); color: var(--ink); }

/* 印章装饰 */
.hero-seal {
    position: absolute; top: 50%; right: 8%;
    transform: translateY(-50%);
    width: 100px; height: 100px;
    background: var(--seal);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--rice); font-size: 1.5rem; font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    opacity: 0.7; transform: translateY(-50%) rotate(-8deg);
    box-shadow: 0 4px 20px rgba(194,59,34,0.3);
}
@media (max-width: 768px) { .hero-seal { display: none; } }

/* ===== 通用 Section ===== */
.home-section { padding: 80px 0; }
.section-alt { background: var(--rice-dark); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
    font-size: 2rem; font-weight: 700; color: var(--ink);
    font-family: 'Noto Serif SC', serif; letter-spacing: 6px;
}
.section-divider {
    width: 40px; height: 2px; background: var(--seal);
    margin: 15px auto; position: relative;
}
.section-divider::before, .section-divider::after {
    content: ''; position: absolute; top: 50%;
    width: 60px; height: 1px; background: var(--rice-dark);
}
.section-divider::before { right: 100%; margin-right: 10px; }
.section-divider::after { left: 100%; margin-left: 10px; }

.section-desc {
    font-size: 0.92rem; color: var(--ink-light); max-width: 600px;
    margin: 0 auto; font-family: 'Noto Serif SC', serif; letter-spacing: 1px;
}

.sub-section-title {
    text-align: center; font-size: 1.35rem; color: var(--ink);
    margin: 60px 0 30px; font-weight: 600;
    font-family: 'Noto Serif SC', serif; letter-spacing: 4px;
}

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.about-card {
    background: white; border-radius: 0; padding: 35px 30px;
    border: 1px solid var(--rice-dark);
    transition: all 0.3s; position: relative; overflow: hidden;
}
.about-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 3px; background: var(--seal);
    transform: scaleX(0); transition: transform 0.3s;
}
.about-card:hover { box-shadow: 0 10px 30px var(--shadow-ink); transform: translateY(-4px); }
.about-card:hover::before { transform: scaleX(1); }
.about-icon { font-size: 2.5rem; margin-bottom: 15px; }
.about-card h3 {
    font-size: 1.2rem; color: var(--ink); margin-bottom: 12px;
    font-family: 'Noto Serif SC', serif; letter-spacing: 2px;
}
.about-card p {
    font-size: 0.9rem; color: var(--ink-light); line-height: 1.9;
    font-family: 'Noto Serif SC', serif;
}

/* ===== 理论卡片 ===== */
.theory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.theory-card {
    background: white; padding: 35px 25px; text-align: center;
    border: 1px solid var(--rice-dark);
    transition: all 0.3s;
}
.theory-card:hover { box-shadow: 0 8px 25px var(--shadow-ink); border-color: var(--gold); }
.theory-symbol {
    width: 72px; height: 72px; margin: 0 auto 18px;
    border-radius: 50%; background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    color: var(--rice); font-size: 1.6rem; font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    border: 3px solid var(--gold);
}
.theory-card h3 {
    font-size: 1.1rem; color: var(--ink); margin-bottom: 10px;
    font-family: 'Noto Serif SC', serif; letter-spacing: 2px;
}
.theory-card p {
    font-size: 0.84rem; color: var(--ink-light); line-height: 1.8;
    font-family: 'Noto Serif SC', serif;
}

/* 四诊 */
.diagnosis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.diagnosis-item {
    text-align: center; padding: 30px 20px;
    background: white; border: 1px solid var(--rice-dark);
    transition: all 0.3s;
}
.diagnosis-item:hover { background: var(--rice); }
.d-icon { font-size: 2.2rem; margin-bottom: 12px; }
.diagnosis-item h4 {
    font-size: 1.05rem; color: var(--ink); margin-bottom: 8px;
    font-family: 'Noto Serif SC', serif; letter-spacing: 2px;
}
.diagnosis-item p {
    font-size: 0.82rem; color: var(--ink-light); line-height: 1.7;
    font-family: 'Noto Serif SC', serif;
}

/* ===== 四大经典 - 古籍卷轴风格 ===== */
.classics-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.classic-item {
    display: flex; align-items: stretch;
    background: white; border: 1px solid var(--rice-dark);
    overflow: hidden; transition: all 0.3s;
}
.classic-item:hover { box-shadow: 0 8px 25px var(--shadow-ink); }
.classic-era {
    background: var(--ink); color: var(--gold);
    padding: 20px 16px; min-width: 80px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 600;
    font-family: 'Noto Serif SC', serif; letter-spacing: 2px;
    writing-mode: vertical-rl; text-orientation: upright;
}
.classic-card { flex: 1; padding: 25px 30px; }
.classic-card h3 {
    font-size: 1.3rem; color: var(--ink); margin-bottom: 4px;
    font-family: 'Noto Serif SC', serif; letter-spacing: 2px;
}
.classic-author { font-size: 0.84rem; color: var(--seal); margin-bottom: 10px; font-weight: 500; }
.classic-card p {
    font-size: 0.88rem; color: var(--ink-light); line-height: 1.8;
    font-family: 'Noto Serif SC', serif;
}

/* ===== 名医 - 卡片风格 ===== */
.masters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.master-card {
    background: white; padding: 30px 20px; text-align: center;
    border: 1px solid var(--rice-dark); transition: all 0.3s;
    position: relative;
}
.master-card:hover { box-shadow: 0 8px 25px var(--shadow-ink); transform: translateY(-4px); }
.master-portrait {
    width: 80px; height: 80px; margin: 0 auto 15px;
    border-radius: 50%; background: var(--seal);
    display: flex; align-items: center; justify-content: center;
    color: var(--rice); font-size: 0.82rem; font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    border: 3px solid var(--gold);
}
.master-card h3 {
    font-size: 1.15rem; color: var(--ink); margin-bottom: 2px;
    font-family: 'Noto Serif SC', serif; letter-spacing: 2px;
}
.master-era { font-size: 0.8rem; color: var(--seal); margin-bottom: 10px; }
.master-card p {
    font-size: 0.82rem; color: var(--ink-light); line-height: 1.7;
    font-family: 'Noto Serif SC', serif;
}

/* ===== 疗法 ===== */
.therapy-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.therapy-card {
    background: white; padding: 30px 20px; text-align: center;
    border: 1px solid var(--rice-dark); transition: all 0.3s;
}
.therapy-card:hover { box-shadow: 0 8px 20px var(--shadow-ink); border-color: var(--gold); }
.therapy-icon { font-size: 2.5rem; margin-bottom: 14px; }
.therapy-card h3 {
    font-size: 1.05rem; color: var(--ink); margin-bottom: 10px;
    font-family: 'Noto Serif SC', serif; letter-spacing: 2px;
}
.therapy-card p {
    font-size: 0.82rem; color: var(--ink-light); line-height: 1.7;
    font-family: 'Noto Serif SC', serif;
}

/* ===== 养生 ===== */
.health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.health-item {
    display: flex; align-items: flex-start; gap: 18px;
    background: white; padding: 25px;
    border: 1px solid var(--rice-dark); transition: all 0.3s;
}
.health-item:hover { box-shadow: 0 6px 20px var(--shadow-ink); }
.h-icon { font-size: 2rem; flex-shrink: 0; }
.health-item h3 {
    font-size: 1.05rem; color: var(--ink); margin-bottom: 8px;
    font-family: 'Noto Serif SC', serif; letter-spacing: 2px;
}
.health-item p {
    font-size: 0.83rem; color: var(--ink-light); line-height: 1.7;
    font-family: 'Noto Serif SC', serif;
}

/* ===== CTA ===== */
.service-cta {
    background: var(--ink); color: var(--rice); position: relative; overflow: hidden;
}
.service-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(45,106,79,0.15) 0%, transparent 50%);
}
.service-cta .section-header h2 { color: var(--rice); }
.service-cta .section-desc { color: rgba(247,243,233,0.6); }
.service-cta .home-container { position: relative; z-index: 1; }

.cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 800px; margin: 0 auto; }
.cta-card {
    background: rgba(247,243,233,0.05); border: 1px solid rgba(201,149,107,0.2);
    padding: 40px 30px; text-align: center; text-decoration: none; color: var(--rice);
    transition: all 0.3s;
}
.cta-card:hover {
    background: rgba(201,149,107,0.08); border-color: var(--gold);
    transform: translateY(-5px);
}
.cta-icon { font-size: 3rem; margin-bottom: 18px; }
.cta-card h3 {
    font-size: 1.25rem; margin-bottom: 12px;
    font-family: 'Noto Serif SC', serif; letter-spacing: 3px;
}
.cta-card p { font-size: 0.88rem; opacity: 0.7; margin-bottom: 20px; line-height: 1.7; }
.cta-btn { font-size: 0.95rem; font-weight: 600; color: var(--gold); letter-spacing: 2px; }

/* ===== 页脚 ===== */
.home-footer { background: #111; color: rgba(247,243,233,0.6); padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 {
    color: var(--rice); font-size: 1rem; margin-bottom: 16px;
    font-family: 'Noto Serif SC', serif; letter-spacing: 2px;
}
.footer-col p, .footer-col a {
    display: block; font-size: 0.84rem; color: rgba(247,243,233,0.5);
    margin-bottom: 8px; text-decoration: none; transition: color 0.15s;
    font-family: 'Noto Serif SC', serif;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(247,243,233,0.1);
    padding-top: 20px; text-align: center; font-size: 0.82rem;
    color: rgba(247,243,233,0.3);
    font-family: 'Noto Serif SC', serif; letter-spacing: 1px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .home-nav-links { display: none; }
    .about-grid, .theory-grid, .diagnosis-grid, .masters-grid, .health-grid, .cta-grid { grid-template-columns: 1fr 1fr; }
    .therapy-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 2rem; letter-spacing: 4px; }
    .hero-stats { gap: 25px; }
}
@media (max-width: 600px) {
    .about-grid, .theory-grid, .diagnosis-grid, .masters-grid, .health-grid, .cta-grid, .therapy-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .home-navbar .home-container { flex-wrap: wrap; height: auto; padding: 10px 20px; }
    .home-nav-actions { width: 100%; justify-content: flex-end; margin-top: 8px; }
    .hero-content h1 { font-size: 1.6rem; }
}
