/* ==========================================================================
   灵汇充 · 商城前端样式
   ========================================================================== */

:root {
  color-scheme: light;
  --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);
  --header: rgba(255, 255, 255, .9);
  --site-header-height: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--site-header-height);
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  transition: background .2s, color .2s;
}

body[data-page]:not(.app-ready) { visibility: hidden; }
body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(18, 168, 154, .22); }

.eyebrow,
.eyebrow-like {
  display: block;
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.53px;
  line-height: 1.55;
}

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--site-header-height);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 max(24px, 4vw);
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 9px 22px rgba(18, 168, 154, .2);
  overflow: hidden;
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-copy { display: grid; gap: 1px; }
.brand strong {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: .64px;
}
.brand small {
  color: var(--muted);
  font-size: 8px;
  line-height: 12.4px;
  letter-spacing: 1.44px;
}
.mobile-product-back { display: none; }
body[data-page="product"] .brand-tagline { display: none; }
body[data-page="product"] .mobile-product-back { display: inline; color: var(--muted); font-size: 7px; letter-spacing: .2px; cursor: pointer; }

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.desktop-nav > a,
.desktop-nav > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  white-space: nowrap;
  transition: background .18s, color .18s;
}

.desktop-nav > a:hover,
.desktop-nav > button:hover { background: var(--surface-2); color: var(--text); }

.desktop-nav svg { width: 16px; height: 16px; flex: none; }
.desktop-nav img { width: 16px; height: 16px; object-fit: contain; flex: none; }

.desktop-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav-promo {
  background-image: linear-gradient(135deg, #fff0ca, #ffe0ed);
  color: #b64a28 !important;
  font-weight: 850;
}
.nav-promo:hover { background-image: linear-gradient(135deg, #ffe9b1, #ffd3e4) !important; }
.nav-agent { color: #b87513 !important; font-weight: 800; }
.nav-agent:hover { color: #96600c !important; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  transition: background .18s, color .18s, border-color .18s;
}
.icon-button:hover { background: var(--surface-2); color: var(--text); }
.icon-button svg { width: 20px; height: 20px; }
.icon-button i {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.mobile-header-promo,
.growth-entry-mobile,
.mobile-announcement-entry,
.mobile-account-entry { display: none; }

/* 滚动通知条 */
.site-ticker {
  position: fixed;
  top: var(--site-header-height);
  left: 0;
  right: 0;
  z-index: 39;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 max(24px, 4vw);
  border-bottom: 1px solid var(--line);
  background: #fffdf4;
  color: #8a6406;
  font-size: 11px;
}
.site-ticker a { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.site-ticker-label {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff2c9;
  font-size: 9px;
  font-weight: 800;
}
.site-ticker-viewport { overflow: hidden; min-width: 0; flex: 1; white-space: nowrap; }
.site-ticker-track { display: inline-flex; gap: 60px; animation: ticker 22s linear infinite; }
.site-ticker-close { color: inherit; font-size: 16px; padding: 0 4px; opacity: .6; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   页面骨架
   -------------------------------------------------------------------------- */
.site-main {
  width: min(1380px, 92vw);
  min-height: calc(100vh - 178px);
  margin: 0 auto;
  padding: 34px 0 60px;
}

.site-footer {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 24px max(24px, 4vw);
  padding-right: max(80px, 4vw);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.site-footer-copyright { font-size: 12px; line-height: 1.6; }
.site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 11px; }
.site-footer nav a,
.site-footer nav button { color: var(--muted); transition: color .18s; }
.site-footer nav a:hover,
.site-footer nav button:hover { color: var(--accent-strong); }

/* --------------------------------------------------------------------------
   通用按钮 / 表单
   -------------------------------------------------------------------------- */
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.primary-button {
  background: linear-gradient(135deg, var(--accent), #67dfd4);
  color: #062c29;
  box-shadow: 0 10px 25px rgba(18, 168, 154, .18);
}
.primary-button:hover { filter: brightness(1.03); box-shadow: 0 14px 30px rgba(18, 168, 154, .24); }
.primary-button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.primary-button.wide { width: 100%; }

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.secondary-button:hover { border-color: rgba(18, 168, 154, .35); }
.primary-button svg, .secondary-button svg, .ghost-button svg { width: 15px; height: 15px; flex: none; }

.ghost-button { color: var(--accent-strong); background: var(--accent-soft); }
.ghost-button:hover { background: rgba(18, 168, 154, .16); }

.text-input,
.select-input,
.textarea-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  outline: 0;
  transition: border-color .18s, box-shadow .18s;
}
.text-input::placeholder,
.textarea-input::placeholder { color: #9aa4b3; }
.text-input:focus,
.select-input:focus,
.textarea-input:focus {
  border-color: rgba(18, 168, 154, .55);
  box-shadow: 0 0 0 3px rgba(18, 168, 154, .12);
}
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   移动端底部导航
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  left: 7px;
  right: 7px;
  bottom: max(7px, env(safe-area-inset-bottom));
  z-index: 50;
  display: none;
  grid-template-columns: repeat(6, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--header);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mobile-nav a {
  display: grid;
  place-items: center;
  gap: 1px;
  min-width: 0;
  padding: 5px 1px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 7px;
  white-space: nowrap;
}
.mobile-nav a svg { width: 18px; height: 18px; }
.mobile-nav a img { width: 18px; height: 18px; object-fit: contain; }
.mobile-nav a.active { background: var(--accent-soft); color: var(--accent-strong); }

/* --------------------------------------------------------------------------
   悬浮入口（客服）
   -------------------------------------------------------------------------- */
.customer-service-launcher {
  position: fixed;
  right: max(14px, 2vw);
  z-index: 45;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.customer-service-launcher {
  bottom: 30px;
  width: 52px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  transition: transform .18s, color .18s;
}
.customer-service-launcher:hover { transform: translateY(-2px); color: var(--accent-strong); }
.customer-service-launcher svg { width: 24px; height: 24px; }
.customer-service-launcher span { writing-mode: vertical-rl; letter-spacing: 2px; }
.customer-service-unread {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* --------------------------------------------------------------------------
   客服窗口
   -------------------------------------------------------------------------- */
.cs-window {
  position: fixed;
  right: max(14px, 2vw);
  bottom: 90px;
  z-index: 70;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 520px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.cs-window.open { opacity: 1; transform: none; pointer-events: auto; }
.cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cs-head b { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.cs-head svg { width: 18px; height: 18px; color: var(--accent-strong); }
.cs-head small { color: var(--muted); font-size: 9px; }
.cs-close { color: var(--muted); font-size: 18px; line-height: 1; padding: 4px; }
.cs-body { flex: 1; overflow: auto; padding: 14px; background: var(--bg); display: grid; align-content: start; gap: 10px; }
.cs-msg { max-width: 82%; padding: 9px 11px; border-radius: 12px; font-size: 11px; line-height: 1.65; }
.cs-msg.bot { background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; }
.cs-msg.me { justify-self: end; background: var(--accent); color: #062c29; border-top-right-radius: 4px; }
.cs-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: var(--bg); }
.cs-quick button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
}
.cs-form { display: flex; gap: 7px; padding: 10px 12px; border-top: 1px solid var(--line); }
.cs-form input { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; outline: 0; }
.cs-form button { padding: 0 13px; border-radius: 10px; background: var(--accent); color: #062c29; font-size: 11px; font-weight: 750; }

/* --------------------------------------------------------------------------
   模态框
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 21, 38, .46);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(84vh, 820px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: modalIn .22s ease both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
}
.modal-head h2 { font-size: 19px; line-height: 1.4; }
.modal-head p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.modal-x {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}
.modal-body { padding: 0 22px 20px; overflow: auto; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 56px 20px;
  color: var(--muted);
  text-align: center;
}
.empty-state svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 4px; }
.empty-state b { color: var(--text); font-size: 14px; }
.empty-state span { font-size: 11px; }

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(23, 32, 51, .92);
  color: #fff;
  font-size: 11px;
  box-shadow: var(--shadow);
  animation: toastIn .2s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   响应式：移动端
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .desktop-nav > a,
  .desktop-nav > button { padding: 9px 7px; font-size: 11px; }
}

@media (max-width: 980px) {
  .desktop-nav > a .nav-text-optional { display: none; }
}

@media (max-width: 760px) {
  :root { --site-header-height: 62px; }

  body { font-size: 13px; }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 13px;
  }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 9px 20px rgba(18, 168, 154, .18); }
  .brand strong { font-size: 13px; line-height: 1.55; letter-spacing: .3px; }
  .brand small { font-size: 7px; line-height: 10.8px; letter-spacing: .8px; }
  .desktop-nav { display: none; }

  .header-actions { gap: 5px; }

  .mobile-header-promo {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 37px;
    padding: 0 4px;
    border: 1px solid rgba(222, 125, 61, .25);
    border-radius: 11px;
    color: #b64a28;
    font-size: 7px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
  }
  .mobile-header-promo img { width: 19px; height: 19px; }

  .growth-entry-mobile {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: 63px;
    height: 37px;
    padding: 0 4px;
    border-radius: 11px;
    background-image: linear-gradient(135deg, #fff0ca, #ffe0ed);
    color: #b64a28;
    font-size: 7px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
  }
  .growth-entry-mobile img { width: 19px; height: 19px; flex: none; }
  .growth-entry-mobile span { display: inline; font-size: 7px; letter-spacing: -.2px; }
  .mobile-header-promo span { font-size: 7px; letter-spacing: -.2px; }

  .desktop-message-entry,
  .desktop-auth-entry,
  .desktop-recharge-offer,
  .desktop-agent-entry { display: none !important; }

  .mobile-announcement-entry {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 11px;
    background: var(--surface);
  }
  .mobile-announcement-entry img { width: 21px; height: 21px; }

  .mobile-account-entry {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 11px;
    background: var(--surface);
    color: var(--muted);
  }
  .mobile-account-entry svg { width: 17px; height: 17px; }

  .site-main {
    width: 100%;
    min-height: calc(100vh - 62px);
    padding: 13px 12px 84px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    text-align: center;
  }
  .site-footer nav {
    justify-content: center;
    gap: 0 12px;
    font-size: 12px;
    line-height: 2.4;
  }

  .mobile-nav { display: grid; }
  body[data-page="product"] .mobile-nav { display: none; }

  .customer-service-launcher {
    width: 46px;
    min-height: 46px;
    right: 12px;
    bottom: 90px;
    border-radius: 14px;
    padding: 0;
  }
  .customer-service-launcher svg { width: 22px; height: 22px; }
  .customer-service-launcher span { display: none; }

  .cs-window {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    height: min(78vh, 560px);
  }

  .modal { padding: 12px; }
  .modal-panel { max-height: 88vh; border-radius: 16px; }
  .modal-head { padding: 16px 16px 12px; }
  .modal-body { padding: 0 16px 16px; }

  .eyebrow { font-size: 8px; }
}

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */
.home-main { padding-top: 34px; }

.home-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}
.home-heading-copy { min-width: 0; }
.home-heading h1 {
  margin: 4px 0 5px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1.4px;
}
.home-heading p { max-width: 650px; color: var(--muted); font-size: 12px; }
.mobile-home-shortlink { display: none; }

.home-heading-actions { display: flex; align-items: center; gap: 9px; flex: none; }

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 380px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.search-field svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14px;
  line-height: 1.55;
}
.search-field input::placeholder { color: #9aa4b3; }

.share-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: border-color .18s, transform .18s;
}
.share-store-button:hover { border-color: rgba(18, 168, 154, .4); transform: translateY(-1px); }
.share-store-button svg { width: 17px; height: 17px; }

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.category-panel {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.category-panel header { padding: 20px; }
.category-panel h2 { margin-top: 3px; font-size: 20px; line-height: 1.55; }

.category-list { display: grid; gap: 4px; padding: 10px; }
.category-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text);
  font-size: 12px;
  text-align: left;
  transition: background .18s, border-color .18s;
}
.category-item:hover { background: var(--surface-2); }
.category-item.active {
  border-color: rgba(18, 168, 154, .22);
  background: var(--accent-soft);
}
.category-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
}
.category-logo img { width: 22px; height: 22px; object-fit: contain; }
.category-logo svg { width: 18px; height: 18px; }
.category-logo.hot { background: var(--amber-soft); color: var(--amber); }
.category-logo.hot svg { fill: currentColor; stroke: none; }
.category-item b {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.55;
}
.category-item.active b { background: var(--surface); color: var(--accent-strong); }

.catalog-section { min-width: 0; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}
.section-heading h2 { margin-top: 2px; font-size: 20px; line-height: 1.55; }
#product-count { color: var(--muted); font-size: 11px; }

.mobile-category-button { display: none; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  min-width: 0;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  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);
}
.product-card.sold-out { opacity: .72; }

.product-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.product-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.product-icon img { width: 100%; height: 100%; object-fit: contain; }
.product-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #c68416;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
}
.product-badge:empty { display: none; }
.product-badge.tone-blue { background: #eaf4ff; color: #2769a8; }

.product-card h3 {
  position: relative;
  min-height: 48px;
  margin: 18px 0 3px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-subtitles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  margin-top: 5px;
}
.product-subtitle-tone-1,
.product-subtitle-tone-2 {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  white-space: nowrap;
}
.product-subtitle-tone-1 { background: var(--accent-soft); color: var(--accent-strong); }
.product-subtitle-tone-2 { background: #eaf4ff; color: #2769a8; }

.product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}
.product-price { display: flex; align-items: baseline; gap: 4px; }
.product-price small { color: var(--muted); font-size: 8px; line-height: 1.55; }
.product-price strong {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: -.4px;
  white-space: nowrap;
}
.product-stock-summary { display: grid; justify-items: end; gap: 1px; text-align: right; }
.product-sold,
.stock-text { color: var(--muted); font-size: 8px; line-height: 1.2; white-space: nowrap; }
.stock-text { color: var(--accent-strong); }

/* 抽奖卡片 */
.lottery-card {
  border-color: rgba(18, 168, 154, .22);
  background-image: linear-gradient(140deg, #fff 35%, #f0fbf8);
}
.lottery-card::before { background: rgba(18, 168, 154, .14); }
.lottery-icon { background: #e8f8f5; }
.lottery-icon img { width: 74%; height: 74%; }
.lottery-badge {
  background: #fff6db;
  border: 1px solid #f2e2a8;
  color: #8a6406;
}
.lottery-card-title { margin: 6px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.lottery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 11px;
}
.lottery-card-meta b { color: var(--text); }
.lottery-card-bottom { align-items: center; padding-top: 12px; }
.lottery-clock { display: grid; gap: 5px; }
.lottery-clock-label { color: var(--muted); font-size: 10px; line-height: 1.55; }
.lottery-clock strong {
  color: var(--accent-strong);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
}
.lottery-card-action {
  padding: 7px 9px;
  border-radius: 9px;
  background: #e6f7f2;
  color: #087d72;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
  white-space: nowrap;
}

/* 移动端分类抽屉 */
.category-drawer {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
}
.category-drawer.open { display: block; }
.category-drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 21, 38, .46);
  backdrop-filter: blur(3px);
}
.category-drawer-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: drawerIn .22s ease both;
}
@keyframes drawerIn { from { transform: translateY(16px); opacity: .6; } to { transform: none; opacity: 1; } }
.category-drawer-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 16px 10px;
}
.category-drawer-panel h2 { margin-top: 2px; font-size: 18px; }
.category-drawer-panel header button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}
.category-drawer-panel header svg { width: 16px; height: 16px; }
.category-drawer-panel .category-list { overflow: auto; padding: 6px 12px 16px; }

@media (max-width: 760px) {
  .home-main { padding-top: 13px; }
  .home-heading { display: block; margin-bottom: 9px; }
  .home-heading-copy { display: none; }
  .home-heading .mobile-home-shortlink {
    display: block;
    margin-bottom: 9px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.4px;
  }
  .mobile-home-shortlink em { color: var(--accent-strong); font-style: normal; }
  .home-heading-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }
  .search-field { width: auto; height: 40px; padding: 0 12px; gap: 8px; border-radius: 13px; }
  .search-field svg { width: 16px; height: 16px; }
  .search-field input { font-size: 13px; }
  .share-store-button { width: 96px; height: 40px; padding: 0 10px; gap: 5px; font-size: 9px; border-radius: 12px; }
  .share-store-button svg { width: 15px; height: 15px; }

  .catalog-layout { display: block; }
  .category-panel { display: none; }

  .mobile-category-button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    margin-bottom: 9px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-size: 13px;
    box-shadow: var(--shadow-soft);
  }
  .mobile-category-button svg { width: 17px; height: 17px; color: var(--muted); }
  .mobile-category-button svg:last-child { margin-left: auto; width: 15px; height: 15px; }

  .section-heading { margin-bottom: 9px; }
  .section-heading h2 { font-size: 18px; }
  #product-count { font-size: 10px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-card { min-height: 184px; padding: 11px; border-radius: 13px; gap: 0; }
  .product-card::before { right: -38px; top: -52px; width: 100px; height: 100px; }
  .product-icon { width: 42px; height: 42px; border-radius: 11px; }
  .product-badge { padding: 3px 6px; font-size: 8px; }
  .product-card h3 {
    min-height: 36px;
    margin: 11px 0 2px;
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }
  .product-subtitles { gap: 4px; min-height: 22px; margin-top: 4px; }
  .product-subtitle-tone-1,
  .product-subtitle-tone-2 { padding: 3px 6px; font-size: 9px; }
  .product-bottom { padding-top: 9px; gap: 6px; }
  .product-price small { font-size: 7px; }
  .product-price strong { font-size: 15px; letter-spacing: -.2px; }
  .product-sold,
  .stock-text { font-size: 7px; }

  .product-price { display: grid; gap: 3px; }
  .lottery-card h3 { margin: 8px 0 4px; }
  .lottery-card-title { margin: 0 0 6px; font-size: 10px; }
  .lottery-card-meta { margin: 2px 0 8px; gap: 4px; font-size: 10px; }
  .lottery-card-bottom { padding-top: 8px; gap: 5px; }
  .lottery-clock { gap: 2px; }
  .lottery-clock-label { font-size: 9px; }
  .lottery-clock strong { font-size: 15px; }
  .lottery-card-action { padding: 6px; border-radius: 8px; font-size: 9px; }
  .lottery-icon img { width: 78%; height: 78%; }
  .site-footer nav { line-height: 44px; }
}

@media (max-width: 360px) {
  .stock-text { display: none; }
  .product-price strong { font-size: 14px; }
  .product-card { padding: 10px; }
}

/* --------------------------------------------------------------------------
   商品详情页
   -------------------------------------------------------------------------- */
.detail-main { padding-top: 34px; }

.back-link {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 17px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  color: var(--muted);
  font-size: 11px;
  box-shadow: var(--shadow-soft);
  transition: color .18s, border-color .18s;
}
.back-link:hover { color: var(--accent-strong); border-color: rgba(18, 168, 154, .35); }
.back-link svg { width: 15px; height: 15px; }

.product-page { display: grid; gap: 16px; }

.product-purchase-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.product-hero-cover {
  min-height: 390px;
  max-height: 540px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--surface-2);
}
.product-hero-cover img {
  width: 100%;
  height: 100%;
  max-height: 496px;
  object-fit: contain;
}

.purchase-content { min-width: 0; padding: 20px 24px; }

.purchase-content h1 {
  font-size: 24px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -.3px;
}

.purchase-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 28px;
}
.purchase-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
}
.purchase-tags > span[data-product-stock] { background: var(--accent-soft); color: var(--accent-strong); }
.purchase-tags .product-subtitle-tone-1 { background: var(--accent-soft); color: var(--accent-strong); }
.purchase-tags .product-subtitle-tone-2 { background: #eaf4ff; color: #2769a8; }
.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf6ff;
  color: #1973b7;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}
.share-pill svg { width: 13px; height: 13px; }

.purchase-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 11px;
  min-height: 58px;
}
.purchase-price { display: flex; align-items: baseline; gap: 8px; }
.purchase-price-main { display: inline-flex; align-items: baseline; gap: 2px; }
.purchase-price-main small { font-size: 17px; line-height: 1.55; }
.purchase-price-main strong {
  font-size: 31px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: -1.24px;
  font-variant-numeric: tabular-nums;
}
.purchase-price del { color: var(--muted); font-size: 10px; }
.purchase-price-note { margin-left: 3px; color: var(--amber); font-size: 10px; font-style: normal; }

.product-agent-promo {
  flex: 1;
  max-width: 484px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(211, 155, 24, .28);
  border-radius: 13px;
  background: linear-gradient(135deg, #fff9e8, #fff4df);
  box-shadow: 0 8px 22px rgba(211, 155, 24, .09);
  transition: border-color .18s, transform .18s;
}
.product-agent-promo:hover { border-color: rgba(211, 155, 24, .5); transform: translateY(-1px); }
.product-agent-crown {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fdf0ce;
}
.product-agent-crown::before {
  content: "";
  width: 19px;
  height: 19px;
  background: url("../img/agent-crown.svg") center / contain no-repeat;
}
.product-agent-promo span { display: grid; gap: 1px; min-width: 0; }
.product-agent-promo b { color: #8a6406; font-size: 11px; line-height: 1.55; }
.product-agent-promo small { color: #a1813f; font-size: 9px; line-height: 1.4; }
.product-agent-promo em {
  margin-left: auto;
  color: #a37510;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.product-order-form { margin-top: 11px; display: grid; gap: 0; }

.product-variant-picker { border: 0; margin: 0 0 13px; padding: 0; min-width: 0; }
.product-variant-picker legend {
  padding: 0 2px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.product-variant-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.product-variant-picker label { position: relative; display: block; min-width: 0; cursor: pointer; }
.product-variant-picker input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.product-variant-picker label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.product-variant-picker label:hover > span { border-color: rgba(18, 168, 154, .4); }
.product-variant-picker input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(18, 168, 154, .08);
}
.product-variant-copy { display: grid; gap: 2px; min-width: 0; }
.product-variant-copy b { font-size: 12px; line-height: 1.4; font-weight: 700; }
.product-variant-copy small { color: var(--muted); font-size: 8px; line-height: 1.45; white-space: nowrap; }
.product-variant-copy small em { font-style: normal; color: var(--accent-strong); font-weight: 700; }
.product-variant-sales { flex: none; color: var(--muted); font-size: 9px; line-height: 1.55; white-space: nowrap; }
.product-variant-picker label.sold-out > span { opacity: .6; }

.checkout-contact-field { display: block; margin-top: 0; }
.product-order-form > .checkout-contact-field { margin-top: 0; }
.checkout-contact-field > span,
.product-order-form > label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.guest-contact-input,
.guest-email-contact-input {
  width: 100%;
  height: 39.5px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 10px;
  outline: 0;
  transition: border-color .18s, box-shadow .18s;
}
.guest-contact-input::placeholder { color: #9aa4b3; }
.guest-contact-input:focus { border-color: rgba(18, 168, 154, .55); box-shadow: 0 0 0 3px rgba(18, 168, 154, .12); }

.quantity-stepper {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.quantity-stepper button {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-size: 21px;
  line-height: 1;
  color: var(--text);
  transition: background .18s;
}
.quantity-stepper button:hover { background: var(--surface-3); }
.quantity-stepper input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: var(--surface);
  text-align: center;
  font-size: 18px;
  font-weight: 750;
  -moz-appearance: textfield;
  appearance: textfield;
}
.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-order-form > label { display: block; margin-top: 12px; }

.payment-panel {
  margin-top: 12px;
  padding: 9px;
  border-radius: 14px;
  background: var(--surface-2);
}
.payment-panel > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  min-height: 20px;
  line-height: 2;
}
.payment-panel > span svg { width: 14px; height: 14px; }
.payment-panel > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}
.payment-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 49.44px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 11px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.payment-panel label input { position: absolute; opacity: 0; pointer-events: none; }
.payment-panel label:has(input:checked) {
  border-color: rgba(18, 168, 154, .5);
  background: var(--accent-soft);
}
.payment-logo { width: 25px; height: 25px; flex: none; object-fit: contain; }
.payment-panel label b { display: grid; gap: 0; font-size: 11px; font-weight: 600; line-height: 1.4; }
.payment-panel label b small { color: var(--muted); font-size: 8px; font-weight: 400; }
.payment-panel .balance-payment { opacity: .85; }

.checkout-invoice { margin-top: 13px; }
.checkout-invoice-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}
.checkout-invoice-toggle input {
  width: 15px;
  height: 15px;
  flex: none;
  accent-color: var(--accent);
}
.checkout-invoice-toggle span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.checkout-invoice-toggle b { font-size: 11px; font-weight: 600; }
.checkout-invoice-toggle small { color: var(--muted); font-size: 9px; }
.checkout-invoice-details { margin-top: 8px; display: grid; gap: 8px; }

.newcomer-checkout-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 13px;
  min-height: 42.59px;
  padding: 11px 13px;
  border: 1px solid #f2d598;
  border-radius: 12px;
  background: #fff9e9;
  color: #865b12;
}
.newcomer-checkout-hint b { font-size: 11px; }
.newcomer-checkout-hint span { font-size: 9px; }

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0 11px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.order-total strong { font-size: 21px; line-height: 1.55; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.product-order-form .primary-button { height: 42px; min-height: 42px; margin-top: 12px; font-size: 12px; }

.detail-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.product-description-card { padding: 30px; }
.detail-content { display: grid; gap: 22px; }
.detail-content > section h2 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}
.prose {
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.prose p { margin: 0 0 12px; }
.prose div { margin: 0 0 10px; }
.prose .detail-block { margin: 0 0 12px; }
.prose .detail-heading { margin: 14px 0 6px; }
.prose .detail-intro { margin-bottom: 12px; }
.prose a { color: #1973b7; text-decoration: underline; text-underline-offset: 2px; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.prose ul, .prose ol { margin: 6px 0 10px; padding-left: 22px; }
.prose .detail-heading { margin-top: 10px; }
.prose .detail-heading span { line-height: 1.6; }
.detail-content .purchase-notice { border-top: 1px solid var(--line); padding-top: 20px; }
.detail-content .purchase-notice .prose { font-size: 13px; color: var(--muted); }

/* 商品 page 提示条 */
.checkout-notice {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #f2d598;
  border-radius: 11px;
  background: #fff9e9;
  color: #865b12;
  font-size: 10px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .detail-main { padding-top: 0; }
  .back-link { display: none; }

  .product-page { gap: 10px; }

  .product-purchase-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 14px;
    border-radius: 16px;
  }
  .product-hero-cover {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: 74px;
    height: 74px;
    min-height: 0;
    max-height: none;
    padding: 6px;
    border-radius: 14px;
    background: var(--surface);
  }
  .product-hero-cover img { max-height: none; }
  .purchase-content { display: contents; }
  .purchase-content h1 {
    grid-column: 2;
    font-size: 18px;
    line-height: 1.32;
    padding-left: 14px;
    align-self: start;
  }
  .purchase-tags {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    gap: 5px;
    margin-top: 6px;
    padding-left: 14px;
    min-height: 0;
  }
  .purchase-tags > span { padding: 4px 8px; font-size: 9px; }
  .share-pill { padding: 4px 8px; font-size: 9px; }

  .purchase-offer-row {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
    min-height: 0;
  }
  .purchase-price { flex: none; }
  .purchase-price-main small { font-size: 16px; }
  .purchase-price-main strong { font-size: 30px; letter-spacing: -1px; }
  .product-agent-promo { flex: 1; min-width: 0; max-width: none; padding: 8px; gap: 6px; }
  .product-agent-crown { width: 24px; height: 24px; border-radius: 7px; }
  .product-agent-crown::before { width: 16px; height: 16px; }
  .product-agent-promo b { font-size: 9px; line-height: 1.4; }
  .product-agent-promo small { font-size: 7px; line-height: 1.35; }
  .product-agent-promo em { display: none; }

  .product-order-form { grid-column: 1 / -1; margin-top: 12px; }

  .product-variant-picker > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .product-variant-picker label > span { min-height: 54px; padding: 9px 11px; }
  .product-variant-copy b { font-size: 12px; }
  .product-variant-copy small { font-size: 9px; }
  .product-variant-sales { font-size: 9px; }

  .checkout-contact-field { margin-top: 12px; }
  .checkout-contact-field > span, .product-order-form > label > span { font-size: 11px; }
  .guest-contact-input, .guest-email-contact-input { height: 44px; padding: 11px 13px; font-size: 12px; border-radius: 11px; }

  .quantity-stepper { height: 44px; border-radius: 12px; grid-template-columns: 52px minmax(0, 1fr) 52px; }
  .quantity-stepper input { font-size: 17px; }

  .payment-panel > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-panel label { min-height: 52px; }
  .payment-panel .balance-payment { grid-column: 1 / -1; }

  .checkout-invoice-toggle { min-height: 46px; padding: 10px 12px; }
  .checkout-invoice-toggle b { font-size: 12px; }
  .checkout-invoice-toggle small { font-size: 10px; }

  .newcomer-checkout-hint { display: grid; gap: 2px; padding: 10px 12px; }
  .newcomer-checkout-hint b { font-size: 11px; }
  .newcomer-checkout-hint span { font-size: 10px; }

  .order-total { font-size: 13px; }
  .order-total strong { font-size: 19px; }
  .product-order-form .primary-button { height: 46px; min-height: 46px; font-size: 13px; }

  .product-description-card { padding: 16px; border-radius: 16px; }
  .detail-content { gap: 18px; }
  .detail-content > section h2 { font-size: 16px; }
  .prose { font-size: 14px; line-height: 1.8; }
  .detail-content .purchase-notice .prose { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   通用弹窗内容
   -------------------------------------------------------------------------- */
.modal-wide { width: min(760px, 100%); }
.modal-tall { max-height: min(88vh, 900px); }
.muted { color: var(--muted); }

.coupon-list { display: grid; gap: 10px; }
.coupon-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px dashed rgba(18, 168, 154, .45);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #f2fbf9);
}
.coupon-amount {
  width: 70px;
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: var(--accent-strong);
}
.coupon-amount small { font-size: 13px; }
.coupon-amount b { font-size: 30px; line-height: 1.2; font-weight: 750; }
.coupon-copy { display: grid; gap: 3px; min-width: 0; }
.coupon-copy b { font-size: 13px; }
.coupon-copy span { color: var(--muted); font-size: 10px; }
.coupon-card em {
  margin-left: auto;
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.coupon-note { margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.7; }

.qq-modal { display: grid; justify-items: center; gap: 14px; text-align: center; }
.qq-modal-mark {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff4dc, #ffe9ef);
}
.qq-modal-mark img { width: 66px; height: 66px; }
.qq-modal p { color: var(--muted); font-size: 11px; line-height: 1.9; text-align: left; }
.qq-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.qq-topics span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 650;
}

.share-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.share-preview-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent-strong);
}
.share-preview-icon svg { width: 20px; height: 20px; }
.share-preview div { min-width: 0; display: grid; gap: 3px; }
.share-preview b { font-size: 12px; }
.share-preview small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.share-actions .primary-button svg, .share-actions .secondary-button svg { width: 15px; height: 15px; }

.announcement-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.announcement-tabs button {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}
.announcement-tabs button.active { border-color: rgba(18, 168, 154, .4); background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; }
.announcement-body { display: none; }
.announcement-body.active { display: block; }
.announcement-body header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.announcement-body header b { font-size: 14px; }
.announcement-body header small { color: var(--muted); font-size: 10px; flex: none; }
.announcement-body .prose { font-size: 12px; line-height: 1.9; color: #34405a; }
.announcement-body .prose div { margin-bottom: 7px; }

.legal-tabs { display: flex; gap: 8px; padding: 0 22px 12px; }
.legal-tabs button {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}
.legal-tabs button.active { border-color: rgba(18, 168, 154, .45); background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; }
.legal-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 0 22px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.legal-toc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-2);
  overflow: auto;
}
.legal-toc p { margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .6px; }
.legal-toc nav { display: grid; gap: 3px; }
.legal-toc a { padding: 4px 6px; border-radius: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.legal-toc a:hover { background: var(--surface); color: var(--accent-strong); }
.legal-content { overflow: auto; padding: 2px 8px 18px 0; font-size: 12px; line-height: 1.9; }
.legal-content h2 { margin: 16px 0 8px; font-size: 14px; }
.legal-content h3 { margin: 12px 0 6px; font-size: 12px; }
.legal-content p { margin: 0 0 8px; }
.legal-content ul, .legal-content ol { margin: 0 0 10px; padding-left: 20px; }
.legal-content li { margin-bottom: 5px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 10px; display: block; overflow-x: auto; }
.legal-content th, .legal-content td { padding: 6px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-content th { background: var(--surface-2); font-weight: 700; }
.legal-content img { max-width: 100%; height: auto; }
.legal-revision { margin-right: auto; color: var(--muted); font-size: 9px; }

.message-list { display: grid; gap: 9px; }
.message-list article { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.message-list b { font-size: 12px; }
.message-list p { margin: 4px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.message-list small { color: var(--muted); font-size: 9px; }

/* 支付弹窗 */
.pay-modal { width: min(460px, 100%); }
.pay-amount { display: grid; justify-items: center; gap: 2px; padding: 8px 0 14px; }
.pay-amount small { color: var(--muted); font-size: 10px; }
.pay-amount b { font-size: 34px; line-height: 1.25; letter-spacing: -1px; }
.pay-amount span { color: var(--muted); font-size: 10px; text-align: center; }
.pay-qr-wrap { display: grid; justify-items: center; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pay-qr { width: 190px; height: 190px; image-rendering: pixelated; }
.pay-qr-note { color: var(--muted); font-size: 10px; }
.pay-countdown { margin-top: 12px; text-align: center; color: var(--muted); font-size: 10px; }
.pay-countdown b { color: var(--red); font-variant-numeric: tabular-nums; font-size: 12px; }
.pay-demo-note { margin-top: 8px; text-align: center; color: #a37510; font-size: 9px; line-height: 1.7; }
.pay-redirect {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  text-align: center;
}
.pay-redirect p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.pay-redirect .primary-button { min-width: 180px; }
.pay-redirect small { color: var(--muted); font-size: 9px; }

.pay-success { display: grid; justify-items: center; gap: 4px; padding: 14px 0 4px; }
.pay-success-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.pay-success-icon svg { width: 27px; height: 27px; }
.pay-success h3 { margin-top: 4px; font-size: 18px; }
.pay-success > p { color: var(--muted); font-size: 10px; text-align: center; }
.pay-card-key {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(18, 168, 154, .45);
  border-radius: 12px;
  background: #f2fbf9;
  text-align: center;
}
.pay-card-key small { color: var(--muted); font-size: 9px; }
.pay-card-key b { font-size: 16px; letter-spacing: 1px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pay-card-key button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin: 2px auto 0; color: var(--accent-strong); font-size: 10px; }
.pay-card-key button svg { width: 13px; height: 13px; }
.pay-success-meta { width: 100%; display: grid; gap: 5px; margin-top: 12px; }
.pay-success-meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.pay-success-meta dt { color: var(--muted); }
.pay-success-meta dd { margin: 0; overflow-wrap: anywhere; text-align: right; }

/* 待支付悬浮 */
.pending-payment-launcher {
  position: fixed;
  left: 14px;
  bottom: 96px;
  z-index: 44;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pending-payment-main {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  color: var(--text);
  font-size: 11px;
}
.pending-payment-main svg { width: 16px; height: 16px; color: var(--amber); }
.pending-payment-main b { color: var(--red); font-variant-numeric: tabular-nums; }
.pending-payment-main small { color: var(--muted); font-size: 9px; }

@media (max-width: 760px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .legal-toc { display: none; }
  .legal-tabs { padding: 0 16px 10px; }
  .share-actions { grid-template-columns: 1fr; }
  .coupon-amount { width: 60px; }
  .coupon-amount b { font-size: 26px; }
  .pending-payment-launcher { left: 10px; bottom: 88px; }
  .pay-qr { width: 168px; height: 168px; }
}

@media (max-width: 1100px) {
  .desktop-nav .nav-account { display: none; }
}

/* --------------------------------------------------------------------------
   内页通用头部 / 查询页
   -------------------------------------------------------------------------- */
.inner-main { width: min(1040px, 92vw); padding: 18px 0 60px; }

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 4px 16px;
  margin: 10px 0 24px;
}
.page-hero h1 {
  margin: 4px 0 8px;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.6px;
}
.page-hero p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.page-hero-actions { display: flex; gap: 10px; flex: none; }
.page-hero-actions a {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.page-hero-actions a + a { border-color: var(--line-strong); background: var(--surface); color: var(--text); }

.content-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.query-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 30px;
}
.query-panel-head > div:first-child > span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.2px;
}
.query-panel-head h2 { margin-top: 5px; font-size: 25px; line-height: 1.55; }

.query-mode-tabs {
  margin-top: 7px;
  display: flex;
  gap: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.query-mode-tabs button {
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.query-mode-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 5px 14px rgba(31, 51, 79, .07); }

.lookup-form { padding: 18px 30px 26px; border-top: 1px solid var(--line); }
.lookup-form label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--muted);
}
.lookup-form label b { font-size: 15px; font-weight: 700; }
.lookup-form label span { font-size: 12px; text-align: right; }

.query-input-row { display: flex; gap: 12px; align-items: stretch; }
.query-input-shell {
  flex: 1;
  min-width: 0;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
}
.query-input-shell:focus-within { border-color: rgba(18, 168, 154, .6); box-shadow: 0 0 0 3px rgba(18, 168, 154, .1); }
.query-input-shell > img { width: 20px; height: 20px; flex: none; opacity: .7; }
.query-input-shell textarea {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 16px 0;
  border: 0;
  outline: 0;
  background: none;
  resize: none;
  font-size: 14px;
  line-height: 1.55;
}
.query-input-shell textarea::placeholder { color: #9aa4b3; }
.query-input-shell button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--surface-2);
}
.query-input-shell button img { width: 18px; height: 18px; }
.query-input-row .primary-button {
  width: 170px;
  height: 60px;
  flex: none;
  gap: 8px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 750;
}
.query-input-row .primary-button svg { width: 18px; height: 18px; }

.query-security-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.query-security-note img { width: 16px; height: 16px; opacity: .65; }

.query-state {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  min-height: 210px;
  padding: 38px 25px 25px;
  margin-top: 21px;
  text-align: center;
}
.query-state svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 26px; }
.query-state b { font-size: 18px; line-height: 1.55; }
.query-state span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.query-cache-summary {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}
.query-cache-summary img { width: 26px; height: 26px; }
.query-cache-summary span { display: grid; gap: 2px; min-width: 0; }
.query-cache-summary b { font-size: 12px; }
.query-cache-summary small { color: var(--muted); font-size: 10px; }
.query-cache-summary button { margin-left: auto; color: var(--accent-strong); font-size: 10px; white-space: nowrap; }

/* 订单结果 */
.order-results { display: grid; gap: 12px; padding: 0 30px 30px; }
.order-result {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11px;
}
.result-head span { color: var(--muted); }
.result-head b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .3px; }
.result-status {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 750;
}
.result-status.pending { background: #fff3d6; color: #9a6a0a; }
.result-status.cancelled { background: var(--surface-3); color: var(--muted); }
.result-main { display: flex; gap: 13px; padding: 15px 16px; }
.result-icon {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  overflow: hidden;
}
.result-icon img { width: 100%; height: 100%; object-fit: contain; }
.result-info { min-width: 0; flex: 1; display: grid; gap: 3px; }
.result-info b { font-size: 13px; line-height: 1.45; }
.result-info span { color: var(--muted); font-size: 10px; }
.result-amount { text-align: right; font-size: 16px; font-weight: 700; white-space: nowrap; }
.result-card-key {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(18, 168, 154, .4);
  border-radius: 10px;
  background: #f4fbf9;
}
.result-card-key small { color: var(--muted); font-size: 9px; flex: none; }
.result-card-key b { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .5px; overflow-wrap: anywhere; }
.result-card-key button { color: var(--accent-strong); font-size: 10px; flex: none; display: inline-flex; align-items: center; gap: 3px; }
.result-card-key button svg { width: 12px; height: 12px; }
.result-foot { display: flex; align-items: center; gap: 8px; padding: 0 16px 14px; }
.result-foot .primary-button,
.result-foot .secondary-button { min-height: 34px; padding: 5px 12px; font-size: 10px; border-radius: 9px; }
.result-foot small { color: var(--muted); font-size: 9px; }

@media (max-width: 760px) {
  .inner-main { width: 100%; padding: 6px 12px 84px; }
  .page-hero { display: block; padding: 10px 2px 14px; margin: 4px 0 14px; }
  .page-hero h1 { margin: 3px 0 6px; font-size: 32px; letter-spacing: -1px; }
  .page-hero p { font-size: 12px; }
  .page-hero-actions { margin-top: 12px; gap: 8px; }
  .page-hero-actions a { height: 37px; padding: 0 15px; font-size: 11px; }

  .query-panel-head { display: block; padding: 16px; }
  .query-panel-head h2 { font-size: 21px; }
  .query-mode-tabs { margin-top: 12px; padding: 4px; border-radius: 12px; }
  .query-mode-tabs button { flex: 1; height: 36px; padding: 0 4px; font-size: 11px; border-radius: 9px; }

  .lookup-form { padding: 14px 16px; }
  .lookup-form label { display: block; margin-bottom: 7px; }
  .lookup-form label b { font-size: 13px; }
  .lookup-form label span { display: block; margin-top: 2px; font-size: 10px; text-align: left; }
  .query-input-row { display: grid; gap: 9px; }
  .query-input-shell { height: 52px; }
  .query-input-shell textarea { height: 48px; padding: 13px 0; font-size: 12px; }
  .query-input-row .primary-button { width: 100%; height: 48px; font-size: 13px; }
  .query-security-note { align-items: flex-start; font-size: 10px; }

  .query-state { padding: 34px 12px; margin-top: 12px; }
  .query-state svg { width: 30px; height: 30px; }
  .query-state b { font-size: 16px; }
  .query-state span { font-size: 12px; }

  .order-results { padding: 0 16px 16px; }
  .result-main { padding: 12px; gap: 10px; }
  .result-icon { width: 42px; height: 42px; border-radius: 10px; }
  .result-info b { font-size: 12px; }
  .result-amount { font-size: 14px; }
  .result-card-key { margin: 0 12px 12px; flex-wrap: wrap; }
  .result-card-key b { flex-basis: 100%; font-size: 11px; }
  .result-foot { padding: 0 12px 12px; }
}

/* --------------------------------------------------------------------------
   使用教程
   -------------------------------------------------------------------------- */
.tutorial-page { width: min(1180px, 92vw); padding: 42px 0 92px; }

.tutorial-kicker {
  display: block;
  color: #635bff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  line-height: 1.55;
}

.tutorial-index-hero {
  position: relative;
  padding: 42px 46px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 93% 0%, rgba(188, 199, 255, .32), transparent 44%),
    radial-gradient(circle at 2% 100%, rgba(255, 199, 219, .26), transparent 42%),
    linear-gradient(125deg, rgba(255, 255, 255, .96), rgba(240, 239, 255, .94));
  box-shadow: 0 24px 60px rgba(99, 91, 255, .1);
  overflow: hidden;
}
.tutorial-index-hero h1 {
  margin: 12px 0 10px;
  font-size: 60px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: -1.6px;
}
.tutorial-index-hero p { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.8; }

.tutorial-index-panel {
  margin-top: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.tutorial-index-panel > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
}
.tutorial-index-panel > header span {
  color: #635bff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.tutorial-index-panel h2 { margin-top: 7px; font-size: 28px; line-height: 1.55; }
.tutorial-index-panel > header > p { max-width: 462px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.tutorial-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tutorial-index-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.tutorial-index-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 91, 255, .35);
  box-shadow: 0 16px 36px rgba(99, 91, 255, .1);
}
.tutorial-index-number {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #eeedff;
  color: #635bff;
  font-size: 14px;
  font-weight: 900;
}
.tutorial-index-copy { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tutorial-index-copy small {
  color: #0fa99d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.55;
}
.tutorial-index-copy b { font-size: 19px; line-height: 1.55; font-weight: 700; }
.tutorial-index-copy em {
  display: -webkit-box;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tutorial-index-card > i { flex: none; color: #635bff; font-size: 23px; font-style: normal; }

/* 教程详情 */
.tutorial-detail-hero {
  position: relative;
  padding: 34px 0 26px;
  text-align: center;
}
.tutorial-detail-hero .tutorial-kicker { display: inline-block; padding: 4px 11px; border-radius: 999px; background: #eeedff; font-size: 11px; letter-spacing: .6px; }
.tutorial-detail-hero h1 {
  margin: 12px auto 8px;
  max-width: 860px;
  font-size: 44px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1.2px;
}
.tutorial-detail-hero p { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.8; }
.tutorial-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.tutorial-primary-action,
.tutorial-secondary-action {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.tutorial-primary-action { background: #635bff; color: #fff; box-shadow: 0 10px 24px rgba(99, 91, 255, .22); }
.tutorial-secondary-action { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }

.tutorial-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 10px;
}
.tutorial-related {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.tutorial-related header span { color: #635bff; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.tutorial-related h2 { margin: 4px 0 12px; font-size: 19px; }
.tutorial-related nav { display: grid; gap: 8px; }
.tutorial-related nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color .18s, background .18s;
}
.tutorial-related nav a:hover { border-color: rgba(99, 91, 255, .35); background: #f8f7ff; }
.tutorial-related nav span { display: grid; gap: 1px; min-width: 0; }
.tutorial-related nav small { color: #0fa99d; font-size: 9px; font-weight: 750; }
.tutorial-related nav b { font-size: 11px; line-height: 1.5; font-weight: 650; }
.tutorial-related nav i { color: #635bff; font-size: 13px; font-style: normal; }
.tutorial-all-link {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.tutorial-content-card,
.tutorial-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.tutorial-content-card { padding: 26px 30px; display: grid; gap: 18px; }
.tutorial-card { padding: 22px 24px; }
.tutorial-card h2 { margin-bottom: 12px; font-size: 19px; line-height: 1.5; }
.tutorial-card p { color: #38445c; font-size: 13px; line-height: 1.85; }
.tutorial-card p + p { margin-top: 8px; }
.tutorial-delivery-code {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #182033;
  color: #e6edf7;
}
.tutorial-delivery-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.tutorial-alert {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.75;
}
.tutorial-alert strong { font-weight: 750; }
.tutorial-alert p { margin-top: 3px; font-size: 12px; }
.tutorial-alert.is-danger { border: 1px solid #f4c7c7; background: #fdeeee; color: #8f2b2b; }
.tutorial-alert.is-info { border: 1px solid #bcdcf5; background: #eef7ff; color: #1f577f; }
.tutorial-steps { counter-reset: step; }
.tutorial-step { position: relative; padding: 0 0 18px 44px; }
.tutorial-step:last-child { padding-bottom: 0; }
.tutorial-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eeedff;
  color: #635bff;
  font-size: 12px;
  font-weight: 800;
}
.tutorial-step h3 { margin: 3px 0 5px; font-size: 14px; font-weight: 700; }
.tutorial-step-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.tutorial-step-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #eeedff;
  color: #4f47d6;
  font-size: 11px;
  font-weight: 700;
}
.tutorial-figure { margin: 12px 0 4px; }
.tutorial-figure img { width: 100%; border: 1px solid var(--line); border-radius: 12px; }
.tutorial-figure figcaption { margin-top: 6px; color: var(--muted); font-size: 10px; text-align: center; }
.tutorial-step-after-media { margin-top: 10px; }
.tutorial-faq-list { display: grid; gap: 8px; }
.tutorial-faq-row {
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.tutorial-faq-row strong { font-size: 12px; }
.tutorial-faq-row span { color: var(--muted); font-size: 11px; line-height: 1.7; }
.tutorial-video { width: 100%; border-radius: 12px; margin-top: 10px; }

.tutorial-all-guides-bar,
.tutorial-guide-drawer { display: none; }

@media (max-width: 760px) {
  .tutorial-page { width: 100%; padding: 10px 12px 92px; }
  .tutorial-index-hero { padding: 24px 20px; border-radius: 18px; }
  .tutorial-index-hero h1 { margin: 6px 0 6px; font-size: 36px; letter-spacing: -1px; }
  .tutorial-index-hero p { font-size: 12px; line-height: 1.7; }
  .tutorial-kicker { font-size: 10px; }

  .tutorial-index-panel { margin-top: 12px; padding: 16px; border-radius: 18px; }
  .tutorial-index-panel > header { display: block; margin-bottom: 14px; }
  .tutorial-index-panel h2 { margin-top: 4px; font-size: 21px; }
  .tutorial-index-panel > header > p { margin-top: 6px; font-size: 11px; line-height: 1.65; }
  .tutorial-index-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .tutorial-index-card { padding: 14px; gap: 12px; border-radius: 14px; }
  .tutorial-index-number { width: 40px; height: 40px; border-radius: 12px; font-size: 12px; }
  .tutorial-index-copy b { font-size: 14px; line-height: 1.5; }
  .tutorial-index-copy em { font-size: 11px; }
  .tutorial-index-card > i { font-size: 18px; }

  .tutorial-detail-hero { padding: 18px 4px 16px; }
  .tutorial-detail-hero h1 { margin: 10px 0 7px; font-size: 27px; letter-spacing: -.6px; }
  .tutorial-detail-hero p { font-size: 12px; line-height: 1.7; }
  .tutorial-hero-actions { gap: 7px; margin-top: 12px; }
  .tutorial-primary-action, .tutorial-secondary-action { height: 36px; padding: 0 13px; font-size: 10px; }

  .tutorial-layout { display: block; margin-top: 4px; }
  .tutorial-related { display: none; }
  .tutorial-all-guides-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    margin-bottom: 10px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    text-align: left;
  }
  .tutorial-all-guides-bar span { display: grid; }
  .tutorial-all-guides-bar small { color: #635bff; font-size: 8px; font-weight: 900; letter-spacing: 1px; }
  .tutorial-all-guides-bar b { font-size: 13px; }
  .tutorial-all-guides-bar em { margin-left: auto; margin-right: 10px; color: var(--muted); font-size: 10px; font-style: normal; }
  .tutorial-all-guides-bar i { color: var(--muted); font-style: normal; }

  .tutorial-content-card { padding: 16px; border-radius: 16px; gap: 12px; }
  .tutorial-card { padding: 16px; border-radius: 14px; }
  .tutorial-card h2 { font-size: 16px; margin-bottom: 8px; }
  .tutorial-card p { font-size: 12px; line-height: 1.8; }
  .tutorial-step { padding-left: 36px; padding-bottom: 14px; }
  .tutorial-step::before { width: 24px; height: 24px; font-size: 11px; }
  .tutorial-step h3 { font-size: 13px; }
  .tutorial-alert { font-size: 11px; padding: 10px 12px; }
  .tutorial-alert p { font-size: 11px; }
  .tutorial-delivery-code code { font-size: 10px; }
}
.tutorial-modal-list { display: grid; gap: 8px; }
.tutorial-modal-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.tutorial-modal-list a.active { border-color: rgba(99, 91, 255, .4); background: #f5f4ff; }
.tutorial-modal-list span { display: grid; gap: 1px; }
.tutorial-modal-list small { color: #0fa99d; font-size: 9px; font-weight: 750; }
.tutorial-modal-list b { font-size: 12px; }
.tutorial-modal-list i { color: #635bff; font-style: normal; }

/* --------------------------------------------------------------------------
   提交工单
   -------------------------------------------------------------------------- */
.ticket-center-main { width: 94vw; margin: 0 auto; padding: 24px 0 56px; }
.ticket-create-backbar { margin-bottom: 9px; padding-left: 4px; }
.ticket-create-backbar a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.ticket-create-backbar a:hover { color: var(--accent-strong); }

.ticket-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
}
.member-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.ticket-create-form { padding: 25px; }
.ticket-create-form > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
}
.ticket-create-form > header span {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.2px;
}
.ticket-create-form h1 { margin: 3px 0 0; font-size: 30px; line-height: 1.55; }
.ticket-create-form > header p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.ticket-mode-actions { display: flex; gap: 6px; flex: none; }
.ticket-mode-actions a {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.ticket-mode-actions a.active { border-color: var(--text); background: var(--text); color: #fff; }

.ticket-create-form > section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 25px 11px;
  border-bottom: 1px solid var(--line);
}
.ticket-create-form > section > b {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.ticket-create-form > section h2 { font-size: 14px; line-height: 1.55; }
.ticket-create-form > section p { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.55; }

.ticket-field { display: block; padding: 0 25px 14px; }
.ticket-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}
.ticket-field input,
.ticket-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: 0;
  transition: border-color .18s, box-shadow .18s;
}
.ticket-field input { height: 43.69px; padding: 10px 12px; font-weight: 750; }
.ticket-field textarea { min-height: 217px; padding: 10px 12px; resize: vertical; line-height: 1.7; }
.ticket-field input::placeholder,
.ticket-field textarea::placeholder { color: #9aa4b3; font-weight: 400; }
.ticket-field input:focus,
.ticket-field textarea:focus { border-color: rgba(18, 168, 154, .55); box-shadow: 0 0 0 3px rgba(18, 168, 154, .1); }

.ticket-field > .ticket-contact-link-row { display: flex; gap: 10px; }
.ticket-contact-link-row input { flex: 1; min-width: 0; }
.ticket-contact-link-row button {
  flex: none;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #062c29;
  font-size: 13px;
  font-weight: 750;
}
.guest-ticket-order-state {
  margin: 0 25px 16px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.guest-ticket-order-state.matched { border: 1px solid rgba(18, 168, 154, .35); background: var(--accent-soft); color: var(--accent-strong); }

.ticket-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 25px 18px;
}
.ticket-priority-grid label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.ticket-priority-grid input { position: absolute; opacity: 0; pointer-events: none; }
.ticket-priority-grid i {
  width: 12px;
  height: 12px;
  flex: none;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}
.ticket-priority-grid label.active { border-color: rgba(39, 105, 168, .55); background: #f3f8ff; }
.ticket-priority-grid label.active i { border-color: #2769a8; background: #2769a8; box-shadow: inset 0 0 0 3px #fff; }
.ticket-priority-grid span { display: grid; gap: 1px; }
.ticket-priority-grid b { font-size: 12px; }
.ticket-priority-grid small { color: var(--muted); font-size: 9px; }
.ticket-priority-grid label[data-priority="low"] i { border-color: #9aa4b3; }
.ticket-priority-grid label[data-priority="low"].active i { background: #9aa4b3; border-color: #9aa4b3; }
.ticket-priority-grid label[data-priority="high"] i { border-color: var(--red); }
.ticket-priority-grid label[data-priority="high"].active { border-color: rgba(216, 74, 90, .5); background: #fff4f5; }
.ticket-priority-grid label[data-priority="high"].active i { background: var(--red); border-color: var(--red); }

.ticket-attachments { padding: 0 25px 18px; }
.ticket-attachments > label {
  width: max-content;
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.ticket-attachments > label span { display: inline-flex; align-items: center; gap: 6px; }
.ticket-upload-icon { width: 15px; height: 15px; }
.ticket-attachments > small { margin-left: 10px; color: var(--muted); font-size: 10px; }
.ticket-attachment-list { display: grid; gap: 5px; margin-top: 8px; }
.ticket-attachment-list span { color: var(--muted); font-size: 10px; }

.ticket-create-form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 25px;
  border-top: 1px solid var(--line);
}
.ticket-create-form > footer > span { color: var(--muted); font-size: 9px; }
.member-primary-button {
  height: 50px;
  min-width: 98px;
  padding: 0 21px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.member-primary-button:disabled { opacity: .45; cursor: not-allowed; }

.ticket-submit-summary { margin-top: 12px; padding: 25px; }
.ticket-submit-summary > span { color: var(--accent-strong); font-size: 8px; font-weight: 850; letter-spacing: 1.4px; }
.ticket-submit-summary h2 { margin: 15px 0; font-size: 18px; line-height: 1.55; }
.ticket-submit-summary dl { display: grid; margin-top: 15px; }
.ticket-submit-summary dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 9px;
}
.ticket-submit-summary dl div:first-child { border-top: 0; }
.ticket-submit-summary dt { color: var(--muted); }
.ticket-submit-summary dd { margin: 0; text-align: right; font-weight: 750; overflow-wrap: anywhere; }

.ticket-success { display: grid; justify-items: center; gap: 6px; padding: 54px 32px; text-align: center; }
.ticket-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.ticket-success-icon svg { width: 28px; height: 28px; }
.ticket-success h1 { font-size: 26px; }
.ticket-success p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.ticket-success-no {
  margin-top: 8px;
  padding: 11px 16px;
  border: 1px dashed rgba(18, 168, 154, .45);
  border-radius: 11px;
  background: #f4fbf9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: .5px;
}
.ticket-success-actions { display: flex; gap: 9px; margin-top: 14px; }

/* 工单查询 */
.ticket-query-panel { padding: 25px; }
.ticket-query-panel h1 { font-size: 28px; }
.ticket-query-form { display: grid; gap: 10px; margin-top: 16px; }
.ticket-query-form .query-input-row { display: flex; }
.ticket-query-form input { flex: 1; height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; font-size: 13px; outline: 0; }
.ticket-query-results { display: grid; gap: 10px; margin-top: 16px; }
.ticket-query-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ticket-query-item header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ticket-query-item header b { font-size: 13px; }
.ticket-query-item p { color: var(--muted); font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.ticket-query-item small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }

@media (max-width: 760px) {
  .ticket-center-main { width: 100%; padding: 0 12px 84px; }
  .ticket-create-backbar { display: none; }
  .ticket-create-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ticket-create-form { padding: 16px; }
  .ticket-create-form > header { padding: 4px 0 14px; flex-wrap: wrap; }
  .ticket-create-form h1 { font-size: 26px; }
  .ticket-create-form > header p { font-size: 11px; }
  .ticket-mode-actions { margin-top: 4px; }
  .ticket-mode-actions a { height: 32px; font-size: 10px; padding: 0 10px; }
  .ticket-create-form > section { padding: 16px 0 9px; }
  .ticket-create-form > section h2 { font-size: 13px; }
  .ticket-create-form > section p { font-size: 9px; }
  .ticket-field { padding: 0 0 12px; }
  .ticket-field > span { font-size: 12px; }
  .ticket-field input { height: 44px; font-size: 12px; }
  .ticket-field textarea { min-height: 150px; font-size: 12px; }
  .ticket-contact-link-row button { padding: 0 13px; font-size: 11px; }
  .guest-ticket-order-state { margin: 0 0 12px; font-size: 10px; }
  .ticket-priority-grid { padding: 0 0 14px; gap: 6px; }
  .ticket-priority-grid label { padding: 10px 8px; gap: 6px; border-radius: 10px; }
  .ticket-priority-grid b { font-size: 11px; }
  .ticket-priority-grid small { font-size: 8px; }
  .ticket-attachments { padding: 0 0 14px; }
  .ticket-attachments > small { display: block; margin: 6px 0 0; }
  .ticket-create-form > footer { padding: 14px 0 2px; }
  .ticket-create-form > footer > span { display: none; }
  .ticket-create-form > footer .member-primary-button { width: 100%; height: 46px; }
  .ticket-submit-summary { margin-top: 0; padding: 18px; }
  .ticket-submit-summary h2 { margin: 8px 0; font-size: 16px; }
  .ticket-success { padding: 34px 16px; }
  .ticket-success h1 { font-size: 22px; }
  .ticket-query-panel { padding: 16px; }
}

/* --------------------------------------------------------------------------
   登录 / 注册
   -------------------------------------------------------------------------- */
.auth-page { display: grid; place-items: center; padding: 34px 0 60px; }
.auth-page-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-page-copy { text-align: center; }
.auth-page-copy h1 { margin: 7px 0 6px; font-size: 31px; line-height: 1.55; font-weight: 700; letter-spacing: -.4px; }
.auth-page-copy p { margin-bottom: 24px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.auth-page-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: var(--surface-2);
}
.auth-page-tabs button {
  height: 31.5px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.auth-page-tabs button.active { background: var(--surface); color: var(--accent-strong); box-shadow: 0 4px 10px rgba(31, 51, 79, .06); }

.auth-stack { display: grid; gap: 15px; }
.auth-stack label { display: grid; gap: 6px; }
.auth-stack label > span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.auth-stack input {
  width: 100%;
  height: 45.69px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  outline: 0;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.auth-stack input::placeholder { color: #9aa4b3; }
.auth-stack input:focus { border-color: rgba(18, 168, 154, .5); background: var(--surface); box-shadow: 0 0 0 3px rgba(18, 168, 154, .1); }

.captcha-row { display: flex; align-items: stretch; gap: 8px; height: 46px; }
.captcha-row input { flex: 1; min-width: 0; height: 46px; }
.captcha-row button {
  width: 158px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
}
.captcha-row canvas { width: 100%; height: 100%; display: block; }
.captcha-row img { width: 100%; height: 100%; object-fit: cover; }

.auth-submit { width: 100%; height: 42px; min-height: 42px; margin-top: 4px; font-size: 12px; }
.auth-forgot { display: block; margin-top: 13px; color: var(--muted); font-size: 10px; text-align: center; }
.auth-forgot:hover { color: var(--accent-strong); }
.auth-tip {
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid #f2d598;
  border-radius: 10px;
  background: #fff9e9;
  color: #865b12;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 760px) {
  .auth-page { padding: 8px 0 30px; }
  .auth-page-card { padding: 22px 18px; border-radius: 18px; }
  .auth-page-copy h1 { font-size: 26px; }
  .auth-page-copy p { margin-bottom: 18px; }
  .captcha-row button { width: 128px; }
  .auth-tip { font-size: 8px; }
}

/* --------------------------------------------------------------------------
   个人中心
   -------------------------------------------------------------------------- */
.account-page { width: min(1180px, 92vw); padding: 28px 0 70px; }
.account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }

.account-sidebar {
  position: sticky;
  top: 90px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.account-person { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.account-avatar {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #16b3a3, #0f9789);
  color: #fff;
  font-size: 17px;
  font-weight: 750;
}
.account-person div { display: grid; gap: 2px; min-width: 0; }
.account-person b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-person small { color: var(--muted); font-size: 9px; }

.account-nav { display: grid; gap: 3px; padding-top: 12px; }
.account-nav a,
.account-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  transition: background .18s, color .18s;
}
.account-nav a:hover,
.account-nav button:hover { background: var(--surface-2); color: var(--text); }
.account-nav a.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; }
.account-nav svg { width: 17px; height: 17px; }
.account-nav .danger { color: var(--red); }

.account-content { display: grid; gap: 14px; min-width: 0; }
.account-hero {
  position: relative;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(18, 168, 154, .13), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.account-hero h1 { margin: 4px 0 5px; font-size: 27px; line-height: 1.35; }
.account-hero p { color: var(--muted); font-size: 11px; }

.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.account-stat {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.account-stat small { color: var(--muted); font-size: 9px; }
.account-stat b { display: inline-block; margin-top: 4px; font-size: 22px; line-height: 1.3; }
.account-stat em { color: var(--accent-strong); font-size: 9px; font-style: normal; }

.account-panel { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.account-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.account-panel > header h2 { font-size: 16px; }
.account-panel > header a { color: var(--accent-strong); font-size: 10px; font-weight: 650; }
.account-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.account-actions a,
.account-actions button {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 11px;
  text-align: left;
  transition: border-color .18s, background .18s;
}
.account-actions a:hover,
.account-actions button:hover { border-color: rgba(18, 168, 154, .35); background: var(--surface); }
.account-actions b { font-size: 12px; }
.account-actions small { color: var(--muted); font-size: 9px; }
.account-empty { padding: 34px 12px; color: var(--muted); font-size: 11px; text-align: center; }

.account-orders { display: grid; gap: 9px; }
.account-order { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.account-order-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.account-order-icon img { width: 100%; height: 100%; object-fit: contain; }
.account-order div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.account-order b { font-size: 12px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-order small { color: var(--muted); font-size: 9px; }
.account-order > strong { font-size: 13px; }
.account-form { display: grid; gap: 12px; max-width: 480px; }
.account-form label { display: grid; gap: 5px; }
.account-form label span { color: var(--muted); font-size: 10px; }
.account-form input { height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; outline: 0; }
.account-form input:focus { border-color: rgba(18, 168, 154, .5); box-shadow: 0 0 0 3px rgba(18, 168, 154, .1); }
.account-form .primary-button { width: max-content; min-width: 120px; }
.account-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.account-amounts button { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 16px; font-weight: 700; }
.account-amounts button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

@media (max-width: 760px) {
  .account-page { width: 100%; padding: 10px 12px 92px; }
  .account-layout { display: block; }
  .account-sidebar { position: static; padding: 14px; margin-bottom: 10px; border-radius: 16px; }
  .account-person { padding-bottom: 12px; }
  .account-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-top: 10px; }
  .account-nav a, .account-nav button { min-height: 34px; padding: 6px 8px; font-size: 10px; gap: 5px; border-radius: 9px; }
  .account-nav svg { width: 14px; height: 14px; }
  .account-hero { padding: 18px; border-radius: 16px; }
  .account-hero h1 { font-size: 22px; }
  .account-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .account-stat { padding: 11px; border-radius: 11px; }
  .account-stat b { font-size: 17px; }
  .account-panel { padding: 16px; border-radius: 14px; }
  .account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   抽奖详情
   -------------------------------------------------------------------------- */
.lottery-main { width: min(920px, 92vw); padding: 34px 0 32px; }
.lottery-hero {
  padding: 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(18, 168, 154, .12), transparent 40%),
    var(--surface);
}
.lottery-heading-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.lottery-share-button { min-height: 33px; padding: 5px 12px; font-size: 10px; border-radius: 9px; }
.lottery-share-button svg { width: 13px; height: 13px; }
.lottery-heading { display: flex; gap: 16px; align-items: center; }
.lottery-detail-icon {
  width: 64px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #e5f7f2;
  overflow: hidden;
}
.lottery-detail-icon img { width: 100%; height: 100%; object-fit: contain; }
.lottery-heading-body { min-width: 0; }
.lottery-heading h1 { margin: 0 0 5px; font-size: 25px; line-height: 1.3; font-weight: 700; }
.lottery-heading-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; }
.lottery-heading-meta b { color: var(--text); }

.lottery-overview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(18, 168, 154, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
}
.lottery-overview > div:first-child { display: grid; gap: 1px; }
.lottery-overview > div + div { border-left: 1px solid var(--line); padding-left: 24px; display: grid; gap: 1px; }
.lottery-overview small { color: var(--muted); font-size: 11px; }
.lottery-overview strong { font-size: 26px; line-height: 1.2; font-weight: 700; }
.lottery-overview strong em { margin-left: 3px; font-size: 12px; font-style: normal; }
.lottery-overview .lottery-clock strong { color: var(--accent-strong); letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.lottery-rule { margin: 10px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lottery-join-button { width: 100%; height: 44px; min-height: 44px; }
.lottery-history-link { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; text-align: center; }

.lottery-winners { margin-top: 16px; padding: 22px; border-radius: 18px; }
.lottery-winners header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.lottery-winners h2 { margin: 4px 0 0; font-size: 22px; line-height: 1.55; }
.lottery-winner-round-note { margin-top: 3px; color: var(--muted); font-size: 11px; }
.lottery-winner-tools { display: flex; align-items: center; gap: 12px; }
.lottery-winner-tools .secondary-button { min-height: 34px; padding: 5px 12px; font-size: 10px; }
.lottery-winner-tools span { color: var(--muted); font-size: 11px; }
.lottery-winner-list { display: grid; gap: 6px; list-style: none; }
.lottery-winner-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border-radius: 14px;
  background: #fbfaf6;
}
.lottery-winner-row.top-2 { background: #f7f9fc; }
.lottery-winner-row.top-3 { background: #fdf8f6; }
.lottery-winner-rank {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff4d6;
  color: #b87513;
  font-size: 14px;
  font-weight: 800;
}
.lottery-winner-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
}
.lottery-winner-name { flex: 1; min-width: 0; }
.lottery-winner-name strong { font-size: 14px; }
.lottery-winner-award {
  padding: 8px 11px;
  border-radius: 10px;
  background: #eaf9f6;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 750;
}
.lottery-privacy-note { margin-top: 12px; color: var(--muted); font-size: 11px; }
.lottery-description { margin-top: 16px; }
.lottery-description .detail-content { padding: 30px; }

@media (max-width: 760px) {
  .lottery-main { width: 100%; padding: 10px 12px 92px; }
  .lottery-hero { padding: 16px; border-radius: 16px; }
  .lottery-heading { gap: 12px; }
  .lottery-detail-icon { width: 54px; height: 54px; border-radius: 14px; }
  .lottery-heading h1 { font-size: 19px; }
  .lottery-heading-meta { font-size: 11px; gap: 10px; }
  .lottery-overview { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .lottery-overview > div + div { padding-left: 14px; }
  .lottery-overview strong { font-size: 21px; }
  .lottery-overview .lottery-clock strong { font-size: 21px; }
  .lottery-rule { font-size: 10px; }
  .lottery-join-button { height: 44px; font-size: 12px; }
  .lottery-winners { margin-top: 10px; padding: 16px; border-radius: 16px; }
  .lottery-winners header { flex-wrap: wrap; }
  .lottery-winners h2 { font-size: 19px; }
  .lottery-winner-tools { margin-left: auto; }
  .lottery-winner-row { gap: 10px; padding: 10px; border-radius: 12px; }
  .lottery-winner-rank { width: 27px; height: 27px; font-size: 12px; border-radius: 8px; }
  .lottery-winner-avatar { width: 34px; height: 34px; font-size: 12px; }
  .lottery-winner-name strong { font-size: 12px; }
  .lottery-winner-award { padding: 6px 8px; font-size: 9px; }
  .lottery-description .detail-content { padding: 16px; }
}

/* --------------------------------------------------------------------------
   成为代理
   -------------------------------------------------------------------------- */
.agent-page { width: min(1330px, 92vw); padding: 24px 0 70px; }
.agent-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 42px 44px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 16%, rgba(32, 178, 150, .45), transparent 46%),
    radial-gradient(circle at 72% 100%, rgba(57, 135, 120, .35), transparent 50%),
    linear-gradient(120deg, #0a1b33, #0d2b33 55%, #10534b);
  color: #fff;
  overflow: hidden;
}
.agent-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.agent-hero-copy { flex: 1; min-width: 0; position: relative; z-index: 1; }
.agent-hero .eyebrow { color: #7fe4d5; letter-spacing: 1.8px; }
.agent-hero h1 { margin: 12px 0 12px; max-width: 760px; font-size: 40px; line-height: 1.26; font-weight: 700; letter-spacing: -1px; }
.agent-hero p { max-width: 720px; color: rgba(226, 240, 240, .72); font-size: 13px; line-height: 1.85; }
.agent-benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.agent-benefits span {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(232, 247, 245, .9);
  font-size: 10px;
  font-weight: 600;
}
.agent-price-card {
  width: 260px;
  flex: none;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}
.agent-price-card img { width: 34px; height: 34px; }
.agent-price-card small { display: block; margin-top: 14px; color: rgba(226, 240, 240, .62); font-size: 10px; }
.agent-price-card b { display: block; margin: 5px 0 6px; font-size: 16px; line-height: 1.5; }
.agent-price-card p { color: rgba(226, 240, 240, .6); font-size: 10px; }
.agent-price-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(226, 240, 240, .7);
  font-size: 10px;
}
.agent-price-card footer em { color: #ffcd73; font-size: 16px; font-style: normal; font-weight: 750; }

.agent-plans-panel {
  margin-top: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.agent-plans-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.agent-plans-panel h2 { margin: 4px 0 7px; font-size: 34px; line-height: 1.3; letter-spacing: -.8px; }
.agent-plans-panel header p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.agent-toggle-card {
  flex: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f6fbfa;
  text-align: right;
}
.agent-toggle-card small { display: block; color: var(--muted); font-size: 9px; }
.agent-toggle-card b { display: block; margin-top: 3px; color: var(--accent-strong); font-size: 16px; }

.agent-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.agent-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.agent-plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #c9642a;
}
.agent-plan:nth-child(2)::before { background: #3f7fbf; }
.agent-plan:nth-child(3)::before { background: #d9a123; }
.agent-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(18, 168, 154, .3); }
.agent-plan-ribbon {
  position: absolute;
  right: 0;
  top: 0;
  padding: 6px 11px;
  border-radius: 0 0 0 12px;
  background: #fff6e2;
  color: #a37510;
  font-size: 9px;
  font-weight: 750;
}
.agent-plan-head { display: flex; align-items: center; gap: 10px; }
.agent-plan-head img { width: 40px; height: 40px; }
.agent-plan-head small { color: var(--muted); font-size: 11px; font-weight: 700; }
.agent-plan h3 { margin: 16px 0 6px; font-size: 26px; line-height: 1.3; }
.agent-plan:nth-child(1) h3 { color: #b25822; }
.agent-plan:nth-child(2) h3 { color: #2f6ba8; }
.agent-plan:nth-child(3) h3 { color: #a37510; }
.agent-plan-desc { min-height: 38px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.agent-plan-rows { display: grid; gap: 0; margin: 14px 0 0; }
.agent-plan-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.agent-plan-rows b { color: var(--text); font-size: 12px; }
.agent-plan-rows em { color: #a37510; font-style: normal; font-weight: 750; }
.agent-plan-saving {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff9ef;
  color: #a37510;
  font-size: 10px;
  line-height: 1.6;
}
.agent-plan-price { margin-top: 18px; padding-top: 0; font-size: 32px; line-height: 1.2; font-weight: 700; }
.agent-plan-price small { font-size: 16px; }
.agent-plan:nth-child(1) .agent-plan-price { color: #b25822; }
.agent-plan:nth-child(2) .agent-plan-price { color: #2f6ba8; }
.agent-plan:nth-child(3) .agent-plan-price { color: #d9a123; }
.agent-plan-action {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}
.agent-plan:nth-child(1) .agent-plan-action { background: linear-gradient(135deg, #c9642a, #b25822); }
.agent-plan:nth-child(2) .agent-plan-action { background: linear-gradient(135deg, #4a8ccb, #2f6ba8); }
.agent-plan:nth-child(3) .agent-plan-action { background: linear-gradient(135deg, #e6b33a, #c8921a); }
.agent-plan-extra { display: grid; gap: 6px; margin-top: 2px; }
.agent-plan-extra span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #f1e2bd;
  border-radius: 9px;
  background: #fffbf2;
  color: #8a6406;
  font-size: 9px;
  line-height: 1.5;
}

.agent-rules {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}
.agent-rules b { color: var(--text); font-size: 11px; }
.agent-rules div { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-rules span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 980px) {
  .agent-hero { flex-direction: column; align-items: stretch; }
  .agent-price-card { width: 100%; }
  .agent-plan-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .agent-page { width: 100%; padding: 10px 12px 92px; }
  .agent-hero { padding: 24px 20px; border-radius: 20px; gap: 20px; }
  .agent-hero h1 { margin: 8px 0 8px; font-size: 27px; letter-spacing: -.5px; }
  .agent-hero p { font-size: 11px; }
  .agent-benefits { gap: 6px; margin-top: 14px; }
  .agent-benefits span { font-size: 9px; padding: 5px 9px; }
  .agent-price-card { padding: 16px; border-radius: 14px; }
  .agent-plans-panel { margin-top: 10px; padding: 16px; border-radius: 18px; }
  .agent-plans-panel > header { display: block; }
  .agent-plans-panel h2 { font-size: 24px; }
  .agent-toggle-card { width: max-content; margin-top: 10px; text-align: left; }
  .agent-plan { padding: 18px; }
  .agent-plan h3 { font-size: 22px; }
  .agent-plan-price { font-size: 27px; }
  .agent-rules { padding: 14px; }
}

/* --------------------------------------------------------------------------
   推广任务
   -------------------------------------------------------------------------- */
.tasks-page .page-hero { display: block; padding: 6px 4px 14px; margin: 4px 0 14px; text-align: center; }
.tasks-page .page-hero h1 { font-size: 40px; }
.tasks-page .page-hero h1 { margin-left: auto; margin-right: auto; }
.tasks-page .page-hero p { margin: 0 auto; }
.tasks-page .content-panel { margin-bottom: 16px; padding: 24px; }
.task-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #eef9f6;
  color: #0f766e;
  font-size: 12px;
}
.task-notice svg { width: 16px; height: 16px; }
.task-notice b { font-weight: 650; }

.comment-commission-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #fdf3f8);
  transition: border-color .18s, transform .18s;
}
.comment-commission-entry:hover { border-color: rgba(216, 74, 90, .35); transform: translateY(-1px); }
.comment-commission-entry img { width: 48px; height: 48px; border-radius: 12px; }
.comment-commission-entry div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.comment-commission-entry span { color: #d84a5a; font-size: 9px; font-weight: 800; letter-spacing: .6px; }
.comment-commission-entry b { font-size: 17px; }
.comment-commission-entry small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.comment-commission-entry strong { flex: none; font-size: 11px; font-weight: 650; }

.task-list { display: grid; gap: 12px; margin-top: 12px; }
.task-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.task-logo { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #101014; overflow: hidden; }
.task-logo img { width: 100%; height: 100%; object-fit: contain; }
.task-copy { flex: 1; min-width: 0; display: grid; gap: 6px; }
.task-title { display: flex; align-items: center; gap: 8px; }
.task-title h2 { font-size: 16px; }
.task-title span { padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 9px; }
.task-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.task-tags span { padding: 3px 7px; border-radius: 999px; background: #f1f4f8; color: var(--muted); font-size: 9px; }
.task-tags .task-limit-ok { background: #e9f8f4; color: var(--accent-strong); }
.task-action { flex: none; display: grid; justify-items: end; gap: 2px; }
.task-action strong { color: #d9a123; font-size: 16px; }
.task-action small { color: var(--muted); font-size: 8px; }
.task-action button {
  margin-top: 5px;
  height: 31px;
  padding: 0 13px;
  border: 1px solid rgba(18, 168, 154, .35);
  border-radius: 8px;
  background: #eaf9f6;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 700;
}

.task-records-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.task-records-header h2 { margin: 3px 0 4px; font-size: 22px; }
.task-records-header p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.task-records-header .secondary-button { min-height: 36px; padding: 6px 13px; font-size: 10px; flex: none; }
.task-record-login {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
}
.task-record-login b { font-size: 14px; }
.task-record-login span { color: var(--muted); font-size: 10px; }
.task-record-login .primary-button { min-width: 130px; min-height: 38px; margin-top: 9px; font-size: 11px; }

@media (max-width: 760px) {
  .tasks-page { width: 100%; padding: 10px 12px 92px; }
  .tasks-page .page-hero { padding: 14px 4px 12px; }
  .tasks-page .page-hero h1 { font-size: 30px; }
  .tasks-page .content-panel { padding: 16px; border-radius: 16px; }
  .task-notice { font-size: 10px; padding: 11px 12px; }
  .comment-commission-entry { padding: 12px; gap: 10px; }
  .comment-commission-entry img { width: 40px; height: 40px; }
  .comment-commission-entry b { font-size: 14px; }
  .comment-commission-entry small { font-size: 9px; }
  .comment-commission-entry strong { font-size: 9px; }
  .task-card { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .task-logo { width: 44px; height: 44px; border-radius: 11px; }
  .task-title h2 { font-size: 13px; }
  .task-tags span { font-size: 8px; }
  .task-action { width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .task-action button { margin-top: 0; }
  .task-records-header { display: block; }
  .task-records-header .secondary-button { margin-top: 10px; }
  .task-records-header h2 { font-size: 19px; }
}

/* --------------------------------------------------------------------------
   2FA 工具 / 订阅状态查询
   -------------------------------------------------------------------------- */
.tool-page { width: min(760px, 92vw); padding: 28px 0 70px; }
.tool-page .page-hero { display: block; padding: 8px 4px 16px; margin: 6px 0 16px; }
.tool-page .page-hero h1 { margin: 4px 0 8px; font-size: 40px; }
.tool-panel { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.tool-panel h2 { font-size: 18px; margin-bottom: 6px; }
.tool-panel > p { color: var(--muted); font-size: 11px; line-height: 1.75; margin-bottom: 16px; }
.tool-field { display: grid; gap: 6px; margin-bottom: 12px; }
.tool-field span { color: var(--muted); font-size: 10px; }
.tool-field input { height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; outline: 0; }
.tool-field input:focus { border-color: rgba(18, 168, 154, .5); box-shadow: 0 0 0 3px rgba(18, 168, 154, .1); }
.tool-result {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 22px;
  border: 1px dashed rgba(18, 168, 154, .4);
  border-radius: 14px;
  background: #f4fbf9;
  text-align: center;
}
.tool-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 34px;
  letter-spacing: 7px;
  font-weight: 700;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}
.tool-result small { color: var(--muted); font-size: 10px; }
.tool-bar { width: 100%; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.tool-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .5s linear; }
.tool-note { margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.tool-actions { display: flex; gap: 9px; margin-top: 14px; }
.tool-actions .primary-button { min-width: 120px; }
.tool-status { display: grid; gap: 6px; margin-top: 14px; }
.tool-status div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 11px; }
.tool-status span { color: var(--muted); }

@media (max-width: 760px) {
  .tool-page { width: 100%; padding: 10px 12px 92px; }
  .tool-panel { padding: 18px; border-radius: 16px; }
  .tool-code { font-size: 28px; letter-spacing: 5px; }
}

/* 平板窄屏：避免导航向左溢出，首页标题改为堆叠 */
@media (max-width: 980px) {
  .desktop-nav { justify-content: flex-start; overflow: hidden; }
  .home-heading h1 { font-size: 34px; letter-spacing: -.8px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .home-heading { flex-direction: column; align-items: stretch; gap: 14px; }
  .home-heading-actions { justify-content: flex-start; }
  .search-field { width: min(420px, 100%); }
  .home-heading h1 { font-size: 32px; }
  .category-panel { top: 78px; }
}
