/* 中医药文化网 - 样式表 */
:root {
  --primary: #8B4513;
  --primary-dark: #6B3410;
  --primary-light: #A0522D;
  --accent: #C9A227;
  --accent-light: #E8D5A3;
  --bg-cream: #FDF8F0;
  --bg-white: #FFFFFF;
  --text-dark: #2C1810;
  --text-muted: #6B5744;
  --border: #E0D4C4;
  --shadow: rgba(139, 69, 19, 0.12);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 导航栏 */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(253, 248, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem; transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 2px 20px var(--shadow); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary); }
.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: bold; font-size: 20px;
}
.nav-logo-text { font-size: 1.3rem; font-weight: 700; letter-spacing: 3px; }
.nav-logo-sub { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.95rem; font-weight: 500;
  position: relative; padding: 0.3rem 0; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.mobile-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 120px 2rem 80px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,162,39,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(139,69,19,0.06) 0%, transparent 50%),
    var(--bg-cream);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(201,162,39,0.02) 60px, rgba(201,162,39,0.02) 61px),
    repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(139,69,19,0.02) 60px, rgba(139,69,19,0.02) 61px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block; padding: 6px 20px;
  border: 1px solid var(--accent); border-radius: 30px;
  color: var(--primary-dark); font-size: 0.85rem; letter-spacing: 3px;
  margin-bottom: 2rem; background: rgba(255,255,255,0.7);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
  line-height: 1.2; margin-bottom: 1.5rem; letter-spacing: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); line-height: 2; margin-bottom: 2.5rem; font-weight: 400; }
.hero-btn {
  display: inline-block; padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; text-decoration: none; border-radius: 50px;
  font-size: 1.05rem; font-weight: 600; letter-spacing: 2px; transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(139,69,19,0.3);
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,69,19,0.4); }
.hero-divider { width: 80px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--primary)); margin: 0 auto 2.5rem; border-radius: 2px; }

/* Section 通用 */
.section { padding: 90px 2rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { font-size: 0.82rem; color: var(--accent); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: 4px; margin-bottom: 16px; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-line { width: 50px; height: 2px; background: var(--accent); margin: 16px auto 0; border-radius: 1px; }

/* 文化传承 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; }
.about-avatar {
  width: 320px; height: 320px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 6rem;
  box-shadow: 0 20px 60px rgba(139,69,19,0.2); margin: 0 auto;
}
.about-deco { position: absolute; top: -15px; right: -15px; width: 100px; height: 100px; border: 2px solid var(--accent); border-radius: 16px; opacity: 0.3; }
.about-text h3 { font-size: 1.6rem; margin-bottom: 18px; letter-spacing: 3px; color: var(--primary); }
.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 2; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag { padding: 6px 18px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 20px; font-size: 0.85rem; color: var(--primary); }

/* 养生知识 / 经典典籍 卡片 */
.specialty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.specialty-card {
  background: var(--bg-white); border-radius: 16px; padding: 36px 28px;
  border: 1px solid var(--border); transition: all 0.35s ease; position: relative; overflow: hidden;
}
.specialty-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.specialty-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px var(--shadow); }
.specialty-card:hover::before { transform: scaleX(1); }
.specialty-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px;
}
.specialty-card h4 { font-size: 1.15rem; margin-bottom: 10px; letter-spacing: 2px; }
.specialty-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

/* 就诊流程 -> 交流流程 */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; counter-reset: step; }
.step-card { text-align: center; padding: 36px 24px; position: relative; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; margin: 0 auto 18px; position: relative;
}
.step-num::after { content: ''; position: absolute; top: 50%; left: 110%; width: calc(100% - 104px + 48px); height: 2px; background: var(--border); }
.step-card:last-child .step-num::after { display: none; }
.step-card h4 { font-size: 1.05rem; margin-bottom: 10px; letter-spacing: 2px; }
.step-card p { color: var(--text-muted); font-size: 0.88rem; }

/* 联系我们 */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px; padding: 48px 40px; color: white;
}
.contact-info h3 { font-size: 1.5rem; margin-bottom: 28px; letter-spacing: 3px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.15);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-item-text h5 { font-size: 0.88rem; opacity: 0.75; font-weight: normal; margin-bottom: 4px; }
.contact-item-text p { font-size: 1rem; }
.contact-form { background: var(--bg-white); border-radius: 20px; padding: 48px 40px; border: 1px solid var(--border); }
.contact-form h3 { font-size: 1.5rem; margin-bottom: 28px; letter-spacing: 3px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 10px; font-family: inherit; font-size: 0.95rem;
  outline: none; transition: border-color 0.3s; background: var(--bg-cream);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 600; letter-spacing: 3px; cursor: pointer; transition: all 0.3s;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,69,19,0.3); }

/* Footer */
.footer { background: var(--text-dark); color: rgba(255,255,255,0.65); padding: 48px 2rem 24px; text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { font-size: 1.4rem; color: white; letter-spacing: 4px; margin-bottom: 12px; font-weight: 700; }
.footer-slogan { color: var(--accent); font-size: 0.9rem; letter-spacing: 3px; margin-bottom: 24px; }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 28px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.88rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 36px; }
  .about-avatar { width: 200px; height: 200px; font-size: 4rem; }
  .hero-title { letter-spacing: 4px; }
  .section { padding: 60px 1.5rem; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .step-num::after { display: none !important; }
}
