@charset "utf-8";
/* ==========================================================================
   珹星商城 · 设计系统
   1. Tokens  2. Reset  3. Layout  4. Topbar/Header/Nav  5. Button  6. Form
   7. Card & Product  8. Home  9. List  10. Detail  11. Cart/Checkout/Pay
   12. Order & Member  13. Content Page  14. Footer  15. Utility  16. Responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #f03b22;
  --brand-2: #ff6b35;
  --brand-soft: #fff2ef;
  --brand-line: #ffd8ce;

  --ink: #14161a;
  --ink-2: #454a54;
  --ink-3: #7c8390;
  --ink-4: #a8aeb9;

  --line: #e6e8ec;
  --line-2: #f0f1f4;
  --bg: #f4f5f7;
  --bg-2: #fafbfc;
  --white: #fff;

  --ok: #17945b;
  --ok-soft: #e9f8f0;
  --warn: #d97706;
  --warn-soft: #fff8e8;
  --info: #2563eb;

  --r-xs: 4px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --sh-1: 0 1px 2px rgba(20, 22, 26, .05);
  --sh-2: 0 4px 16px rgba(20, 22, 26, .07);
  --sh-3: 0 12px 36px rgba(20, 22, 26, .11);

  --max: 1200px;
  --ff: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ff-num: "SF Pro Display", "DIN Alternate", -apple-system, "PingFang SC", sans-serif;
}

/* ---------- 2. Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.35; }
::selection { background: var(--brand); color: #fff; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sec { padding: 40px 0 8px; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.sec-head h2 { font-size: 24px; letter-spacing: -.3px; }
.sec-head h2 small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 10px; letter-spacing: 0; }
.sec-head .more { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.sec-head .more:hover { color: var(--brand); }
.crumb { font-size: 13px; color: var(--ink-3); padding: 16px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.crumb span { color: var(--ink-4); }

/* ---------- 4. Topbar / Header / Nav ---------- */
.topbar { background: #1d1f24; color: #b6bac3; font-size: 12.5px; height: 36px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar-l, .topbar-r { display: flex; align-items: center; gap: 18px; }
.topbar a { color: #b6bac3; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar .split { color: #3a3d45; }
.topbar .hl { color: #ffb4a2; }

.site-head { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); }

.header { background: #fff; }
.header .wrap {
  display: flex; align-items: center; gap: 32px;
  height: 82px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  display: grid; place-items: center;
  color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -.5px;
  box-shadow: 0 4px 12px rgba(240, 59, 34, .28);
}
.logo-txt strong { display: block; font-size: 19px; letter-spacing: .5px; line-height: 1.2; }
.logo-txt em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-4); letter-spacing: 2.4px; text-transform: uppercase; }

.search { flex: 1 1 auto; max-width: 560px; position: relative; }
.search form { display: flex; height: 42px; border: 2px solid var(--brand); border-radius: 21px; overflow: hidden; background: #fff; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 18px;
  font-size: 14px; background: transparent;
}
.search input::placeholder { color: var(--ink-4); }
.search button {
  flex: 0 0 auto; padding: 0 26px; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px; transition: background .15s;
}
.search button:hover { background: #d8331b; }
.hotwords { display: flex; gap: 12px; font-size: 12px; color: var(--ink-4); padding: 6px 4px 0; }
.hotwords a:hover { color: var(--brand); }

.head-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cart-btn {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-2);
  font-size: 14px; transition: all .15s; position: relative; background: #fff;
}
.cart-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.cart-btn svg { width: 19px; height: 19px; }
.cart-badge {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--brand); color: #fff; border-radius: 10px; font-size: 11px;
  font-weight: 600; display: grid; place-items: center; border: 2px solid #fff;
  font-family: var(--ff-num);
}

.nav { border-top: 1px solid var(--line-2); background: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 4px; height: 46px; }
.nav-cat {
  display: flex; align-items: center; gap: 8px; padding: 0 18px 0 2px;
  font-size: 14.5px; font-weight: 600; color: var(--brand); flex: 0 0 auto;
  height: 100%; border-right: 1px solid var(--line);
  margin-right: 8px; white-space: nowrap;
}
.nav a.nav-item {
  padding: 0 16px; height: 100%; display: flex; align-items: center;
  font-size: 14px; color: var(--ink-2); position: relative; transition: color .15s;
  white-space: nowrap;
}
.nav a.nav-item:hover, .nav a.nav-item.on { color: var(--brand); }
.nav a.nav-item.on::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px;
  background: var(--brand); border-radius: 2px 2px 0 0;
}
.nav .spacer { flex: 1; }
.nav .nav-note { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; flex: 0 0 auto; }
.nav .nav-note svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--ok); }
.nav .nav-note b { color: var(--ink-2); font-weight: 600; }

/* ---------- 5. Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 22px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: all .16s ease; border: 1px solid transparent; user-select: none;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(240, 59, 34, .22); }
.btn-primary:hover { background: #d8331b; box-shadow: 0 6px 16px rgba(240, 59, 34, .3); }
.btn-primary:disabled { background: #e9eaee; color: var(--ink-4); box-shadow: none; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2d34; }
.btn-ghost { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 6px; }
.btn-lg { height: 50px; padding: 0 38px; font-size: 16px; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn-link { color: var(--info); font-size: 13px; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }

/* ---------- 6. Form ---------- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
.field > label .req { color: var(--brand); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; outline: 0; font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(240, 59, 34, .1);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.hint { font-size: 12px; color: var(--ink-4); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }

.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  font-size: 13px; line-height: 1.6; padding: 10px 14px; border-radius: 8px;
  margin-bottom: 16px;
}
.form-error::before { content: '!'; display: inline-grid; place-items: center; width: 15px; height: 15px;
  border-radius: 50%; background: #b91c1c; color: #fff; font-size: 10px; font-weight: 700;
  margin-right: 7px; vertical-align: -2px; }
.signed-tip {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d;
  font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; line-height: 1.7;
}
.demo-account {
  margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--line);
  border-radius: 8px; background: var(--bg-2);
}
.da-label { font-size: 11px; letter-spacing: 1.5px; color: var(--ink-4); margin-bottom: 8px; }
.da-row { display: flex; font-size: 13px; padding: 3px 0; align-items: baseline; }
.da-row span { width: 56px; color: var(--ink-3); flex: 0 0 auto; }
.da-row b { font-family: var(--ff-num); color: var(--ink); letter-spacing: .3px; }
.da-note { font-size: 11.5px; color: var(--ink-4); margin-top: 8px; line-height: 1.5; }

/* 登录 / 注册双栏卡片 */
.auth-card {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  max-width: 980px; margin: 44px auto 56px; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 12px 40px rgba(20, 22, 26, .06);
}
.auth-panel { padding: 56px 48px; }

/* ---------- 7. Card & Product ---------- */
.card { background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.card-pad { padding: 24px; }

.p-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.p-card {
  background: #fff; border-radius: var(--r); overflow: hidden;
  border: 1px solid transparent; transition: all .22s cubic-bezier(.2, .7, .3, 1);
  display: flex; flex-direction: column;
}
.p-card:hover { border-color: var(--line); box-shadow: var(--sh-3); transform: translateY(-3px); }
.p-thumb { position: relative; aspect-ratio: 1/1; background: var(--bg-2); overflow: hidden; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.p-card:hover .p-thumb img { transform: scale(1.045); }
.p-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; letter-spacing: .3px;
}
.p-flag.gray { background: rgba(20, 22, 26, .72); }
.p-info { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.p-name {
  font-size: 14px; line-height: 1.5; color: var(--ink); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 42px;
}
.p-sub { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { color: var(--brand); font-family: var(--ff-num); font-weight: 700; }
.price .cur { font-size: 12px; margin-right: 1px; }
.price .int { font-size: 20px; letter-spacing: -.5px; }
.price .dec { font-size: 13px; }
.price-old { font-size: 12px; color: var(--ink-4); text-decoration: line-through; font-family: var(--ff-num); }
.p-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-4); }
.p-tags { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.tag {
  font-size: 11px; padding: 2px 6px; border-radius: 3px; line-height: 1.5;
  background: var(--bg); color: var(--ink-3); border: 1px solid var(--line);
}
.tag-brand { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.tag-ok { background: var(--ok-soft); color: var(--ok); border-color: #c8ecda; }

/* ---------- 8. Home ---------- */
.hero { padding: 20px 0 4px; }
.hero-grid { display: grid; grid-template-columns: 218px 1fr 218px; gap: 14px; align-items: stretch; }

.cat-tree { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 10px 0; overflow: hidden; }
.cat-tree li a {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  font-size: 13.5px; color: var(--ink-2); transition: all .13s;
}
.cat-tree li a:hover { background: var(--brand-soft); color: var(--brand); padding-left: 20px; }
.cat-tree li a .ic { width: 17px; height: 17px; flex: 0 0 auto; opacity: .72; }
.cat-tree li a .cnt { margin-left: auto; font-size: 11.5px; color: var(--ink-4); font-family: var(--ff-num); }

.slider { position: relative; border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.slides { display: flex; flex: 1; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.slide {
  flex: 0 0 100%; min-height: 372px; position: relative; display: flex;
  align-items: center; padding: 0 56px; overflow: hidden;
}
.slide-1 { background: linear-gradient(112deg, #2b1a17 0%, #4a2620 48%, #7a3526 100%); color: #fff; }
.slide-2 { background: linear-gradient(112deg, #16232e 0%, #1f3a4d 50%, #2b5b6e 100%); color: #fff; }
.slide-3 { background: linear-gradient(112deg, #1c2318 0%, #2c3a24 50%, #4a5c38 100%); color: #fff; }
.slide-inner { max-width: 470px; position: relative; z-index: 2; }
.slide .kicker {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; opacity: .78; margin-bottom: 16px;
}
.slide .kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.slide h3 { font-size: 40px; line-height: 1.15; letter-spacing: -1px; margin-bottom: 14px; font-weight: 700; }
.slide h3 em { font-style: normal; color: #ffb59f; }
.slide p { font-size: 14.5px; opacity: .74; line-height: 1.7; margin-bottom: 26px; max-width: 380px; }
.slide .btn { background: #fff; color: var(--ink); box-shadow: none; }
.slide .btn:hover { background: #f0f0f0; }
.slide-deco {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.slide-deco::after {
  content: ''; position: absolute; inset: 76px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
}
.slide-deco::before {
  content: ''; position: absolute; inset: 148px; border-radius: 28px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  transform: rotate(-12deg);
}
.slider-dots {
  position: absolute; left: 56px; bottom: 26px; display: flex; gap: 8px; z-index: 3;
}
.slider-dots button {
  width: 26px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .32);
  transition: all .25s;
}
.slider-dots button.on { background: #fff; width: 40px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff; opacity: 0; transition: all .2s;
  backdrop-filter: blur(4px);
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: rgba(255, 255, 255, .24); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }

.promo-col { display: flex; flex-direction: column; gap: 14px; }
.promo {
  flex: 1; border-radius: var(--r); padding: 20px 18px; position: relative; overflow: hidden;
  border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column;
  justify-content: center; transition: all .2s;
}
.promo:hover { box-shadow: var(--sh-2); border-color: var(--brand-line); }
.promo h4 { font-size: 15px; margin-bottom: 5px; }
.promo p { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.promo .go { font-size: 12.5px; color: var(--brand); font-weight: 600; margin-top: 10px; display: flex; align-items: center; gap: 3px; }
.promo-a { background: linear-gradient(150deg, #fff5f1, #ffe6dd); border-color: #ffd9cd; }
.promo-b { background: linear-gradient(150deg, #f2f8ff, #e2eefc); border-color: #d5e5f8; }
.promo-icon {
  position: absolute; right: -12px; bottom: -14px; width: 86px; height: 86px;
  opacity: .14; color: var(--brand);
}

.svc-bar {
  margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.svc { display: flex; align-items: center; gap: 12px; padding: 20px 24px; }
.svc + .svc { border-left: 1px solid var(--line-2); }
.svc-ic {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; flex: 0 0 auto;
}
.svc-ic svg { width: 19px; height: 19px; }
.svc b { display: block; font-size: 14px; font-weight: 600; }
.svc span { font-size: 12px; color: var(--ink-3); }

.floor-tabs { display: flex; gap: 6px; }
.floor-tabs button {
  height: 30px; padding: 0 14px; border-radius: 15px; font-size: 13px; color: var(--ink-3);
  border: 1px solid var(--line); background: #fff; transition: all .15s;
}
.floor-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.floor-tabs button:hover:not(.on) { color: var(--ink); border-color: var(--ink-4); }

.brand-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-cell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 14px; text-align: center; transition: all .18s;
}
.brand-cell:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); }
.brand-cell b { display: block; font-size: 14.5px; margin-bottom: 3px; letter-spacing: .3px; }
.brand-cell span { font-size: 11.5px; color: var(--ink-4); }

/* ---------- 9. List ---------- */
.list-layout { display: grid; grid-template-columns: 214px 1fr; gap: 20px; align-items: start; padding-bottom: 40px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 14px; }
.side-head {
  padding: 14px 16px; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
}
.side-body { padding: 8px 0; }
.side-body a {
  display: block; padding: 8px 16px; font-size: 13px; color: var(--ink-2); transition: all .13s;
}
.side-body a:hover { color: var(--brand); background: var(--brand-soft); }
.side-body a.on { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.side-body a .n { float: right; font-size: 11.5px; color: var(--ink-4); font-family: var(--ff-num); }

.toolbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 16px; display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar .lab { font-size: 13px; color: var(--ink-3); flex: 0 0 auto; }
.sort-group { display: flex; gap: 4px; }
.sort-group button {
  height: 30px; padding: 0 13px; border-radius: 6px; font-size: 13px; color: var(--ink-2);
  border: 1px solid transparent; transition: all .14s;
}
.sort-group button:hover { background: var(--bg); }
.sort-group button.on { background: var(--ink); color: #fff; }
.toolbar .result { margin-left: auto; font-size: 12.5px; color: var(--ink-4); }
.toolbar .result b { color: var(--brand); font-family: var(--ff-num); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; gap: 5px;
}
.chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip .x { font-size: 14px; line-height: 1; opacity: .6; }

.p-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pager { display: flex; justify-content: center; gap: 6px; padding: 34px 0 10px; }
.pager button {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 6px; font-size: 13px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .14s;
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager button:disabled { color: var(--ink-4); cursor: not-allowed; }

/* ---------- 10. Detail ---------- */
.detail-top { display: grid; grid-template-columns: 452px 1fr; gap: 36px; background: #fff; border-radius: var(--r); padding: 28px; border: 1px solid var(--line); }
.gallery-main { border-radius: var(--r); overflow: hidden; background: var(--bg-2); aspect-ratio: 1/1; border: 1px solid var(--line-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  width: 66px; height: 66px; border-radius: var(--r-sm); overflow: hidden;
  border: 2px solid transparent; background: var(--bg-2); transition: border-color .15s;
}
.gallery-thumbs button.on { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.d-title { font-size: 23px; line-height: 1.45; letter-spacing: -.3px; margin-bottom: 10px; }
.d-sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; line-height: 1.65; }
.price-box { background: linear-gradient(100deg, #fff6f3, #fff); border: 1px solid var(--brand-line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 20px; }
.price-box .row1 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-box .big { color: var(--brand); font-family: var(--ff-num); font-weight: 700; display: flex; align-items: baseline; }
.price-box .big .cur { font-size: 16px; }
.price-box .big .int { font-size: 34px; letter-spacing: -1px; }
.price-box .big .dec { font-size: 18px; }
.price-box .save { background: var(--brand); color: #fff; font-size: 11.5px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.price-box .row2 { display: flex; gap: 22px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.price-box .row2 b { color: var(--ink-2); font-weight: 600; }

.d-rows { border-top: 1px solid var(--line-2); }
.d-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; align-items: flex-start; }
.d-row > .k { flex: 0 0 66px; color: var(--ink-3); }
.d-row > .v { flex: 1; color: var(--ink-2); }
.spec-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-opt {
  height: 34px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--ink-2); transition: all .14s;
}
.spec-opt.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.spec-opt:hover:not(.on) { border-color: var(--ink-4); }
.spec-delta {
  font-style: normal; font-size: 11px; margin-left: 5px;
  color: var(--ink-4); font-family: var(--ff-num); font-weight: 400;
}
.spec-opt.on .spec-delta { color: var(--brand); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; height: 34px; }
.qty button { width: 34px; height: 100%; display: grid; place-items: center; font-size: 16px; color: var(--ink-2); background: #fff; transition: background .12s; }
.qty button:hover { background: var(--bg); }
.qty input { width: 52px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; outline: 0; font-family: var(--ff-num); font-size: 14px; }
.d-actions { display: flex; gap: 12px; margin-top: 24px; }
.d-actions .btn { flex: 1; }
.d-assure { display: flex; gap: 20px; margin-top: 18px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.d-assure span { display: inline-flex; align-items: center; gap: 5px; }
.d-assure svg { width: 14px; height: 14px; color: var(--ok); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 28px 0 0; background: #fff; border-radius: var(--r) var(--r) 0 0; padding: 0 24px; border: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs button {
  height: 50px; padding: 0 22px; font-size: 14.5px; color: var(--ink-3); position: relative;
  transition: color .15s; font-weight: 500;
}
.tabs button.on { color: var(--brand); font-weight: 600; }
.tabs button.on::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; background: var(--brand); }
.tab-panel { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: 30px 28px; margin-bottom: 40px; }
.rich p { font-size: 14px; color: var(--ink-2); line-height: 1.95; margin-bottom: 14px; }
.rich h4 { font-size: 16px; margin: 26px 0 12px; }
.rich ul { margin: 0 0 16px; }
.rich ul li { font-size: 14px; color: var(--ink-2); line-height: 1.9; padding-left: 18px; position: relative; }
.rich ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .6; }
.param-table { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.param-table tr:nth-child(odd) { background: var(--bg-2); }
.param-table th, .param-table td { padding: 11px 16px; font-size: 13.5px; text-align: left; border-bottom: 1px solid var(--line-2); }
.param-table th { color: var(--ink-3); font-weight: 400; width: 150px; }
.param-table td { color: var(--ink-2); }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 14px; }
.review-item:last-child { border-bottom: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 13px; color: var(--ink-3); flex: 0 0 auto; font-weight: 600; }
.review-body { flex: 1; }
.review-body .who { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.review-body .who b { color: var(--ink-2); font-weight: 500; }
.review-body p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.stars { color: #f5a623; font-size: 12px; letter-spacing: 1px; }

/* ---------- 11. Cart / Checkout / Pay ---------- */
.steps { display: flex; align-items: center; gap: 8px; padding: 26px 0 22px; font-size: 13px; }
.step { display: flex; align-items: center; gap: 8px; color: var(--ink-4); }
.step .dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; background: #e9eaee; color: var(--ink-4); font-weight: 600; font-family: var(--ff-num);
}
.step.on { color: var(--ink); font-weight: 600; }
.step.on .dot { background: var(--brand); color: #fff; }
.step.done .dot { background: var(--ok); color: #fff; }
.step.done { color: var(--ink-2); }
.step-line { width: 46px; height: 1px; background: var(--line); }
.step-arrow { color: var(--ink-4); font-size: 12px; }

.cart-table { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cart-head, .cart-row {
  display: grid; grid-template-columns: 40px 1fr 130px 130px 110px 70px;
  align-items: center; gap: 12px; padding: 14px 20px;
}
.cart-head { background: var(--bg-2); font-size: 12.5px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.cart-row { border-bottom: 1px solid var(--line-2); }
.cart-row:last-child { border-bottom: 0; }
.cart-prod { display: flex; gap: 14px; align-items: center; }
.cart-prod img { width: 76px; height: 76px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-2); flex: 0 0 auto; border: 1px solid var(--line-2); }
.cart-prod .nm { font-size: 13.5px; line-height: 1.5; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-prod .sp { font-size: 12px; color: var(--ink-4); }
.cart-sum { font-size: 14px; color: var(--brand); font-family: var(--ff-num); font-weight: 600; }
.cart-rm { font-size: 12.5px; color: var(--ink-4); }
.cart-rm:hover { color: var(--brand); }

.settle-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  margin-top: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 20px;
  position: sticky; bottom: 16px; box-shadow: var(--sh-2); flex-wrap: wrap;
}
.settle-bar .sum { margin-left: auto; text-align: right; font-size: 13px; color: var(--ink-3); }
.settle-bar .sum .total { font-size: 15px; color: var(--ink-2); }
.settle-bar .sum .total b { font-size: 26px; color: var(--brand); font-family: var(--ff-num); letter-spacing: -.5px; }

.addr-list { display: grid; gap: 10px; }
.addr {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px;
  cursor: pointer; transition: all .15s; background: #fff; position: relative;
}
.addr:hover { border-color: var(--ink-4); }
.addr.on { border-color: var(--brand); background: var(--brand-soft); }
.addr .nm { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.addr .nm span { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.addr .ad { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.addr .badge { font-size: 10.5px; background: var(--brand); color: #fff; padding: 1px 6px; border-radius: 3px; font-weight: 500; }

.pay-methods { display: grid; gap: 10px; }
.pay-m {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all .15s; background: #fff;
}
.pay-m:hover { border-color: var(--ink-4); }
.pay-m.on { border-color: var(--brand); background: var(--brand-soft); }
.pay-m .logo { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; font-size: 15px; color: #fff; font-weight: 700; }
.pay-m .pm-name { font-size: 14px; font-weight: 500; }
.pay-m .pm-desc { font-size: 12px; color: var(--ink-3); }
.pay-m .radio { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.pay-m.on .radio { border-color: var(--brand); }
.pay-m.on .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.order-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.order-summary h3 { font-size: 15px; margin-bottom: 16px; }
.os-line { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); padding: 7px 0; }
.os-line .v { font-family: var(--ff-num); }
.os-total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.os-total .k { font-size: 14px; color: var(--ink-2); }
.os-total .v { font-size: 24px; color: var(--brand); font-family: var(--ff-num); font-weight: 700; letter-spacing: -.5px; }

.pay-card { max-width: 620px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--sh-2); }
.pay-card h2 { font-size: 20px; margin-bottom: 6px; }
.pay-card .sub { font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.amount-line { background: var(--bg-2); border-radius: var(--r); padding: 20px; text-align: center; margin-bottom: 26px; }
.amount-line .lb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.amount-line .amt { font-size: 36px; color: var(--brand); font-family: var(--ff-num); font-weight: 700; letter-spacing: -1px; }
.amount-line .amt small { font-size: 18px; margin-right: 2px; }
.amount-line .no { font-size: 12px; color: var(--ink-4); margin-top: 8px; font-family: var(--ff-num); }

.pay-result { max-width: 560px; margin: 56px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 52px 40px; }
.pay-result .ic { width: 68px; height: 68px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 22px; }
.pay-result .ic svg { width: 34px; height: 34px; }
.pay-result h2 { font-size: 24px; margin-bottom: 10px; }
.pay-result p { font-size: 13.5px; color: var(--ink-3); line-height: 1.8; margin-bottom: 8px; }
.pay-result .acts { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }

/* Modal */
.modal-mask {
  position: fixed; inset: 0; z-index: 2000; background: rgba(20, 22, 26, .46);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .18s ease;
}
.modal-box {
  background: #fff; border-radius: var(--r-lg); padding: 34px 30px 26px;
  width: 100%; max-width: 420px; text-align: center;
  box-shadow: 0 24px 60px rgba(20, 22, 26, .24);
  animation: popIn .22s cubic-bezier(.2, .8, .3, 1);
}
.modal-ic {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 18px;
  background: #fff4e8; color: #d97706; display: grid; place-items: center;
}
.modal-ic svg { width: 28px; height: 28px; }
.modal-box h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -.2px; }
.modal-box p { font-size: 13.5px; color: var(--ink-3); line-height: 1.75; margin-bottom: 18px; }
.modal-contact {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 20px;
}
.modal-contact b { display: block; font-size: 14px; color: var(--ink); margin-top: 5px; font-family: var(--ff-num); letter-spacing: .2px; word-break: break-all; }
.modal-box .btn { width: 100%; }
.modal-links { margin-top: 14px; font-size: 13px; display: flex; gap: 16px; justify-content: center; }
.modal-links a { color: var(--info); }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.97) } to { opacity: 1; transform: none } }

/* ---------- 12. Order & Member ---------- */
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; }
.order-hd { background: var(--bg-2); padding: 12px 20px; display: flex; gap: 24px; font-size: 12.5px; color: var(--ink-3); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.order-hd .no { font-family: var(--ff-num); color: var(--ink-2); }
.order-hd .st { margin-left: auto; font-weight: 600; color: var(--brand); }
.order-hd .st.done { color: var(--ok); }
.order-bd { padding: 18px 20px; }
.order-prod { display: flex; gap: 14px; padding: 10px 0; }
.order-prod img { width: 70px; height: 70px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-2); border: 1px solid var(--line-2); }
.order-ft { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.order-ft .amt { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.order-ft .amt b { font-size: 18px; color: var(--brand); font-family: var(--ff-num); }

.member-layout { display: grid; grid-template-columns: 214px 1fr; gap: 20px; padding-bottom: 40px; align-items: start; }
.member-hero {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; display: flex; align-items: center; gap: 20px; margin-bottom: 16px;
}
.member-hero .avatar { width: 64px; height: 64px; font-size: 22px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.member-hero h3 { font-size: 18px; margin-bottom: 4px; }
.member-hero p { font-size: 12.5px; color: var(--ink-3); }
.member-hero .lvl { font-size: 11px; background: #fff3e0; color: #b45309; padding: 2px 8px; border-radius: 3px; margin-left: 8px; font-weight: 500; vertical-align: middle; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-cell { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat-cell .n { font-size: 26px; font-weight: 700; font-family: var(--ff-num); letter-spacing: -.5px; }
.stat-cell .l { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 13. Content Page ---------- */
.doc-layout { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; padding-bottom: 48px; }
.doc-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 0; position: sticky; top: 152px; }
.doc-nav a { display: block; padding: 9px 18px; font-size: 13px; color: var(--ink-2); border-left: 2px solid transparent; }
.doc-nav a:hover { color: var(--brand); background: var(--bg-2); }
.doc-nav a.on { color: var(--brand); border-left-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.doc-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 40px 44px; }
.doc-body h1 { font-size: 26px; margin-bottom: 8px; letter-spacing: -.4px; }
.doc-body .doc-meta { font-size: 12.5px; color: var(--ink-4); padding-bottom: 20px; border-bottom: 1px solid var(--line-2); margin-bottom: 26px; }
.doc-body h2 { font-size: 17px; margin: 30px 0 12px; padding-left: 11px; border-left: 3px solid var(--brand); }
.doc-body h3 { font-size: 15px; margin: 20px 0 8px; }
.doc-body p { font-size: 14px; color: var(--ink-2); line-height: 1.95; margin-bottom: 12px; }
.doc-body ul, .doc-body ol { margin: 0 0 14px 0; }
.doc-body li { font-size: 14px; color: var(--ink-2); line-height: 1.95; padding-left: 20px; position: relative; }
.doc-body ul li::before { content: ''; position: absolute; left: 6px; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
.doc-body ol { counter-reset: n; }
.doc-body ol li::before { counter-increment: n; content: counter(n) '.'; position: absolute; left: 0; color: var(--brand); font-family: var(--ff-num); font-weight: 600; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body table { margin: 14px 0 18px; font-size: 13.5px; border: 1px solid var(--line); }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.doc-body th { background: var(--bg-2); font-weight: 600; color: var(--ink-2); }
.doc-body td { color: var(--ink-2); }
.doc-note { background: var(--bg-2); border-left: 3px solid var(--ink-4); padding: 14px 18px; border-radius: 0 6px 6px 0; font-size: 13px; color: var(--ink-3); margin: 18px 0; line-height: 1.8; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.info-line { display: flex; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.info-line .k { flex: 0 0 110px; color: var(--ink-3); }
.info-line .v { color: var(--ink-2); }

.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.help-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: all .18s; }
.help-card:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); }
.help-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.help-card h4 { font-size: 15px; margin-bottom: 8px; }
.help-card p { font-size: 13px; color: var(--ink-3); line-height: 1.75; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q {
  width: 100%; text-align: left; padding: 16px 0; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink);
}
.faq-q .pmark { color: var(--ink-4); font-size: 18px; line-height: 1; transition: transform .2s; flex: 0 0 auto; }
.faq-item.open .faq-q .pmark { transform: rotate(45deg); color: var(--brand); }
.faq-a { display: none; padding: 0 0 18px; font-size: 13.5px; color: var(--ink-3); line-height: 1.9; }
.faq-item.open .faq-a { display: block; }

/* ---------- 14. Footer ---------- */
.foot { background: #1a1c21; color: #8b919c; margin-top: 56px; flex: 0 0 auto; }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding: 48px 0 40px; }
.foot-brand .logo-txt strong { color: #fff; }
.foot-brand .logo-txt em { color: #5c626c; }
.foot-brand .logo { margin-bottom: 16px; }
.foot-brand p { font-size: 12.5px; line-height: 1.9; color: #7b828d; max-width: 250px; }
.foot-col h5 { font-size: 13.5px; color: #fff; font-weight: 600; margin-bottom: 14px; letter-spacing: .3px; }
.foot-col a { display: block; font-size: 12.5px; color: #8b919c; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-svc { display: flex; gap: 12px; align-items: center; padding: 22px 0; border-top: 1px solid #2a2d34; }
.foot-svc .phone { font-size: 20px; color: #fff; font-family: var(--ff-num); font-weight: 600; letter-spacing: .5px; }
.foot-svc .time { font-size: 11.5px; color: #6b717c; }
.foot-bottom { border-top: 1px solid #2a2d34; padding: 20px 0 28px; font-size: 12px; color: #6b717c; line-height: 1.9; }
.foot-bottom a { color: #8b919c; margin: 0 3px; }
.foot-bottom a:hover { color: #fff; }
.foot-lic { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.foot-lic span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 15. Utility ---------- */
.mt0 { margin-top: 0 } .mt8 { margin-top: 8px } .mt12 { margin-top: 12px }
.mt16 { margin-top: 16px } .mt20 { margin-top: 20px } .mt24 { margin-top: 24px }
.mt32 { margin-top: 32px } .mt40 { margin-top: 40px }
.mb0 { margin-bottom: 0 } .mb8 { margin-bottom: 8px } .mb12 { margin-bottom: 12px }
.mb16 { margin-bottom: 16px } .mb20 { margin-bottom: 20px } .mb24 { margin-bottom: 24px }
.fx { display: flex } .fx-ac { display: flex; align-items: center }
.fx-bt { display: flex; align-items: center; justify-content: space-between }
.fx-c { display: flex; align-items: center; justify-content: center }
.gap8 { gap: 8px } .gap12 { gap: 12px } .gap16 { gap: 16px } .gap20 { gap: 20px }
.tc { text-align: center } .tr { text-align: right }
.muted { color: var(--ink-3) } .dim { color: var(--ink-4) }
.fs12 { font-size: 12px } .fs13 { font-size: 13px } .fs15 { font-size: 15px } .fs16 { font-size: 16px }
.b6 { font-weight: 600 } .b7 { font-weight: 700 }
.brand { color: var(--brand) } .ok { color: var(--ok) }
.hr { height: 1px; background: var(--line); border: 0; margin: 20px 0 }
.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty svg { width: 66px; height: 66px; color: var(--line); margin: 0 auto 18px; }
.empty p { font-size: 14px; margin-bottom: 18px; }
.notice {
  background: var(--warn-soft); border: 1px solid #fde3b0; color: #92400e;
  padding: 12px 16px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.7;
  display: flex; gap: 10px; align-items: flex-start;
}
.notice svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.skel { background: linear-gradient(90deg, #f0f1f4 25%, #f7f8fa 37%, #f0f1f4 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1180px) {
  .p-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 200px 1fr; }
  .promo-col { display: none; }
  .detail-top { grid-template-columns: 380px 1fr; gap: 28px; }
}
@media (max-width: 980px) {
  .p-grid, .p-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .list-layout, .member-layout, .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; display: flex; overflow-x: auto; }
  .doc-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .doc-nav a.on { border-left: 0; border-bottom-color: var(--brand); }
  .side-card { display: none; }
  .detail-top { grid-template-columns: 1fr; }
  .gallery { max-width: 420px; margin: 0 auto; }
  .svc-bar { grid-template-columns: repeat(2, 1fr); }
  .svc:nth-child(3) { border-left: 0; }
  .svc:nth-child(3), .svc:nth-child(4) { border-top: 1px solid var(--line-2); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .header .wrap { height: auto; padding: 14px 20px; gap: 16px; flex-wrap: wrap; }
  .search { order: 3; flex: 1 0 100%; max-width: none; }
  .nav .wrap { overflow-x: auto; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }

  /* 顶栏：只保留客服电话，避免被挤成竖排 */
  .topbar { height: 32px; font-size: 11.5px; }
  .topbar .topbar-l { display: none; }
  .topbar .topbar-r { width: 100%; justify-content: space-between; gap: 8px; }
  .topbar .topbar-r > *:not(:last-child) { display: none; }
  .topbar a, .topbar span { white-space: nowrap; }

  /* 导航：横向滚动，禁止换行 */
  .nav .wrap { overflow-x: auto; scrollbar-width: none; }
  .nav .wrap::-webkit-scrollbar { display: none; }
  .nav a.nav-item { flex: 0 0 auto; padding: 0 12px; }
  .nav .nav-note { display: none; }
  .nav-cat { padding-right: 12px; margin-right: 2px; border-right: 0; }

  /* 搜索：按钮只留图标，输入框允许收缩 */
  .search button { padding: 0 16px; }
  .search button span { display: none; }
  .search button svg { width: 17px; height: 17px; }

  .p-grid, .p-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-grid { grid-template-columns: 1fr; }
  .cat-tree { display: none; }

  .slide { min-height: 232px; height: auto; padding: 28px 22px; }
  .slide-inner { max-width: 100%; width: 100%; }
  .slide h3 { font-size: 23px; margin-bottom: 10px; }
  .slide p { font-size: 12.5px; margin-bottom: 16px; max-width: 100%; }
  .slide .kicker { font-size: 10.5px; letter-spacing: 1.4px; margin-bottom: 10px; }
  .slide-deco { display: none; }
  .slider-dots { left: 22px; bottom: 14px; }

  .svc-bar { grid-template-columns: 1fr 1fr; }
  .svc { padding: 13px 12px; gap: 9px; }
  .svc > div { min-width: 0; }
  .svc-ic { width: 32px; height: 32px; border-radius: 8px; }
  .svc b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .svc span {
    font-size: 11px; line-height: 1.45; display: -webkit-box; white-space: normal;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .svc:nth-child(3) { border-left: 0; }
  .svc:nth-child(3), .svc:nth-child(4) { border-top: 1px solid var(--line-2); }

  .sec { padding: 28px 0 4px; }
  .sec-head { margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
  .floor-tabs { overflow-x: auto; max-width: 100%; }
  .floor-tabs button { flex: 0 0 auto; }
  .sec-head h2 { font-size: 18px; }
  .sec-head h2 small { display: none; }
  .sec-head .more { font-size: 12px; white-space: nowrap; }
  .floor-tabs button { height: 27px; padding: 0 10px; font-size: 12px; }

  .p-name { font-size: 13px; min-height: 38px; }
  .p-info { padding: 10px 10px 12px; }
  .p-thumb .p-flag { font-size: 10px; padding: 2px 6px; }
  .price .int { font-size: 17px; }

  .cart-head { display: none; }
  .cart-row { grid-template-columns: 26px 1fr; gap: 8px 10px; padding: 14px; }
  .cart-row > *:nth-child(n+3) { grid-column: 2; }
  .settle-bar { position: static; }
  .settle-bar .sum { width: 100%; text-align: left; margin-left: 0; }
  .settle-bar .btn { width: 100%; }

  .detail-top { padding: 16px; gap: 20px; }
  .d-title { font-size: 17px; }
  .price-box .big .int { font-size: 28px; }
  .d-actions { flex-direction: column; }
  .d-actions .btn { width: 100%; }

  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .member-hero { padding: 18px; gap: 14px; flex-wrap: wrap; }
  .member-hero .avatar { width: 52px; height: 52px; font-size: 18px; }
  .help-grid { grid-template-columns: 1fr; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .doc-body { padding: 22px 18px; }
  .doc-body h1 { font-size: 21px; }
  .doc-body table { font-size: 12.5px; }
  .doc-body th, .doc-body td { padding: 8px 10px; }
  .tabs { padding: 0 10px; overflow-x: auto; }
  .tabs button { padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .tab-panel { padding: 18px 16px; }

  .foot-top { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 32px 0 24px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-svc { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot-svc > div:last-child { margin-left: 0 !important; text-align: left !important; }
  .foot-bottom { font-size: 11px; }

  .pay-card, .pay-result { padding: 26px 18px; margin: 20px 14px; }
  .pay-result .acts { flex-direction: column; }
  .amount-line .amt { font-size: 30px; }
  .order-ft { flex-wrap: wrap; }
  .order-ft .amt { margin-left: 0; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .steps { font-size: 10.5px; gap: 4px; padding: 18px 0 14px; overflow-x: auto; }
  .step { gap: 4px; flex: 0 0 auto; white-space: nowrap; }
  .step .dot { width: 18px; height: 18px; font-size: 10px; }
  .step-line { width: 10px; flex: 0 0 auto; }

  .order-summary, .card-pad { padding: 18px; }
}

/* ---------- 17. Mobile Tab Bar（H5 底部导航）---------- */
.mtab { display: none; }

@media (max-width: 760px) {
  .mtab {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mtab a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 8px 0 7px; font-size: 10.5px; color: var(--ink-3);
    position: relative; transition: color .15s; -webkit-tap-highlight-color: transparent;
  }
  .mtab a.on { color: var(--brand); }
  .mtab a.on svg { stroke-width: 2.1; }
  .mtab svg { width: 21px; height: 21px; }
  .mtab-badge {
    position: absolute; top: 3px; left: 50%; margin-left: 4px;
    min-width: 15px; height: 15px; padding: 0 4px;
    background: var(--brand); color: #fff; border-radius: 8px;
    font-size: 10px; font-weight: 600; display: grid; place-items: center;
    font-family: var(--ff-num); line-height: 1; border: 1.5px solid #fff;
  }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .foot { margin-top: 32px; }

  /* 登录 / 注册：双栏改单栏，隐藏品牌侧 */
  .auth-card { grid-template-columns: 1fr; margin: 18px 0 24px; border-radius: var(--r); }
  .auth-brand { display: none; }
  .auth-panel { padding: 26px 20px 30px; }
  .auth-panel h2 { font-size: 20px; }
}
