/* ============================================================
   Cloud Store Theme — 浅色数字权益商店
   ============================================================ */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --surface-3: #e8eef4;
  --text: #172033;
  --muted: #697487;
  --line: rgba(20, 39, 66, .11);
  --line-strong: rgba(20, 39, 66, .2);
  --accent: #12a89a;
  --accent-strong: #087f75;
  --accent-soft: rgba(18, 168, 154, .1);
  --amber: #c68416;
  --amber-soft: rgba(214, 151, 38, .12);
  --red: #d84a5a;
  --red-soft: rgba(216, 74, 90, .1);
  --shadow: 0 20px 55px rgba(31, 51, 79, .11);
  --shadow-soft: 0 8px 28px rgba(31, 51, 79, .07);
  --radius: 15px;
  --header-h: 64px;
}

/* ---------- base ---------- */
body.cloud-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) !important;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

body.cloud-body a { color: inherit; text-decoration: none; }
body.cloud-body a:hover { color: var(--accent-strong); }
body.cloud-body img { max-width: 100%; }
body.cloud-body .icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  width: min(1380px, 92vw);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.site-brand-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  overflow: hidden;
}
.site-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.site-brand small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent-strong);
  line-height: 1;
  margin-top: 3px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: .16s;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a.is-active { background: var(--accent-soft); color: var(--accent-strong); }
.site-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  width: 240px;
}
.header-search .icon { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }
.header-search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-size: 13px; color: var(--text);
}
.header-search input::placeholder { color: #93a0b4; }

.btn-soft, .btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: .16s;
}
.btn-soft:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.btn-solid {
  border-color: transparent;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 168, 154, .22);
}
.btn-solid:hover { color: #fff; filter: brightness(1.05); }
.btn-solid:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* user menu */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
}
.user-menu-trigger img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-2);
}
.user-menu-trigger .u-name { font-size: 12.5px; font-weight: 700; line-height: 1.1; }
.user-menu-trigger .u-balance { font-size: 10.5px; color: var(--accent-strong); font-weight: 700; }
.user-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 178px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: none;
}
.user-menu.open .user-menu-list { display: block; }
.user-menu-list a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 9px; font-size: 13px; color: var(--text);
}
.user-menu-list a:hover { background: var(--surface-2); }
.user-menu-list hr { margin: 5px 3px; border: 0; border-top: 1px solid var(--line); }
.user-menu-list a.danger { color: var(--red); }

/* ---------- main ---------- */
.site-main {
  width: min(1380px, 92vw);
  margin: 0 auto;
  padding: 30px 0 64px;
  min-height: calc(100vh - 200px);
}

/* ---------- hero ---------- */
.home-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}
.eyebrow {
  display: block;
  color: var(--accent-strong);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .17em;
}
.home-heading h1 {
  margin: 5px 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 850;
}
.home-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
.home-heading-actions { display: flex; align-items: center; gap: 9px; }
.search-field {
  width: min(380px, 35vw);
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.search-field .icon { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }
.search-field input {
  min-width: 0; flex: 1; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 13px;
}
.search-field input::placeholder { color: #93a0b4; }
.share-store-button {
  height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.share-store-button:hover { border-color: var(--line-strong); }
.share-store-button .icon { width: 16px; height: 16px; }

/* ---------- catalog layout ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.category-panel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.category-panel > header { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.category-panel h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.02em; font-weight: 800; }
.category-list { display: grid; gap: 4px; padding: 10px; }
.category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.category-item:hover { background: var(--surface-2); color: var(--text); }
.category-item.is-active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; }
.category-item .cate-dot {
  width: 24px; height: 24px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--surface-3); color: var(--accent-strong); overflow: hidden;
}
.category-item .cate-dot img { width: 100%; height: 100%; object-fit: cover; }
.category-item .cate-count {
  margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border-radius: 999px; padding: 2px 7px;
}
.category-item.is-active .cate-count { background: rgba(18,168,154,.16); color: var(--accent-strong); }

.catalog-section { min-width: 0; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 13px;
}
.section-heading h2 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.02em; font-weight: 800; }
.section-heading > span { color: var(--muted); font-size: 11.5px; font-weight: 600; }

/* ---------- product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 12px;
}
.product-card {
  position: relative;
  min-width: 0;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.product-card:before {
  content: "";
  position: absolute;
  right: -50px;
  top: -70px;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: var(--accent-soft);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 168, 154, .35);
  box-shadow: var(--shadow);
  color: inherit;
}
.product-card.sold-out { opacity: .72; box-shadow: none; }
.product-card.sold-out:hover { opacity: .9; }
.product-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.product-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-3), var(--surface-2));
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 900;
  flex: 0 0 auto;
}
.product-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-badge.sold { background: var(--red-soft); color: var(--red); }
.product-badge.auto { background: var(--accent-soft); color: var(--accent-strong); }
.product-card h3 {
  position: relative;
  min-height: 40px;
  margin: 14px 0 3px;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 750;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card > p {
  position: relative;
  display: -webkit-box;
  min-height: 32px;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.product-price { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.product-price small { color: var(--muted); font-size: 8.5px; }
.product-price strong { font-size: 18px; letter-spacing: -.03em; font-weight: 850; }
.product-price strong em { font-style: normal; font-size: 11px; margin-right: 1px; }
.product-stock-summary { position: relative; flex: 0 0 auto; min-width: 48px; text-align: right; line-height: 1.2; }
.product-stock-summary .stock-text { display: block; color: var(--accent-strong); font-size: 9px; font-weight: 700; }
.product-stock-summary .product-sold {
  position: absolute; right: 0; bottom: calc(100% + 5px);
  color: var(--muted); font-size: 8.5px; white-space: nowrap;
}
.sold-out .product-stock-summary .stock-text { color: var(--red); }

.skeleton-card {
  min-height: 218px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 300% 100%;
  animation: cloudShimmer 1.4s infinite;
}
@keyframes cloudShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.empty-state {
  display: grid;
  gap: 5px;
  place-items: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}
.empty-state b { color: var(--text); font-size: 14px; }
.empty-state span { font-size: 12px; }
.hidden { display: none !important; }

/* mobile category button + drawer */
.mobile-category-button {
  display: none;
  width: 100%;
  height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.mobile-category-button .icon { width: 16px; height: 16px; color: var(--accent-strong); }
.mobile-category-button .chev { margin-left: auto; color: var(--muted); }
.category-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.category-drawer.open { display: block; }
.category-drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 25, 40, .42); backdrop-filter: blur(2px); }
.category-drawer-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 76vh;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  animation: cloudUp .22s ease-out;
}
@keyframes cloudUp { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.category-drawer-panel > header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
}
.category-drawer-panel h2 { margin: 3px 0 0; font-size: 18px; font-weight: 800; }
.drawer-close {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2);
  color: var(--muted); cursor: pointer;
}
.category-drawer-panel > .category-list {
  overflow: auto;
  padding: 10px 10px max(20px, env(safe-area-inset-bottom));
}

/* ---------- item / product detail ---------- */
.breadcrumb-bar {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 14px; color: var(--muted); font-size: 12px;
}
.breadcrumb-bar a:hover { color: var(--accent-strong); }
.breadcrumb-bar .sep { opacity: .5; }

.item-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}
.item-card, .buy-card, .panel-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.item-card { padding: 22px; }
.item-head { display: flex; align-items: flex-start; gap: 14px; }
.item-head .product-icon { width: 62px; height: 62px; border-radius: 17px; font-size: 22px; }
.item-head h1 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.28;
  letter-spacing: -.03em;
  font-weight: 850;
}
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.item-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  font-size: 10.5px; font-weight: 700;
}
.item-tag.ok { background: var(--accent-soft); color: var(--accent-strong); }
.item-tag.warn { background: var(--amber-soft); color: var(--amber); }
.item-tag.bad { background: var(--red-soft); color: var(--red); }
.item-price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin: 20px 0 4px;
}
.item-price-row .amount { font-size: 34px; font-weight: 900; letter-spacing: -.04em; color: var(--accent-strong); }
.item-price-row .amount em { font-style: normal; font-size: 17px; margin-right: 2px; }
.item-price-row .orig { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.item-price-row .save { font-size: 10.5px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 3px 8px; border-radius: 999px; }

.item-desc {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #3d4a5f;
  font-size: 13px;
  line-height: 1.75;
  word-break: break-word;
}
.item-desc img { border-radius: 12px; height: auto; }
.item-desc h1, .item-desc h2, .item-desc h3, .item-desc h4 { font-size: 15px; margin: 16px 0 8px; font-weight: 800; }

.buy-card { padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.buy-card > h2 { margin: 0 0 14px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.field { margin-bottom: 13px; }
.field label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted);
}
.field label .hint { font-weight: 600; font-size: 10px; color: #9aa6b8; }
.input, .select {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface-2); color: var(--text);
  font-size: 13px; outline: 0; transition: .15s;
}
.input:focus, .select:focus { border-color: rgba(18,168,154,.5); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: #9aa6b8; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }

.qty-group { display: flex; align-items: center; gap: 0; }
.qty-group button {
  width: 42px; height: 42px; flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font-size: 17px; font-weight: 700; cursor: pointer;
}
.qty-group button:first-child { border-radius: 11px 0 0 11px; }
.qty-group button:last-child { border-radius: 0 11px 11px 0; }
.qty-group input {
  flex: 1; min-width: 0; height: 42px; text-align: center;
  border: 1px solid var(--line); border-left: 0; border-right: 0;
  background: #fff; font-size: 14px; font-weight: 700; outline: 0;
}

.sku-list { display: flex; flex-wrap: wrap; gap: 7px; }
.sku {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sku:hover { border-color: var(--line-strong); }
.sku.is-primary {
  border-color: rgba(18,168,154,.55);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}
.sku .badge-money { font-size: 10px; color: var(--amber); font-weight: 700; }
.optional-card {
  width: 100%; padding: 9px 12px; text-align: left;
  border: 1px dashed var(--line-strong); border-radius: 11px;
  background: var(--surface-2); color: var(--muted); font-size: 12px; cursor: pointer;
}

.pay-box { margin: 16px 0 4px; padding-top: 15px; border-top: 1px solid var(--line); }
.pay-box > label { display: block; margin-bottom: 9px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pay-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pay-list .pay {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: .15s;
}
.pay-list .pay img { width: 20px; height: 20px; object-fit: contain; }
.pay-list .pay:hover { border-color: rgba(18,168,154,.5); background: var(--accent-soft); color: var(--accent-strong); }
.pay-list .pay.is-active { border-color: rgba(18,168,154,.6); background: var(--accent-soft); color: var(--accent-strong); }

.buy-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0 12px; margin-top: 6px;
  border-top: 1px dashed var(--line);
}
.buy-total span { font-size: 12px; color: var(--muted); }
.buy-total strong { font-size: 24px; font-weight: 900; color: var(--accent-strong); letter-spacing: -.03em; }
.buy-submit {
  width: 100%; height: 48px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff; font-size: 15px; font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(18, 168, 154, .26);
  transition: .16s;
}
.buy-submit:hover { filter: brightness(1.04); }
.buy-submit:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.buy-note { margin: 10px 0 0; text-align: center; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.captcha-row { display: flex; gap: 8px; }
.captcha-row .input { flex: 1; }
.captcha-row .captcha-img { height: 42px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); }

/* ---------- query page ---------- */
.query-wrap { max-width: 860px; margin: 0 auto; }
.query-card { padding: 26px; }
.query-card h1 { margin: 5px 0 6px; font-size: 26px; font-weight: 850; letter-spacing: -.03em; }
.query-card p.sub { margin: 0 0 20px; color: var(--muted); font-size: 12.5px; }
.query-form { display: flex; gap: 9px; }
.query-form .input { height: 46px; }
.query-form button { height: 46px; padding: 0 22px; flex: 0 0 auto; }
.order-results { margin-top: 16px; }
.order-list { display: grid; gap: 12px; }
.order-item {
  border: 1px solid var(--line); border-radius: 15px; background: var(--surface);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.order-item-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-size: 12px;
}
.order-item-head .ono { font-weight: 800; letter-spacing: -.01em; }
.order-item-body { padding: 15px 16px; display: grid; gap: 9px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.order-line span { color: var(--muted); }
.order-line b { font-weight: 700; text-align: right; word-break: break-all; }
.order-secret {
  margin-top: 4px; padding: 11px 12px;
  border: 1px dashed rgba(18,168,154,.45); border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; white-space: pre-wrap; word-break: break-all;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer-inner {
  width: min(1380px, 92vw);
  margin: 0 auto;
  padding: 26px 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11.5px;
}
.site-footer-inner nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer-inner a:hover { color: var(--accent-strong); }

/* ---------- toast ---------- */
.cloud-toast-host {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 200; display: grid; gap: 8px; pointer-events: none;
}
.cloud-toast {
  padding: 10px 16px; border-radius: 11px;
  background: rgba(23, 32, 51, .94); color: #fff;
  font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow);
  animation: cloudToastIn .18s ease-out;
}
@keyframes cloudToastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .item-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
  .header-search { display: none; }
  .site-nav { display: none; }
  .item-layout { grid-template-columns: minmax(0, 1fr); }
  .buy-card { position: static; }
}
@media (max-width: 760px) {
  .site-main { width: 100%; padding: 16px 12px 46px; }
  .site-header-inner { width: 100%; padding: 0 12px; gap: 10px; }
  .home-heading { display: grid; gap: 14px; margin-bottom: 15px; }
  .home-heading h1 { font-size: 24px; }
  .home-heading p { font-size: 11.5px; }
  .home-heading-actions { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .search-field { width: 100%; height: 42px; }
  .share-store-button { height: 42px; padding: 0 13px; }
  .category-panel { display: none; }
  .mobile-category-button { display: flex; }
  .catalog-layout { display: block; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-card { min-height: 188px; padding: 12px; border-radius: 13px; }
  .product-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 14px; }
  .product-card h3 { min-height: 36px; margin-top: 10px; font-size: 12.5px; }
  .product-card > p { min-height: 28px; font-size: 9.5px; }
  .product-price strong { font-size: 15.5px; }
  .product-stock-summary { min-width: 0; }
  .product-stock-summary .product-sold { font-size: 7.5px; }
  .item-card { padding: 16px; }
  .item-head .product-icon { width: 52px; height: 52px; border-radius: 14px; font-size: 18px; }
  .item-price-row .amount { font-size: 28px; }
  .buy-card { padding: 16px; }
  .query-card { padding: 18px; }
  .query-form { flex-direction: column; }
  .query-form button { width: 100%; }
  .site-footer-inner { padding: 20px 0 26px; font-size: 11px; }
  .user-menu-trigger .u-meta { display: none; }
  .site-brand span.brand-text { font-size: 14px; }
}
@media (prefers-color-scheme: dark) {
  /* 站点默认浅色，暗色仅微调，不做整体翻转 */
}

/* ---------- abacus price bridge (server renders .price inner) ---------- */
.item-price-row .price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 33px;
  font-weight: 900;
  color: var(--accent-strong);
  letter-spacing: -.04em;
  line-height: 1.1;
}
.item-price-row .price .unit { font-size: 16px; font-weight: 800; }
.item-price-row .price del, .item-price-row .price .old { font-size: 13px; color: var(--muted); font-weight: 500; text-decoration: line-through; }
.item-price-row .price .icon-spin { width: 18px; height: 18px; }

/* ---------- trust strip & steps ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.trust-icon {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 16px;
}
.trust-item b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.trust-item em { font-style: normal; font-size: 11px; color: var(--muted); }

.steps-card {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.steps-card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 800; }
.steps-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.steps-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: #3d4a5f; line-height: 1.6;
}
.steps-list li:before {
  counter-increment: st;
  content: counter(st);
  flex: 0 0 auto;
  width: 20px; height: 20px; margin-top: 1px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px; font-weight: 800;
}
@media (max-width: 760px) {
  .trust-strip { grid-template-columns: 1fr; gap: 8px; }
  .trust-item { padding: 12px 14px; }
}

/* ============================================================
   v2 · 参考站对齐（头部单行胶囊导航 + 三列卡片 + 侧栏权益卡）
   ============================================================ */
:root { --header-h: 74px; --mint: #d8f1ea; }

.site-header-inner { gap: 14px; }
.site-brand { flex: 0 0 auto; margin-right: 2px; }
.brand-meta { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.site-brand .brand-text { font-size: 15.5px; font-weight: 850; letter-spacing: -.02em; }
.site-brand small { font-size: 8px; letter-spacing: .16em; color: #97a3b4; font-weight: 700; }

.nav-pills {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-pills::-webkit-scrollbar { display: none; }
.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #46536a;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background .18s, color .18s;
}
.nav-chip .icon { width: 14px; height: 14px; opacity: .9; }
.nav-chip:hover { background: var(--surface-2); color: var(--text); }
.nav-chip.is-active {
  background: rgba(18, 168, 154, .11);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(18, 168, 154, .2);
}
.chip-amber { background: rgba(214, 151, 38, .14); color: #a9750f; }
.chip-rose { background: rgba(216, 74, 90, .11); color: #bf4257; }
.chip-orange { background: rgba(238, 138, 48, .14); color: #bd6712; }
.chip-teal { background: rgba(18, 168, 154, .12); color: var(--accent-strong); }
.chip-amber:hover, .chip-rose:hover, .chip-orange:hover, .chip-teal:hover { filter: brightness(.97); }

.site-header-right { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.hdr-round {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: #5b687c;
  box-shadow: 0 4px 14px rgba(31, 51, 79, .05);
}
.hdr-round .icon { width: 16px; height: 16px; }
.hdr-round:hover { color: var(--accent-strong); border-color: rgba(18, 168, 154, .36); }
.hdr-round.has-dot:after {
  content: "";
  position: absolute;
  top: 7px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f0644f;
  box-shadow: 0 0 0 2px #fff;
}
.hdr-login {
  height: 36px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #18b6a6, #0d8c81);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 168, 154, .26);
}
.hdr-login:hover { color: #fff; filter: brightness(1.04); }

.user-menu-trigger { width: 36px; height: 36px; padding: 0; overflow: hidden; border-radius: 11px; border: 1px solid var(--line); background: #fff; }
.user-menu-trigger img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.user-menu-trigger .icon, .user-menu-trigger .u-meta { display: none; }
.user-menu-list { top: calc(100% + 9px); }
.um-head { padding: 9px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.um-head b { display: block; font-size: 12.5px; font-weight: 800; }
.um-head span { font-size: 11px; color: var(--accent-strong); font-weight: 700; }

/* ---------- hero ---------- */
.home-heading { align-items: flex-end; margin-bottom: 18px; }
.home-heading h1 { font-size: clamp(28px, 3.2vw, 42px); }
.home-heading p { font-size: 13px; }

/* ---------- sidebar ---------- */
.catalog-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 18px; }
.sidebar-col {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 12px;
  align-self: start;
}
.sidebar-col .category-panel { position: static; top: auto; }
.category-panel > header { padding: 15px 16px 12px; }
.category-panel h2 { font-size: 16px; }
.category-list { gap: 2px; padding: 8px; }
.category-item { padding: 8px 10px; font-size: 12.5px; gap: 9px; }
.cate-dot {
  width: 22px; height: 22px;
  border-radius: 7px;
  display: grid; place-items: center;
  overflow: hidden;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  color: #6b7788;
  flex: 0 0 auto;
}
.cate-dot img { width: 100%; height: 100%; object-fit: contain; }
.cate-dot img.brand-img.is-padded { padding: 2px; }
.cate-dot-all { background: var(--amber-soft); color: #b1801a; font-size: 11px; }
.category-item .cate-count { margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-weight: 700; }

.benefit-mini {
  display: block;
  padding: 15px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0e3b38 0%, #10564e 58%, #127a6d 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(11, 60, 54, .2);
  position: relative;
  overflow: hidden;
}
.benefit-mini:after {
  content: "";
  position: absolute;
  right: -26px; bottom: -34px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.benefit-mini .bm-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; }
.benefit-mini .bm-ico {
  width: 19px; height: 19px;
  border-radius: 6px;
  background: #fff;
  color: #0d4f47;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
  flex: 0 0 auto;
}
.benefit-mini .bm-line { display: block; margin: 10px 0 4px; font-size: 12px; font-weight: 700; color: #e7fbf6; }
.benefit-mini .bm-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; color: rgba(255, 255, 255, .66); }
.benefit-mini .bm-sub i { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .82); }
.benefit-mini:hover { color: #fff; filter: brightness(1.05); }

/* ---------- product grid & cards ---------- */
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card {
  min-height: 0;
  padding: 15px 16px 13px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(31, 51, 79, .055);
}
.product-card:before { display: none; }
.pc-ribbon {
  position: absolute;
  top: 0; right: 0;
  padding: 5px 10px 6px;
  border-bottom-left-radius: 12px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0d6c60;
  background: linear-gradient(135deg, #ddf5ef, #b6e7dc);
}
.pc-ribbon.is-hot { color: #0d6c60; background: linear-gradient(135deg, #d5f2eb, #a5e2d6); }
.pc-ribbon.is-limited { color: #a45f0e; background: linear-gradient(135deg, #fdeedb, #f7d9ae); }
.pc-ribbon.is-sold { color: #93353f; background: linear-gradient(135deg, #fbe6e8, #f4c9cf); }
.pc-ribbon.is-auto { color: #2c6b8f; background: linear-gradient(135deg, #e6f2f9, #c9e3f2); }

.pc-logo {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  flex: 0 0 auto;
}
.pc-logo img { width: 100%; height: 100%; object-fit: contain; }
.pc-logo img.is-padded { padding: 8px; }
.pc-logo .logo-letter { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 17px; }

.product-card h3 {
  min-height: 40px;
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 780;
  letter-spacing: -.01em;
  padding-right: 6px;
}
.pc-market { display: block; color: #8c97a8; font-size: 10.5px; margin-bottom: 9px; }
.pc-market s { text-decoration: line-through; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.pc-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: #5f6b7d;
  font-size: 9.5px;
  font-weight: 700;
}
.pc-tag.ok { background: var(--accent-soft); color: var(--accent-strong); }

.pc-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.pc-price { color: var(--text); font-size: 20px; font-weight: 850; letter-spacing: -.035em; line-height: 1; }
.pc-price em { font-style: normal; font-size: 11.5px; font-weight: 700; margin-right: 1px; }
.pc-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.25; }
.pc-stats b { font-size: 8.5px; font-weight: 700; color: #9aa6b6; }
.pc-stats i { font-style: normal; font-size: 8.5px; font-weight: 700; color: var(--accent-strong); }
.pc-stats i.is-out { color: var(--red); }
.sold-out .pc-price { color: #8b95a4; }

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .nav-pills { justify-content: flex-start; }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .site-header-inner { gap: 8px; width: min(1380px, 94vw); }
  .nav-pills { display: none; }
  .site-brand small { display: none; }
  .hdr-round:first-child { display: none; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar-col { position: static; }
  .sidebar-col .category-panel { display: none; }
  .benefit-mini { display: none; }
  .product-grid { gap: 10px; }
  .product-card { padding: 12px 12px 11px; }
  .pc-logo { width: 40px; height: 40px; margin-bottom: 9px; }
  .product-card h3 { font-size: 12.5px; min-height: 36px; }
  .pc-price { font-size: 17px; }
  .pc-tag { font-size: 9px; }
}

/* ============================================================
   使用教程 · 参考站同款（大标题卡 + 2×2 编号卡）
   ============================================================ */
.guide-main { max-width: 1160px; }
.guide-hero {
  padding: 42px 46px 46px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f7f8ff 0%, #f2f6ff 45%, #eef7f6 100%);
  border: 1px solid rgba(20, 39, 66, .07);
  margin-bottom: 18px;
}
.guide-hero .eyebrow { color: #6b7ce0; letter-spacing: .2em; }
.guide-hero h1 { margin: 12px 0 14px; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.045em; font-weight: 850; line-height: 1.05; }
.guide-hero p { margin: 0; color: #6d788c; font-size: 13.5px; }

.guide-panel {
  padding: 34px 40px 40px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(20, 39, 66, .07);
  box-shadow: 0 18px 45px rgba(31, 51, 79, .07);
}
.guide-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.guide-panel-head .eyebrow { color: #6b7ce0; letter-spacing: .2em; }
.guide-panel-head h2 { margin: 10px 0 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 850; letter-spacing: -.03em; }
.guide-hint { margin: 0; max-width: 430px; color: #8b96a8; font-size: 11.5px; line-height: 1.6; text-align: right; }

.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.guide-card:hover { border-color: rgba(107, 124, 224, .38); box-shadow: 0 12px 30px rgba(60, 80, 160, .1); transform: translateY(-2px); color: inherit; }
.guide-no {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef0ff, #e6ebff);
  color: #6b7ce0;
  font-size: 13px;
  font-weight: 850;
}
.guide-body { min-width: 0; flex: 1 1 auto; }
.guide-tag { display: inline-block; font-size: 10px; font-weight: 800; color: #3fae9c; letter-spacing: .04em; margin-bottom: 5px; }
.guide-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.4; }
.guide-card p {
  margin: 0; color: #8b96a8; font-size: 11.5px; line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-arrow { align-self: center; color: #a9b3c2; font-size: 17px; flex: 0 0 auto; }

/* 教程详情 */
.guide-detail { padding: 34px 44px 46px; border-radius: 22px; background: #fff; border: 1px solid rgba(20, 39, 66, .07); box-shadow: 0 18px 45px rgba(31, 51, 79, .07); }
.guide-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #6b7ce0; margin-bottom: 18px; }
.guide-detail h1 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 850; letter-spacing: -.03em; }
.guide-detail .guide-meta { color: #9aa6b8; font-size: 11px; margin-bottom: 22px; }
.guide-detail .promo-rich { font-size: 13.5px; line-height: 1.85; color: #3c4757; }
.guide-detail .promo-rich h1, .guide-detail .promo-rich h2, .guide-detail .promo-rich h3 { font-size: 16px; margin: 24px 0 10px; font-weight: 800; }
.guide-detail .promo-rich p { margin: 0 0 12px; }
.guide-detail .promo-rich img { border-radius: 12px; height: auto; max-width: 100%; }

@media (max-width: 860px) {
  .guide-hero { padding: 28px 24px 30px; border-radius: 18px; }
  .guide-panel { padding: 22px 18px 26px; border-radius: 18px; }
  .guide-panel-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .guide-hint { text-align: left; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .guide-card { padding: 16px; }
  .guide-detail { padding: 24px 20px 30px; border-radius: 18px; }
}

.guide-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f7ff, #f0faf7);
  border: 1px solid rgba(107, 124, 224, .16);
}
.guide-cta b { font-size: 13px; font-weight: 800; }
.guide-cta span { flex: 1 1 220px; color: #7c8799; font-size: 11.5px; }
.guide-cta .btn-primary { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 10px; font-size: 12px; font-weight: 800; background: linear-gradient(135deg, #17b3a4, #0e8f84); color: #fff; box-shadow: 0 8px 18px rgba(18, 168, 154, .24); }

/* ============================================================
   v3 · 卡片细节与参考站对齐（品牌标裸放、角落浅色角标、悬浮客服）
   ============================================================ */
.product-card { padding: 18px 18px 14px; border-radius: 18px; }
.pc-logo {
  width: 52px;
  height: 52px;
  margin-bottom: 15px;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}
.pc-logo img { width: 100%; height: 100%; object-fit: contain; }
.pc-logo img.is-padded { padding: 0; }
.pc-logo .logo-letter { border-radius: 12px; font-size: 18px; }
.pc-ribbon {
  top: 0; right: 0;
  padding: 6px 12px 7px;
  border-radius: 0 16px 0 14px;
  font-size: 9.5px;
  background: linear-gradient(135deg, rgba(214, 246, 238, .35), #d6f2ea 78%);
  color: #0f7b6d;
}
.pc-ribbon.is-hot { background: linear-gradient(135deg, rgba(214, 246, 238, .35), #cdeee4 78%); color: #0f7b6d; }
.pc-ribbon.is-limited { background: linear-gradient(135deg, rgba(253, 238, 219, .3), #f9dfb8 78%); color: #a45f0e; }
.pc-ribbon.is-sold { background: linear-gradient(135deg, rgba(251, 230, 232, .35), #f4ccd2 78%); color: #93353f; }
.product-card:after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 118px; height: 118px;
  border-radius: 0 18px 0 999px;
  background: radial-gradient(circle at 100% 0%, rgba(18, 168, 154, .1), rgba(18, 168, 154, 0) 72%);
  pointer-events: none;
}
.pc-market { font-size: 10.5px; color: #8e9aab; margin-bottom: 10px; }
.pc-market s { text-decoration: none; }
.product-card h3 { font-size: 14.5px; font-weight: 780; margin-bottom: 12px; }
.pc-tags { margin-bottom: 16px; }
.pc-tag { padding: 2.5px 7px; font-size: 9.5px; }
.pc-price { font-size: 21px; font-weight: 850; }
.pc-price em { font-size: 12px; }
.pc-foot { padding-top: 12px; }
.pc-stats b, .pc-stats i { font-size: 8.5px; }

/* 悬浮客服 / 回到顶部 */
.float-dock {
  position: fixed;
  right: 18px;
  bottom: 26px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.float-dock a, .float-dock button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: #5b687c;
  box-shadow: 0 10px 26px rgba(31, 51, 79, .14);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  padding: 0;
}
.float-dock a:hover, .float-dock button:hover { color: var(--accent-strong); border-color: rgba(18, 168, 154, .35); }
.float-dock .fd-service { background: linear-gradient(135deg, #17b3a4, #0d8c81); color: #fff; border: 0; }
.float-dock .fd-service:hover { color: #fff; filter: brightness(1.05); }
.float-dock .fd-top { opacity: 0; visibility: hidden; transition: .2s; }
.float-dock .fd-top.show { opacity: 1; visibility: visible; }
@media (max-width: 860px) {
  .float-dock { right: 12px; bottom: 16px; }
  .float-dock a, .float-dock button { width: 40px; height: 40px; }
  .product-card { padding: 14px 13px 12px; }
  .pc-logo { width: 42px; height: 42px; margin-bottom: 11px; }
  .pc-price { font-size: 18px; }
}
.hdr-round-green {
  background: linear-gradient(135deg, #17b3a4, #0d8c81);
  border: 0;
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 168, 154, .26);
}
.hdr-round-green:hover { color: #fff; filter: brightness(1.05); }
.float-dock .fd-service span { font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.guide-detail .guide-back { display: inline-flex; width: -moz-fit-content; width: fit-content; margin-bottom: 14px; }
.guide-detail .guide-tag { display: block; margin-bottom: 8px; }

/* ============================================================
   v4 · 大气版（首页留白 / 卡片层级 / 详情页内容区）
   ============================================================ */

/* ---- 顶部导航收敛：彩色胶囊改统一浅色，hover 才落色 ---- */
.nav-chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 650;
  color: #5d6a7d;
  background: transparent;
  border: 1px solid transparent;
}
.nav-chip .icon { width: 14px; height: 14px; opacity: .78; }
.nav-chip:hover { background: #fff; border-color: rgba(20, 39, 66, .1); color: var(--text); }
.nav-chip.chip-amber,
.nav-chip.chip-rose,
.nav-chip.chip-orange,
.nav-chip.chip-teal { background: transparent; color: #5d6a7d; }
.nav-chip.chip-teal { color: var(--accent-strong); font-weight: 800; }
.nav-chip.is-active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; }
.site-header-inner { height: 78px; gap: 16px; }
:root { --header-h: 78px; }

/* ---- 首页 hero：更大字号 / 更松留白 ---- */
.site-main { width: min(1340px, 94vw); padding: 40px 0 76px; }
.home-heading {
  align-items: flex-end;
  gap: 44px;
  margin-bottom: 34px;
}
.home-heading h1 {
  margin: 9px 0 12px;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 850;
}
.home-heading p {
  max-width: 690px;
  font-size: 14px;
  line-height: 1.72;
  color: #768293;
}
.eyebrow { font-size: 10px; letter-spacing: .22em; }
.search-field { width: min(340px, 32vw); height: 50px; border-radius: 14px; padding: 0 16px; }
.search-field input { font-size: 13.5px; }
.share-store-button { height: 50px; border-radius: 14px; padding: 0 18px; font-size: 13.5px; }

/* ---- 左栏分类：更舒展的行高 + 选中态侧边条 ---- */
.catalog-layout { grid-template-columns: 226px minmax(0, 1fr); gap: 24px; }
.category-panel {
  border-color: rgba(20, 39, 66, .07);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(31, 51, 79, .05);
}
.category-panel > header { padding: 20px 20px 16px; }
.category-panel h2 { font-size: 17px; margin-top: 5px; }
.category-list { padding: 8px 10px 12px; gap: 3px; }
.category-item { padding: 11px 12px; border-radius: 11px; font-size: 13px; gap: 11px; }
.category-item.is-active {
  background: linear-gradient(90deg, rgba(18, 168, 154, .13), rgba(18, 168, 154, .02));
  box-shadow: inset 3px 0 0 var(--accent);
}
.cate-dot { width: 26px; height: 26px; border-radius: 8px; }
.benefit-mini { padding: 18px 18px 16px; border-radius: 18px; }

/* ---- 商品墙：三列大卡 ---- */
.section-heading { margin-bottom: 18px; }
.section-heading h2 { font-size: 22px; letter-spacing: -.03em; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card {
  min-height: 274px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(20, 39, 66, .07);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(31, 51, 79, .045);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(31, 51, 79, .12); }
.pc-logo { width: 56px; height: 56px; margin-bottom: 18px; border-radius: 15px; }
.pc-ribbon { padding: 8px 15px 9px; font-size: 10px; border-radius: 0 19px 0 14px; }
.product-card h3 { min-height: 48px; margin-bottom: 11px; font-size: 15.5px; line-height: 1.5; font-weight: 800; }
.pc-market { font-size: 11px; margin-bottom: 13px; }
.pc-tags { gap: 6px; margin-bottom: 18px; }
.pc-tag { padding: 3px 9px; border-radius: 7px; font-size: 10px; }
.pc-foot { padding-top: 15px; }
.pc-price { font-size: 26px; }
.pc-price em { font-size: 13px; }
.pc-stats b, .pc-stats i { font-size: 9.5px; }
.skeleton-card { min-height: 274px; border-radius: 20px; }

/* ---- 底部保障条 ---- */
.trust-strip { gap: 18px; margin-top: 26px; }
.trust-item {
  padding: 20px 22px;
  border-radius: 18px;
  border-color: rgba(20, 39, 66, .07);
  box-shadow: 0 4px 16px rgba(31, 51, 79, .045);
}
.trust-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 17px; }
.trust-item b { font-size: 13.5px; }
.trust-item em { font-size: 11.5px; }

/* ============================================================
   v4 · 商品详情页
   ============================================================ */
.breadcrumb-bar { margin: 2px 0 18px; font-size: 12.5px; gap: 8px; }
.item-layout { grid-template-columns: minmax(0, 1fr) 372px; gap: 20px; }

.item-card {
  padding: 30px 32px 28px;
  border-color: rgba(20, 39, 66, .07);
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(31, 51, 79, .05);
}
.item-head { gap: 22px; }
.item-head .product-icon { width: 84px; height: 84px; border-radius: 22px; font-size: 26px; }
.item-head h1 { margin-bottom: 13px; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.26; letter-spacing: -.035em; }
.item-tag { padding: 5px 11px; border-radius: 8px; font-size: 11px; }
.item-price-row {
  margin: 22px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  gap: 12px;
}
.item-price-row .price { gap: 8px; }
.item-price-row .amount { font-size: 44px; letter-spacing: -.045em; }
.item-price-row .amount em { font-size: 20px; }
.item-price-row .orig { font-size: 13.5px; }
.item-price-row .save { font-size: 11px; padding: 4px 10px; border-radius: 999px; }
.item-desc { margin-top: 0; padding-top: 0; border-top: 0; font-size: 13.5px; line-height: 1.85; color: #48566b; }

/* 服务保障四格 */
.item-guarantee {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.gt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f7fbfa;
  border: 1px solid rgba(18, 168, 154, .12);
}
.gt-item .gt-ico {
  width: 32px; height: 32px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 2px 8px rgba(18, 168, 154, .12);
}
.gt-item .gt-ico .icon { width: 16px; height: 16px; }
.gt-item b { display: block; font-size: 12.5px; font-weight: 800; margin-bottom: 2px; }
.gt-item em { font-style: normal; font-size: 10.5px; color: #8b97a8; }

/* 详情面板 */
.item-panel {
  margin-top: 18px;
  padding: 28px 32px 26px;
  border: 1px solid rgba(20, 39, 66, .07);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(31, 51, 79, .05);
}
.item-panel > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.02em;
}
.item-panel > h2:before {
  content: "";
  width: 3px; height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #17b3a4, #0d8c81);
}
.item-panel .panel-body { color: #48566b; font-size: 13.5px; line-height: 1.9; word-break: break-word; }
.item-panel .panel-body img { border-radius: 14px; height: auto; }
.item-panel .panel-body p { margin: 0 0 12px; }
.item-panel .panel-body p:last-child { margin-bottom: 0; }

/* 购买须知 */
.notice-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.notice-list li {
  position: relative;
  padding-left: 24px;
  color: #48566b;
  font-size: 13px;
  line-height: 1.75;
}
.notice-list li:before {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(18, 168, 154, .1);
}

/* 常见问题 */
.faq-item { border-bottom: 1px solid var(--line); padding: 3px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after {
  content: "+";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--surface-2);
  color: #74808f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.faq-item[open] summary:after { content: "−"; background: var(--accent-soft); color: var(--accent-strong); }
.faq-item p { margin: 0 0 16px; padding: 0 2px; color: #6c7a8d; font-size: 12.5px; line-height: 1.85; }

/* 相关推荐 */
.related-block { margin-top: 30px; }
.related-block .related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.related-block .related-head h2 { margin: 0; font-size: 19px; font-weight: 850; letter-spacing: -.025em; }
.related-block .related-head span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* 右侧下单卡 */
.buy-card {
  padding: 26px 24px 22px;
  border-color: rgba(20, 39, 66, .07);
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(31, 51, 79, .05);
}
.buy-card > h2 {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.02em;
}
.buy-card .field label { font-size: 12px; }
.buy-card .input, .buy-card .select { height: 44px; border-radius: 12px; font-size: 13px; }
.steps-card {
  margin-top: 18px;
  padding: 20px 22px;
  border-color: rgba(20, 39, 66, .07);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(31, 51, 79, .045);
}
.steps-card h3 { font-size: 14.5px; }
.steps-list li { font-size: 12.5px; line-height: 1.7; }

/* ---- 移动端 ---- */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 214px minmax(0, 1fr); gap: 18px; }
  .item-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
}
@media (max-width: 900px) {
  .item-layout { grid-template-columns: minmax(0, 1fr); }
  .buy-card { position: static; top: auto; }
  .home-heading { gap: 20px; margin-bottom: 22px; }
  .home-heading h1 { font-size: 28px; }
  .home-heading p { font-size: 12px; }
  .item-guarantee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-main { padding: 18px 0 52px; }
  .home-heading { margin-bottom: 16px; }
  .home-heading h1 { font-size: 24px; }
  .product-grid { gap: 12px; }
  .product-card { min-height: 0; padding: 13px 13px 11px; border-radius: 15px; }
  .pc-logo { width: 42px; height: 42px; margin-bottom: 11px; border-radius: 12px; }
  .product-card h3 { min-height: 38px; margin-bottom: 8px; font-size: 13px; line-height: 1.45; }
  .pc-market { font-size: 10px; margin-bottom: 9px; }
  .pc-tags { margin-bottom: 11px; }
  .pc-tag { font-size: 9px; padding: 2px 6px; }
  .pc-price { font-size: 19px; }
  .pc-foot { padding-top: 10px; }
  .item-card { padding: 18px 16px 16px; border-radius: 18px; }
  .item-head { gap: 14px; }
  .item-head .product-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 18px; }
  .item-head h1 { font-size: 19px; margin-bottom: 9px; }
  .item-price-row { margin-top: 16px; padding-top: 16px; }
  .item-price-row .amount { font-size: 32px; }
  .item-panel { padding: 20px 16px 18px; border-radius: 18px; margin-top: 14px; }
  .item-panel > h2 { font-size: 15.5px; margin-bottom: 15px; }
  .buy-card { padding: 20px 16px 16px; border-radius: 18px; }
  .related-grid { gap: 12px; }
  .item-guarantee { gap: 9px; margin-top: 18px; padding-top: 17px; }
  .gt-item { padding: 11px 12px; }
}

.item-main { min-width: 0; }

/* ---- v4 补丁：结账区去掉原主题的紫蓝光晕卡 ---- */
.cash-pay {
  position: static;
  padding: 15px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.cash-pay .form-label { color: var(--muted); }
.pay-list { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.pay-list .pay { width: 100%; justify-content: center; min-height: 46px; }

/* ---- v4 补丁 2：卡片内部上下分组 + 顶部导航更舒展 ---- */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 258px;
}
.product-card h3 { margin-bottom: auto; }
.pc-market { margin-top: 14px; }
.pc-foot { margin-top: 0; }
.nav-pills { gap: 3px; }
.nav-chip { height: 34px; padding: 0 13px; font-size: 13px; gap: 6px; }
.nav-chip .icon { width: 15px; height: 15px; }
.site-brand-logo { width: 40px; height: 40px; }
.site-brand .brand-text { font-size: 16.5px; }
@media (max-width: 760px) {
  .product-card { min-height: 0; }
  .pc-market { margin-top: 9px; }
}

/* ---- v4 补丁 3：详情页价格行两侧配平 + 支付按钮精修 ---- */
.item-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.item-price-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.item-price-meta b { color: #172033; font-weight: 800; font-size: 14px; margin-left: 2px; }
.item-price-meta i { width: 1px; height: 13px; background: var(--line); display: block; }
.pay-list .pay {
  box-shadow: none;
  border: 1px solid rgba(20, 39, 66, .12);
  background: #fff;
  min-height: 46px;
}
.pay-list .pay:hover { box-shadow: 0 6px 18px rgba(18, 168, 154, .14); }
@media (max-width: 760px) {
  .item-price-meta { padding-bottom: 2px; font-size: 12px; gap: 9px; }
  .item-price-meta b { font-size: 13px; }
}

/* ---- v4 补丁 4：支付方式做成可选卡 ---- */
.pay-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pay-list .pay {
  justify-content: flex-start;
  background: #f6fbf9;
  border: 1.5px solid rgba(18, 168, 154, .38);
  border-radius: 12px;
  min-height: 50px;
  padding: 12px 15px;
  font-size: 13.5px;
  color: #123a36;
}
.pay-list .pay img { width: 22px; height: 22px; }
.pay-list .pay:hover { background: #ecf8f5; border-color: rgba(18, 168, 154, .62); }
.pay-list .pay.is-active { background: #e7f7f3; border-color: var(--accent); box-shadow: 0 8px 20px rgba(18, 168, 154, .16); }
.pay-box > label { font-size: 12px; letter-spacing: .01em; color: #5b6b7e; margin-bottom: 10px; }

/* ---- v4 补丁 5：压过原主题的结账支付区规则（特异性对齐） ---- */
.cash-pay .pay-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 0;
  border-top: 0;
}
.cash-pay .pay-list .pay {
  flex: 1 1 150px;
  justify-content: center;
  background: #f6fbf9;
  border: 1.5px solid rgba(18, 168, 154, .38);
  border-radius: 12px;
  min-height: 50px;
  padding: 12px 15px;
  font-size: 13.5px;
  font-weight: 700;
  color: #123a36;
  box-shadow: none;
}
.cash-pay .pay-list .pay:hover {
  background: #ecf8f5;
  border-color: rgba(18, 168, 154, .62);
}
.cash-pay .pay-list .pay.is-active {
  background: #e7f7f3;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(18, 168, 154, .16);
}

/* ============================================================
   v5 · 移动端顶部入口条
   （原来 ≤860px 把整排胶囊导航 display:none，手机上进不去
     成为代理 / 推广领佣金 / 使用教程 / 充值优惠 / 公告 等页面）
   ============================================================ */
@media (max-width: 860px) {
  :root { --header-h: 106px; }
  .site-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 0 0;
    row-gap: 0;
    align-items: center;
  }
  .site-brand { order: 1; flex: 1 1 auto; min-width: 0; }
  .site-header-right { order: 2; gap: 6px; }
  .site-header-right .hdr-round { width: 34px; height: 34px; }
  .nav-pills {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0 2px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .nav-pills::after { content: ''; flex: 0 0 4px; }
  .nav-chip {
    padding: 7px 11px;
    font-size: 12.5px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(16, 36, 66, .05);
    scroll-snap-align: start;
  }
  .nav-chip .icon { width: 13px; height: 13px; }
  .nav-chip.is-active, .nav-chip.chip-teal { border-color: rgba(18, 168, 154, .5); }
}

@media (max-width: 400px) {
  .nav-chip { padding: 6px 9px; font-size: 12px; }
}
