/* =========================================================
   中医理疗预约服务平台 · 国风金（亮色米纸变体）
   基准：与 scroll.html 内联亮色体系变量对齐，统一三套视觉。
   目标：明亮、温暖、庄重，向 60-70 后中老年群体倾斜
         （大字、高对比、清晰结构、≥44px 点击区）。
   ========================================================= */
:root {
  /* —— 与 scroll.html 对齐的金色 / 米纸变量 —— */
  --gold:        #A88820;   /* 主金 */
  --gold-deep:   #8A6F15;   /* 深金（描边 / 强调底） */
  --gold-soft:   #7A5F10;   /* 更深的金（文字） */
  --gold-bright: #C9A24B;   /* 亮金（渐变高光） */
  --red:         #8B0000;   /* 中国红（庄重） */
  --red-bright:  #C41E3A;   /* 亮红（状态 / 强调） */

  --paper:       #F8F4EC;   /* 主背景：暖米纸 */
  --black:       #F8F4EC;   /* 别名，便于旧 class 复用 */
  --black-2:     #F0EBE0;   /* 卡片背景 */
  --black-3:     #E8E2D4;   /* 次级背景 */

  --text:        #2A2418;   /* 深色底上的正文（亮底深字） */
  --text-dim:    #6B6253;   /* 次要文字 */
  --muted:       #8A8170;   /* 更弱的文字 */
  --muted-2:     #8A8170;

  --line:        #D4C9A8;   /* 金调分割线 */
  --line-soft:   #E4DCC6;

  --radius:      14px;
  --maxw:        1100px;
  --shadow:      0 10px 30px rgba(42,36,24,.12);
  --shadow-sm:   0 4px 14px rgba(42,36,24,.10);
  --ease:        cubic-bezier(.22,1,.36,1);  /* 统一缓动曲线 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  font-size: 18px;            /* 中老年友好：基础字号放大 */
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 .5em;
}
a { color: var(--gold-soft); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 焦点可见（键盘可达） ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- 容器 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.section { padding: 64px 0; }
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin: 0 auto 36px;
  max-width: 640px;
  font-size: 18px;
}
/* 回纹分隔（金线 + 菱形） */
.divider {
  width: 160px; height: 18px; margin: 14px auto 34px;
  background:
    linear-gradient(90deg, transparent 0 30%, var(--gold) 30% 35%, transparent 35% 65%, var(--gold) 65% 70%, transparent 70% 100%);
  position: relative;
}
.divider::after {
  content: "❖"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%); color: var(--gold); font-size: 14px;
  background: var(--paper); padding: 0 8px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,244,236,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 0 rgba(168,136,32,.10);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .brand-icon {
  width: 46px; height: 46px; flex: none;
  object-fit: contain; display: block; border-radius: 8px;
  background: var(--paper); padding: 4px;
  filter: drop-shadow(0 2px 4px rgba(42,36,24,.18));
}
.brand .name { font-family: "Songti SC","SimSun",serif; font-size: 22px; color: var(--gold-soft); letter-spacing: 2px; white-space: nowrap; line-height: 1.3; }
.brand .sub { font-size: 12px; color: var(--muted); letter-spacing: 3px; white-space: nowrap; }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--text-dim); font-size: 17px; border-radius: 8px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a:hover { color: var(--gold-soft); background: rgba(168,136,32,.10); }
.nav-links a.active { color: var(--gold-soft); background: rgba(168,136,32,.14); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--gold);
  color: var(--gold-soft); border-radius: 8px; padding: 12px 16px;
  font-size: 18px; cursor: pointer; min-height: 44px;
}

/* ---------- 按钮（≥44px 点击区） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 30px; border-radius: 10px;
  font-size: 18px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
  border: none; transition: transform .15s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #fff; box-shadow: 0 8px 20px rgba(168,136,32,.30);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(168,136,32,.38); }
.btn-red {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: #fff; box-shadow: 0 8px 20px rgba(139,0,0,.28);
}
.btn-red:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--gold-soft);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { background: rgba(168,136,32,.10); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 20%, rgba(168,136,32,.10), transparent 45%),
    linear-gradient(160deg, #FBF8F1, #F0EBE0);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 70px 18px 60px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero h1 { font-size: 46px; line-height: 1.25; margin-bottom: 18px; }
.hero .lead { font-size: 20px; color: var(--text-dim); margin-bottom: 28px; }
.hero .badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero .badge {
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 8px 16px; font-size: 15px; color: var(--gold-soft);
  background: rgba(168,136,32,.06);
}
.hero-photo {
  border: 3px solid var(--gold-deep); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 4/3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 通用卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--black-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--black-3); display: flex; align-items: center; justify-content: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 18px 20px 22px; }
.card h3 { font-size: 21px; margin-bottom: 8px; color: var(--gold-soft); }
.card p { color: var(--text-dim); font-size: 16px; margin: 0; }
.card .tag {
  display: inline-block; font-size: 13px; color: var(--gold-soft);
  border: 1px solid var(--gold); border-radius: 6px; padding: 3px 10px; margin-bottom: 10px;
  background: rgba(168,136,32,.06);
}

/* SVG 图标基础样式（替换 emoji 后使用） */
.ico, .thumb.ico {
  width: 48px; height: 48px; flex: none; border-radius: 12px;
  background: rgba(168,136,32,.12); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.ico svg, .thumb.ico svg { width: 26px; height: 26px; }
.feature .ico { color: var(--gold-soft); }

/* 竖向国风小标签（侧边） */
.vlabel {
  writing-mode: vertical-rl; text-orientation: upright;
  color: var(--gold-deep); font-family: "Songti SC","SimSun",serif;
  letter-spacing: 4px; font-size: 15px; opacity: .8;
}

/* ---------- 信任 / 优势 ---------- */
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--black-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.feature h3 { font-size: 20px; margin-bottom: 6px; color: var(--gold-soft); }
.feature p { color: var(--text-dim); font-size: 16px; margin: 0; }

/* ---------- 资质展示（占位，后续替换真实照片） ---------- */
.qual-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.qual {
  aspect-ratio: 3/4; border: 1px dashed var(--gold-deep); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gold-soft); text-align: center; gap: 8px; background: rgba(168,136,32,.05);
}
.qual .ph { font-size: 34px; }
.qual small { color: var(--text-dim); font-size: 14px; }

/* ---------- 理疗师卡片（通用「理疗师」人像，去真人实名暗示） ---------- */
.expert .avatar {
  aspect-ratio: 1/1; overflow: hidden; background: var(--black-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep); border-bottom: 1px solid var(--line);
}
.expert .avatar svg { width: 46%; height: 46%; }
.expert h3 { margin-bottom: 4px; color: var(--gold-soft); }
.expert .role { color: var(--red-bright); font-size: 15px; margin-bottom: 8px; }
.expert .good { color: var(--text-dim); font-size: 15px; }

/* ---------- 服务项目详情 ---------- */
.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 26px; background: var(--black-2);
}
.service:nth-child(even) .service-img { order: 2; }
.service-img { aspect-ratio: 4/3; overflow: hidden; background: var(--black-3); display: flex; align-items: center; justify-content: center; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-info { padding: 28px 30px; }
.service-info h3 { font-size: 26px; color: var(--gold-soft); }
.service-info .role { color: var(--red-bright); font-size: 15px; margin-bottom: 14px; }
.service-info p { color: var(--text-dim); margin-bottom: 14px; }
.service-info ul { color: var(--text-dim); font-size: 16px; padding-left: 20px; margin: 0; }
.service-info li { margin-bottom: 6px; }

/* ---------- 资讯列表 ---------- */
.news-item {
  display: grid; grid-template-columns: 160px 1fr; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.news-item .date {
  color: var(--gold-deep); font-family: "Songti SC",serif; font-size: 15px;
  border: 1px solid var(--gold); border-radius: 8px; padding: 8px; text-align: center;
  background: rgba(168,136,32,.06);
}
.news-item .date b { display: block; font-size: 26px; color: var(--gold-soft); }
.news-item h3 { font-size: 21px; margin-bottom: 6px; color: var(--gold-soft); }
.news-item p { color: var(--text-dim); font-size: 16px; margin: 0; }

/* ---------- 表单（在线登记） ---------- */
.intake-wrap { max-width: 720px; margin: 0 auto; padding: 40px 0 60px; }
.intake-card {
  background: var(--black-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 30px; box-shadow: var(--shadow);
}
.intake-card .section { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.intake-card .section:last-of-type { border-bottom: none; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 19px; color: var(--gold-soft); margin: 4px 0 16px; font-family: "Songti SC",serif; }
.sec-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 16px; margin-bottom: 6px; color: var(--text); font-weight: 600; }
.field .req { color: var(--red-bright); }
.row { display: flex; gap: 14px; }
.row .field { flex: 1; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font-size: 17px;
  background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168,136,32,.18); background: #fff;
}
.btn-submit {
  width: 100%; margin-top: 10px; min-height: 52px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #fff; font-size: 19px; font-weight: 700; letter-spacing: 2px;
  border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(168,136,32,.30);
  transition: transform .15s var(--ease), box-shadow .25s var(--ease);
}
.btn-submit:hover { transform: translateY(-2px); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.msg { min-height: 22px; margin: 14px 2px 0; font-size: 16px; font-weight: 600; }
.msg.ok { color: var(--gold-soft); }
.msg.err { color: var(--red-bright); }
.privacy { text-align: center; font-size: 14px; color: var(--text-dim); margin: 14px 0 0; }
/* 蜜罐：隐藏 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-list .ico { color: var(--gold-soft); font-size: 22px; flex: none; }
.map-box {
  aspect-ratio: 16/10; border: 1px dashed var(--gold-deep); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--gold-soft);
  background: rgba(168,136,32,.05); text-align: center;
}

/* ---------- 页脚（深暖棕收尾，保留国风庄重） ---------- */
.site-footer {
  border-top: 3px solid var(--gold-deep);
  background: #241F16; padding: 44px 0 28px; margin-top: 40px; color: #E8E2D4;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: 18px; color: var(--gold-bright); margin-bottom: 14px; }
.site-footer p, .site-footer a { color: #C9C0AE; font-size: 15px; line-height: 1.9; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-bottom {
  text-align: center; color: #B3AA98; font-size: 14px;
  border-top: 1px solid rgba(168,136,32,.25); margin-top: 26px; padding-top: 18px;
}
.footer-bottom .icp { color: var(--gold-bright); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .qual-grid { grid-template-columns: repeat(2,1fr); }
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-img { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(248,244,236,.98);
    border-bottom: 1px solid var(--gold); padding: 8px; box-shadow: var(--shadow-sm);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-4, .grid-2, .qual-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 90px 1fr; }
  .hero h1 { font-size: 34px; }
  .section-title { font-size: 26px; }
  .row { flex-direction: column; gap: 0; }
}

/* ---------- 尊重「减少动态效果」偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .feature:hover, .btn-gold:hover, .btn-red:hover, .btn-ghost:hover { transform: none !important; }
}
