/* ============================================================
   幸福张垣 · 网站样式
   主色取自标志：正红 #CA0202 + 金色。面向本地居民，字大、按钮大、对比强。
   ============================================================ */
:root {
  --red: #CA0202;
  --red-d: #A80000;
  --red-dd: #7C0000;
  --gold: #F2C45A;
  --gold-d: #D49A22;
  --gold-l: #FCEBB9;
  --cream: #FFF8EC;
  --cream-2: #FFF0D9;
  --paper: #FFFFFF;
  --ink: #2A1810;
  --ink-2: #6A564A;
  --ink-3: #A39082;
  --line: #F1E1C8;
  --price: #D61A0E;
  --r: 16px;
  --r-s: 10px;
  --shadow: 0 6px 22px rgba(124, 30, 0, .08);
  --shadow-l: 0 14px 40px rgba(124, 30, 0, .14);
  --wrap: 1180px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cg fill='none' stroke='%23FFD98A' stroke-opacity='.11' stroke-width='1.2'%3E%3Ccircle cx='40' cy='40' r='38'/%3E%3Ccircle cx='40' cy='40' r='27'/%3E%3Ccircle cx='40' cy='40' r='16'/%3E%3Ccircle cx='0' cy='20' r='38'/%3E%3Ccircle cx='0' cy='20' r='27'/%3E%3Ccircle cx='0' cy='20' r='16'/%3E%3Ccircle cx='80' cy='20' r='38'/%3E%3Ccircle cx='80' cy='20' r='27'/%3E%3Ccircle cx='80' cy='20' r='16'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--gold-d); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
[hidden] { display: none !important; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 999px; white-space: nowrap;
  padding: 10px 20px; font-size: 16px; line-height: 1.3;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-xl { padding: 16px 26px; font-size: 19px; width: 100%; }
.btn-sm { padding: 7px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(180deg, #FFDF8E, var(--gold) 55%, #E5AE35); color: #6B1600; box-shadow: 0 6px 16px rgba(60, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-red { background: linear-gradient(180deg, #E21A12, var(--red)); color: #fff; box-shadow: 0 6px 16px rgba(202, 2, 2, .28); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-line { color: var(--red); border: 1.5px solid rgba(202, 2, 2, .35); background: #fff; }
@media (hover: hover) {
  .btn-gold:hover, .btn-red:hover { transform: translateY(-2px); }
  .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
  .btn-line:hover { background: #FFF3F0; }
}

/* ---------- 价格 ---------- */
.price { color: var(--price); font-weight: 800; font-size: 22px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price i { font-style: normal; font-size: .62em; margin-right: 1px; }
.price small { font-size: .56em; font-weight: 500; color: var(--ink-2); margin-left: 2px; }
.price-xl { font-size: 40px; }

/* ---------- 页头 ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: var(--red); }
.hd-top { display: none; background: var(--red-dd); color: #FFE2B0; font-size: 13px; }
.hd-top .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.hd-top .ic { margin-right: 4px; }
.hd-row { display: flex; align-items: center; height: 64px; gap: 12px; }
.logo img { height: 48px; width: auto; }
.nav {
  position: fixed; left: 0; right: 0; top: 64px; background: var(--red-d);
  display: none; flex-direction: column; padding: 6px 16px 14px; box-shadow: 0 16px 30px rgba(0, 0, 0, .25);
}
.nav.open { display: flex; }
.nav a { color: #fff; padding: 14px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.nav a:last-child { border-bottom: 0; }
.hd-tel { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #6B1600; background: linear-gradient(180deg, #FFDF8E, var(--gold) 55%, #E5AE35); border-radius: 999px; padding: 7px 14px 7px 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.hd-tel span { display: flex; flex-direction: column; line-height: 1.15; }
.hd-tel small { font-size: 11px; font-weight: 600; opacity: .8; }
.hd-tel b { font-size: 15px; letter-spacing: .02em; }
.hd-tel b, .hd-tel small { white-space: nowrap; }
@media (max-width: 419px) {
  .logo img { height: 44px; }
  .hd-row { gap: 8px; }
  .hd-tel { padding: 6px 12px; }
  .hd-tel .ic { display: none; }
  .hd-tel b { font-size: 14px; }
}
.hd-menu { color: #fff; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.hd-menu .ic { width: 26px; height: 26px; }
.hd.scrolled { box-shadow: 0 6px 20px rgba(80, 0, 0, .28); }

/* ---------- 首屏 ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--red) 0%, #B80000 70%, #A80000 100%); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 50%; top: -30%; width: 900px; height: 900px; transform: translateX(-10%); background: radial-gradient(closest-side, rgba(255, 190, 90, .22), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 28px; padding-top: 28px; padding-bottom: 84px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #FFE2B0; font-weight: 600; }
.hero-kicker span { background: var(--gold); color: #7C0000; font-weight: 800; padding: 2px 10px; border-radius: 6px 6px 6px 0; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 9.4vw, 64px); line-height: 1.16; font-weight: 900; letter-spacing: .01em; margin: 14px 0 14px; text-shadow: 0 3px 0 rgba(90, 0, 0, .35); }
.hero h1 em { font-style: normal; color: var(--gold); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; background: rgba(242, 196, 90, .28); border-radius: 4px; }
.hero-sub { color: #FFE9D2; font-size: 17px; max-width: 34em; }
.search { margin-top: 22px; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px rgba(60, 0, 0, .3); max-width: 560px; color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; padding: 10px 0; }
.search input::placeholder { color: var(--ink-3); }
.search button { background: linear-gradient(180deg, #E21A12, var(--red)); color: #fff; font-weight: 700; border-radius: 999px; padding: 11px 24px; font-size: 16px; }
.hot-words { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #FFD9B8; }
.hot-words a { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); padding: 3px 12px; border-radius: 999px; color: #fff; }
.hero-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-pic { position: relative; max-width: 560px; margin: 4px auto 0; width: 100%; }
.hero-frame { border-radius: 22px; padding: 6px; background: linear-gradient(135deg, #FFE7A6, #E0A630 45%, #FFE7A6); box-shadow: 0 24px 50px rgba(50, 0, 0, .4); }
.hero-frame img { border-radius: 17px; width: 100%; height: 250px; object-fit: cover; object-position: 60% 30%; }
.hero-tag { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 9px 14px; box-shadow: var(--shadow-l); display: flex; flex-direction: column; gap: 4px; }
.hero-tag b { font-size: 14px; }
.hero-tag .price { font-size: 22px; }
.tag-a { left: -6px; bottom: 26px; }
.tag-b { right: -6px; top: 26px; }
.hero-seal { position: absolute; right: 14px; bottom: -22px; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE9A8, var(--gold) 55%, #D99E26); color: #8C1200; font-weight: 900; font-size: 18px; line-height: 1.15; display: grid; place-items: center; text-align: center; transform: rotate(-10deg); box-shadow: 0 10px 22px rgba(50, 0, 0, .35), inset 0 0 0 3px rgba(140, 18, 0, .22); }

/* ---------- 保障条 ---------- */
.trust { position: relative; z-index: 2; margin-top: -52px; }
.guards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-l); overflow: hidden; border: 1px solid var(--line); }
.guards li { display: flex; gap: 10px; padding: 16px 14px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.guards li:nth-child(odd) { border-right: 1px solid var(--line); }
.guards li:nth-last-child(-n+2) { border-bottom: 0; }
.guards .ic { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--cream-2); color: var(--red); }
.guards b { display: block; font-size: 16px; line-height: 1.35; }
.guards span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }

/* ---------- 区块 ---------- */
.sec { padding: 52px 0; }
.sec-tight { padding: 28px 0 52px; }
.sec-hd { text-align: center; margin-bottom: 26px; }
.sec-hd h2 { font-size: 28px; font-weight: 900; line-height: 1.3; display: inline-flex; align-items: center; gap: 14px; }
.sec-hd h2::before, .sec-hd h2::after { content: ""; width: 34px; height: 12px; background: linear-gradient(90deg, transparent, var(--gold-d)) left center / 100% 2px no-repeat, radial-gradient(circle, var(--red) 3px, transparent 3.5px) right center / 10px 10px no-repeat; }
.sec-hd h2::after { transform: scaleX(-1); }
.sec-hd p { color: var(--ink-2); margin-top: 6px; font-size: 16px; }

/* ---------- 类目宫格 ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 6px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat img { width: 60px; height: 60px; object-fit: cover; border-radius: 18px; }
.cat b { font-size: 16px; margin-top: 6px; line-height: 1.3; }
.cat span { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 价目表 ---------- */
.sec-board { background: linear-gradient(180deg, #FFEFD6, var(--cream)); }
.board { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; border: 2px solid var(--gold-d); }
.board-hd { background: var(--red) var(--pattern); color: #fff; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-bottom: 3px solid var(--gold-d); }
.board-hd b { font-size: 22px; color: var(--gold); letter-spacing: .06em; }
.board-hd span { font-size: 13px; color: #FFE2B0; }
.board-rows { padding: 6px 16px; }
.board-row { display: flex; align-items: baseline; gap: 8px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.board-cat { flex: none; font-size: 12px; color: var(--red); background: #FFF0EC; border-radius: 6px; padding: 1px 7px; font-weight: 700; align-self: center; }
.board-name { font-size: 16px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-dots { flex: 1; min-width: 12px; border-bottom: 2px dotted #E4D2B6; transform: translateY(-4px); }
.board-row .price { font-size: 20px; }
.board-note { padding: 14px 18px 18px; font-size: 14px; color: var(--ink-2); background: var(--cream); border-top: 1px solid var(--line); }
.board-note a { color: var(--red); font-weight: 700; white-space: nowrap; margin-left: 6px; }

/* ---------- 热门服务 ---------- */
.hots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hotc { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.hotc-pic { position: relative; display: block; }
.hotc-pic img { width: 100%; height: 120px; object-fit: cover; }
.hotc-pic span { position: absolute; left: 8px; top: 8px; background: rgba(124, 0, 0, .82); color: #FFE2B0; font-size: 12px; padding: 1px 8px; border-radius: 6px; }
.hotc-bd { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.hotc h3 { font-size: 16px; line-height: 1.4; }
.hotc p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.hotc-ft { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hotc-ft .price { font-size: 20px; }

/* ---------- 流程 ---------- */
.sec-flow { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow { display: grid; gap: 14px; counter-reset: f; }
.flow li { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px 18px 70px; }
.flow i { position: absolute; left: 16px; top: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--gold); font-style: normal; font-weight: 900; font-size: 20px; display: grid; place-items: center; box-shadow: 0 0 0 4px #FCE3D6; }
.flow b { display: block; font-size: 18px; }
.flow span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }

/* ---------- 区域 ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.areas span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 10px; font-size: 15px; font-weight: 600; }
.areas .ic { color: var(--red); margin-right: 2px; }
.areas-note { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 16px; }

/* ---------- 行动条 ---------- */
.cta { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); }
.cta-in { position: relative; display: grid; gap: 14px; padding-top: 40px; padding-bottom: 44px; justify-items: center; text-align: center; }
.cta-in img { width: 300px; mix-blend-mode: lighten; }
.cta h2 { font-size: 26px; font-weight: 900; line-height: 1.3; }
.cta p { color: #FFE2C8; margin-top: 6px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* ---------- 页脚 ---------- */
.ft { background: #3A0D08; color: #E8CDB8; font-size: 14px; }
.ft-grid { display: grid; gap: 26px; padding-top: 36px; padding-bottom: 30px; }
.ft-brand b { font-size: 24px; color: var(--gold); letter-spacing: .08em; }
.ft-brand p { margin-top: 4px; }
.ft-tel { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 22px; font-weight: 800; color: #fff; }
.ft h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.ft-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.ft-links.one { grid-template-columns: repeat(2, 1fr); }
.ft-links a:hover { color: var(--gold); }
.ft-bar { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #B99A86; }
.ft-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }

/* ---------- 内页页头 ---------- */
.phd { background: linear-gradient(180deg, #FFE9C7, var(--cream)); padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.phd-slim { padding: 12px 0; background: var(--cream-2); }
.phd h1 { font-size: 28px; font-weight: 900; line-height: 1.3; margin-top: 8px; }
.phd p { color: var(--ink-2); margin-top: 4px; }
.phd-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.phd-ic { width: 84px; height: 84px; border-radius: 22px; flex: none; mix-blend-mode: multiply; }
.crumb { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px; }
.crumb a { color: var(--ink-2); }
.crumb a::after { content: "›"; margin-left: 4px; color: var(--ink-3); }
.crumb span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips a { background: #fff; border: 1px solid #EBD6B6; padding: 5px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.chips-lg a { padding: 8px 16px; }
@media (hover: hover) { .chips a:hover { border-color: var(--red); color: var(--red); } }
.phd-about { background: var(--red) var(--pattern); border: 0; padding: 30px 0; }
.about-hd { display: grid; place-items: center; }
.about-hd img { width: 320px; mix-blend-mode: lighten; }

/* ---------- 全部服务 ---------- */
.allc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px; scroll-margin-top: 90px; }
.allc-hd { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.allc-hd img { width: 48px; height: 48px; }
.allc-hd h2 { font-size: 20px; line-height: 1.3; }
.allc-hd p { font-size: 13px; color: var(--ink-2); }
.allc-hd .more { margin-left: auto; color: var(--red); font-weight: 700; font-size: 14px; white-space: nowrap; }
.plist { display: grid; grid-template-columns: 1fr; }
.plist a { display: flex; align-items: baseline; gap: 8px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.plist a:last-child { border-bottom: 0; }
.plist span:first-child { font-size: 16px; }
.plist i { flex: 1; min-width: 10px; border-bottom: 2px dotted #E4D2B6; transform: translateY(-4px); }
.plist .price { font-size: 19px; }
@media (hover: hover) { .plist a:hover span:first-child { color: var(--red); } }

/* ---------- 项目卡片 ---------- */
.grp { margin-bottom: 26px; scroll-margin-top: 90px; }
.grp-t { font-size: 20px; font-weight: 800; margin-bottom: 12px; padding-left: 12px; border-left: 5px solid var(--red); line-height: 1.2; }
.items { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.item-ic { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--cream-2); display: grid; place-items: center; font-size: 26px; }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-main b { font-size: 17px; line-height: 1.4; }
.item-sub { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.item-side em { font-style: normal; font-size: 13px; color: var(--red); font-weight: 700; }
.others { margin-top: 34px; }
@media (hover: hover) {
  .cat:hover, .item:hover, .hotc:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: #E9C98F; }
}

/* ---------- 详情页 ---------- */
.sec-detail { padding: 18px 0 40px; }
.detail { display: grid; gap: 20px; }
.d-hero { position: relative; border-radius: 20px; overflow: hidden; }
.d-hero img { width: 100%; height: 210px; object-fit: cover; }
.d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(110, 0, 0, .86), rgba(110, 0, 0, .35) 55%, transparent 80%); }
.d-hero-txt { position: absolute; z-index: 1; left: 18px; top: 50%; transform: translateY(-50%); color: #fff; }
.d-cat { display: inline-block; background: var(--gold); color: #7C0000; font-weight: 800; font-size: 13px; padding: 1px 10px; border-radius: 6px; }
.d-hero-txt strong { display: block; font-size: 30px; line-height: 1.25; font-weight: 900; margin-top: 8px; text-shadow: 0 2px 0 rgba(60, 0, 0, .4); }
.d-title { font-size: 24px; font-weight: 900; line-height: 1.35; margin-top: 16px; }
.d-points { margin-top: 10px; display: grid; gap: 6px; }
.d-points li { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; }
.d-points .ic { color: #fff; background: var(--red); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 4px; stroke-width: 3; }
.d-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; margin-top: 16px; }
.d-block h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; padding-left: 12px; border-left: 5px solid var(--red); line-height: 1.2; }
.specs { display: grid; gap: 10px; }
.spec { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fff; transition: border-color .15s, background .15s; }
.spec span { font-size: 16px; font-weight: 600; }
.spec b { color: var(--price); font-size: 20px; white-space: nowrap; }
.spec b i { font-style: normal; font-size: .65em; }
.spec b small { font-size: .6em; color: var(--ink-2); font-weight: 500; }
.spec.on { border-color: var(--red); background: #FFF5F2; box-shadow: inset 0 0 0 1px var(--red); }
.d-intro { margin-top: 12px; background: var(--cream); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--ink-2); }
.fees { counter-reset: fee; display: grid; gap: 10px; }
.fees li { counter-increment: fee; position: relative; padding-left: 34px; font-size: 16px; }
.fees li::before { content: counter(fee); position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream-2); color: var(--red); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.fees em { font-style: normal; color: var(--price); font-weight: 800; }
.d-block .guards { box-shadow: none; }
.d-side { display: none; }
.buy { background: #fff; border: 2px solid var(--gold-d); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); position: sticky; top: 124px; }
.buy-name { font-size: 20px; font-weight: 800; line-height: 1.35; }
.buy-spec { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.buy-price { margin: 12px 0 16px; }
.buy .btn-line { margin-top: 10px; }
.buy-notes { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.buy-notes .ic { color: var(--red); margin-right: 4px; stroke-width: 2.6; }

/* ---------- 搜索 / 关于 ---------- */
.search-page { box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 14px; }
.s-info { color: var(--ink-2); margin-bottom: 14px; }
.s-empty { text-align: center; padding: 20px 0; display: grid; gap: 16px; justify-items: center; }
.s-empty .chips { justify-content: center; }
.prose p { font-size: 17px; margin-bottom: 14px; }
.prose + .guards { margin-top: 22px; }
.contact { display: grid; gap: 10px; }
.contact > div { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; }
.contact span { font-size: 13px; color: var(--ink-3); }
.contact a, .contact b { font-size: 20px; font-weight: 800; }
.contact a { color: var(--red); }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 15px 26px 15px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); }

/* ---------- 悬浮 / 底栏 ---------- */
.float { display: none; }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 4px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(80, 20, 0, .08); }
.mbar > a:not(.mbar-cta):not(.mbar-call) { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--ink-2); width: 64px; line-height: 1.3; }
.mbar > a .ic { width: 24px; height: 24px; }
.mbar > a.on { color: var(--red); font-weight: 700; }
.mbar-cta { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; background: linear-gradient(180deg, #E21A12, var(--red)); color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 6px 16px rgba(202, 2, 2, .28); }
.mbar-buy { gap: 10px; }
.mbar-price { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mbar-price em { font-style: normal; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbar-price .price { font-size: 24px; }
.mbar-call { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1.5px solid rgba(202, 2, 2, .35); color: var(--red); display: grid; place-items: center; }
.mbar-buy .mbar-cta { flex: 0 0 44%; }

/* ---------- 预约弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(40, 8, 0, .55); }
.modal-box { position: relative; background: #fff; width: 100%; max-width: 460px; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.modal-x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--ink-2); }
.modal h3 { font-size: 22px; font-weight: 900; padding-right: 44px; }
.book-item { margin-top: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.book-item b { font-size: 16px; line-height: 1.4; }
.book-item span { color: var(--price); font-weight: 800; font-size: 18px; white-space: nowrap; }
.book-steps { counter-reset: s; margin: 16px 0 18px; display: grid; gap: 8px; }
.book-steps li { counter-increment: s; padding-left: 32px; position: relative; font-size: 16px; }
.book-steps li::before { content: counter(s); position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: var(--gold); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.book-tip { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.book-or { text-align: center; margin: 16px 0 12px; position: relative; color: var(--ink-3); font-size: 14px; }
.book-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.book-or span { position: relative; background: #fff; padding: 0 12px; }
.book-mp { display: flex; gap: 14px; align-items: center; background: #F2FBF4; border: 1px solid #CDEBD4; border-radius: 14px; padding: 12px 14px; }
.book-mp b { color: #15803D; font-size: 16px; }
.book-mp p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-top: 2px; }
.mp-code { width: 96px; height: 96px; border-radius: 8px; flex: none; }
body.lock { overflow: hidden; }

/* ============================================================
   平板及以上
   ============================================================ */
@media (min-width: 640px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .guards { grid-template-columns: repeat(4, 1fr); }
  .guards li { border-bottom: 0; border-right: 1px solid var(--line); padding: 20px 18px; }
  .guards li:last-child { border-right: 0; }
  .cats { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .cat { padding: 20px 8px 16px; }
  .cat img { width: 72px; height: 72px; }
  .cat b { font-size: 17px; }
  .cat span { font-size: 13px; }
  .board-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; padding: 8px 24px; }
  .hots { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hotc-pic img { height: 150px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .plist { grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .items { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact { grid-template-columns: 1fr 1fr; }
  .hero-frame img { height: 320px; }
  .d-hero img { height: 280px; }
  .d-hero-txt strong { font-size: 38px; }
  .modal { align-items: center; }
  .modal-box { border-radius: 22px; }
  .ft-grid { grid-template-columns: 1.1fr 1.6fr .9fr; }
  .cta-in { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 36px; }
  .cta-btns { justify-content: flex-start; }
}

/* ============================================================
   桌面
   ============================================================ */
@media (min-width: 980px) {
  body { padding-bottom: 0; font-size: 17px; }
  html { scroll-padding-top: 124px; }
  .hd-top { display: block; }
  .hd-row { height: 78px; gap: 28px; }
  .logo img { height: 59px; }
  .hd-menu { display: none; }
  .nav { position: static; display: flex; flex-direction: row; background: none; padding: 0; box-shadow: none; gap: 4px; margin-left: 10px; }
  .nav a { border: 0; padding: 8px 14px; border-radius: 999px; font-size: 17px; position: relative; }
  .nav a:hover { background: rgba(255, 255, 255, .13); }
  .nav a.on { color: var(--gold); }
  .nav a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--gold); }
  .hd-tel { padding: 9px 20px 9px 16px; }
  .hd-tel b { font-size: 19px; }
  .hd-tel .ic { width: 24px; height: 24px; }

  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 116px; }
  .hero-sub { font-size: 19px; }
  .hero-pic { margin: 0; }
  .hero-frame img { height: 400px; }
  .tag-a { left: -30px; bottom: 44px; }
  .tag-b { right: -22px; top: 40px; }
  .hero-tag { padding: 12px 18px; }
  .hero-tag b { font-size: 15px; }
  .hero-tag .price { font-size: 26px; }
  .hero-seal { width: 96px; height: 96px; font-size: 22px; right: 36px; bottom: -30px; }
  .trust { margin-top: -62px; }
  .guards li { padding: 24px 22px; gap: 14px; }
  .guards .ic { width: 46px; height: 46px; padding: 10px; }
  .guards b { font-size: 18px; }
  .guards span { font-size: 14px; }

  .sec { padding: 76px 0; }
  .sec-tight { padding: 36px 0 76px; }
  .sec-hd { margin-bottom: 36px; }
  .sec-hd h2 { font-size: 36px; }
  .sec-hd h2::before, .sec-hd h2::after { width: 56px; }
  .sec-hd p { font-size: 18px; }
  .cat { padding: 26px 10px 22px; }
  .cat img { width: 84px; height: 84px; }
  .cat b { font-size: 19px; margin-top: 10px; }
  .cat span { font-size: 14px; }
  .board-hd { padding: 20px 28px; }
  .board-hd b { font-size: 26px; }
  .board-rows { padding: 10px 28px; column-gap: 56px; }
  .board-row { padding: 15px 0; }
  .board-name { font-size: 18px; }
  .board-row .price { font-size: 23px; }
  .board-note { padding: 16px 28px 20px; font-size: 15px; }
  .hots { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .hotc-pic img { height: 180px; }
  .hotc-bd { padding: 14px 16px 16px; }
  .hotc h3 { font-size: 18px; }
  .hotc p { font-size: 14px; }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .flow li { padding: 62px 20px 22px; text-align: center; }
  .flow i { left: 50%; top: -22px; transform: translateX(-50%); width: 50px; height: 50px; font-size: 24px; box-shadow: 0 0 0 6px #fff; }
  .flow li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--gold-d); border-right: 3px solid var(--gold-d); transform: translateY(-50%) rotate(45deg); }
  .flow b { font-size: 20px; }
  .flow { margin-top: 44px; }
  .areas span { font-size: 16px; padding: 8px 18px 8px 12px; }
  .cta-in { padding-top: 56px; padding-bottom: 60px; gap: 56px; }
  .cta-in img { width: 373px; }
  .cta h2 { font-size: 34px; }
  .cta p { font-size: 18px; }

  .phd { padding: 26px 0 30px; }
  .phd h1 { font-size: 38px; }
  .phd p { font-size: 18px; }
  .phd-ic { width: 120px; height: 120px; }
  .about-hd img { width: 373px; }
  .phd-about { padding: 44px 0; }
  .allc { padding: 22px 26px; }
  .allc-hd h2 { font-size: 24px; }
  .plist { grid-template-columns: repeat(3, 1fr); column-gap: 44px; }
  .items { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grp-t { font-size: 24px; }

  .detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .d-side { display: block; position: sticky; top: 124px; }
  .buy { position: static; }
  .d-hero img { height: 340px; }
  .d-hero-txt { left: 34px; }
  .d-hero-txt strong { font-size: 46px; }
  .d-title { font-size: 30px; }
  .d-block { padding: 24px; }
  .d-block h2 { font-size: 22px; }
  .d-block .items { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .is-detail .mbar { display: none; }

  .mbar { display: none; }
  .float { display: flex; flex-direction: column; position: fixed; right: 18px; bottom: 90px; z-index: 40; background: #fff; border-radius: 16px; box-shadow: var(--shadow-l); border: 1px solid var(--line); overflow: visible; }
  .float > * { width: 64px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); position: relative; line-height: 1.3; }
  .float > *:last-child { border-bottom: 0; }
  .float .ic { width: 24px; height: 24px; color: var(--red); }
  .float > *:hover { background: var(--cream); color: var(--red); }
  .float-tel em { display: none; position: absolute; right: 74px; top: 50%; transform: translateY(-50%); background: var(--red); color: #fff; font-style: normal; font-weight: 800; font-size: 20px; padding: 10px 18px; border-radius: 12px; white-space: nowrap; box-shadow: var(--shadow-l); }
  .float-tel:hover em { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   小程序码（assets/img/mp-code.jpg 放上以后才会出现）
   ============================================================ */
.mpq-img { background: #fff; border-radius: 10px; padding: 5px; flex: none; }
.hero-mp { margin-top: 22px; display: inline-flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); border-radius: 18px; padding: 10px 18px 10px 10px; }
.hero-mp .mpq-img { width: 92px; height: 92px; }
.hero-mp b { display: block; font-size: 17px; color: #fff; }
.hero-mp span { display: block; font-size: 13px; color: #FFE2C8; line-height: 1.55; margin-top: 2px; }
.cta-mp { display: grid; justify-items: center; gap: 8px; color: #FFE2B0; font-size: 14px; font-weight: 600; }
.cta-mp .mpq-img { width: 132px; height: 132px; padding: 7px; border-radius: 14px; box-shadow: 0 10px 24px rgba(60, 0, 0, .3); }
.ft-mp { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; line-height: 1.6; }
.ft-mp .mpq-img { width: 104px; height: 104px; }
.contact-mp { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 12px; }
.contact-mp > div { display: flex; flex-direction: column; }
.contact-mp .mpq-img { width: 96px; height: 96px; border: 1px solid var(--line); }
.mp-code { width: 120px; height: 120px; border: 1px solid #CDEBD4; }
@media (min-width: 640px) {
  .cta-in.has-mp { grid-template-columns: auto 1fr auto; }
}
@media (min-width: 980px) {
  .float-mp { cursor: default; }
  .float-pop { display: none; position: absolute; right: 74px; top: 50%; transform: translateY(-50%); background: #fff; border-radius: 16px; padding: 14px 14px 12px; box-shadow: var(--shadow-l); border: 1px solid var(--line); text-align: center; width: 182px; }
  .float-pop .mpq-img { width: 150px; height: 150px; padding: 0; margin: 0 auto 8px; }
  .float-pop b { display: block; color: var(--ink); font-size: 15px; }
  .float-pop i { display: block; font-style: normal; color: var(--ink-3); font-size: 12px; }
  .float-mp:hover .float-pop, .float-mp:focus .float-pop, .float-mp:focus-within .float-pop { display: block; }
}

/* ---------- 详情页：没有对应照片时的标题牌 ---------- */
.d-hero.no-pic { height: 170px; background: linear-gradient(120deg, var(--red) 0%, #B00000 100%); border: 2px solid var(--gold-d); }
.d-hero.no-pic::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); }
.d-hero.no-pic::after { display: none; }
.d-emoji { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF6DD, #FBE3A4 60%, #EDC162); display: grid; place-items: center; font-size: 50px; box-shadow: 0 10px 24px rgba(60, 0, 0, .35), inset 0 0 0 4px rgba(255, 255, 255, .5); }
.d-hero.no-pic .d-hero-txt { right: 132px; }
@media (min-width: 640px) { .d-hero.no-pic { height: 210px; } .d-emoji { width: 124px; height: 124px; font-size: 64px; right: 40px; } .d-hero.no-pic .d-hero-txt { right: 190px; } }
@media (min-width: 980px) { .d-hero.no-pic { height: 250px; } .d-emoji { width: 150px; height: 150px; font-size: 78px; right: 56px; } }

/* ---------- 手机上的小调整 ---------- */
@media (max-width: 639px) {
  .guards li { padding: 14px 10px; gap: 8px; }
  .guards .ic { width: 32px; height: 32px; padding: 6px; border-radius: 10px; }
  .guards b { font-size: 15px; white-space: nowrap; }
  .guards span { font-size: 12px; }
  .board-cat { display: none; }
  .board-dots { min-width: 8px; }
}
