:root {
  --brand: #F2651D;
  --brand-deep: #D24C0A;
  --brand-soft: #FFF3EA;
  --brand-line: #FAD8C1;
  --ink: #1D1813;
  --ink-2: #4B423A;
  --muted: #8A7E74;
  --line: #EFE5DC;
  --bg: #FAF6F2;
  --card: #FFFFFF;
  --price: #E0460A;
  --shadow: 0 10px 30px rgba(110, 52, 14, .10);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* 只锁 html：若同时锁 body，body 会变成滚动容器，导航和侧栏的 sticky 会错位 */
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* 手机 / 电脑各自显示的部分 */
@media (max-width: 1023px) {
  .only-desktop { display: none !important; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) {
  .only-mobile { display: none !important; }
}

/* =====================================================================
   手机端（默认）
   ===================================================================== */

/* ---------- 顶部 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, #FF8B42 0%, #F2651D 52%, #D6470A 100%);
  padding: 30px 0 72px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero::before { width: 260px; height: 260px; right: -90px; top: -100px; }
.hero::after { width: 150px; height: 150px; right: 70px; bottom: -95px; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: 27px; line-height: 1.25; font-weight: 800; letter-spacing: .5px; }
.hero-sub { margin-top: 6px; font-size: 15px; opacity: .92; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.tags li {
  font-size: 12.5px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .34);
}

.worktime { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; opacity: .95; }
.worktime svg { flex: none; }

/* ---------- 联系卡片 ---------- */
.contact {
  position: relative;
  z-index: 2;
  margin-top: -50px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.contact-qr {
  flex: none;
  width: 116px;
  height: 116px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.contact-body { flex: 1; min-width: 0; }
.contact-body h2 { font-size: 17px; font-weight: 700; }
.contact-tip { margin-top: 2px; font-size: 13px; color: var(--muted); }

.chips { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: #F5C29F; }
.chip:active { background: var(--brand-line); }
.chip-k { flex: none; color: var(--muted); }
.chip-v {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chip-a { flex: none; font-size: 12.5px; font-weight: 600; color: var(--brand-deep); }

/* ---------- 醒目提示 ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #FFF8E6;
  border: 1px solid #F4DDA1;
  color: #7A4B00;
  font-size: 13.5px;
  font-weight: 500;
}
.notice svg { flex: none; margin-top: 3px; }

/* ---------- 分类标签 ---------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: 16px -16px 0;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(250, 246, 242, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 价格卡片 ---------- */
.cat { margin-top: 14px; scroll-margin-top: 64px; }
.cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
  font-size: 18px;
  font-weight: 800;
}
.cat-title::before,
.dcat-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand);
}

.svc {
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.svc-head { padding: 13px 14px 10px; }
.svc-name { font-size: 16px; font-weight: 700; }
.svc-desc { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

.ptable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ptable th {
  padding: 7px 12px;
  background: #FCF7F3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.ptable th:nth-child(1) { width: 29%; }
.ptable th:nth-child(2) { width: 31%; }
.ptable td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: break-word;
}
.ptable tr:last-child td { border-bottom: 0; }
.ptable .qty { font-size: 14.5px; font-weight: 600; }
.ptable .price {
  color: var(--price);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal; /* 不在 149~189 这种数字中间断行 */
}
.ptable .note { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }

/* ---------- 卡片 ---------- */
.card {
  margin-top: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card-title { margin-bottom: 10px; font-size: 17px; font-weight: 800; }

.bullets { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bullets li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.closing { text-align: center; padding: 20px 16px 22px; }
.closing-note {
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--ink-2);
  font-size: 14px;
  text-align: left;
}
.closing-note strong { color: var(--brand-deep); }
.closing-title { font-size: 17px; font-weight: 800; }
.closing-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 12px auto 0;
  border-radius: 12px;
}
.closing-cap { margin-top: 6px; color: var(--brand-deep); font-size: 14px; font-weight: 600; }

.site-footer { padding: 16px 16px 8px; color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- 底部悬浮栏 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(110, 52, 14, .06);
}
.dock-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dock-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.dock-text strong { font-size: 14.5px; }
.dock-text span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.btn-primary {
  flex: none;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF7A2F, #E0500C);
  box-shadow: 0 6px 16px rgba(224, 80, 12, .30);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter .15s, box-shadow .15s;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(224, 80, 12, .30); }

/* ---------- 二维码弹窗 ---------- */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 12, 6, .6);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 22px 20px 18px;
  background: #fff;
  border-radius: 20px;
  text-align: center;
  animation: pop .18s ease-out;
}
.modal-panel h2 { font-size: 18px; font-weight: 800; }
.modal-panel img { display: block; width: 240px; height: 240px; margin: 10px auto 2px; }
.modal-tip { color: var(--muted); font-size: 13.5px; }
.modal-panel .chips { margin-top: 12px; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #F4EEE9;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
@keyframes pop {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100% - 48px);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(29, 24, 19, .92);
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 小屏手机 ---------- */
@media (max-width: 359px) {
  .contact-qr { width: 96px; height: 96px; }
  .ptable th, .ptable td { padding-left: 8px; padding-right: 8px; }
  .ptable .price { font-size: 14.5px; }
  .ptable .qty { font-size: 13.5px; }
  .btn-primary { padding: 10px 14px; font-size: 14px; }
}

/* ---------- 平板（仍是手机布局，放宽一些） ---------- */
@media (min-width: 720px) and (max-width: 1023px) {
  .hero { padding: 44px 0 84px; }
  .hero h1 { font-size: 32px; }
  .contact { padding: 18px; gap: 20px; }
  .contact-qr { width: 136px; height: 136px; }
  .contact .chips { flex-direction: row; flex-wrap: wrap; }
  .contact .chip { width: auto; }
  .ptable th, .ptable td { padding-left: 16px; padding-right: 16px; }
  .svc-head { padding: 14px 16px 10px; }
}

/* =====================================================================
   电脑端（≥1024px，按 1920×1080 设计）
   ===================================================================== */
@media (min-width: 1024px) {
  html { scroll-padding-top: 88px; }
  body { font-size: 16px; }
  .wrap { max-width: 1240px; padding: 0 32px; }

  /* ---------- 顶部导航 ---------- */
  .topnav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
  .topnav-in { display: flex; align-items: center; gap: 36px; height: 64px; }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FF8B42, #D6470A);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .28);
  }
  .topnav-links { display: flex; flex: 1; gap: 4px; min-width: 0; }
  .topnav-links a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
  }
  .topnav-links a:hover { background: #F7F1EC; color: var(--ink); }
  .topnav-links a.active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; }
  .topnav-right { display: flex; flex: none; align-items: center; gap: 18px; }
  .topnav-time { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; white-space: nowrap; }
  .btn-sm { padding: 9px 20px; font-size: 14.5px; box-shadow: 0 4px 12px rgba(224, 80, 12, .25); }

  /* ---------- 首屏 ---------- */
  .hero { padding: 64px 0 72px; }
  .hero::before { width: 520px; height: 520px; right: -140px; top: -260px; }
  .hero::after { width: 300px; height: 300px; right: 360px; bottom: -220px; }
  .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: center; }
  .hero-in.no-features { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 48px; letter-spacing: 1px; }
  .hero-sub { margin-top: 10px; font-size: 20px; opacity: .92; }
  .hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    font-size: 17px;
    font-weight: 600;
  }
  .hero-notice svg { flex: none; }
  .hero-main .worktime { margin-top: 18px; font-size: 15px; opacity: .9; }

  .hero-features { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
  .hero-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 14px;
    background: rgba(255, 255, 255, .13);
    font-size: 18px;
    font-weight: 700;
  }
  .feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
  }

  /* ---------- 主体两栏 ---------- */
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
  .section-head h2 { font-size: 26px; font-weight: 800; }
  .section-head p { color: var(--muted); font-size: 14px; }

  /* ---------- 价格表（合并单元格） ---------- */
  .dcat { margin-bottom: 28px; scroll-margin-top: 88px; }
  .dcat-title { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; font-size: 20px; font-weight: 800; }
  .dtable-wrap {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(110, 52, 14, .04);
  }
  .dtable { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .dtable th {
    padding: 12px 20px;
    background: #FCF6F1;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
  }
  .dtable th:nth-child(1) { width: 27%; }
  .dtable th:nth-child(2) { width: 20%; }
  .dtable th:nth-child(3) { width: 19%; }
  .dtable tbody + tbody { border-top: 2px solid #EADCCF; }
  .dtable td {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    vertical-align: middle;
    overflow-wrap: break-word;
  }
  .dtable tbody tr:first-child td { border-top: 0; }
  .dtable tr:hover td:not(.d-svc) { background: #FFF8F2; }
  .dtable .d-svc { background: #FFFBF8; border-right: 1px solid var(--line); }
  .d-svc-name { font-size: 16px; font-weight: 700; line-height: 1.45; }
  .d-svc-desc { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .d-qty { font-size: 15.5px; font-weight: 600; }
  .d-price {
    color: var(--price);
    font-size: 19px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    overflow-wrap: normal !important;
  }
  .d-note { color: var(--ink-2); font-size: 14.5px; }

  /* ---------- 售后说明 ---------- */
  .aftersales { margin-top: 4px; padding: 24px 28px; border-radius: 16px; scroll-margin-top: 88px; }
  .aftersales .card-title { margin-bottom: 14px; font-size: 20px; }
  .aftersales .bullets { grid-template-columns: 1fr 1fr; gap: 12px 36px; }
  .aftersales .bullets li { font-size: 14.5px; }

  /* ---------- 右侧固定栏 ---------- */
  .layout-side { position: sticky; top: 88px; }
  .side-card {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .side-card + .side-card { margin-top: 16px; }
  .side-contact { text-align: center; border-top: 4px solid var(--brand); }
  .side-contact h2 { font-size: 19px; font-weight: 800; }
  .side-sub { margin-top: 2px; color: var(--muted); font-size: 14px; }
  .side-qr {
    display: block;
    width: 196px;
    height: 196px;
    margin: 16px auto 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: zoom-in;
  }
  .side-tip { color: var(--brand-deep); font-size: 14px; font-weight: 600; }
  .side-contact .chips { margin-top: 16px; }
  .side-contact .chip { padding: 9px 12px; font-size: 14px; }
  .side-time { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 14px; }
  .side-note { box-shadow: none; }
  .side-note h3 { margin-bottom: 6px; color: var(--brand-deep); font-size: 15px; font-weight: 800; }
  .side-note p { color: var(--ink-2); font-size: 14px; line-height: 1.75; }

  .site-footer { padding: 24px 32px 40px; border-top: 1px solid var(--line); font-size: 13px; }

  .modal-panel { max-width: 380px; padding: 28px 28px 24px; }
  .modal-panel img { width: 260px; height: 260px; }
  .toast { bottom: 40px; }
}

/* 窄一些的电脑屏（1024 ~ 1279） */
@media (min-width: 1024px) and (max-width: 1279px) {
  .wrap { padding-left: 24px; padding-right: 24px; } /* 只改左右，别覆盖 .layout 的上下间距 */
  .topnav-in { gap: 20px; }
  .topnav-time { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .dtable th, .dtable td { padding-left: 14px; padding-right: 14px; }
  .aftersales .bullets { grid-template-columns: 1fr; }
}
