/* =========================================================
   囍玖 — 全局样式（GEO 友好 · 现代设计系统 · logo 橙色系）
   设计规范：语义化、高对比、轻量、可被爬取
   ========================================================= */

:root {
  /* 主色取自 logo 实测主色 #FC8424，派生安全对比度梯度 */
  --brand: #c0560e;          /* 主交互色（深橙，白字 WCAG AA 4.61:1） */
  --brand-dark: #7e3a08;     /* 深橙棕（页脚/强调底） */
  --brand-deep: #5c2b06;     /* 更深，用于渐变端点 */
  --brand-light: #fbead7;    /* 浅橙米底 */
  --accent: #e88a1e;         /* 亮橙金（标签/点缀） */
  --accent-soft: #fdf0e0;    /* 标签底 */
  --bg: #fffdfa;             /* 暖白底 */
  --bg-soft: #faf5ef;        /* 分区浅底 */
  --text: #2a2118;           /* 主文字 深棕 */
  --text-soft: #6f6151;      /* 次级文字 */
  --line: #ece1d4;           /* 描边 */
  --danger: #b4452f;         /* 警示（合规/占位） */
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(124, 58, 8, .07);
  --shadow: 0 10px 30px rgba(124, 58, 8, .10);
  --shadow-lg: 0 18px 48px rgba(124, 58, 8, .16);
  --maxw: 1100px;
  --maxw-narrow: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.3; letter-spacing: .2px; font-weight: 800; }
h1 { font-size: clamp(30px, 5.2vw, 48px); }
h2 { font-size: clamp(24px, 3.6vw, 34px); }
h3 { font-size: 19px; }

/* ---------- 布局 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: linear-gradient(180deg, var(--brand-light), var(--bg-soft)); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 250, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
  background: rgba(255, 253, 250, .92);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand-mark {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; color: var(--brand-dark); font-size: 19px; letter-spacing: .4px;
}
.brand-mark:hover { text-decoration: none; color: var(--brand-dark); }
.brand-mark .brand-logo {
  width: 38px; height: 38px; border-radius: 11px;
  object-fit: contain; background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .25s ease;
}
.brand-mark:hover .brand-logo { transform: translateY(-1px) rotate(-3deg); }

.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; color: var(--text); font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover { color: var(--brand-dark); background: var(--brand-light); text-decoration: none; }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-light); }

.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 18px; color: var(--brand-dark);
}

/* ---------- 英雄区 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 64px;
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(232, 138, 30, .20), transparent 60%),
    radial-gradient(900px 420px at 8% 110%, rgba(192, 86, 14, .14), transparent 55%),
    linear-gradient(180deg, var(--brand-light), var(--bg));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(124, 58, 8, .10) 1px, transparent 1.4px);
  background-size: 22px 22px; opacity: .5;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--brand-deep); margin: 10px 0 16px; line-height: 1.22; }
.hero p { font-size: 18px; color: var(--text-soft); max-width: 660px; }
.hero .cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-logo {
  width: 96px; height: 96px; border-radius: 24px; background: #fff;
  box-shadow: var(--shadow), 0 0 0 6px rgba(232, 138, 30, .16);
  object-fit: contain; margin-bottom: 18px;
}
.hero-inner {
  display: flex; align-items: center; gap: 36px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-inner .hero-logo {
  width: 140px; height: 140px; border-radius: 50%;
  box-shadow: var(--shadow), 0 0 0 8px rgba(232, 138, 30, .12);
  margin-bottom: 0; flex-shrink: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: #fff; box-shadow: 0 8px 20px rgba(192, 86, 14, .30);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(192, 86, 14, .38); }
.btn--ghost { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-light); transform: translateY(-2px); text-decoration: none; }

/* ---------- 标题块 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-weight: 800; letter-spacing: 2px;
  font-size: 13px; text-transform: uppercase; margin: 0 0 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
.h2 { color: var(--brand-deep); margin: 0 0 12px; position: relative; }
.h2::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 4px; margin-top: 12px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}
.lead { color: var(--text-soft); max-width: 700px; }

/* ---------- 网格与卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f0d3b3; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin: 0 0 8px; color: var(--brand-dark); }
.card p { color: var(--text-soft); margin: 0; }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .5px;
  color: var(--brand-dark); background: var(--accent-soft); border: 1px solid #f3dcc2;
  border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}
.card a.more { font-weight: 700; color: var(--brand); display: inline-block; margin-top: 12px; }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; color: inherit; }
a.card h3 { color: var(--brand-dark); }

/* ---------- 二维码卡片 ---------- */
.card--qrcode { text-align: center; }
.qrcode-img {
  display: inline-block; width: 180px; height: 180px; border-radius: 12px;
  border: 2px solid var(--line); margin-top: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease;
}
.qrcode-img:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(192,86,14,.15); }

/* ---------- 表格（价目） ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-top: 16px; }
.table {
  width: 100%; border-collapse: collapse; background: #fff; min-width: 480px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-top: 16px;
}
.table-wrap .table { margin-top: 0; border: none; border-radius: 0; box-shadow: none; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table thead th {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .5px;
  position: sticky; top: 0;
}
.table tbody tr { transition: background .15s ease; }
.table tbody tr:nth-child(even) { background: #fdf8f1; }
.table tbody tr:hover { background: var(--brand-light); }
.table tbody tr:last-child td { border-bottom: none; }
.table td.price { font-weight: 800; color: var(--brand-dark); white-space: nowrap; }

/* ---------- FAQ 折叠 ---------- */
.faq-item {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); background: #fff; margin-bottom: 14px;
  box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 22px; font-size: 17px; font-weight: 700; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { color: var(--brand-dark); }
.faq-q::after {
  content: "+"; flex: none; font-size: 24px; font-weight: 700; line-height: 1;
  color: var(--brand); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-light);
  transition: transform .25s ease, background .2s ease;
}
.faq-q[aria-expanded="true"]::after { content: "−"; transform: rotate(180deg); background: var(--brand); color: #fff; }
.faq-a { padding: 0 22px 20px; color: var(--text-soft); display: none; }
.faq-a.open { display: block; animation: fadeUp .25s ease; }

/* ---------- 信息条 / 合规条 ---------- */
.note {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 15px 20px; border-radius: 12px; color: #7a4a1c; font-size: 14.5px;
}
.note strong { color: var(--brand-dark); }
.note--warn { border-left-color: var(--danger); background: #fdeeec; color: #8a3320; }
.placeholder {
  background: repeating-linear-gradient(45deg, #fff7e6, #fff7e6 10px, #fdeecb 10px, #fdeecb 20px);
  border: 1px dashed var(--accent-dark); border-radius: 8px; padding: 2px 8px;
  color: #6b5226; font-weight: 700;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--brand-dark), var(--brand-deep));
  color: #f3e2d2; padding: 52px 0 30px; margin-top: 24px;
  border-top: 4px solid var(--accent);
}
.site-footer a { color: #f6c98f; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; margin: 0 0 10px; font-size: 18px; }
.site-footer .ned { font-size: 14px; line-height: 2; color: #e9d3c1; }
.site-footer .small { font-size: 12.5px; color: #c9a98f; margin-top: 22px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }

/* ---------- 入场动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .wrap > * { animation: fadeUp .6s ease both; }
.hero .wrap > *:nth-child(2) { animation-delay: .06s; }
.hero .wrap > *:nth-child(3) { animation-delay: .12s; }
.hero .wrap > *:nth-child(4) { animation-delay: .18s; }
.card, .faq-item, .table-wrap, .note { animation: fadeUp .5s ease both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-inner .hero-logo { width: 100px; height: 100px; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; gap: 0; padding: 8px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 4px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 54px 0; }
  .hero { padding: 60px 0 48px; }
}

/* =========================================================
   子品牌皮肤：旨台宫中医诊所（青瓷绿系）
   仅覆盖设计 token，HTML 结构与 JSON-LD / robots / llms / NED 不变
   ========================================================= */
:root[data-store="tcm"]{
  --brand: #2F6B5E;          /* 青瓷绿 主交互色 */
  --brand-dark: #0F6E56;     /* 深绿 强调底 */
  --brand-deep: #085041;     /* 更深 渐变端点 */
  --brand-light: #E1F5EE;    /* 青瓷浅底 */
  --accent: #9C3B2E;         /* 朱砂红 点缀（呼应囍红，≤10%） */
  --accent-soft: #F6E0DC;    /* 朱砂浅底 */
  --bg: #F6F4EE;             /* 宣纸米白 */
  --bg-soft: #EDEAE2;        /* 分区浅底 */
  --text: #243430;           /* 墨 */
  --text-soft: #5C6B63;      /* 次级文字 */
  --line: #D8E0DB;           /* 描边 */
  --shadow-sm: 0 2px 8px rgba(15,110,86,.07);
  --shadow: 0 10px 30px rgba(15,110,86,.10);
  --shadow-lg: 0 18px 48px rgba(15,110,86,.16);
}
:root[data-store="tcm"] h1,
:root[data-store="tcm"] h2,
:root[data-store="tcm"] h3{
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-weight: 600;
  letter-spacing: .5px;
}
:root[data-store="tcm"] .hero{
  background: linear-gradient(180deg, var(--brand-light), var(--bg));
}
:root[data-store="tcm"] .hero::after{
  /* 去气泡光晕，改为极淡宣纸肌理 */
  background-image: radial-gradient(rgba(15,110,86,.06) 1px, transparent 1.4px);
  opacity: .4;
}
:root[data-store="tcm"] .card:hover{ transform: translateY(-2px); border-color: #B9D6CC; }   /* 去弹跳 + 绿调描边 */
:root[data-store="tcm"] .card::before{
  background: linear-gradient(90deg, var(--accent), var(--brand));    /* 顶边 朱砂→绿 */
}
:root[data-store="tcm"] .card--qrcode .qrcode-img:hover{
  box-shadow: 0 6px 20px rgba(156,59,46,.18);                        /* hover 描边转朱砂 */
}
:root[data-store="tcm"] .btn--primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 8px 20px rgba(15,110,86,.28);
}
:root[data-store="tcm"] .site-header{ border-top: 4px solid var(--accent); }  /* 朱砂线代橙，仍为品牌连线 */
:root[data-store="tcm"] .site-footer{
  background: linear-gradient(180deg, var(--brand-dark), var(--brand-deep));
  border-top-color: var(--accent);
}

/* ---------- 门店地图（高德 iframe 免 Key 嵌入） ---------- */
.store-map {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.store-map__hd {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 12px 16px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
}
.store-map__hd b { font-size: 16px; }
.store-map__hd span { font-size: 13px; opacity: .92; }
.store-map__frame { width: 100%; height: 300px; border: 0; display: block; }
