/* === 全局重置与基础 === */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
    font-family: "PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
    color: #3b2f2f;
    background: #fdfaf6;
    line-height:1.8;
    overflow-x:hidden;
}

/* === 导航栏 === */
.site-header {
    position:fixed; top:0; left:0; right:0; z-index:1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8d5c4;
    transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.navbar {
    max-width:1200px; margin:0 auto;
    display:flex; align-items:center; justify-content:space-between;
    padding:0 2rem; height:70px;
}
.nav-brand { display:flex; align-items:center; gap:0.5rem; }
.brand-icon { font-size:1.8rem; color:#8B4513; }
.brand-text {
    font-size:1.3rem; font-weight:700;
    color:#5D3A1A; letter-spacing:2px;
}
.nav-links { display:flex; list-style:none; gap:0.2rem; }
.nav-links a {
    text-decoration:none; color:#6B5B4F;
    padding:0.5rem 1rem; border-radius:6px;
    font-size:0.95rem; font-weight:500;
    transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color:#8B4513; background:#fdf0e5;
}
.menu-toggle {
    display:none; background:none; border:none;
    font-size:1.8rem; color:#5D3A1A; cursor:pointer;
}

/* === 英雄区域 === */
.hero-section {
    position:relative; min-height:100vh;
    display:flex; align-items:center; justify-content:center;
    text-align:center; color:#fff;
    background: linear-gradient(135deg, #2c1810 0%, #4a2c17 30%, #6B3A2A 60%, #8B4513 100%);
    overflow:hidden;
}
.hero-overlay {
    position:absolute; inset:0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position:relative; z-index:2; max-width:800px; padding:0 2rem; }
.hero-title {
    font-size:3.5rem; font-weight:900; letter-spacing:8px;
    margin-bottom:1rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size:1.3rem; font-weight:300; letter-spacing:4px;
    margin-bottom:1.5rem; opacity:0.9;
}
.hero-desc {
    font-size:1.05rem; line-height:2; opacity:0.85;
    margin-bottom:2.5rem;
}
.hero-btns { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.hero-btn {
    display:inline-block; padding:0.8rem 2.5rem; border-radius:50px;
    text-decoration:none; font-size:1rem; font-weight:600;
    letter-spacing:2px; transition: all 0.3s;
}
.hero-btn.primary {
    background: #c8956c; color:#fff;
    border:2px solid #c8956c;
}
.hero-btn.primary:hover { background:#d4a87c; border-color:#d4a87c; transform:translateY(-2px); }
.hero-btn.secondary {
    background:transparent; color:#fff;
    border:2px solid rgba(255,255,255,0.5);
}
.hero-btn.secondary:hover { border-color:#fff; background:rgba(255,255,255,0.1); transform:translateY(-2px); }
.hero-scroll {
    position:absolute; bottom:2rem; left:50%; transform:translateX(-50%);
    display:flex; flex-direction:column; align-items:center; gap:0.5rem;
    color:rgba(255,255,255,0.6); font-size:0.85rem; letter-spacing:2px;
}
.scroll-arrow { font-size:1.2rem; animation: bounce 2s infinite; }
@keyframes bounce {
    0%,20%,50%,80%,100% { transform:translateY(0); }
    40% { transform:translateY(-10px); }
    60% { transform:translateY(-5px); }
}

/* === 通用区块 === */
.content-section { padding:6rem 2rem; }
.alt-bg { background: #fdf3e7; }
.section-header { text-align:center; margin-bottom:4rem; }
.section-header h2 {
    font-size:2.5rem; color:#5D3A1A; letter-spacing:4px;
    margin-bottom:0.8rem;
}
.section-header p {
    font-size:1.1rem; color:#a0806a; letter-spacing:3px;
}

/* === 孔教授介绍 === */
.professor-layout {
    max-width:1100px; margin:0 auto;
    display:grid; grid-template-columns: 300px 1fr;
    gap:3rem; align-items:start;
}
.professor-portrait {
    display:flex; justify-content:center;
}
.portrait-frame {
    width:280px; height:350px;
    background: linear-gradient(135deg, #fdf3e7, #f5e6d3);
    border:3px solid #c8956c; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    box-shadow: 0 10px 40px rgba(139,69,19,0.15);
}
.portrait-placeholder { text-align:center; color:#8B4513; }
.portrait-placeholder span { font-size:4rem; display:block; margin-bottom:0.5rem; }
.portrait-placeholder p { font-size:1.2rem; font-weight:700; letter-spacing:2px; }
.professor-info { display:flex; flex-direction:column; gap:1.5rem; }
.info-block {
    background:#fff; padding:1.5rem 2rem;
    border-radius:10px; border-left:4px solid #c8956c;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.info-block h3 { font-size:1.15rem; color:#5D3A1A; margin-bottom:0.5rem; }
.info-block p { color:#6B5B4F; line-height:1.9; }

/* === IPF专区 === */
.ipf-overview { max-width:900px; margin:0 auto 3rem; }
.ipf-intro {
    background:#fff; padding:2rem; border-radius:10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-top:4px solid #c8956c;
}
.ipf-intro h3 { color:#5D3A1A; margin-bottom:0.8rem; font-size:1.3rem; }
.ipf-intro p { color:#6B5B4F; line-height:2; }

.card-grid {
    max-width:1100px; margin:0 auto;
    display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap:1.5rem;
}
.card {
    background:#fff; padding:2rem; border-radius:10px;
    text-align:center; box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform:translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.card-icon { font-size:3rem; margin-bottom:1rem; }
.card h3 { color:#5D3A1A; margin-bottom:0.8rem; font-size:1.15rem; }
.card p { color:#6B5B4F; font-size:0.95rem; line-height:1.8; }

.ipf-approach { max-width:900px; margin:3rem auto 0; }
.ipf-approach h3 {
    text-align:center; color:#5D3A1A; font-size:1.5rem;
    margin-bottom:2rem; letter-spacing:3px;
}
.approach-grid {
    display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap:1rem;
}
.approach-item {
    background:#fff; padding:1.5rem; border-radius:10px;
    text-align:center; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.approach-item h4 { color:#5D3A1A; margin-bottom:0.5rem; }
.approach-item p { color:#6B5B4F; font-size:0.9rem; }

/* === 中医院 === */
.hospital-layout { max-width:900px; margin:0 auto; }
.hospital-desc { margin-bottom:3rem; }
.hospital-desc p {
    color:#6B5B4F; line-height:2; margin-bottom:1rem;
    font-size:1.05rem;
}
.hospital-features {
    display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap:1.5rem;
}
.feature {
    background:#fff; padding:2rem 1.5rem; border-radius:10px;
    text-align:center; box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.feature:hover { transform:translateY(-3px); }
.feature-icon { font-size:2.5rem; margin-bottom:0.8rem; }
.feature h4 { color:#5D3A1A; margin-bottom:0.5rem; }
.feature p { color:#6B5B4F; font-size:0.9rem; }

/* === 联系方式 === */
.contact-layout { max-width:700px; margin:0 auto; }
.contact-item {
    background:#fff; padding:2rem; border-radius:10px;
    margin-bottom:1.5rem; box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-left:4px solid #c8956c;
}
.contact-item h4 { color:#5D3A1A; margin-bottom:0.5rem; font-size:1.1rem; }
.contact-item p { color:#6B5B4F; }

/* === 页脚 === */
.site-footer {
    background: #2c1810; color: rgba(255,255,255,0.7);
    text-align:center; padding:3rem 2rem;
}
.footer-brand {
    display:flex; align-items:center; justify-content:center;
    gap:0.5rem; margin-bottom:1rem;
}
.footer-brand span { font-size:1.3rem; font-weight:700; color:#c8956c; }
.footer-brand .brand-icon { font-size:1.5rem; }
.footer-copy { font-size:0.85rem; opacity:0.5; margin-top:0.5rem; }

/* === 响应式 === */
@media (max-width: 768px) {
    .nav-links {
        display:none;
        position:absolute; top:70px; left:0; right:0;
        background:#fff; flex-direction:column;
        padding:1rem; border-bottom:2px solid #e8d5c4;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    .nav-links.show { display:flex; }
    .menu-toggle { display:block; }

    .hero-title { font-size:2.2rem; letter-spacing:4px; }
    .hero-subtitle { font-size:1rem; letter-spacing:2px; }
    .hero-desc { font-size:0.9rem; }

    .professor-layout { grid-template-columns: 1fr; }
    .portrait-frame { width:200px; height:250px; margin:0 auto; }

    .section-header h2 { font-size:1.8rem; }
    .content-section { padding:4rem 1.2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size:1.8rem; letter-spacing:2px; }
    .hero-btns { flex-direction:column; align-items:center; }
    .hero-btn { width:80%; text-align:center; }
}
