/* === 基础样式 === */
:root {
    --primary: #8B6F5E;
    --primary-light: #A8917F;
    --primary-dark: #6D5648;
    --accent: #C9A87C;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #FFFFFF;
    --bg-alt: #F8F6F3;
    --bg-warm: #FBF9F7;
    --border: #E8E2DC;
    --shadow: 0 2px 12px rgba(139,111,94,0.08);
    --shadow-hover: 0 4px 20px rgba(139,111,94,0.15);
    --radius: 8px;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    font-size: 16px;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* === 导航栏 === */
.navbar {
    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 var(--border);
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 40px; width: auto; }
.logo-text { font-size: 18px; font-weight: 600; color: var(--primary-dark); letter-spacing: 1px; }
.nav-menu { display: flex; list-style: none; gap: 32px; }
.nav-link {
    color: var(--text-light); font-size: 15px; font-weight: 500;
    padding: 8px 0; position: relative; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary-dark); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--accent); border-radius: 1px;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text);
    margin: 5px 0; transition: var(--transition);
}

/* === Hero 首屏 === */
.hero {
    position: relative; height: 70vh; min-height: 500px;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    margin-top: 72px;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(109,86,72,0.7) 0%, rgba(139,111,94,0.5) 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; color: white; padding: 0 24px; }
.hero-content h1 { font-size: 42px; font-weight: 300; letter-spacing: 4px; margin-bottom: 16px; }
.hero-subtitle { font-size: 18px; font-weight: 300; letter-spacing: 2px; margin-bottom: 12px; opacity: 0.9; }
.hero-desc { font-size: 14px; opacity: 0.8; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === 按钮 === */
.btn {
    display: inline-block; padding: 12px 32px; border-radius: var(--radius);
    font-size: 15px; font-weight: 500; transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #B8975E; color: white; transform: translateY(-1px); }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: white; }

/* === 通用区块 === */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    text-align: center; font-size: 28px; font-weight: 400; color: var(--primary-dark);
    letter-spacing: 2px; margin-bottom: 12px;
}
.section-title::after {
    content: ''; display: block; width: 40px; height: 2px;
    background: var(--accent); margin: 16px auto 0;
}
.section-desc { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 48px; }
.section-note { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 13px; }

/* === 机构概况 === */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 48px; }
.overview-text p { margin-bottom: 16px; color: var(--text-light); line-height: 2; }
.overview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-item {
    text-align: center; padding: 24px; background: var(--bg-warm);
    border-radius: var(--radius); border: 1px solid var(--border);
}
.stat-number { font-size: 36px; font-weight: 300; color: var(--primary-dark); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* === 资质信息 === */
.credentials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.credential-card {
    text-align: center; padding: 32px 20px; background: white;
    border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition);
}
.credential-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.credential-icon { font-size: 36px; margin-bottom: 16px; }
.credential-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--primary-dark); }
.credential-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* === 医生团队 === */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 800px; margin: 0 auto; }
.doctor-card {
    display: flex; gap: 24px; padding: 24px; background: var(--bg-warm);
    border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition);
}
.doctor-card:hover { box-shadow: var(--shadow-hover); }
.doctor-photo { width: 120px; height: 150px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--border); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-info { display: flex; flex-direction: column; justify-content: center; }
.doctor-info h3 { font-size: 20px; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.doctor-title { font-size: 14px; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.doctor-specialty { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.link-more { font-size: 13px; color: var(--primary); }

/* === 服务项目 === */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
    display: block; padding: 32px; background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: var(--transition); color: var(--text); border: 1px solid transparent;
}
.service-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.service-icon { font-size: 32px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--primary-dark); }
.service-card p { font-size: 14px; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; }
.service-price { font-size: 14px; color: var(--accent); font-weight: 500; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; padding: 20px 0; background: none; border: none;
    font-size: 16px; font-weight: 500; color: var(--text); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; text-align: left;
}
.faq-toggle { font-size: 24px; color: var(--accent); transition: var(--transition); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 0 20px; color: var(--text-light); font-size: 15px; line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* === 页脚 === */
.footer { background: #2C2421; color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h4 { color: white; font-size: 16px; margin-bottom: 16px; font-weight: 500; }
.footer-col p, .footer-col li { font-size: 14px; line-height: 2; }
.footer-col ul { list-style: none; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding: 24px 0; text-align: center; font-size: 13px; }
.footer-disclaimer { margin-top: 8px; font-size: 12px; opacity: 0.6; line-height: 1.6; }

/* === 响应式 === */
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px 24px; gap: 16px; box-shadow: var(--shadow); }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: block; }
    .hero-content h1 { font-size: 28px; }
    .overview-grid { grid-template-columns: 1fr; }
    .credentials-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .credentials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .doctor-card { flex-direction: column; align-items: center; text-align: center; }
}
