@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@600;700;900&display=swap");

:root {
  --bg-page: #fcfcfc;
  --bg-card: #ffffff;
  --bg-soft: #f2f2f7;
  --text-main: #1c1c1e;
  --text-second: #8e8e93;
  --text-third: #b4b4bb;
  --line: rgba(60, 60, 67, 0.1);
  --brand: #d6ad5f;
  --brand-hover: #c49a3c;
  --brand-light: #FFFCF5;
  --brand-soft: rgba(214, 173, 95, 0.12);
  --brand-border: rgba(214, 173, 95, 0.28);
  --brand-shadow: rgba(180, 140, 70, 0.18);
  --accent: #d6ad5f;
  --accent-soft: rgba(214, 173, 95, 0.10);
  --accent-border: rgba(214, 173, 95, 0.28);
  --gold: #d6ad5f;
  --font-display: "Noto Serif SC","Songti SC","STSongti",Georgia,serif;
  --font-mono: "SF Mono","Menlo","Cascadia Code",monospace;
  --tabbar-height: 60px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 999px;
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hero: 0 22px 50px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg-page); color: var(--text-main); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; background: transparent; color: inherit; padding: 0; }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; }

#mobile-app { min-height: 100vh; }

.mobile-screen,
.mobile-auth { min-height: 100vh; padding: 0 16px calc(var(--tabbar-height) + 20px); background: var(--bg-page); }
.mobile-screen--centered { display: grid; place-items: center; }
.mobile-topbar { position: sticky; top: 0; z-index: 20; padding: 16px 0 12px; background: linear-gradient(180deg, rgba(252,252,252,0.96), rgba(252,252,252,0.82), rgba(252,252,252,0)); backdrop-filter: blur(12px); }
.top-search-wrap { display: flex; align-items: center; gap: 7px; }
.mobile-screen--market { padding: 0; height: 100vh; background: #fff; overflow: hidden; overscroll-behavior: none; }
.search-shell { flex: 1; display: flex; align-items: center; height: 33px; padding: 0 13px; border-radius: 17px; background: #fff; border: 0.5px solid rgba(17, 24, 39, 0.08); box-shadow: 0 4px 11px rgba(17, 24, 39, 0.04); transition: background-color 0.18s ease, box-shadow 0.22s ease; }
.search-icon { color: #8a8a8f; font-size: 14px; margin-right: 6px; display: inline-flex; align-items: center; }
.search-input { width: 100%; border: 0; outline: 0; background: transparent; color: #202025; font-size: 12px; }
.search-input::placeholder { color: var(--text-third); }
.mode-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  height: 32px;
  border-radius: 11px;
  background: rgba(255,255,255,0.94);
  border: 0.5px solid rgba(17,24,39,0.08);
  box-shadow: 0 3px 9px rgba(17,24,39,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.12s cubic-bezier(.2,.8,.2,1), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.mode-btn:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 0 2px 6px rgba(17,24,39,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}
.mode-text {
  color: #1c1c1e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.mode-caret {
  color: #8e8e93;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.mobile-screen--feed .mode-btn.menu-btn {
  background: rgba(255,255,255,0.94);
  border-color: rgba(17,24,39,0.08);
}
.mobile-screen--feed .mode-btn.menu-btn .menu-text,
.mobile-screen--feed .mode-btn.menu-btn .mode-caret { color: #1c1c1e; }

.market-panel,
.feed-scroll,
.feature-panel,
.mobile-auth__card,
.mobile-empty-state,
.button-item,
.announcement-item,
.card { background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-card); }

.market-panel,
.feed-scroll,
.feature-panel,
.mobile-empty-state { border-radius: 24px; }
.market-panel,
.feed-scroll,
.feature-panel { padding: 16px; }
.feed-scroll { border: none; background: transparent; box-shadow: none; padding: 0; }

.replica-page { height: 100vh; min-height: 100vh; background: #fff; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: none; }
.top-search-wrap { display: flex; align-items: center; gap: 7px; padding: 4px 13px 4px; background: #fff; flex-shrink: 0; position: relative; z-index: 50; }
.search-shell { flex: 1; min-width: 0; height: 33px; border-radius: 17px; background: #fff; display: flex; align-items: center; padding: 0 13px; box-shadow: 0 4px 11px rgba(17, 24, 39, 0.04); border: 0.5px solid rgba(17, 24, 39, 0.08); transition: background-color 0.18s ease, box-shadow 0.22s ease; }
.search-icon { color: #8a8a8f; font-size: 14px; margin-right: 6px; line-height: 1; display: inline-flex; align-items: center; }
.search-input { flex: 1; height: 100%; font-size: 12px; color: #202025; }
.search-input::placeholder { color: var(--text-third); }
.market-vertical-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.market-vertical-scroll.market-content--refreshing { opacity: .88; transition: opacity 160ms ease-out; }
@media (prefers-reduced-motion: reduce) { .market-vertical-scroll.market-content--refreshing { opacity: 1; transition: none; } }
.market-scroll-wrap { flex: 0 0 auto; min-height: 0; overflow: visible; position: relative; overscroll-behavior: none; }
.market-scroll-wrap::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 24px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03)); pointer-events: none; z-index: 10; opacity: 0; transition: opacity 200ms ease; }
.market-scroll-wrap--hint::after { opacity: 1; }
.market-scroll { height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: calc(var(--tabbar-height) + 18px); }
.market-table { min-width: max-content; background: #fff; }
.market-head { display: block; position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.86); backdrop-filter: blur(12px) saturate(180%); -webkit-backdrop-filter: blur(12px) saturate(180%); overflow: visible; padding: 0; box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.market-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: linear-gradient(180deg, rgba(0,0,0,0.03), transparent); pointer-events: none; }
.market-head .cell,
.market-head .sticky-name-col { background: transparent; }
.market-body { display: block; margin-top: 0; }
.market-row { display: flex; align-items: center; min-width: 744px; }
.body-row { height: 76px; padding: 0; border-radius: 0; background: #fff; border: 0; box-shadow: none; transition: background-color 100ms ease-out; }

.cell { display: flex; align-items: center; box-sizing: border-box; white-space: nowrap; background: #fff; padding: 14px 10px; flex-shrink: 0; }
.cell.th { position: relative; z-index: 20; color: #8f8f95; font-size: 12px; font-weight: 500; padding-top: 10px; padding-bottom: 10px; }
.cell.td { font-size: 13px; padding-top: 5px; padding-bottom: 5px; }
.sort-col { justify-content: flex-end; text-align: right; gap: 4px; }
.sort-button { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; width: 100%; color: #8f8f95; }
.name-col .sort-button { justify-content: flex-start; }
.name-col .sort-button .name-head-title { flex: none; }
.sort-button--active { color: var(--gold); }
.sort-label { flex-shrink: 0; line-height: 1.2; }
.sort-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 14px; flex-shrink: 0; line-height: 0; }
.sort-mark svg { display: block; }
.expand-toggle { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #8f8f95; font-size: 16px; line-height: 1; cursor: pointer; transition: background 0.15s, transform 0.2s; }
.expand-toggle:active { background: var(--bg-soft); }
.name-head-row, .name-cell, .high-low-wrap, .card-header, .card-body, .item-left, .member-center__top, .member-center__title-row, .member-center__metric-value-row, .member-center__actions { display: flex; align-items: center; }
.name-head-row, .card-header, .member-center__top, .member-center__actions { justify-content: space-between; }
.sticky-name-col { position: sticky; left: 0; z-index: 25; background-color: #fff; }
.market-head .sticky-name-col { position: sticky; left: 0; z-index: 45; background: #fff; }
.name-col { display: flex; align-items: center; width: 250px; min-width: 250px; max-width: 250px; padding-left: 16px; padding-right: 0; background-color: #fff; }
.col-price { width: 55px; min-width: 55px; max-width: 55px; justify-content: flex-end; text-align: right; }
.col-volume { width: 62px; min-width: 62px; max-width: 62px; justify-content: flex-end; text-align: right; }
.col-wide { width: 80px; min-width: 80px; max-width: 80px; justify-content: flex-end; text-align: right; }
.col-wide--trade24h { width: 100px; min-width: 100px; max-width: 100px; border-left: 0.5px solid rgba(0,0,0,0.06); }

/* ── value-change highlight (mirrors mini-program) ── */
.market-cell-changed { animation: marketCellValueChanged 520ms ease-out; }
@keyframes marketCellValueChanged {
  0% { background-color: rgba(255, 214, 10, .28); }
  100% { background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) { .market-cell-changed { animation: none; } }

.col-high-low { width: 69px; min-width: 69px; max-width: 69px; justify-content: flex-end; text-align: right; }
.col-expand { width: 32px; min-width: 32px; max-width: 32px; justify-content: center; padding: 14px 0; }
.col-price--no-rise-home { width: 81px; min-width: 81px; max-width: 81px; }
.col-volume--no-rise-home { width: 81px; min-width: 81px; max-width: 81px; }
@media (max-width: 600px) {
  .market-table--no-rise-home .name-col {
    width: min(60vw, 250px);
    min-width: min(60vw, 250px);
    max-width: min(60vw, 250px);
  }

  .market-table--no-rise-home .col-price--no-rise-home,
  .market-table--no-rise-home .col-volume--no-rise-home {
    width: min(19.5vw, 81px);
    min-width: min(19.5vw, 81px);
    max-width: min(19.5vw, 81px);
  }
}
.th.col-price, .td.col-price { padding-right: 5px; }
.th.col-high-low, .td.col-high-low { padding-right: 0; }
.td.col-high-low { justify-content: center; text-align: center; }
.name-cell { gap: 10px; min-width: 0; width: 100%; }
.name-head-row { justify-content: flex-start; width: 100%; min-width: 0; gap: 5px; }
.name-head-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; font-weight: 500; color: #8f8f95; }
.name-head-star-sort { display: flex; align-items: center; gap: 3px; flex-shrink: 0; margin-left: auto; color: #8f8f95; }
.name-head-star-sort-text { font-size: 12px; color: #8f8f95; white-space: nowrap; line-height: 1.2; }
.cover-image { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); flex-shrink: 0; }
.name-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.name-title { font-size: 15px; line-height: 1.2; color: #1f1f24; font-weight: 400; }
.name-sub, .footer-hint__text, .member-center__metric-meta, .member-center__benefit-id, .member-center__guest-reward-desc, .member-center__username, .mobile-inline-tip { color: var(--text-second); font-size: 12px; }
.name-sub { font-size: 10px; color: #a0a0a8; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-value { color: #1f1f24; font-size: 14px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.td.col-price .num-value, .td.col-volume .num-value, .td.col-wide .num-value { font-size: 14px; }
.high-low-wrap { flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.high-low-value { font-size: 14px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.high-value { color: #c62828; }
.low-value { color: #2f6b55; }
.market-clear-btn {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.market-clear-btn:active { transform: scale(0.92); opacity: 0.8; }
.market-clear-btn[hidden] { display: none; }
.empty-holder { position: sticky; left: 0; width: 100%; box-sizing: border-box; text-align: center; color: var(--text-third); font-size: 13px; padding: 56px 16px 60px; }
.empty-holder--search { padding-top: 28px; padding-bottom: 18px; }
.history-only-search-panel { position: sticky; left: 0; width: 100%; box-sizing: border-box; margin: 0; padding: 8px 12px 14px; background: #FFF8EB; border: 1px solid rgba(214, 173, 95, 0.16); border-radius: 12px; box-shadow: 0 5px 12px rgba(214, 173, 95, 0.08); }
.history-only-search-title { display: block; color: #1f1f24; font-size: 14px; font-weight: 600; line-height: 1.3; margin: 0; }
.history-only-search-pill-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.history-only-search-pill { max-width: 100%; padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid rgba(214, 173, 95, 0.22); box-sizing: border-box; }
.history-only-search-pill-text { color: #c49a3c; font-size: 12px; line-height: 1.35; white-space: nowrap; }

.feed-scroll { display: grid; }
.mobile-screen--feed.page {
  padding: 0;
  height: 100vh;
  width: 100%;
  background: #f7f7f9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-screen--feed .header {
  padding: 4px 13px 9px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(17,24,39,0.045);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  isolation: isolate;
}
.mobile-screen--feed .header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: linear-gradient(180deg, rgba(15,23,42,0.055), transparent); pointer-events: none; z-index: -1; }
.feed-mode-tabs { position: relative; display: flex; gap: 7px; padding: 4px 0 10px; }
.feed-mode-tabs__indicator { position: absolute; z-index: 0; left: 0; bottom: 10px; width: calc(50% - 3.5px); height: 37px; border-radius: 10px; background: #1c1c1e; box-shadow: 0 5px 12px rgba(17,24,39,.16), inset 0 1px 0 rgba(255,255,255,.08); pointer-events: none; transition: transform 300ms cubic-bezier(.22,1,.36,1), box-shadow 200ms ease; }
.feed-mode-tabs__indicator--new-trades { transform: translateX(calc(100% + 7px)); }
.feed-mode-tab { position: relative; z-index: 1; appearance: none; flex: 1; display: flex; align-items: center; justify-content: center; height: 37px; padding: 0 10px; border: 0.5px solid rgba(17,24,39,0.07); border-radius: 10px; background: rgba(255,255,255,0.82); box-shadow: 0 3px 9px rgba(17,24,39,0.035); color: #1c1c1e; font: 700 14px/1.2 var(--font-apple); text-align: center; transition: color 160ms ease, border-color 160ms ease, transform 100ms ease; }
.feed-mode-tab:active { transform: scale(0.97); opacity: 0.9; }
.feed-mode-tab--active { background: transparent; border-color: transparent; box-shadow: none; color: #fff; }
.feed-mode-tab__label-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.feed-mode-tab__name { font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; transition: color 0.22s ease; }
.feed-mode-tab--active .feed-mode-tab__name { color: #fff; }
.feed-mode-tab__info { position: absolute; left: 100%; margin-left: 3px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; color: rgba(28, 28, 30, 0.35); transition: color 0.22s ease; }
.feed-mode-tab__info::before { content: ''; position: absolute; inset: -10px; }
.feed-mode-tab--active .feed-mode-tab__info { color: rgba(255, 255, 255, 0.55); }
.feed-mode-tab__info:active { transform: scale(0.88); opacity: 0.7; }
.new-trade-catchup { margin: 8px 0 0; color: #8e8e93; font-size: 11px; }

/* card-title indent (matches mini program) */
.card-title { padding-left: 1ch; }
.mobile-screen--feed .top-search-wrap { padding: 0; }
.mobile-screen--feed .mode-btn.menu-btn { background: rgba(255,255,255,0.94); border-color: rgba(17,24,39,0.08); }
.mobile-screen--feed .mode-btn.menu-btn .menu-text { color: #1c1c1e; }
.mobile-screen--feed .mode-btn.menu-btn .mode-caret { color: #8e8e93; }
.mobile-screen--feed .search-shell:focus-within { border-color: rgba(214,173,95,0.56); box-shadow: 0 0 0 3px rgba(214,173,95,0.12), 0 4px 11px rgba(17,24,39,0.05); }
.mobile-screen--feed .mode-btn.menu-btn.feed-menu-btn--active { border-color: rgba(214,173,95,0.42); box-shadow: 0 0 0 3px rgba(214,173,95,0.10), 0 3px 9px rgba(17,24,39,0.06); }
.feed-filter-active-dot { display: none; width: 5px; height: 5px; margin-left: -1px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px rgba(214,173,95,0.14); flex-shrink: 0; }
.feed-menu-btn--active .feed-filter-active-dot { display: inline-block; }
.mobile-screen--feed .container {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(var(--tabbar-height) + 18px);
  background: #f7f7f9;
}
.mobile-screen--feed .feed-scroll {
  padding: 0 13px 10px;
}
.feed-scroll [data-role="feed-list"],
.feed-container { display: flex; flex-direction: column; gap: 6px; }
.feed-clear-btn {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.feed-clear-btn:active { transform: scale(0.86); opacity: 0.72; }
.feed-clear-btn[hidden] { display: none; }
.mobile-screen--feed .card { border-radius: 14px; margin: 0; padding: 10px 12px 10px 15px; box-shadow: 0 7px 17px rgba(15,23,42,0.04), 0 1px 4px rgba(15,23,42,0.03); position: relative; overflow: hidden; transition: transform 120ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease; }
.mobile-screen--feed .card:active { transform: translateY(1px) scale(.985); border-color: rgba(17,24,39,0.14); box-shadow: 0 3px 8px rgba(15,23,42,0.055), inset 0 1px 0 rgba(255,255,255,0.9); }
.mobile-screen--feed .card:focus-visible,
.mobile-screen--feed .feed-mode-tab:focus-visible,
.mobile-screen--feed .mode-btn:focus-visible,
.mobile-screen--feed .feed-clear-btn:focus-visible,
.mobile-screen--feed .feed-load-more-btn:focus-visible { outline: 2px solid rgba(214,173,95,0.9); outline-offset: 2px; }
.mobile-screen--feed .price-value { font-size: 15px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mobile-screen--feed .value,
.mobile-screen--feed .badge-val { font-variant-numeric: tabular-nums; }
.feed-list--loading { opacity: .72; transition: opacity 120ms ease-out; }
.feed-status-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[data-collection-id] { cursor: pointer; }

.card--new-highlight {
  background-color: #fffdf4;
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08), 0 0 0 2px rgba(255, 191, 0, 0.10) inset;
  transform: none;
}
.card--new-highlight .card-header,
.card--new-highlight .card-body {
  animation: feedCardNewContent 420ms cubic-bezier(.22, 1, .36, 1);
}
.card--new-highlight:active { transform: translateY(1px) scale(.99); }
@keyframes feedCardNewContent {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
.card--new-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 191, 0, 0.10) 0%, rgba(17, 24, 39, 0.035) 48%, rgba(255, 255, 255, 0.02) 100%);
  opacity: 0;
  animation: feedCardNewHighlightBg 900ms ease-out;
  will-change: opacity;
}
/* 保留旧动画名供兼容检查；实际位移动效已下沉到内容区，避免与卡片按压 transform 冲突。 */
.card--new-highlight::after { content: ''; display: none; animation: feedCardNewHighlight 900ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes feedCardNewHighlight {
  0% { transform: translate3d(0, -7px, 0) scale(1.006); }
  55% { transform: translate3d(0, -1px, 0) scale(1.002); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes feedCardNewHighlightBg {
  0% { opacity: 0.82; }
  58% { opacity: 0.42; }
  100% { opacity: 0; }
}
.card--value-updated .price-value,
.card--value-updated .volume-value,
.card--value-updated .badge-val { animation: feedValueChanged 420ms cubic-bezier(.22,1,.36,1); }
@keyframes feedValueChanged {
  0% { color: var(--brand-hover); background-color: rgba(214,173,95,0.18); }
  100% { color: inherit; background-color: transparent; }
}
@keyframes feedCardNewHighlightSweep {
  0% { left: -38%; opacity: 0; }
  22% { opacity: 0.9; }
  100% { left: 112%; opacity: 0; }
}
.card-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(17, 24, 39, 0.06); padding-bottom: 4px; margin-bottom: 3px; min-width: 0; gap: 6px; }
.card-header-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.card-title { font-size: 14px; font-weight: 700; color: #1A1A1A; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 10px; letter-spacing: -0.01em; }
.card-time { font-size: 13px; color: #d6ad5f; background: rgba(214, 173, 95, 0.10); border: 1px solid rgba(214, 173, 95, 0.16); border-radius: 999px; padding: 0 8px; line-height: 20px; font-family: 'DIN Alternate', var(--font-mono); flex-shrink: 0; white-space: nowrap; transition: background 0.18s ease, border-color 0.18s ease; }
.card-time--c0 { color: #d6ad5f; background: rgba(214, 173, 95, 0.10); border-color: rgba(214, 173, 95, 0.16); }
.card-time--c1 { color: #3b82f6; background: rgba(59, 130, 246, 0.10); border-color: rgba(59, 130, 246, 0.18); }
.card-time--c2 { color: #22c55e; background: rgba(34, 197, 94, 0.10); border-color: rgba(34, 197, 94, 0.18); }
.card-time--c3 { color: #f97316; background: rgba(249, 115, 22, 0.10); border-color: rgba(249, 115, 22, 0.18); }
.card-body { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-image { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; background: #fff; border: 1px solid rgba(255, 255, 255, 0.5); flex-shrink: 0; box-shadow: 0 4px 11px rgba(0, 0, 0, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9); transition: box-shadow 0.2s ease; }
.card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.card-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; font-size: 13px; }
.label { color: #757575; font-size: 11px; min-width: 44px; flex-shrink: 0; line-height: 1.3; letter-spacing: 0.01em; white-space: nowrap; }
.value { min-width: 0; font-size: 13px; color: #1f2937; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.volume-value { color: #1D1D1F; font-weight: 600; font-family: var(--font-mono); letter-spacing: 0.4px; font-variant-numeric: tabular-nums; }
.price-value { color: #1D1D1F; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.range-tags { display: inline-flex; gap: 4px; min-width: 0; }
.range-tag { max-width: 100%; font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 0; font-weight: 600; font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255, 59, 48, 0.06); color: #c92a22; }
.range-tag.high { background: rgba(255, 59, 48, 0.06); color: #c92a22; border: 0; }
.range-tag.low { background: rgba(52, 199, 89, 0.06); color: #21813f; border: 0; }
.card-metric { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 63px; padding-left: 8px; border-left: 1px solid rgba(17, 24, 39, 0.08); flex-shrink: 0; margin-left: 1px; position: relative; z-index: 2; }
.metric-label { color: #757575; font-size: 11px; margin-bottom: 4px; font-weight: 400; line-height: 1.3; letter-spacing: 0; }
.ios-badge { min-width: 54px; padding: 6.5px 12px; border-radius: 9px; background: linear-gradient(180deg, #151922 0%, #08090e 100%); color: #fff; text-align: center; box-shadow: 0 5px 12px rgba(8, 9, 14, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.badge-val { color: #fff; font-size: 17px; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; line-height: 1; }

/* ── feed filter menu ── */
.feed-menu-mask {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(15,23,42,0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  animation: feedMenuMaskIn 220ms ease-out both;
}
@keyframes feedMenuMaskIn { from { opacity: 0; } to { opacity: 1; } }
.feed-menu-panel {
  width: 100%; max-width: 351px;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 12px 14px;
  box-shadow: 0 14px 32px rgba(15,23,42,0.18), inset 0 1px 0 rgba(255,255,255,.9);
  box-sizing: border-box;
  transform-origin: top right;
  animation: feedMenuPanelIn 300ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes feedMenuPanelIn { from { opacity: 0; transform: translateY(9px) scale(.965); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes feedMenuMaskOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes feedMenuPanelOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(6px) scale(.975); } }
.feed-menu-mask--closing { animation: feedMenuMaskOut 180ms ease-in both; }
.feed-menu-panel--closing { animation: feedMenuPanelOut 180ms ease-in both; }
@keyframes feedMenuSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.feed-menu-head { margin-bottom: 20px; }
.feed-menu-title { font-size: 17px; font-weight: 700; color: #1f1f24; }
.feed-menu-setting { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(60,60,67,0.08); }
.feed-menu-setting:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.feed-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feed-setting-main { flex: 1; min-width: 0; }
.feed-setting-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: #d6ad5f;
  background: rgba(214, 173, 95, 0.12); padding: 2px 8px; border-radius: 6px; margin-bottom: 4px;
}
.feed-setting-tag--qty { color: #fff; background: #111827; }
.feed-setting-label { font-size: 13px; color: #71717a; display: block; line-height: 1.3; }
.feed-setting-input-wrap {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  background: #f5f5f7; border-radius: 10px; padding: 8px 12px;
}
.feed-setting-prefix { font-size: 15px; color: #8e8e93; font-weight: 600; font-family: var(--font-mono); }
.feed-setting-input {
  flex: 1; border: none; background: transparent; font-size: 15px; color: #1f1f24;
  outline: none; font-family: var(--font-mono); min-width: 0;
}
.feed-setting-input::placeholder { color: #aeaeb2; }
.feed-setting-input::-webkit-inner-spin-button,
.feed-setting-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* custom switch */
.feed-switch {
  position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0;
}
.feed-switch input { opacity: 0; width: 0; height: 0; }
.feed-switch-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #e8e8ed; border-radius: 26px; transition: background 0.2s;
}
.feed-switch-slider::before {
  content: ''; position: absolute; left: 3px; bottom: 3px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15); transition: transform 0.2s;
}
.feed-switch input:focus-visible + .feed-switch-slider { outline: 2px solid rgba(214,173,95,0.9); outline-offset: 2px; }
.feed-switch input:checked + .feed-switch-slider { background: #d6ad5f; }
.feed-switch input:checked + .feed-switch-slider::before { transform: translateX(18px); }

/* ── feed info modal: quiet monitoring sheet ── */
.feed-info-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 29, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: feedInfoModalMaskIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes feedInfoModalMaskIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.feed-info-modal-panel {
  width: 100%;
  max-width: 420px;
  max-height: min(720px, calc(100vh - 32px));
  background: #fffdf8;
  border: 1px solid rgba(214, 173, 95, 0.18);
  border-radius: 26px;
  padding: 20px 20px 22px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28), 0 2px 0 rgba(255,255,255,.8) inset;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
  animation: feedInfoModalPanelIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes feedInfoModalPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.feed-info-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece7dc;
}
.feed-info-modal-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feed-info-modal-title::before {
  content: attr(data-kicker);
  color: #a48143;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
}
.feed-info-modal-title-stack { min-width: 0; }
.feed-info-modal-kicker {
  display: block;
  margin-bottom: 6px;
  color: #a48143;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.1;
}
.feed-info-modal-title[data-kicker] {
  font-size: 17px;
  font-weight: 700;
  color: #25231f;
  line-height: 1.3;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.feed-info-modal-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2eee6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #756c5d;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.feed-info-modal-close:hover,
.feed-info-modal-close:focus-visible {
  background: #eae1d1;
  color: #4d4538;
  outline: none;
}
.feed-info-modal-close:active {
  transform: scale(.92);
}
.feed-info-modal-body {
  padding: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.feed-info-modal-paragraph {
  margin-bottom: 16px;
}
.feed-info-modal-paragraph:last-child {
  margin-bottom: 0;
}
.feed-info-modal-text {
  display: block;
  font-size: 14px;
  color: #45413b;
  line-height: 1.75;
  word-break: break-word;
}
.feed-info-modal-summary .feed-info-modal-text {
  max-width: 38em;
}
.feed-info-modal-scope-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px 15px;
  border: 1px solid rgba(214, 173, 95, 0.24);
  border-radius: 16px;
  background: #f8f1e5;
}
.feed-info-modal-scope-copy { min-width: 0; }
.feed-info-modal-scope-copy .feed-info-modal-kicker { margin-bottom: 4px; }
.feed-info-modal-scope-label {
  display: block;
  color: #655b4c;
  font-size: 12px;
  line-height: 1.4;
}
.feed-info-modal-scope-value {
  color: #866632;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.02em;
}

.feed-info-modal-collection-section { display: flex; flex: 1; flex-direction: column; min-height: 0; margin-top: 2px; }
.feed-info-modal-collection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.feed-info-modal-collection-heading-main { min-width: 0; }
.feed-info-modal-collection-heading-main .feed-info-modal-kicker { margin-bottom: 5px; }
.feed-info-modal-collection-heading strong { display: block; color: #25231f; font-size: 15px; line-height: 1.25; }
.feed-info-modal-collection-count { padding: 5px 8px; border-radius: 999px; background: #f2eadb; color: #94713b; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.feed-info-modal-search-shell { display: flex; align-items: center; height: 44px; padding: 0 12px; border: 1px solid #e6dfd3; border-radius: 13px; background: #f9f8f4; box-sizing: border-box; flex-shrink: 0; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.feed-info-modal-search-shell:focus-within { border-color: #d6ad5f; background: #fffdf8; box-shadow: 0 0 0 3px rgba(214,173,95,.14); }
.feed-info-modal-search-icon { display: flex; align-items: center; margin-right: 8px; color: #9b917f; line-height: 0; }
.feed-info-modal-search-shell input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #25231f; font-size: 14px; }
.feed-info-modal-search-shell input::placeholder { color: #aaa398; }
.feed-info-modal-search-clear { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #857b6b; font-size: 18px; line-height: 30px; text-align: center; cursor: pointer; }
.feed-info-modal-search-clear:hover { background: #eee8dc; }
.feed-info-modal-search-clear[hidden] { display: none; }
.feed-info-modal-collection-scroll { flex: 1; min-height: 150px; max-height: min(44vh, 340px); margin-top: 12px; padding: 4px 0; border: 1px solid #ebe5da; border-radius: 16px; background: #fbfaf7; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d6cbb9 transparent; }
.feed-info-modal-collection-row { display: flex; align-items: center; min-height: 42px; padding: 8px 12px; border-bottom: 1px solid #eee9e0; box-sizing: border-box; transition: background-color .16s ease; }
.feed-info-modal-collection-row:last-child { border-bottom: 0; }
.feed-info-modal-collection-row:hover { background: #f4f0e8; }
.feed-info-modal-collection-status { width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: #4e9a67; box-shadow: 0 0 0 3px rgba(78,154,103,.12); flex-shrink: 0; }
.feed-info-modal-collection-index { width: 28px; color: #aaa194; font-size: 11px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.feed-info-modal-collection-name { min-width: 0; color: #403c35; font-size: 13px; line-height: 1.5; word-break: break-word; }
.feed-info-modal-collection-state { min-height: 150px; padding: 24px 12px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: #9a9286; font-size: 13px; line-height: 1.6; text-align: center; }
.feed-info-modal-collection-state--error { color: #b24b4b; }

@media (max-width: 480px) {
  .feed-info-modal-mask { align-items: flex-end; padding: 8px 10px max(10px, env(safe-area-inset-bottom)); }
  .feed-info-modal-panel { max-width: none; max-height: calc(100vh - 16px); border-radius: 26px 26px 18px 18px; padding: 18px 16px max(20px, env(safe-area-inset-bottom)); }
  .feed-info-modal-title[data-kicker] { font-size: 16px; }
  .feed-info-modal-collection-scroll { max-height: min(43vh, 320px); }
}

html.desktop-dark .feed-info-modal-panel {
  background: #14181f;
  border-color: rgba(214, 173, 95, 0.22);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.52), 0 2px 0 rgba(255,255,255,.04) inset;
}
html.desktop-dark .feed-info-modal-head { border-bottom-color: rgba(255,255,255,.08); }
html.desktop-dark .feed-info-modal-title[data-kicker],
html.desktop-dark .feed-info-modal-collection-heading strong { color: #e8ecf2; }
html.desktop-dark .feed-info-modal-kicker { color: #d6ad5f; }
html.desktop-dark .feed-info-modal-close { background: rgba(255,255,255,.08); color: #98989d; }
html.desktop-dark .feed-info-modal-close:hover,
html.desktop-dark .feed-info-modal-close:focus-visible { background: rgba(255,255,255,.14); color: #f5f5f7; }
html.desktop-dark .feed-info-modal-text { color: #d1d5db; }
html.desktop-dark .feed-info-modal-scope-card { border-color: rgba(214,173,95,.18); background: rgba(214,173,95,.08); }
html.desktop-dark .feed-info-modal-scope-label { color: #b7bec8; }
html.desktop-dark .feed-info-modal-scope-value { color: #d6ad5f; }
html.desktop-dark .feed-info-modal-collection-count { background: rgba(214,173,95,.14); color: #d6ad5f; }
html.desktop-dark .feed-info-modal-search-shell { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.06); }
html.desktop-dark .feed-info-modal-search-shell:focus-within { background: rgba(255,255,255,.09); }
html.desktop-dark .feed-info-modal-search-icon,
html.desktop-dark .feed-info-modal-collection-index,
html.desktop-dark .feed-info-modal-collection-state { color: #98989d; }
html.desktop-dark .feed-info-modal-search-shell input { color: #f5f5f7; }
html.desktop-dark .feed-info-modal-search-shell input::placeholder { color: #7a8290; }
html.desktop-dark .feed-info-modal-collection-scroll { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
html.desktop-dark .feed-info-modal-collection-row { border-bottom-color: rgba(255,255,255,.08); }
html.desktop-dark .feed-info-modal-collection-row:hover { background: rgba(255,255,255,.05); }
html.desktop-dark .feed-info-modal-collection-name { color: #d1d5db; }

/* ── feed load-more ── */
.feed-load-more {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}
.feed-load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 140px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  border: 0.5px solid rgba(17,24,39,0.14);
  cursor: pointer;
  box-shadow: 0 4px 11px rgba(15,23,42,0.08);
  transition: transform 120ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, opacity 180ms ease;
}
.feed-load-more-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(15,23,42,0.06);
}
.feed-load-more-btn--loading {
  opacity: 0.7;
  pointer-events: none;
}
.feed-load-more-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
  color: #94a3b8;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(248, 250, 252, 0.7);
  width: 100%;
}

/* ── trade amount rank ── */
/* ═══════════════════════════════════════════════
   Trade Rank Page — 1:1 mini-program replica
   Brand color: gold (#d6ad5f / #a67c3c)
   ═══════════════════════════════════════════════ */
.trade-rank-page {
  min-height: 100vh;
  background: #f4f5f7;
  overflow: auto;
}
.trade-rank-content { padding: 10px 0 28px; max-width: 640px; margin: auto; }

/* ── Cards ── */
.trade-rank-summary, .trade-rank-details, .trade-rank-segments {
  background: #ffffff;
  border: 0.5px solid rgba(29,39,56,0.06);
  box-shadow: 0 5px 15px rgba(31,45,70,0.055), 0 0.5px 2px rgba(31,45,70,0.03);
}
.trade-rank-summary, .trade-rank-details { border-radius: 14px; }
.trade-rank-summary {
  position: relative; overflow: hidden;
  padding: 16px 16px 14px;
  margin-bottom: 12px;
  background: radial-gradient(circle at 50% 18%, rgba(214,173,95,0.10), rgba(255,255,255,0) 56%), #ffffff;
}
.market-rank-summary {
  height: 118px;
  display: grid;
  grid-template-columns: 1.55fr .95fr;
  grid-template-rows: auto auto auto;
  gap: 0;
  padding: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #050505 0%, #151515 58%, #303030 160%);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
.market-rank-summary .trade-rank-summary__head { grid-column: 2; grid-row: 1; padding: 10px 12px 0 8px; }
.market-rank-summary .trade-rank-summary__head > span { color: rgba(255,255,255,.66); font-size: 10px; font-weight: 500; }
.market-rank-summary .trade-rank-summary__head button { padding: 2px 0; border: 0; background: transparent; color: #d4d4d4; font-size: 10px; }
.market-rank-summary .trade-rank-total { grid-column: 2; grid-row: 2; justify-content: flex-start; min-width: 0; padding: 2px 12px 0 2px; gap: 2px; overflow: hidden; clip-path: none; animation: none; }
.market-rank-summary--ready .trade-rank-total { clip-path: inset(0 100% 0 0); animation: market-rank-total-reveal 420ms cubic-bezier(.22,.75,.26,1) forwards; }
.market-rank-summary--static .trade-rank-total { clip-path: none; animation: none; }
.market-rank-summary .trade-rank-total strong {
  color: #fff;
  font-family: "Avenir Next Condensed", "Arial Rounded MT Bold", "SF Pro Display", sans-serif;
  font-size: 44px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.04em;
  line-height: .86;
  text-shadow: 0 0 18px rgba(255,255,255,.18);
  clip-path: none;
  animation: none;
}
.market-rank-summary .trade-rank-total span { flex: none; color: #cfcfcf; font-size: 11px; }
.market-rank-summary .trade-rank-status { display: none; }
.market-rank-summary .trade-rank-trend { grid-column: 1; grid-row: 1 / 4; min-width: 0; margin: 0; padding: 0 0 8px 4px; border: 0; position: relative; overflow: hidden; }
.market-rank-summary .trade-rank-trend::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.18) 82%, transparent); pointer-events: none; z-index: 1; }
.market-rank-summary .trade-rank-trend > div:first-child { position: relative; z-index: 3; margin: 10px 0 0 8px; }
.market-rank-summary .trade-rank-trend strong { color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.market-rank-summary .trade-rank-chart { height: auto; padding: 0; position: absolute; inset: 14px -8px 8px 4px; }
.market-rank-summary .trade-rank-chart::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent 33px, rgba(255,255,255,.08) 34px), linear-gradient(180deg, transparent 0 49%, rgba(255,255,255,.09) 50%, transparent 51%); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent); opacity: .75; }
.market-rank-summary .trade-rank-chart svg { position: relative; z-index: 2; }
.market-rank-summary .chart-line--ghost { stroke: #fff; stroke-width: 8; opacity: .16; filter: blur(7px); stroke-dasharray: 1; stroke-dashoffset: 1; }
.market-rank-summary--ready .chart-line--ghost { animation: market-rank-draw 1.8s cubic-bezier(.22,.75,.26,1) .18s forwards, market-rank-ghost-breathe 3.2s ease-in-out 1.9s infinite alternate; }
.market-rank-summary .chart-line--sharp { stroke: #fff; stroke-width: 1.5; opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }
.market-rank-summary--ready .chart-line--sharp { animation: market-rank-sharp 1.6s ease .4s forwards; }
.market-rank-summary--static .chart-line--ghost { animation: none; stroke-dashoffset: 0; }
.market-rank-summary--static .chart-line--sharp { animation: none; opacity: .9; stroke-dashoffset: 0; }
.market-rank-summary .chart-area, .market-rank-summary .chart-dot, .market-rank-summary .chart-label--value { display: none; }
.market-rank-summary .chart-label { fill: rgba(255,255,255,.42); font-size: 8px; text-anchor: middle; }
.market-rank-summary-wrap { margin: 0; padding: 10px 16px 0; }
@keyframes market-rank-draw { to { stroke-dashoffset: 0; } }
@keyframes market-rank-sharp { 0%,65% { opacity: 0; stroke-dashoffset: 1; } 100% { opacity: .9; stroke-dashoffset: 0; } }
@keyframes market-rank-ghost-breathe { from { opacity: .11; filter: blur(8px); } to { opacity: .25; filter: blur(5px); } }
@keyframes market-rank-dot { to { opacity: 1; } }
@keyframes market-rank-number-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes market-rank-total-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes market-rank-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .market-rank-summary .chart-line--ghost, .market-rank-summary .chart-line--sharp, .market-rank-summary .chart-dot, .market-rank-summary .trade-rank-total, .market-rank-summary .trade-rank-total strong, .market-rank-summary .trade-rank-status { animation: none; opacity: 1; stroke-dashoffset: 0; clip-path: none; }
}
.trade-rank-details { padding: 16px; margin-bottom: 12px; }
.trade-rank-segments { border-radius: 12px; margin: 0 0 12px; overflow: hidden; }

/* ── Summary header ── */
.trade-rank-summary__head, .trade-rank-details__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.trade-rank-summary__head > span {
  font-size: 17px; font-weight: 700; color: #34445e; line-height: 1.35;
}
.trade-rank-details__head strong { font-size: 15.5px; font-weight: 700; color: #1b263b; }

/* Refresh button — gold, not blue */
.trade-rank-summary button {
  display: flex; align-items: center; gap: 3px;
  padding: 6px 10px; border-radius: 7px;
  border: 0.5px solid #ead8b8;
  background: #fffaf0; color: #93682d;
  font-size: 11.5px; font-weight: 600;
  transition: transform 0.14s ease-out, background 0.14s ease-out;
}
.trade-rank-summary button:active { transform: scale(0.96); background: #f1e1bd; }

/* Total amount */
.trade-rank-total {
  display: flex; justify-content: center; align-items: baseline;
  padding: 14px 0 2px; color: #61728d; gap: 5px;
}
.trade-rank-total strong {
  color: #111c34; font-size: 44px; font-weight: 700;
  letter-spacing: -0.055em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trade-rank-total span { font-size: 15px; }

/* Status */
.trade-rank-status { text-align: center; margin: 0 0 2px; color: #39754e; font-size: 12px; font-weight: 600; }

/* Trend */
.trade-rank-trend { border-top: 0.5px solid rgba(31,45,70,0.07); margin-top: 11px; padding-top: 11px; }
.trade-rank-trend strong { color: #1b263b; font-size: 15.5px; font-weight: 700; }
.trade-rank-trend span { color: #8fa1bc; font-size: 11px; }
.trade-rank-trend > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }

/* Chart — gold themed */
.trade-rank-chart { width: 100%; height: 141px; padding: 11px 0 0; position: relative; }
.trade-rank-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.trade-rank-chart .chart-line { fill: none; stroke: #a67c3c; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.trade-rank-chart .chart-area { fill: url(#rankGrad); }
.trade-rank-chart .chart-dot { fill: #fff; stroke: #a67c3c; stroke-width: 2.5; transition: r 0.15s ease; cursor: pointer; }
.trade-rank-chart .chart-dot:hover, .trade-rank-chart .chart-dot--active { r: 5; stroke-width: 3; stroke: #8f682d; filter: drop-shadow(0 0 4px rgba(214,173,95,0.35)); }
.trade-rank-chart .chart-label { font-size: 9px; fill: #8fa1bc; text-anchor: middle; }
.trade-rank-chart .chart-label--value { font-size: 9px; fill: #a67c3c; text-anchor: middle; font-weight: 600; }

/* ── Trade-rank 行情折线（对齐小程序 drawTrend / demo 设计稿） ──
   红涨绿跌分段着色 · 每点标注当日成交额 · 右侧价格轴 · 十字线数据浮层 · 左右滑动翻窗口 */
.trade-rank-page .trade-rank-summary__status-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 22px; margin: 5px 0 0;
}
.trade-rank-page .trade-rank-summary__head { justify-content: center; }
.trade-rank-page .trade-rank-total {
  cursor: pointer; border-radius: 14px;
  transition: background-color 0.14s ease-out, transform 0.14s ease-out;
}
.trade-rank-page .trade-rank-total:hover { background: rgba(214, 173, 95, 0.06); }
.trade-rank-page .trade-rank-total:active { transform: scale(0.985); background: rgba(214, 173, 95, 0.10); }
.trade-rank-page .trade-rank-total:focus-visible { outline: 2px solid rgba(214, 173, 95, 0.68); outline-offset: 2px; }
.trade-rank-page .trade-rank-status { margin: 0; display: inline-flex; align-items: center; gap: 5px; color: #39754e; font-weight: 600; }
.trade-rank-page .trade-rank-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: #55a26f; box-shadow: 0 0 0 3px rgba(85, 162, 111, 0.14);
}
.trade-rank-summary--history .trade-rank-status { color: #8fa1bc; font-weight: 500; }
.trade-rank-summary--history .trade-rank-status::before { background: #b6c0cf; box-shadow: 0 0 0 3px rgba(182, 192, 207, 0.16); }

.trade-rank-daily {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; line-height: 1.15;
}
.trade-rank-daily[hidden] { display: none; }
.trade-rank-daily b { font-weight: 700; }
.trade-rank-daily .trade-rank-daily__compare { opacity: 0.7; font-weight: 500; }
.trade-rank-daily--up { color: #e04f4f; background: rgba(224, 79, 79, 0.10); }
.trade-rank-daily--down { color: #248451; background: rgba(56, 161, 105, 0.12); }

.trade-rank-change {
  display: inline-block; padding: 4px 8px; border-radius: 8px;
  margin-left: 8px; font-size: 11px; font-weight: 600; line-height: 1.2;
  vertical-align: middle;
}
.trade-rank-change[hidden] { display: none; }
.trade-rank-change--up { color: #e04f4f; background: rgba(224, 79, 79, 0.10); }
.trade-rank-change--down { color: #248451; background: rgba(56, 161, 105, 0.12); }
.trade-rank-change--flat { color: #8fa1bc; background: rgba(143, 161, 188, 0.12); }

.trade-rank-page .trade-rank-trend__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.trade-rank-trend__copy { min-width: 0; }
.trade-rank-trend__copy strong { display: block; }
.trade-rank-trend__hint { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 400; }
.trade-rank-trend__meta { display: inline-flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.trade-rank-trend__meta > span { color: #8fa1bc; font-size: 11px; }
.trade-rank-trend__reset { border: 0; background: transparent; color: #a67c3c; font-size: 11.5px; font-weight: 600; padding: 0 2px; cursor: pointer; }
.trade-rank-trend__reset[hidden] { display: none; }
.trade-rank-trend__reset:active { color: #7a5a20; }

.trade-rank-trend__legend { display: flex; align-items: center; gap: 14px; margin: -2px 0 6px; }
.rk-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }
.rk-legend--up { color: #e04f4f; }
.rk-legend--down { color: #248451; }
.rk-legend__mark { display: inline-block; width: 0; height: 0; }
.rk-legend__mark--up { border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #e04f4f; }
.rk-legend__mark--down { border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 7px solid #248451; }
.rk-legend__unit { margin-left: auto; font-size: 9.5px; font-weight: 400; color: #94a0b3; }

.trade-rank-page .trade-rank-chart { height: 200px; padding: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.trade-rank-page .trade-rank-chart svg { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif; }
.trade-rank-page .rk-grid { stroke: #efe9dc; stroke-width: 1; }
.trade-rank-page .rk-axis { fill: #94a0b3; font-size: 9px; text-anchor: start; }
.trade-rank-page .rk-seg { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trade-rank-page .rk-dot { stroke: none; }
.trade-rank-page .rk-node-halo { fill: none; stroke: #ffffff; stroke-width: 3px; stroke-linejoin: round; font-size: 8.5px; font-weight: 500; }
.trade-rank-page .rk-node-text { fill: #1b263b; font-size: 8.5px; font-weight: 500; }
.trade-rank-page .rk-date { fill: #94a0b3; font-size: 9px; }
.trade-rank-page .rk-dash { stroke: rgba(120, 130, 150, 0.55); stroke-width: 1; stroke-dasharray: 3 3; }
.trade-rank-page .rk-ring { stroke-width: 1.5; }

.trade-rank-trend__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; color: #94a0b3; font-size: 9.5px; }
.trade-rank-trend__foot[hidden] { display: none; }
.rank-chart-tooltip {
  position: absolute; top: 4px; z-index: 5; min-width: 96px;
  padding: 5px 9px; border-radius: 8px;
  background: rgba(23, 32, 52, 0.94); color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  pointer-events: none; white-space: nowrap;
}
.rank-chart-tooltip__title { font-size: 10.5px; font-weight: 700; line-height: 1.35; }
.rank-chart-tooltip__change { font-size: 9.5px; font-weight: 600; margin-top: 1px; }
.rank-chart-tooltip__change--up { color: #ff9a9a; }
.rank-chart-tooltip__change--down { color: #82d9a3; }
.rank-chart-tooltip__change--flat { color: #aeb6c4; }

/* Segments table — gold themed */
.trade-rank-segments__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 0; background: #fff;
  color: #1b263b; font: 700 15px/1.4 -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: left; cursor: pointer;
}
.trade-rank-segments__head:active { background: #f8f9fc; }
.trade-rank-segments__head span:last-child { color: #8fa1bc; font-size: 18px; }
.trade-rank-segments__body { padding: 0 13px 14px; border-top: 0.5px solid rgba(232,237,243,0.5); }
.trade-rank-segments__status { padding: 18px 0 6px; margin: 0; color: #8e8e93; text-align: center; font-size: 12px; }
.trade-rank-segments__table > div {
  display: grid; grid-template-columns: 28px minmax(0,1fr) 44px 66px 44px;
  gap: 4px; align-items: center; min-height: 36px;
  color: #50617a; font-size: 12.5px;
  border-bottom: 0.5px solid rgba(242,244,247,0.7);
}
.trade-rank-segments__table > div:first-child { color: #91a2bd; font-size: 12px; font-weight: 500; }
.trade-rank-segments__table strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #1b263b; }
.trade-rank-segments__table span, .trade-rank-segments__table em { text-align: right; font-style: normal; font-variant-numeric: tabular-nums; }
.trade-rank-segments__table em { color: #a67c3c; font-weight: 700; }
.trade-rank-segments__table b { color: #8fa1bc; text-align: center; font-weight: 600; }
.trade-rank-segments__total { border-bottom: 0 !important; color: #1b263b !important; font-weight: 700; background: rgba(214,173,95,0.04); border-radius: 0 0 6px 6px; }
.trade-rank-segments__total em { color: #a67c3c !important; }

/* Detail list */
.trade-rank-details__head span { color: #7488a6; font-size: 11px; font-weight: 500; }
.trade-rank-search {
  display: flex; gap: 6px; align-items: center;
  margin: 11px 0; padding: 9px 10px; border-radius: 9px;
  background: #f3f5f8; color: #91a2bd;
  border: 0.5px solid transparent; transition: background 0.14s, border-color 0.14s;
}
.trade-rank-search:focus-within { background: #ffffff; border-color: rgba(214,173,95,0.55); }
.trade-rank-search input { border: 0; outline: 0; background: transparent; min-width: 0; flex: 1; font-size: 12.5px; color: #34445e; }
.trade-rank-search input::placeholder { color: #a8b3c7; }
.trade-rank-table-head, .trade-rank-row {
  display: grid; grid-template-columns: minmax(0,1fr) 73px 79px; align-items: center; gap: 8px;
}
.trade-rank-table-head {
  color: #91a2bd; font-size: 12px; font-weight: 500;
  padding: 0 0 10px; border-bottom: 0.5px solid #eef1f5;
}
.trade-rank-table-head button { border: 0; background: transparent; color: #74839a; padding: 0; font-size: 12px; text-align: right; cursor: pointer; white-space: nowrap; }
.trade-rank-table-head button:active { color: #a67c3c; }
.trade-rank-row {
  border-bottom: 0.5px solid #f0f2f5; min-height: 60px;
  padding: 8px 0; border-radius: 8px; transition: transform 0.14s, background 0.14s;
}
.trade-rank-row:nth-child(even) { background: #f8fafc; }
.trade-rank-row:active { transform: scale(0.985); background: #f1f4f8; }
.trade-rank-row > div { display: flex; align-items: center; min-width: 0; gap: 10px; }
.trade-rank-row img { width: 42px; height: 42px; object-fit: cover; border-radius: 7px; background: #f1f5f9; flex-shrink: 0; }
.trade-rank-row strong { font-size: 14px; color: #34445e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.trade-rank-row > span { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; color: #617592; }
.trade-rank-row > b { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: #1c2940; }
.trade-rank-empty { padding: 28px 0; text-align: center; color: #9aa5b5; font-size: 13px; }

/* ── more-page: member-center ── */
.member-center {
  position: relative; overflow: hidden;
  margin-top: 16px; margin-bottom: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, #12151c 0%, #0b0d12 68%, #08090e 100%);
  border: 1px solid rgba(214, 173, 95, 0.35);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  color: #f1e6cf;
}
.member-center::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0% 0%, rgba(214,173,95,0.14) 0%, transparent 44%);
}
.member-center::after {
  content: '';
  position: absolute; bottom: -60px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,173,95,0.10) 0%, transparent 72%);
  pointer-events: none;
}
.member-center--guest {
  background: linear-gradient(160deg, #101217 0%, #0b0d12 70%, #08090e 100%);
  border-color: rgba(214,173,95,0.28);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.member-center--guest::before,
.member-center--guest::after { display: none; }
.member-center--guest .member-center__guest-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 15px; padding: 5px 0 2px;
}
.member-center--guest .member-center__guest-mark {
  width: 48px; height: 48px; border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(231,199,120,0.52);
  box-shadow: 0 7px 16px rgba(0,0,0,0.26), 0 0 0 4px rgba(214,173,95,0.08);
}
.member-center--guest .member-center__guest-login {
  width: min(100%, 248px); height: 42px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0d18a 0%, #d6ad5f 48%, #a97935 100%);
  color: #241b0d; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  box-shadow: 0 8px 18px rgba(214,173,95,0.22), inset 0 1px 0 rgba(255,255,255,0.38);
  transition: transform 160ms ease, filter 160ms ease;
}
.member-center--guest .member-center__guest-login span {
  font-size: 17px; line-height: 1; transform: translateY(-1px);
}
.member-center--guest .member-center__guest-login:active {
  transform: scale(0.98); filter: brightness(0.94);
}
.member-center__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; position: relative; z-index: 1;
}
.member-center__heading { flex: 1; min-width: 0; }
.member-center__title-row { display: flex; align-items: center; gap: 10px; }
.member-center__title {
  margin: 0; font-size: 21px; font-weight: 400;
  letter-spacing: 1px; color: #fff7e8;
}
.member-center__vip-badge {
  display: inline-flex;
  padding: 2px 8px; border-radius: 5px;
  background: linear-gradient(135deg, #deb86b, #a97935);
  color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; line-height: 1.3;
}
.member-center__benefit-id {
  margin: 4px 0 0; font-size: 10px;
  color: rgba(241,230,204,0.46); letter-spacing: 0.5px;
}
.member-center__benefit-id strong {
  font-weight: 500; color: rgba(241,230,204,0.55);
}
.member-center__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
}
.member-center__aside-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 12px; border-radius: 6px;
  border: 0.5px solid rgba(214,173,95,0.50);
  background: transparent;
  color: #e7c778; font-size: 11px; font-weight: 500;
  cursor: pointer; transition: background .2s;
}
.member-center__aside-btn:active { background: rgba(214,173,95,0.12); }

/* title logo */
.member-center__title-logo {
  width: 26px; height: 26px; border-radius: 7px;
  border: 0.5px solid rgba(214,173,95,0.42);
  box-shadow: 0 4px 9px rgba(0,0,0,0.20); flex-shrink: 0;
  object-fit: cover;
}
.member-center__metrics {
  margin-top: 10px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; position: relative; z-index: 1;
}
.member-center__metric {
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.1);
}
.member-center__metric-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-bottom: 5px;
}
.member-center__metric-label {
  font-size: 10px; font-weight: 500;
  color: rgba(241,230,204,0.66);
}
.member-center__metric-value-row { margin-top: 4px; }
.member-center__metric-value {
  font-size: 18px; font-weight: 300;
  color: #e7c778; line-height: 1.2;
}
.member-center__actions {
  margin-top: 8px;
  display: flex; gap: 8px;
  position: relative; z-index: 1;
}
.member-center__action-btn {
  flex: 1; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: rgba(214,173,95,0.14);
  border: 1px solid rgba(221,184,115,0.58);
  color: #f1d58a; font-size: 12px; font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 9px rgba(214,173,95,0.16), 0 0 0 0.5px rgba(255,232,173,0.08) inset;
}

/* ── renew panel ── */
.member-center__panel {
  margin-top: 8px;
  padding: 12px 15px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.09);
  position: relative;
  z-index: 1;
}
.member-center__panel-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.member-center__renew-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.28);
  border: 0.5px solid rgba(255,255,255,0.14);
  color: #fff5e5;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}
.member-center__renew-input::placeholder { color: rgba(233,207,153,0.5); }
.member-center__panel-divider {
  height: 0.5px; margin: 10px 0 9px;
  background: rgba(255,255,255,0.08);
}
.member-center__renew-title {
  display: block; margin-bottom: 9px;
  color: #f3deba; font-size: 13px; font-weight: 700;
  line-height: 1.3;
}
.member-center__self-tech-renew-button {
  width: 100%; height: 38px; margin: 10px 0 0; padding: 0;
  border: 0.5px solid rgba(214,173,95,0.72);
  border-radius: 6px;
  background: linear-gradient(135deg, #dcb76a, #99672c);
  color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer; box-sizing: border-box;
}
.member-center__self-tech-renew-button:active { opacity: 0.78; }
.member-center__purchase-link-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.member-center__purchase-link-label {
  font-size: 12px; font-weight: 600; color: #f1d58a;
}
.member-center__purchase-link-url {
  font-size: 10px; color: rgba(232,201,135,0.5);
  word-break: break-all;
}
.member-center__panel-row--link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 180ms ease;
}
.member-center__panel-row--link:active { background: rgba(0,0,0,0.03); }
.member-center__panel-button {
  height: 36px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.13);
  color: rgba(248,239,224,0.9);
  font-size: 11px;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  line-height: 1;
}
.member-center__panel-button--gold {
  border-color: #d6ad5f;
  background: linear-gradient(135deg, #dcb76a, #99672c);
  color: #ffffff;
}
.member-center__purchase-link-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(120,120,128,0.12);
  color: #7c828c;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}
.member-center__purchase-link-arrow:active { background: rgba(120,120,128,0.20); }

/* ── more page: button-list (1:1 mini-program replica) ── */
.button-list { display: flex; flex-direction: column; gap: 0; background: rgba(255,255,255,0.92); border-radius: 12px; border: 1px solid rgba(60,60,67,0.12); box-shadow: 0 6px 15px rgba(15,23,42,0.06), inset 0 0.5px 0 rgba(255,255,255,0.9); overflow: hidden; }
.button-item { display: flex; align-items: center; justify-content: space-between; min-height: 56px; min-width: 0; padding: 9px 20px; position: relative; background: transparent; border-radius: 0; border: 0; box-shadow: none; transition: background-color 120ms ease, transform 100ms ease; }
.button-item.ripple { position: relative; overflow: hidden; }
.button-item:active { background-color: rgba(118,118,128,0.12); transform: scale(0.992); }
/* separator between items — aligns with text start (after icon+margin) */
.button-item:not(:last-child)::after { content: ''; display: block; position: absolute; left: 66px; right: 20px; bottom: 0; height: 0.5px; background: rgba(60,60,67,0.10); }
.item-left { display: flex; align-items: center; flex: 1; min-width: 0; }
.icon-wrapper { width: 36px; height: 36px; border-radius: 10px; display: flex; justify-content: center; align-items: center; margin-right: 10px; background: #f2f2f7; border: 1px solid rgba(60,60,67,0.08); box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.86); flex-shrink: 0; }
.icon-wrapper--trade-rank,
.icon-wrapper--cyan,
.icon-wrapper--blue,
.icon-wrapper--purple,
.icon-wrapper--orange { background: #f2f2f7; }
.btn-icon { width: 22px; height: 22px; object-fit: contain; }
.text-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.btn-text-row { display: flex; align-items: center; min-width: 0; gap: 6px; }
.btn-text { font-size: 13.5px; line-height: 1.3; font-weight: 600; color: #1c1c1e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* tags matching mini-program: new = red bg, hot = red bg, free = gold border */
.new-inline-tag { flex-shrink: 0; padding: 3px 6px; border-radius: 999px; background: #ff3b30; display: flex; align-items: center; justify-content: center; }
.new-inline-text { color: #fff; font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: 0.5px; }
.hot-inline-tag { flex-shrink: 0; padding: 3px 6px; border-radius: 999px; background: #ff3b30; display: flex; align-items: center; justify-content: center; }
.hot-inline-text { color: #fff; font-size: 9px; font-weight: 600; line-height: 1; letter-spacing: 0.5px; }
.free-inline-tag { flex-shrink: 0; padding: 3px 7px; border-radius: 999px; background: transparent; border: 1px solid #d6ad5f; }
.free-inline-text { color: #d6ad5f; font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: 0.5px; display: block; }
.arrow { width: 8px; height: 8px; border-top: 2px solid #b4b4bb; border-right: 2px solid #b4b4bb; transform: rotate(45deg); flex-shrink: 0; margin-left: 12px; }

.feature-panel { display: grid; gap: 12px; margin-top: 16px; }
.feature-panel__desc { margin: 0; color: var(--text-second); font-size: 13px; line-height: 1.6; }
.feature-panel__meta { font-size: 14px; font-weight: 600; }
.query-form { display: flex; gap: 8px; }
.query-form__input { flex: 1; height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); }
.query-form__button { height: 44px; padding: 0 16px; border-radius: 14px; background: linear-gradient(135deg, #c49b56, #8f6a38); color: #fff; font-weight: 600; border: none; cursor: pointer; }
.query-result,
.detail-pre,
.webview-fallback { padding: 12px; border-radius: 16px; background: #f8fafc; border: 1px solid var(--line); font-size: 12px; }
.announcement-list { display: grid; gap: 10px; }
.announcement-item { border-radius: 18px; padding: 14px; display: grid; gap: 6px; }
.announcement-item__title { font-size: 14px; }
.announcement-item__meta { color: var(--text-second); font-size: 12px; }
/* ── Announcements Page (mini-program 1:1) ── */
.announcements-page {
  background: #f6f6f8;
  padding: 0 12px calc(var(--tabbar-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Floating Glass Toolbar ── */
.ann-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 7px;
  border-radius: 17px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 7px 17px rgba(15,23,42,0.075);
  backdrop-filter: blur(13px) saturate(180%);
  -webkit-backdrop-filter: blur(13px) saturate(180%);
}
.ann-header .top-search-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
}

/* ── Search Bar ── */
.ann-search-shell {
  flex: 1;
  min-width: 0;
  height: 35px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(60,60,67,0.10);
  display: flex;
  align-items: center;
  padding: 0 11px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.ann-search-shell:focus-within {
  border-color: #d6ad5f;
  box-shadow: 0 0 0 2px rgba(214,173,95,0.12);
}
.ann-search-shell .search-icon {
  color: #8a8a8f;
  font-size: 15px;
  margin-right: 6px;
  flex-shrink: 0;
}
.ann-search-shell .search-input {
  font-size: 13px;
  color: #202025;
}
.ann-search-shell .search-input::placeholder {
  color: #b0b0b5;
  font-size: 13px;
}
.ann-clear-btn {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(60,60,67,0.28);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.ann-clear-btn:active { transform: scale(0.85); }
.ann-clear-btn[hidden] { display: none; }

/* ── Category Filter Bar ── */
.ann-filter-bar {
  display: flex;
  gap: 2px;
  margin-top: 6px;
  padding: 2px;
  min-height: 31px;
  border-radius: 12px;
  background: rgba(120,120,128,0.12);
}
.ann-filter-item {
  flex: 1;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  color: #6e6e73;
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
}
.ann-filter-item:active { transform: scale(0.96); }
.ann-filter-item--active {
  color: #1d1d1f;
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.95);
  box-shadow: 0 3px 7px rgba(15,23,42,0.08);
}

/* ── Search Summary ── */
.ann-summary {
  padding: 6px 2px 0;
}
.ann-summary__text {
  font-size: 12px;
  color: #6e6e73;
  font-weight: 500;
}
.ann-summary__num {
  color: #a67c3c;
  font-weight: 700;
}

/* ── Search Tip ── */
.search-tip {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(214,173,95,0.08);
  border: 1px solid rgba(214,173,95,0.12);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #3a3a3c;
  font-size: 11px;
  line-height: 1.5;
}
.search-tip__icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #d6ad5f;
  border: 1px solid rgba(214,173,95,0.45);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* ── Card List ── */
.announcements-page .announcement-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 1px;
}

/* ── Card ── */
.ann-card {
  position: relative;
  background: rgba(255,255,255,0.94);
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 5px 14px rgba(15,23,42,0.055);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 100ms ease-out;
  display: block;
}
.ann-card:active {
  box-shadow: 0 3px 8px rgba(15,23,42,0.075);
  transform: scale(0.985);
}
.ann-card .ann-card__body {
  padding: 12px 12px 10px;
}
.ann-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 6px;
}
.ann-card .tag-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

/* ── Category Tags ── */
.category-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}
.category-tag.tag-default {
  color: #a67c3c;
  background: rgba(214,173,95,0.08);
  border-color: rgba(214,173,95,0.18);
}
.category-tag.tag-synthesis {
  color: #7e22ce;
  background: rgba(147,51,234,0.08);
  border-color: rgba(147,51,234,0.16);
}
.category-tag.tag-activity {
  color: #b45309;
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.18);
}
.category-tag.tag-rule {
  color: #0f766e;
  background: rgba(20,184,166,0.10);
  border-color: rgba(20,184,166,0.18);
}
.category-tag.tag-maintenance {
  color: #b91c1c;
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.16);
}
.category-tag.tag-risk {
  color: #334155;
  background: rgba(100,116,139,0.12);
  border-color: rgba(100,116,139,0.16);
}

/* ── Calculated Tag ── */
.calc-done-tag {
  font-size: 10px;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.20);
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1;
  white-space: nowrap;
}

/* ── Card Meta ── */
.ann-card .time {
  font-size: 11px;
  color: #8e8e93;
  white-space: nowrap;
  flex-shrink: 0;
}
.ann-card .title {
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1e;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ── Card Foot ── */
.ann-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 9px;
}
.ann-card__hint {
  font-size: 11px;
  font-weight: 600;
  color: #8a8a8f;
  line-height: 1;
}
.ann-card__chevron {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(120,120,128,0.12);
  color: #7c828c;
  font-size: 17px;
  line-height: 15px;
  text-align: center;
  flex-shrink: 0;
}

/* ── States ── */
.ann-states {
  padding: 16px 0 40px;
}

/* Loading Dots */
.ann-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
}
.ann-loading__dots {
  display: flex;
  gap: 5px;
}
.ann-loading__dot {
  width: 6px;
  height: 6px;
  background: #d6ad5f;
  border-radius: 50%;
  animation: annBounce 0.6s infinite alternate;
}
.ann-loading__dot:nth-child(2) { animation-delay: 0.2s; }
.ann-loading__dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes annBounce {
  to { transform: translateY(-5px); opacity: 0.5; }
}
.ann-loading__text {
  font-size: 12px;
  color: #8e8e93;
}

/* Load More */
.ann-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: 0 4px 11px rgba(15,23,42,0.045);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.ann-load-more:active {
  transform: scale(0.98);
  background: #eee;
}
.ann-load-more__text {
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
}

/* No More */
.ann-no-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 0;
}
.ann-no-more__divider {
  width: 32px;
  height: 1px;
  background: rgba(60,60,67,0.12);
}
.ann-no-more__text {
  font-size: 12px;
  color: #8e8e93;
  white-space: nowrap;
}

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(255,255,255,0.84);
  box-shadow: 0 9px 23px rgba(15,23,42,0.08), 0 1px 4px rgba(15,23,42,0.04);
  backdrop-filter: blur(11px) saturate(160%);
  -webkit-backdrop-filter: blur(11px) saturate(160%);
  color: #8e8e93;
  font-size: 13px;
  font-weight: 500;
}
.empty-img {
  width: 100px;
  height: 100px;
  margin-bottom: 12px;
  opacity: 0.35;
}

/* ── Footer ── */
.ann-footer-state {
  margin-top: auto;
  padding: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ann-footer-state .ann-footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(60,60,67,0.12);
  flex-shrink: 0;
}
.ann-footer-state .ann-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.ann-footer-state .ann-footer-name {
  font-size: 11px;
  font-weight: 500;
  color: #8e8e93;
  letter-spacing: 0.5px;
}
.ann-footer-state .ann-footer-tagline {
  font-size: 9px;
  color: #8e8e93;
  opacity: 0.7;
}

/* ── Collection Announcements Hero ── */
.col-ann-page { padding-top: 0; }
.col-ann-hero {
  position: relative;
  padding: 16px 12px 14px;
  background: linear-gradient(135deg, #fff8e8 0%, #f4e7c9 50%, #efe0bc 100%);
  border-radius: 14px;
  margin: 0 4px 4px;
}
.col-ann-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  color: #6e6e73;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-bottom: 8px;
  transition: background 180ms ease;
}
.col-ann-hero-back:active { background: rgba(0,0,0,0.08); }
.col-ann-hero-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.col-ann-hero-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.col-ann-hero-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.col-ann-hero-title {
  font-size: 17px;
  font-weight: 700;
  color: #1c1c1e;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}
.col-ann-hero-floor {
  font-size: 12px;
  color: #93682d;
  font-weight: 600;
}
.col-ann-content {
  padding: 0 4px;
}
.ann-summary__hint { display: block; margin-top: 4px; color: #8e8e93; font-size: 11px; }
.ann-retry-btn { margin-top: 12px; padding: 7px 14px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #d6ad5f, #a97935); font-size: 13px; font-weight: 600; }

.mobile-auth { display: flex; flex-direction: column; justify-content: center; gap: 20px;
  background: linear-gradient(180deg, #F0F7FF 0%, var(--bg-page) 40%); }
.mobile-auth__eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); font-weight: 700; }
.mobile-auth__title { margin: 0; font-size: 30px; line-height: 1.15; font-family: var(--font-display);
  color: var(--text-main); }
.mobile-auth__subtitle { margin: 10px 0 0; font-size: 14px; line-height: 1.55; }
.mobile-auth__card { padding: 28px 20px; border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(15,23,42,0.06), 0 2px 8px rgba(15,23,42,0.03); }
.mobile-auth__form { display: grid; gap: 16px; }
.mobile-auth__field { display: grid; gap: 8px; font-size: 14px; }
.mobile-auth__field-label { display: flex; align-items: center; gap: 6px; font-weight: 600;
  color: var(--text-main); font-size: 13px; }
.mobile-auth__field input { width: 100%; height: 48px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--bg-soft); padding: 0 16px;
  font-size: 15px; color: var(--text-main); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.mobile-auth__field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,130,246,0.14); }
.mobile-auth__field input::placeholder { color: var(--text-third); }
.mobile-auth__submit { height: 48px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand), var(--brand-hover)); color: #fff; font-weight: 700;
  font-size: 16px; letter-spacing: 0.04em; cursor: pointer; border: none;
  box-shadow: 0 6px 16px rgba(37,99,235,0.24);
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s; }
.mobile-auth__submit:active { opacity: 0.92; transform: scale(0.98); box-shadow: 0 3px 10px rgba(37,99,235,0.18); }
.mobile-auth__submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.mobile-auth__message { min-height: 20px; margin: 4px 0 0; font-size: 13px; text-align: center;
  transition: color 0.2s; font-weight: 500; }
.mobile-auth__message--error { color: #dc2626; }
.mobile-auth__message--success { color: #16a34a; }
.mobile-auth__links { display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 0; }
.mobile-auth__link { font-size: 13px; color: var(--text-second); text-decoration: none;
  transition: color 0.15s; }
.mobile-auth__link:active { color: var(--brand); }
.mobile-auth__link--hint { color: var(--text-third); line-height: 1.55; text-align: center; }
.mobile-auth__divider { width: 24px; height: 1px; background: var(--line); }

/* ═══════════════════════════════════════════════
   方案B · 品牌登录页
   ═══════════════════════════════════════════════ */
.scheme-b {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -18%, rgba(214, 173, 95,0.14) 0, rgba(214, 173, 95,0.06) 26%, transparent 54%),
    linear-gradient(180deg, #f7fbff 0%, #f8f9fb 48%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.scheme-b__logo-box {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.scheme-b__logo-img { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; display: block; }
.scheme-b__brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
}
.scheme-b__brand-lockup--compact {
  justify-content: flex-start;
  margin: 0 0 18px;
}
.scheme-b__brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.scheme-b__brand-name {
  color: #0b1a33;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}
.scheme-b__brand-subtitle {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}
/* ── 浮动卡片区 ── */
.scheme-b__body {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: max(34px, env(safe-area-inset-top)) 24px 32px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.scheme-b__card {
  background: #fff;
  width: 100%;
  border: 1px solid rgba(214, 173, 95,0.08);
  border-radius: 22px;
  padding: 30px 22px 24px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.10), 0 2px 10px rgba(15,23,42,0.04);
}
.scheme-b__welcome {
  margin-bottom: 24px;
}
.scheme-b__welcome h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0b1a33;
  margin: 0 0 4px;
}
.scheme-b__welcome p {
  font-size: 13px;
  color: #8e8e93;
  margin: 0;
}
.scheme-b__welcome-brand {
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(214, 173, 95,0.10);
}
.scheme-b__wb-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
  flex-wrap: wrap;
}
.scheme-b__wb-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(214, 173, 95,0.07);
  border: 1px solid rgba(214, 173, 95,0.12);
}
.scheme-b__wb-tag-key {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #d6ad5f;
}
.scheme-b__wb-dot {
  color: #d6ad5f;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin: 0 -5px;
  line-height: 1;
}
.scheme-b__wb-tag-val {
  font-size: 11px;
  color: #8e8e93;
}
/* ── 表单 ── */
.scheme-b__form {
  display: grid;
  gap: 14px;
}
.scheme-b__field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #636366;
  margin-bottom: 6px;
}
.scheme-b__field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.scheme-b__field-head label {
  margin-bottom: 0;
}
.scheme-b__field-help,
.scheme-b__link-button {
  border: 0;
  background: transparent;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
}
.scheme-b__field-help {
  flex-shrink: 0;
  color: #d6ad5f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.scheme-b__field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid #e8ecf4;
  border-radius: 10px;
  font-size: 15px;
  color: #0b1a33;
  background: #fafbff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}
.scheme-b__field input:focus {
  border-color: #d6ad5f;
  box-shadow: 0 0 0 3px rgba(214, 173, 95,0.08);
  background: #fff;
}
.scheme-b__field input::placeholder {
  color: #aeaeb2;
}
.scheme-b__field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fafbff inset;
  -webkit-text-fill-color: #0b1a33;
}
.scheme-b__remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8e8e93;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
  user-select: none;
}
.scheme-b__remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #d6ad5f;
}
/* ── 按钮 ── */
.scheme-b__btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: #d6ad5f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
}
.scheme-b__btn:active {
  background: #005bbf;
  box-shadow: 0 4px 14px rgba(214, 173, 95,0.2);
  transform: scale(0.98);
}
.scheme-b__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
/* ── 消息 ── */
.scheme-b__message {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
  transition: color 0.2s;
}
.scheme-b__message--success {
  color: #16a34a;
}
.scheme-b__message--error {
  color: #dc2626;
}
/* ── 链接 ── */
.scheme-b__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.scheme-b__link {
  font-size: 13px;
  color: #d6ad5f;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
  line-height: 20px;
}
.scheme-b__link-button {
  display: inline;
}
.scheme-b__link:active,
.scheme-b__field-help:active {
  opacity: 0.7;
}

.auth-recovery-modal[hidden] { display: none; }
.auth-recovery-modal { position: fixed; z-index: 1002; inset: 0; display: grid; place-items: center; padding: 20px; }
.auth-recovery-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .48); }
.auth-recovery-modal__panel { position: relative; z-index: 1; width: min(100%, 360px); padding: 28px 20px 20px; border-radius: 16px; background: #fff; box-shadow: 0 16px 48px rgba(0,0,0,.2); }
.auth-recovery-modal__panel h3 { margin: 0 0 8px; font-size: 18px; color: #0b1a33; }
.auth-recovery-modal__panel p { margin: 0 0 18px; font-size: 13px; color: #636366; }
.auth-recovery-modal__close { position: absolute; top: 7px; right: 10px; border: 0; background: transparent; color: #8e8e93; font-size: 26px; line-height: 1; cursor: pointer; }
.scheme-b__sep {
  color: #d1d5db;
  font-size: 13px;
}

.auth-help-open {
  overflow: hidden;
}
.auth-help-modal[hidden] {
  display: none;
}
.auth-help-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.auth-help-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.auth-help-modal__panel {
  position: relative;
  width: min(100%, 390px);
  max-height: calc(100vh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.auth-help-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 25px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}
.auth-help-modal__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  object-fit: contain;
  background: #fff;
}

/* ═══════════════════════════════════════════════
   动态效果
   ═══════════════════════════════════════════════ */

/* 3. Logo 弹性入场 */
.scheme-b__logo-box {
  animation: logoBounce 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}
@keyframes logoBounce {
  from { opacity: 0; transform: scale(0.82) rotate(-3deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

/* 4. 品牌文字入场 */
.scheme-b__brand-text {
  animation: fadeInRight 0.5s ease-out 0.25s both;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 4b. 域名标签：从左至右逐个出现 */
.scheme-b__wb-tag {
  animation: tagSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.scheme-b__wb-tag:nth-child(1) { animation-delay: 0.3s; }
.scheme-b__wb-tag:nth-child(2) { animation-delay: 0.36s; }
.scheme-b__wb-tag:nth-child(3) { animation-delay: 0.42s; }
@keyframes tagSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 5. 卡片上滑入场 */
.scheme-b__card {
  animation: cardSlideUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 6. 欢迎文字 */
.scheme-b__welcome {
  animation: fadeUp 0.5s ease-out 0.5s both;
}

/* 7. 表单字段：错峰入场 */
.scheme-b__field {
  animation: fadeUp 0.45s ease-out both;
}
.scheme-b__field:nth-child(1) { animation-delay: 0.6s; }
.scheme-b__field:nth-child(2) { animation-delay: 0.7s; }
.scheme-b__field:nth-child(3) { animation-delay: 0.8s; }

/* 8. 提交按钮 */
.scheme-b__btn {
  animation: fadeUp 0.45s ease-out 0.85s both;
}

/* 9. 底部链接 */
.scheme-b__links {
  animation: fadeUp 0.4s ease-out 0.95s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ 仅登录页有动画，修改密码页入场从简 ═══ */
.scheme-b__welcome:only-child ~ * { /* fallback guard */ }

.mobile-empty-state { margin-top: 16px; padding: 26px 20px; text-align: center; }
.mobile-empty-state__desc { margin: 8px 0 0; color: var(--text-second); font-size: 13px; line-height: 1.6; }
.mini-program-only-page__card { display: grid; justify-items: center; gap: 14px; width: min(100%, 360px); margin: 0; }
.mini-program-only-page__qr { width: 190px; height: 190px; object-fit: contain; border-radius: 12px; }
.mini-program-only-page__copy { margin: 0; color: var(--text-main); font-size: 15px; font-weight: 600; line-height: 1.6; }
.mini-program-only-page__back { color: var(--brand-hover); font-size: 13px; }
.mobile-inline-tip { margin-top: 12px; text-align: center; }
.mobile-tabbar.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  height: var(--tabbar-height);
  box-sizing: border-box;
  z-index: 1000;
  transform: translateZ(0);
  background: rgba(255,255,255,0.72);
}
.tab-bar-backdrop {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.72);
}
.tab-bar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  box-sizing: border-box;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-top: 0.5px solid rgba(255,255,255,0.72);
  box-shadow: 0 -5px 15px rgba(15,23,42,0.05);
}
.mobile-tabbar__item.tab-bar-item {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  color: var(--text-second);
  font-size: 10px;
}
.mobile-tabbar__item--active.active { color: #000; }
.icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 14px;
  transition: transform 160ms ease-out, background-color 180ms ease-out;
}
.tab-bar-item.active .icon-container {
  background: rgba(15,23,42,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 4px 10px rgba(15,23,42,0.07);
}
.tab-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 180ms ease-out, opacity 160ms ease-out;
  opacity: 0.58;
}
.tab-bar-item.active .tab-icon {
  transform: scale(1.08);
  opacity: 1;
  filter: none;
}
.tab-text {
  font-size: 10.5px;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #64748b;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  transition: color 0.3s ease, font-weight 0.3s ease;
}
.tab-bar-item.active .tab-text { color: #0f172a; font-weight: 650; }
.tab-bar-item--feed.active .icon-container {
  background: linear-gradient(145deg, rgba(255,250,235,0.96), rgba(214,173,95,0.20));
  border: 1px solid rgba(214,173,95,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 5px 14px rgba(180,140,70,0.18);
}
.tab-bar-item--feed.active .tab-icon { transform: scale(1.16); }
.tab-bar-item--feed.active .tab-text { color: #a87916; }
.active-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(180,140,70,0.34);
}
.tab-bar-item--feed.active .active-dot { width: 6px; height: 6px; background: #d6ad5f; box-shadow: 0 0 0 2px rgba(214,173,95,0.16), 0 1px 5px rgba(180,140,70,0.36); }
.tab-bar-item:active .icon-container {
  transform: scale(0.93);
  transition-duration: 80ms;
}
.tab-bar-item:active .tab-text { opacity: 0.68; transition-duration: 80ms; }

@media (min-width: 768px) {
  #mobile-app { max-width: 430px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(60,60,67,0.08); background: var(--bg-page); }
}

/* ===== 藏品详情页 ===== */
.collection-hero {
  position: relative;
  height: 156px;
  overflow: visible;
  background: #d9dee6;
}
.collection-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #d9dee6;
}
.collection-hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.16) 0%, rgba(15,23,42,0) 42%, rgba(252,252,252,0.92) 80%, var(--bg-page) 100%);
}
.collection-hero-content {
  position: absolute; left: 0; right: 0; bottom: -63px; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px;
}
.collection-hero-cover {
  width: 84px; height: 84px;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 6px 15px rgba(15,23,42,0.22);
  background: #fff;
  object-fit: cover;
  transform: translateY(-10px);
}
.collection-hero-name {
  margin-top: 8px;
  font-size: 17px; line-height: 1.25; font-weight: 700;
  color: var(--text-main);
  text-align: center;
  max-width: 92%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-tags-wrap {
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.collection-hero-tags {
  display: flex;
  flex-wrap: nowrap; gap: 5px;
  align-items: center;
}
.collection-hero-tag {
  display: flex; align-items: center;
  border-radius: 4px; overflow: hidden;
  background: #efefef;
}
.collection-hero-tag-label {
  min-width: 24px; height: 18px; line-height: 18px;
  padding: 0 6px;
  font-size: 11px; color: #433621; font-weight: 700;
  background: #e5d3a2;
  text-align: center;
}
.collection-hero-tag-value {
  height: 18px; line-height: 18px;
  padding: 0 6px;
  font-size: 11px; color: #1f1f1f; font-weight: 600;
  background: #efefef;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Back button overlay on hero */
.collection-back-btn {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(60,60,67,0.08);
  box-shadow: 0 4px 12px rgba(15,23,42,0.10);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 22px; line-height: 1;
  color: #1f1f1f;
  transition: transform 0.18s, opacity 0.18s;
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.collection-back-btn:active {
  transform: scale(0.88);
  opacity: 0.72;
}
.collection-hero-action {
  position:absolute; right:12px; top:14px; z-index:10; border:0; border-radius:999px;
  padding:7px 10px; font-size:12px; font-weight:700; color:#173a73;
  background:rgba(255,255,255,.9); box-shadow:0 4px 12px rgba(15,23,42,.1);
}
.illiquid-trade-hint { margin:0 0 12px; padding:10px 12px; border-radius:10px; color:#697386; background:#f7f9fc; font-size:12px; line-height:1.55; }
.illiquid-trade-table { overflow:hidden; border:1px solid #edf0f4; border-radius:12px; background:#fff; }
.illiquid-trade-row { display:grid; grid-template-columns:1.35fr 1fr .85fr 1fr; gap:4px; align-items:center; min-height:42px; padding:0 9px; border-top:1px solid #f0f2f5; color:#344054; font-size:12px; text-align:center; }
.illiquid-trade-row:first-child { border-top:0; }
.illiquid-trade-row span:first-child { text-align:left; }
.illiquid-trade-head { min-height:38px; background:#f7f9fc; color:#667085; font-size:11px; font-weight:700; }
.illiquid-trade-pager { display:flex; justify-content:space-between; align-items:center; margin-top:12px; color:#98a2b3; font-size:12px; }
.illiquid-trade-pager button { border:0; border-radius:8px; padding:7px 11px; color:#2563eb; background:#eff6ff; font-weight:700; }
.nt-chart-panel { margin:0 0 12px; padding:14px; }
.nt-chart-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; flex-wrap:wrap; gap:6px; }
.nt-chart-title { font-size:16px; font-weight:750; color:#1c1c1e; }
.nt-chart-subtitle { font-size:11px; color:#98a2b3; }
.nt-chart-tools { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; flex-wrap:wrap; gap:8px; }
.nt-chart-legend { display:flex; align-items:center; gap:14px; }
.nt-chart-legend-item { display:flex; align-items:center; gap:5px; font-size:11px; color:#667085; }
.nt-chart-legend__bar { display:inline-block; width:10px; height:10px; border-radius:2px; background:rgba(37,99,235,0.28); }
.nt-chart-legend__line { display:inline-block; width:14px; height:2px; border-radius:1px; background:#2563eb; }
.nt-chart-canvas-wrap { position:relative; width:100%; overflow:visible; }
.nt-ap-chart-canvas { display:block; width:100%; height:auto; }
/* Granularity options */
.nt-granularity-row { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.nt-granularity-label { font-size:11px; color:#98a2b3; flex-shrink:0; }
.nt-granularity-options { display:flex; gap:4px; flex-shrink:0; }
.nt-granularity-option { border:0; border-radius:7px; padding:4px 10px; font-size:12px; font-weight:600; color:#667085; background:#f2f4f7; cursor:pointer; white-space:nowrap; }
.nt-granularity-option--active { color:#fff; background:#2563eb; }
/* Scale toggle */
.nt-chart-scale-control { display:flex; align-items:center; gap:7px; cursor:pointer; user-select:none; }
.nt-chart-scale-label { font-size:11px; color:#667085; }
.nt-chart-switch { display:inline-flex; width:36px; height:20px; border-radius:10px; background:#d0d5dd; transition:background .2s; position:relative; }
.nt-chart-switch--on { background:#2563eb; }
.nt-chart-switch-thumb { width:16px; height:16px; border-radius:50%; background:#fff; position:absolute; top:2px; left:2px; transition:left .2s; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.nt-chart-switch--on .nt-chart-switch-thumb { left:18px; }
/* Chart note */
.nt-chart-note { margin:8px 0 0; font-size:10px; color:#98a2b3; text-align:center; }
/* Tooltip */
.nt-chart-tooltip { position:absolute; z-index:10; pointer-events:none; min-width:86px; }
.nt-tooltip-inner { background:rgba(15,23,42,.95); border-radius:8px; padding:8px 10px; color:#e2e8f0; font-size:11px; box-shadow:0 4px 14px rgba(0,0,0,.15); }
.nt-tooltip-time { font-weight:600; margin-bottom:3px; }
.nt-tooltip-sep { border-top:.7px solid rgba(148,163,184,.22); margin:4px 0; }
.nt-tooltip-row { display:flex; justify-content:space-between; gap:12px; }
.nt-tooltip-val { color:#f8fafc; font-weight:600; }

/* Summary panel (mirrors mini program) */
.nt-summary-panel { margin:0 0 12px; padding:14px; }
.nt-summary-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.nt-summary-eyebrow { font-size:16px; font-weight:750; color:#1c1c1e; display:block; }
.nt-summary-caption { font-size:11px; color:#98a2b3; display:block; margin-top:1px; }
.nt-summary-freshness { font-size:10px; color:#98a2b3; flex-shrink:0; }
.nt-summary-overview {}
.nt-summary-stat-strip { display:flex; gap:24px; margin-bottom:10px; }
.nt-summary-stat { display:flex; flex-direction:column; gap:4px; }
.nt-summary-range-row { display:flex; gap:12px; }
.nt-summary-range { flex:1; display:flex; flex-direction:column; gap:4px; background:#f8fafc; border-radius:10px; padding:10px 12px; }
.nt-summary-range--high { border-left:3px solid #ef4444; }
.nt-summary-range--low { border-left:3px solid #22c55e; }
.nt-summary-row { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.nt-summary-item { min-width:0; display:flex; flex-direction:column; gap:4px; }
.nt-summary-label { color:#667085; font-size:12px; }
.nt-summary-val { color:#344054; font-size:15px; font-weight:700; word-break:break-all; }
.nt-summary-val--price { color:#2563eb; }
.nt-summary-time { color:#98a2b3; font-size:10px; }
.nt-catchup-tag { display:block; margin-top:2px; color:#667085; font-size:10px; font-style:normal; }
/* ── 挂单求购数 — 一比一复刻小程序样式 ── */
.market-orders-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px 16px 64px;
}
.market-orders-panel {
  padding: 14px 15px 15px;
  border-radius: 13px;
  border: 1px solid rgba(17,24,39,0.08);
  box-shadow: none;
  background: var(--bg-card);
}
.mo-token-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mo-token-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mo-token-label {
  color: var(--text-second);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}
.mo-token-tip {
  color: var(--text-third);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}
.mo-token-tip-link {
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
}
.mo-token-input-wrap {
  position: relative;
  height: 38px;
  border-radius: 7px;
  border: 1px solid rgba(17,24,39,0.08);
  background: var(--bg-soft);
  box-sizing: border-box;
}
.mo-token-input {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 13px;
  color: var(--text-main);
  font-family: SF Mono, ui-monospace, monospace;
  background: transparent;
  border: none;
  padding: 0 36px 0 10px;
  box-sizing: border-box;
  outline: none;
}
.mo-token-paste-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(166,124,60,0.85);
  letter-spacing: 0.02em;
  cursor: pointer;
}
/* 挂单求购数据：超级 IB 登录状态横幅 */
.mo-superib-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  box-sizing: border-box;
}
.mo-superib-banner--ok {
  color: #166534;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.22);
}
.mo-superib-banner--warn {
  color: #92400e;
  background: rgba(214,173,95,0.12);
  border: 1px solid rgba(214,173,95,0.35);
}
.mo-superib-banner--error {
  color: #b91c1c;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.30);
}
.mo-superib-goto-btn {
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1d1d1f;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s var(--ease-out, ease-out);
}
.mo-superib-goto-btn:active { transform: scale(0.96); }
html.desktop-dark .mo-superib-banner--ok {
  color: #6ee7a0;
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.3);
}
html.desktop-dark .mo-superib-banner--warn {
  color: #e8c77f;
  background: rgba(214,173,95,0.14);
  border-color: rgba(214,173,95,0.32);
}
html.desktop-dark .mo-superib-banner--error {
  color: #f8a5a5;
  background: rgba(239,68,68,0.16);
  border-color: rgba(239,68,68,0.34);
}
html.desktop-dark .mo-superib-goto-btn {
  color: #111;
  background: #d6ad5f;
}
.mo-page-options {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mo-page-label {
  color: var(--text-second);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.mo-page-grid {
  display: flex;
  gap: 4px;
  flex: 1;
}
.mo-page-opt {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(17,24,39,0.08);
  background: var(--bg-card);
  color: var(--text-second);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
}
.mo-page-opt-active {
  border-color: rgba(214,173,95,0.5);
  background: rgba(214,173,95,0.1);
  color: #1c1c1e;
}
.mo-page-custom-chip-input {
  text-align: center;
  min-width: 0;
  line-height: 26px;
  font-size: 11px;
  font-weight: 600;
  padding: 0;
  display: block;
}
/* ── 进度卡片（复刻小程序） ── */
.mo-progress-card-c {
  margin-top: 11px;
  padding: 9px 8px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #fff;
  border-radius: 7px;
  border: 0.5px solid #e2e8f0;
}
.mo-progress-ring-c-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding-top: 2px;
}
.mo-progress-ring-c {
  position: relative;
  width: 40px;
  height: 40px;
}
.mo-progress-ring-c-bg,
.mo-progress-ring-c-fg,
.mo-progress-ring-c-mask {
  position: absolute;
  border-radius: 50%;
}
.mo-progress-ring-c-bg {
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: #e2e8f0;
}
.mo-progress-ring-c-fg {
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  transition: background 360ms ease;
}
.mo-progress-ring-c-mask {
  left: 5px;
  top: 5px;
  width: 30px;
  height: 30px;
  background: #fff;
}
.mo-progress-info-c {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mo-progress-title-c {
  font-size: 13px;
  font-weight: 600;
  color: #1c1c1e;
  line-height: 1.4;
}
.mo-progress-stats-c {
  display: flex;
  gap: 10px;
  margin-top: 3px;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
}
.mo-progress-stop-btn {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  padding: 0 4px;
  min-width: 0;
  height: 28px;
  line-height: 28px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
  background: #fff1f2;
  border: 0.5px solid #fecdd3;
  cursor: pointer;
}
.mo-progress-stop-btn:disabled {
  color: #9ca3af;
  background: #f3f4f6;
  border-color: #e5e7eb;
  cursor: not-allowed;
}
.mo-progress-stat-val {
  font-weight: 600;
  color: #374151;
}

.mo-action-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mo-query-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 36px;
  line-height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  margin: 0;
  border: none;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s, transform 100ms ease-out;
}
.mo-query-btn:active { transform: scale(0.97); }
.mo-query-btn-buy {
  color: #166534;
  background: #e8f5e9;
}
.mo-query-btn-sell {
  color: #991b1b;
  background: #fef2f2;
}
.mo-query-btn-buy:disabled {
  color: rgba(22,101,52,0.5);
  background: #e8f5e9;
  cursor: not-allowed;
}
.mo-query-btn-sell:disabled {
  color: rgba(153,27,27,0.5);
  background: #fef2f2;
  cursor: not-allowed;
}

/* ── 时间视图表格 ── */
.mo-time-table {
  overflow: hidden;
  border: none;
  border-radius: 0 0 10px 10px;
}
.mo-time-row {
  display: grid;
  grid-template-columns: 48px 36px minmax(0, max-content) 1fr;
  align-items: center;
  min-height: 34px;
  padding: 4px 14px;
  border-top: 0.5px solid rgba(0,0,0,0.04);
  background: var(--bg-card, #fff);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  transition: background-color 80ms ease-out;
}
.mo-time-row:first-child { border-top: none; }
.mo-time-row:not(.mo-time-row-head):active { background: rgba(0,0,0,0.02); }
.mo-time-row:not(.mo-time-row-head):nth-child(even) { background: rgba(0,0,0,0.01); }
.mo-time-row-head {
  background: rgba(0,0,0,0.02);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-top: 0.5px solid rgba(0,0,0,0.06);
}
.mo-time-row-head .mo-time-col-price,
.mo-time-row-head .mo-time-col-wallet,
.mo-time-row-head .mo-time-col-tag,
.mo-time-row-head .mo-time-col-time {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}
.mo-time-col-price {
  font-size: 13px;
  font-weight: 600;
  color: #1f1f24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.mo-time-col-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.mo-time-col-tag {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding-left: 4px;
  min-width: 0;
  overflow: hidden;
}
.mo-time-col-time {
  font-size: 11px;
  color: #475569;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.mo-first-listing-tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  line-height: 1.5;
}
.mo-anonymous-listing-tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  line-height: 1.5;
}
.mo-wallet-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
}
.mo-wallet-simple-fg { color: #92400e; background: #ffedd5; }
.mo-wallet-simple-f { color: #166534; background: #dcfce7; }
.mo-wallet-simple-g { color: #1e40af; background: #dbeafe; }
.mo-wallet-simple-none { color: #94a3b8; background: #f1f5f9; }
.mo-privacy-note {
  margin-top: 6px;
  text-align: center;
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
@media (prefers-reduced-motion: reduce) {
  .mo-time-row { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .mo-time-row-head { background: #f8f9fa; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.mo-result-panel {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 0.5px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  background: var(--bg-card);
}
.mo-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 10px 14px 6px;
  background: rgba(0,0,0,0.02);
  border-bottom: 0.5px solid rgba(0,0,0,0.05);
}
.mo-result-head-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mo-result-range {
  font-size: 11px;
  color: var(--text-third);
  font-weight: 500;
  font-family: SF Mono, ui-monospace, monospace;
  letter-spacing: -0.015em;
}
.mo-result-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.mo-result-tag-buy {
  background: rgba(214,173,95,0.1);
  color: var(--brand);
}
.mo-result-tag-sell {
  background: rgba(248,113,113,0.1);
  color: #dc2626;
}
.mo-result-total {
  font-size: 12px;
  color: var(--text-second);
  font-weight: 500;
}
.mo-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  padding: 0 12px 6px;
  color: var(--text-third);
  font-size: 10px;
  line-height: 1.4;
  word-break: break-all;
}

/* Order history cache cards */
.mo-history-row {
  display: flex;
  gap: 8px;
  padding: 8px 0 4px;
  flex-wrap: wrap;
}
.mo-history-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(214,173,95,0.06);
  border: 0.5px solid rgba(214,173,95,0.14);
  cursor: pointer;
  transition: background 180ms ease, transform 100ms ease-out;
}
.mo-history-card:active { transform: scale(0.97); background: rgba(214,173,95,0.12); }
.mo-history-collection {
  font-size: 12px;
  font-weight: 600;
  color: #1c1c1e;
  line-height: 1.3;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mo-history-time {
  font-size: 10px;
  color: #8e8e93;
  line-height: 1;
}
.mo-price-buy { color: #166534; font-weight: 700; }
.mo-price-sell { color: #991b1b; font-weight: 700; }
.market-orders-table {
  overflow: hidden;
  border-top: none;
  border-radius: 0 0 12px 12px;
}
.market-orders-row {
  display: grid;
  grid-template-columns: 0.75fr 1.05fr 1.15fr 0.55fr;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-top: 0.5px solid #edf1f6;
  font-size: 13px;
  color: #1f1f24;
  background: var(--bg-card, #fff);
  transition: background-color 80ms ease-out;
}
.market-orders-row:first-child { border-top: none; }
.market-orders-row:not(.market-orders-row-head):nth-child(even) { background: #fafbfc; }
.market-orders-row:not(.market-orders-row-head):active { background-color: rgba(0,0,0,0.02); }
.market-orders-row-head {
  background: #fff;
  color: #94a3b8;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-top: 0.5px solid #e2e8f0;
}
.market-orders-row-head .market-orders-col-price,
.market-orders-row-head .market-orders-col-dist,
.market-orders-row-head .market-orders-col-wallet,
.market-orders-row-head .market-orders-col-count-new {
  font-size: 12px;
  color: #94a3b8;
}
.market-orders-col-price,
.market-orders-col-dist,
.market-orders-col-wallet,
.market-orders-col-count-new {
  font-size: 14px;
  line-height: 17px;
  color: #1f1f24;
}
.market-orders-col-price { text-align: left; padding-left: 2px; font-weight: 600; font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
.market-orders-col-dist { display: flex; align-items: center; gap: 5px; justify-content: center; padding: 0 4px; }
.market-orders-col-wallet { display: flex; align-items: center; gap: 2px; justify-content: center; flex-wrap: wrap; }
.market-orders-col-count-new { text-align: right; padding-right: 2px; font-weight: 500; font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
.mo-dist-bar { display: inline-block; width: 46px; height: 5px; overflow: hidden; border-radius: 8px; background: #e5e7eb; vertical-align: middle; flex-shrink: 0; }
.mo-dist-bar-fill { display: block; height: 100%; border-radius: inherit; }
.mo-dist-fill-buy { background: linear-gradient(90deg, #34c759, #6ddb8a); }
.mo-dist-fill-sell { background: linear-gradient(90deg, #ff3b30, #ff7b74); }
.mo-dist-pct { font-size: 11px; color: #64748b; }
.mo-wallet-pill { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.mo-wallet-pill-fg { color: #7c2d12; background: #ffedd5; }
.mo-wallet-pill-f { color: #14532d; background: #dcfce7; }
.mo-wallet-pill-g { color: #1e3a8a; background: #dbeafe; }
@media (prefers-reduced-motion: reduce) { .mo-query-btn, .mo-page-opt, .market-orders-row { transition: none !important; } .market-scroll-wrap::after { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .mo-token-input-wrap { background: #fff; } .market-orders-row-head { background: #f8f9fa; } }

.collection-detail-page .tab-sticky-meta {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease, margin-bottom 180ms ease;
}
.collection-detail-page .tab-sticky-meta-show {
  max-height: 70px;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 6px;
}
.collection-detail-page .sticky-collection-row {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 9px;
  box-shadow: 0 5px 12px rgba(15,23,42,0.08);
}
.collection-detail-page .sticky-collection-cover {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
}
.collection-detail-page .sticky-collection-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-detail-page .sticky-collection-price {
  flex-shrink: 0;
  font-size: 12px;
  color: #3B82F6;
  font-weight: 700;
}
/* Badge on tab items */
.detail-tab-bar .badge-free {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  background: #ef4444;
  padding: 0 5px;
  border-radius: 3px;
  line-height: 1.4;
  flex-shrink: 0;
}

.detail-tab-body {
  min-height: 0;
}
.detail-section {
  padding: 16px 16px 100px;
}

.detail-state-hint {
  font-size: 13px; color: #64748b;
  padding: 16px 0;
  text-align: center;
}
.detail-state-error { color: #dc2626; }

/* Skeleton loading for detail sections */
@keyframes skeletonShimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-table {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}
.skeleton-row {
  display: flex; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}
.skeleton-row:last-child { border-bottom: none; }
.skeleton-cell {
  height: 14px; border-radius: 4px;
  background: linear-gradient(90deg, #e9e9ef 25%, var(--bg-soft) 50%, #e9e9ef 75%);
  background-size: 400px 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
  margin: 0 8px; flex-shrink: 0;
}
.skeleton-cell--date { width: 56px; margin-left: 16px; }
.skeleton-cell--data { flex: 1; min-width: 60px; }
.skeleton-cell--wide { flex: 1; min-width: 80px; }

/* Price direction arrow */
.price-direction__arrow {
  font-size: 9px; font-weight: 700;
  line-height: 1; margin-left: 2px;
}

/* Compact price range (high/low stacked) */
.price-range-compact {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  width: 100%;
}
.price-range-compact__high {
  font-size: 11px; line-height: 1.2; font-weight: 500;
  color: #dc2626;
}
.price-range-compact__low {
  font-size: 11px; line-height: 1.2; font-weight: 500;
  color: #16a34a;
}

.collection-detail-page .history-section {
  padding: 16px 16px 100px;
}

/* History table */
.history-table-scroll-wrap {
  --time-col-w: 70px;
  --data-col-w: 64px;
  --total-batch-col-w: 74px;
  position: relative;
  z-index: 1;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}
.history-table-scroll {
  width: 100%;
  background: #ffffff;
  position: relative;
  z-index: 1;
}
.history-table-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.history-table {
  display: block;
  min-width: 100%;
  background: #ffffff;
}
.history-table-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ffffff;
}
.history-table-body {
  display: block;
}
.history-table-row {
  display: flex; align-items: center;
}
.history-table-body-row {
  min-height: 41px;
}
.history-table-cell {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 7px 8px;
  border-bottom: 1px solid #eef2f7;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: visible;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.history-table-th {
  color: #8f8f95; font-size: 11px; font-weight: 600;
  background: #ffffff;
}
.history-table-td {
  color: #111827; font-size: 12px;
  line-height: 1.3;
}
.history-time-col {
  width: var(--time-col-w);
  min-width: var(--time-col-w); max-width: var(--time-col-w);
}
.history-data-col {
  width: var(--data-col-w);
  min-width: var(--data-col-w); max-width: var(--data-col-w);
}
.history-total-batch-col {
  width: var(--total-batch-col-w);
  min-width: var(--total-batch-col-w);
  max-width: var(--total-batch-col-w);
}
.history-time-ghost {
  visibility: hidden;
}
.history-table-title,
.history-table-time {
  width: 100%;
  text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.history-table-value {
  width: 100%;
  text-align: center;
  font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.history-table-value,
.history-table-time {
  font-variant-numeric: tabular-nums;
}
.history-fixed-time-pane {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--time-col-w);
  background: #ffffff;
  z-index: 4;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  border-right: 1px solid #e2e8f0;
}
.history-fixed-time-head {
  flex-shrink: 0;
  background: #ffffff;
  z-index: 5;
}
.history-fixed-time-body {
  flex: 1;
  min-height: 0;
  background: #ffffff;
}
.history-fixed-time-row {
  display: flex; align-items: center;
}
.history-table-summary-cell {
  background: #f7faff;
}
.history-table-summary-row {
  border-top: 1.5px solid #e2e8f0;
}
.history-table-summary-row .history-table-value,
.history-table-summary-row .history-table-time {
  font-weight: 700; color: #0f172a;
}
.history-right-mask {
  position: absolute;
  top: 0;
  left: var(--time-col-w);
  bottom: 0;
  width: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, transparent 100%);
  z-index: 6;
  pointer-events: none;
}
.history-table-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.history-table {
  min-width: 100%;
  background: var(--bg-card);
}
.history-table-row {
  display: flex; align-items: center;
}
.history-table-cell {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 7px 8px;
  border-bottom: 1px solid #eef2f7;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.history-table-th {
  color: #8f8f95; font-size: 11px; font-weight: 600;
  background: #ffffff;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #eef2f7;
}
.history-table-td {
  color: var(--text-main); font-size: 12px;
  line-height: 1.3;
}
.history-time-col {
  width: var(--time-col-w);
  min-width: var(--time-col-w); max-width: var(--time-col-w);
}
.history-data-col {
  width: var(--data-col-w);
  min-width: var(--data-col-w); max-width: var(--data-col-w);
}
.history-total-batch-col {
  width: var(--total-batch-col-w, 76px);
  min-width: var(--total-batch-col-w, 76px);
  max-width: var(--total-batch-col-w, 76px);
}
.history-table-value {
  width: 100%; text-align: center;
  font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.history-table-time {
  width: 100%; text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.history-time-sticky {
  position: sticky; left: 0;
  background: #ffffff;
  z-index: 3;
  border-right: 1px solid #e2e8f0;
}
.history-table-td.history-time-sticky {
  justify-content: center;
}
.history-table-th.history-time-sticky {
  z-index: 5;
}
.history-table-td.history-time-sticky {
  z-index: 3;
}
.history-right-mask {
  position: absolute; top: 0;
  left: var(--time-col-w); bottom: 0;
  width: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, transparent 100%);
  z-index: 6; pointer-events: none;
}
.history-summary-cell {
  background: #f7faff;
}
.history-summary-row {
  border-top: 1.5px solid #e2e8f0;
}
.history-summary-row .history-table-value,
.history-summary-row .history-table-time {
  font-weight: 700; color: #0f172a;
}
.history-cell-hint { font-size: 11px; color: #8e8e93; padding: 6px 12px 0; text-align: left; }
.history-record-time-hint {
  margin-top: 4px;
  margin-bottom: 2px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
}
.history-cell-popup {
  position: fixed;
  z-index: 9999;
  background: #1c1c1e;
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -100%);
  opacity: 0;
  transition: opacity 0.15s ease;
  font-variant-numeric: tabular-nums;
}
.history-cell-popup::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #1c1c1e;
}
.history-cell-popup-show { opacity: 1; }


/* Detail page dark mode adjustments */


/* Miniprogram-aligned section panel styles */
.collection-detail-page .detail-section .wq-panel {
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* Miniprogram-aligned result panel styles for collection detail */
.collection-detail-page .history-auth-panel {
  margin-bottom: 5px;
  padding: 6px 12px;
}
.collection-detail-page .sample-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.collection-detail-page .meta-primary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.collection-detail-page .meta-expire {
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
.collection-detail-page .meta-buy-btn {
  flex-shrink: 0;
  margin-left: auto;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: #1c1c1e;
  color: #fff;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.collection-detail-page .meta-buy-btn:active { opacity: 0.75; }
.collection-detail-page .sample-btn-row {
  display: flex;
  gap: 10px;
}
.collection-detail-page .sample-btn-row .wq-search-btn {
  flex: 1;
  width: auto;
}
.collection-detail-page .sample-card-link-module {
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}
.collection-detail-page .card-link-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.collection-detail-page .card-link-title-wrap {
  flex: 1;
  min-width: 0;
}
.collection-detail-page .card-link-title {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #1c1c1e;
  font-weight: 700;
}
.collection-detail-page .card-link-badge {
  flex-shrink: 0;
  min-height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.24);
  color: #3B82F6;
  font-size: 10px;
  font-weight: 600;
}
.collection-detail-page .card-link-box {
  margin-top: 8px;
  border: 1px solid #d1d1d6;
  border-radius: 12px;
  background: #ffffff;
  padding: 6px 10px;
}
.collection-detail-page .card-link-input {
  display: block;
  font-size: 11px;
  color: #1c1c1e;
  word-break: break-all;
  line-height: 1.5;
}

/* Quick actions row (matching miniprogram) */
.collection-detail-page .quick-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.collection-detail-page .quick-action-card {
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s;
}
.collection-detail-page .quick-action-card:active { transform: scale(0.97); }
.collection-detail-page .quick-action-card-monitor {
  background: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.32);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.10);
}
.collection-detail-page .quick-action-card-model {
  background: #ffffff;
  border: 1px solid rgba(52, 199, 89, 0.28);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.08);
}
.collection-detail-page .quick-action-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.collection-detail-page .quick-action-label {
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-detail-page .quick-action-member-tag {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(135deg, #151922 0%, #08090e 100%);
}
.collection-detail-page .quick-action-free-tag {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: #3B82F6;
}
.collection-detail-page .quick-action-value {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #2563EB;
}
.collection-detail-page .quick-action-value-link {
  color: #0f9f62;
}

/* Result panel (matching miniprogram) */
.collection-detail-page .result-panel {
  border: 1px solid var(--line);
}
.collection-detail-page .result-panel.sample-result-panel .result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
  margin-bottom: 12px;
}
.collection-detail-page .result-panel .result-title-wrap {
  flex: 1;
  min-width: 0;
}
.collection-detail-page .result-panel .result-flags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.collection-detail-page .result-panel .result-ai-tag,
.collection-detail-page .result-panel .result-hot-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.collection-detail-page .result-panel .result-ai-tag {
  color: #8f4f00;
  background: #EFF6FF;
  border: 1px solid rgba(255, 149, 0, 0.22);
}
.collection-detail-page .result-panel .result-hot-tag {
  color: #a03c34;
  background: #ffeceb;
  border: 1px solid rgba(255, 59, 48, 0.2);
}
.collection-detail-page .result-panel .result-title {
  font-size: 17px;
  color: #1d1d1f;
  font-weight: 700;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collection-detail-page .result-panel .title-unified-xl {
  font-size: 20px;
  line-height: 1.24;
}
.collection-detail-page .result-panel .result-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #2563EB;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}
.collection-detail-page .result-panel .metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.collection-detail-page .result-panel .metric-item {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  padding: 10px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.collection-detail-page .result-panel .metric-label {
  font-size: 12px;
  color: #6e6e73;
  display: block;
  margin-bottom: 2px;
}
.collection-detail-page .result-panel .metric-value {
  font-size: 16px;
  color: #1d1d1f;
  font-weight: 700;
  margin-top: 0;
}
.collection-detail-page .result-panel .metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  min-width: 0;
}
.collection-detail-page .result-panel .metric-delta {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.collection-detail-page .result-panel .metric-delta-up {
  color: #d92d20;
  background: rgba(217, 45, 32, 0.08);
}
.collection-detail-page .result-panel .metric-delta-down {
  color: #34c759;
  background: rgba(52, 199, 89, 0.1);
}
.collection-detail-page .result-panel .meta {
  font-size: 11px;
  color: #6e6e73;
  margin-top: 4px;
}
.collection-detail-page .result-panel .distribution-title {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #1d1d1f;
  font-weight: 700;
}
.collection-detail-page .result-panel .distribution-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  padding: 8px 10px;
  margin-bottom: 4px;
}
.collection-detail-page .result-panel .distribution-head {
  font-size: 11px;
  font-weight: 600;
}
.collection-detail-page .result-panel .col-bucket {
  width: 36%;
  color: #2f2f34;
}
.collection-detail-page .result-panel .col-count {
  width: 32%;
  text-align: center;
  color: #4d4d55;
}
.collection-detail-page .result-panel .col-ratio {
  width: 32%;
  text-align: right;
  color: #4d4d55;
}
.collection-detail-page .result-panel .distribution-head .col-bucket,
.collection-detail-page .result-panel .distribution-head .col-count,
.collection-detail-page .result-panel .distribution-head .col-ratio {
  color: #8e8e93;
}
.collection-detail-page .result-panel .history-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 6px;
}
.collection-detail-page .result-panel .history-title {
  font-size: 15px;
  color: #1d1d1f;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}
.collection-detail-page .result-panel .history-row {
  display: grid;
  grid-template-columns: 92px 48px 56px 44px 1fr;
  gap: 2px;
  align-items: center;
  min-width: 0;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  padding: 7px 8px;
  margin-bottom: 4px;
}
.collection-detail-page .result-panel .history-head {
  font-size: 11px;
  font-weight: 600;
}
.collection-detail-page .result-panel .history-col-time {
  color: #2f2f34;
  min-width: 0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-detail-page .result-panel .history-col-holder,
.collection-detail-page .result-panel .history-col-total,
.collection-detail-page .result-panel .history-col-avg {
  text-align: right;
  color: #4d4d55;
  font-size: 12px;
  min-width: 0;
  white-space: nowrap;
}
.collection-detail-page .result-panel .history-col-star {
  text-align: center;
  color: #4d4d55;
  font-size: 11px;
  min-width: 0;
  white-space: nowrap;
}
.collection-detail-page .result-panel .history-head .history-col-time,
.collection-detail-page .result-panel .history-head .history-col-holder,
.collection-detail-page .result-panel .history-head .history-col-total,
.collection-detail-page .result-panel .history-head .history-col-avg,
.collection-detail-page .result-panel .history-head .history-col-star {
  color: #8e8e93;
}
.collection-detail-page .result-panel .history-empty {
  font-size: 11px;
  color: #8e8e93;
  margin-top: 4px;
}
.collection-detail-page .result-panel .history-empty-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.collection-detail-page .result-panel .history-error-text {
  flex: 1;
  min-width: 0;
  color: #dc2626;
  line-height: 1.45;
}
.collection-detail-page .result-panel .history-refresh-btn {
  flex: 0 0 auto;
  min-width: 70px;
  padding: 0 14px;
  height: 30px;
  line-height: 30px;
  font-size: 11px;
}
.collection-detail-page .result-panel .history-loading-highlight {
  display: inline-flex;
  align-items: center;
  margin: 0 4px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid #ffd6a8;
  background: #fff2dc;
  color: #b45309;
  font-weight: 700;
  line-height: 1.35;
  font-size: 11px;
}
.collection-detail-page .result-panel .result-tip {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  color: #6e6e73;
}
.collection-detail-page .result-panel .result-source-note {
  margin-top: -2px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #8e8e93;
}
.collection-detail-page .result-panel .sample-btn.verify-btn {
  height: 30px;
  line-height: 30px;
  border-radius: 10px;
  font-size: 11px;
  padding: 0 14px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #151922 0%, #08090e 100%);
  border: none;
  cursor: pointer;
}
.collection-detail-page .result-panel .sample-btn.verify-btn:active {
  opacity: 0.85;
}

/* ===== Warehouse Query Page ===== */
/* ══════════════════════════════════════════════════════════════
   Warehouse Query — Apple Design Language
   ══════════════════════════════════════════════════════════════ */
.mobile-screen--warehouse-query {
  padding: 0 0 calc(var(--tabbar-height) + 20px);
  background: #F2F2F7;
}
.wq-page { padding: 8px 16px 32px; }

/* ── Cards: 1:1 mini-program white card style ── */
.wq-panel {
  background: #ffffff;
  border: 0.5px solid rgba(17,24,39,0.055);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 11px 26px rgba(17,24,39,0.105), 0 3px 9px rgba(17,24,39,0.06);
}
.wq-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
  line-height: 1.25;
}

/* Status overview — 1:1 mini-program */
.wq-status-panel {
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 18px;
}
.wq-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  min-height: 30px;
}
.wq-status-row + .wq-status-row {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 0.5px solid rgba(60,60,67,0.06);
}
.wq-status-label {
  font-size: 12px;
  color: #8e8e93;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.2;
}
.wq-status-value-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.wq-status-value {
  font-size: 14px;
  color: #1c1c1e;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.wq-status-value-error { color: #d92d20; }
.wq-status-value-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}
.status-simple-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}.status-node { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.status-node-gold { background: #d6ad5f; }
.status-node-green { background: #1c1c1e; }
.status-node-error { background: #d92d20; }
.status-pill { display: inline-flex; align-items: center; min-height: 18px; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 0 6px; line-height: 1.2; flex-shrink: 0; }
.status-pill-ok { color: #d6ad5f; background: rgba(214,173,95,0.09); border: 0.5px solid rgba(214,173,95,0.15); }
.status-pill-error { color: #d92d20; background: rgba(217,45,32,0.08); border: 0.5px solid rgba(217,45,32,0.12); }
.status-pill-subscribe { color: #34c759; background: rgba(52,199,89,0.08); border-color: rgba(52,199,89,0.14); }
.wq-subscription-btn { cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.wq-subscription-btn:active { opacity: 0.6; transform: scale(0.96); }

/* Stats row — 1:1 mini-program */
.wq-stats-row { display: flex; gap: 8px; padding: 8px 0 0; margin-bottom: 8px; }
.wq-stat-card {
  flex: 1;
  background: #ffffff;
  border: 0.5px solid rgba(17,24,39,0.055);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 11px 26px rgba(17,24,39,0.105), 0 3px 9px rgba(17,24,39,0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), box-shadow 0.18s ease;
  min-width: 0;
}
.wq-stat-card:active { transform: scale(0.96); box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.08); }
.wq-stat-label { font-size: 11px; color: #8e8e93; font-weight: 500; line-height: 1.3; }
.wq-stat-value { font-size: 17px; font-weight: 700; color: #d6ad5f; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Leaderboard entry — 1:1 mini-program tool cards */
.wq-leaderboard-entry-panel { padding: 0; }
.tools-section { margin: 14px 0 0; }
.tools-grid { display: flex; gap: 8px; }
.wq-leaderboard-entry {
  flex: 1;
  background: #ffffff;
  border: 0.5px solid rgba(17,24,39,0.055);
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: 0 11px 26px rgba(17,24,39,0.105), 0 3px 9px rgba(17,24,39,0.06);
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), box-shadow 0.18s ease;
}
.wq-leaderboard-entry--unlocked:active { transform: scale(0.97); }
.wq-leaderboard-entry--locked { cursor: default; }
.wq-leaderboard-icon { display: none; }
.wq-leaderboard-main { flex: 1; min-width: 0; }
.wq-leaderboard-title-row { display: flex; align-items: center; gap: 5px; }
.wq-leaderboard-title { font-size: 14px; font-weight: 700; color: #1c1c1e; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wq-leaderboard-title--locked { color: #636366; }
.wq-leaderboard-title--unlocked { color: #1c1c1e; }
.wq-leaderboard-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.wq-leaderboard-badge--unlocked { color: #d6ad5f; background: rgba(214,173,95,0.08); }
.wq-leaderboard-desc { margin-top: 4px; font-size: 11px; color: #8e8e93; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wq-leaderboard-desc--locked { color: #AEAEB2; }
.wq-leaderboard-desc--unlocked { color: #8e8e93; }

/* Search panel — 1:1 mini-program */
.search-module {
  margin: 14px 0 0;
  background: #ffffff;
  border: 0.5px solid rgba(17,24,39,0.055);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 11px 26px rgba(17,24,39,0.105), 0 3px 9px rgba(17,24,39,0.06);
}
.wq-panel-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.wq-panel-head .wq-panel-title { font-size: 16px; font-weight: 700; color: #1c1c1e; }
.mobile-screen--warehouse-query .wq-search-shell {
  width: 100%; height: 33px;
  border-radius: 17px;
  background: #ffffff;
  border: 0.5px solid rgba(17,24,39,0.08);
  box-shadow: 0 4px 11px rgba(17,24,39,0.04);
  padding: 0 13px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.mobile-screen--warehouse-query .wq-search-shell:focus-within { box-shadow: 0 4px 11px rgba(17,24,39,0.08); }
.wq-keyword-input { width: 100%; height: 100%; border: 0; background: transparent; padding: 0; font-size: 12px; color: #1c1c1e; outline: none; box-sizing: border-box; }
.wq-keyword-input::placeholder { color: #9a9a9f; }
.search-btn-row { display: flex; gap: 10px; margin-top: 12px; }
.wq-search-btn {
  flex: 1; height: 40px; margin: 0; border-radius: 12px;
  background: #1c1c1e; color: #fff; border: 0;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: opacity 0.2s ease;
}
.wq-search-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wq-search-btn:active:not(:disabled) { opacity: 0.85; }
.wq-status-hint { font-size: 11px; color: #8e8e93; margin-top: 4px; }
.wq-status-hint-error {
  margin-top: 8px; padding: 7px 9px; border-radius: 8px;
  background: #fff6eb; border: 0.5px solid #ffd6a8;
  color: #b45309; font-weight: 700; font-size: 11px;
}/* Candidates */
.wq-candidate-hint { font-size: 11px; color: #8e8e93; font-weight: 500; margin-top: 6px; margin-bottom: 8px; line-height: 1.3; }
.wq-candidate-item {
  background: #f8f9fc; border: 0.5px solid rgba(60,60,67,0.10);
  border-radius: 10px; padding: 10px 12px; font-size: 14px;
  font-weight: 600; color: #1c1c1e; margin-bottom: 5px;
  cursor: pointer; transition: all 0.18s ease;
}
.wq-candidate-item:active { opacity: 0.88; }
.wq-candidate-item-active { background: rgba(214,173,95,0.06); border-color: rgba(214,173,95,0.24); color: #d6ad5f; }
.wq-empty-panel { text-align: center; }
.wq-empty-text { text-align: center; color: #8e8e93; font-size: 13px; font-weight: 500; padding: 16px 0; line-height: 1.3; }

/* Quick actions — 1:1 mini-program */
.wq-quick-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.wq-quick-card {
  flex: 1; border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; justify-content: center;
  cursor: pointer; transition: transform 0.15s;
  border: 0.5px solid rgba(17,24,39,0.055);
  box-shadow: 0 11px 26px rgba(17,24,39,0.105), 0 3px 9px rgba(17,24,39,0.06);
  min-height: 50px;
}
.wq-quick-card:active { transform: scale(0.97); }
.wq-quick-card-monitor { background: linear-gradient(135deg, rgba(214,173,95,0.12), #fcfaf6); border-color: rgba(214,173,95,0.32); }
.wq-quick-card-model { background: linear-gradient(135deg, rgba(28,28,30,0.04), rgba(28,28,30,0.01)); border-color: rgba(28,28,30,0.12); }
.wq-quick-label-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.wq-quick-label { font-size: 11px; font-weight: 600; color: #8e8e93; line-height: 1.3; white-space: nowrap; }
.wq-quick-tag { flex-shrink: 0; padding: 1px 5px; border-radius: 5px; font-size: 9px; font-weight: 700; line-height: 1.2; color: #fff; }
.wq-quick-tag-member { background: linear-gradient(135deg, #d6ad5f, #a97935); }
.wq-quick-tag-free { background: linear-gradient(135deg, #1c1c1e, #3a3a3c); }
.wq-quick-value { margin-top: 5px; font-size: 16px; font-weight: 650; line-height: 1.1; }
.wq-quick-value-blue { color: #a97935; }
.wq-quick-value-green { color: #1c1c1e; }

/* Result panel — 1:1 mini-program */
.wq-result-panel { border: none !important; padding: 0 !important; box-shadow: none !important; background: transparent !important; }
.wq-result-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 7px;
  margin: 0; padding: 14px 10px 12px;
  background: linear-gradient(135deg, #fff8e8 0%, #f4e7c9 100%);
  border-bottom: 0.5px solid rgba(214,173,95,0.08);
  border-radius: 16px 16px 0 0;
}
.wq-result-title-wrap { flex: 1; min-width: 0; }
.wq-result-title { font-size: 19px; font-weight: 700; color: #1c1c1e; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wq-result-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wq-result-ai-tag, .wq-result-hot-tag { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.wq-result-ai-tag { color: #b45309; background: #ffffff; border: 0.5px solid rgba(255,159,10,0.20); }
.wq-result-hot-tag { color: #d92d20; background: #ffffff; border: 0.5px solid rgba(217,45,32,0.20); }
.wq-result-tag { flex-shrink: 0; padding: 3px 14px; border-radius: 999px; background: #1c1c1e; color: #fff; font-size: 11px; font-weight: 700; margin-top: 3px; white-space: nowrap; }/* Metrics grid — 1:1 mini-program */
.wq-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; padding: 0 8px; }
.wq-metric-item {
  background: #f8f9fc; border: 0.5px solid rgba(60,60,67,0.05);
  border-radius: 12px; padding: 12px 14px; min-height: 58px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 11px 26px rgba(17,24,39,0.105), 0 3px 9px rgba(17,24,39,0.06);
}
.wq-metric-label { font-size: 11px; color: #8e8e93; font-weight: 500; line-height: 1.3; display: block; margin-bottom: 3px; }
.wq-metric-value { font-size: 17px; font-weight: 700; color: #1c1c1e; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wq-snapshot-meta { font-size: 11px; color: #8e8e93; font-weight: 500; padding: 0 8px; margin-bottom: 8px; }

/* Distribution — 1:1 mini-program table-card */
.wq-distribution-title { font-size: 16px; font-weight: 700; color: #1c1c1e; padding: 4px 10px 8px; line-height: 1.25; }
.wq-dist-row { display: flex; align-items: center; min-height: 29px; padding: 9px 14px; background: #f8f9fc; border-top: 0.5px solid rgba(60,60,67,0.04); font-size: 13px; font-weight: 600; color: #1c1c1e; }
.wq-dist-row:first-child { border-top: none; }
.wq-dist-head { background: rgba(214,173,95,0.04); font-weight: 700; }
.wq-dist-head .wq-col-bucket, .wq-dist-head .wq-col-count, .wq-dist-head .wq-col-ratio { color: #8e8e93; font-size: 12px; }
.wq-col-bucket { width: 36%; color: #1c1c1e; }
.wq-col-count { width: 32%; text-align: center; color: #1c1c1e; }
.wq-col-ratio { width: 32%; text-align: right; color: #1c1c1e; }

/* History table — 1:1 mini-program */
.wq-history-title { font-size: 16px; font-weight: 700; color: #1c1c1e; padding: 4px 10px 8px; line-height: 1.25; }
.wq-hist-row {
  display: flex; align-items: center; min-height: 29px;
  padding: 9px 9px 9px 7px; background: #f8f9fc;
  border-top: 0.5px solid rgba(60,60,67,0.04);
  font-size: 12px; font-weight: 600; color: #1c1c1e;
}
.wq-hist-row:first-child { border-top: none; }
.wq-hist-head { background: rgba(214,173,95,0.04); font-weight: 700; }
.wq-hist-head .wq-hist-col-time,
.wq-hist-head .wq-hist-col-holder,
.wq-hist-head .wq-hist-col-total,
.wq-hist-head .wq-hist-col-avg,
.wq-hist-head .wq-hist-col-star { color: #8e8e93; font-weight: 700; font-size: 12px; }
.wq-hist-col-time { width: 48%; color: #1c1c1e; }
.wq-hist-col-holder, .wq-hist-col-total, .wq-hist-col-avg { width: 13%; text-align: center; color: #1c1c1e; }
.wq-hist-col-star { width: 13%; text-align: center; color: #1c1c1e; font-weight: 700; }
.wq-history-empty { font-size: 11px; color: #8e8e93; padding: 10px; margin: 0 10px; text-align: center; border: 0.5px dashed rgba(60,60,67,0.16); border-radius: 8px; font-weight: 500; }
.wq-history-error-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 4px 10px 0; padding: 6px 8px; border-radius: 8px; background: rgba(217,45,32,0.04); border: 0.5px solid rgba(217,45,32,0.12); }
.wq-history-error-text { flex: 1; color: #d92d20; font-size: 11px; font-weight: 600; line-height: 1.3; }
.wq-history-refresh-btn { flex-shrink: 0; height: 30px; line-height: 30px; padding: 0 12px; border-radius: 8px; background: #d6ad5f; color: #fff; border: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.wq-history-refresh-btn:active { opacity: 0.85; }
.wq-history-loading-alert { padding: 8px 9px; border-radius: 8px; border: 0.5px solid #ffd6a8; background: #fff6eb; margin: 4px 10px 0; }
.wq-history-loading-row { display: flex; align-items: center; gap: 4px; }
.wq-history-loading-beacon { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; animation: wqPulse 1.4s ease-in-out infinite; }
@keyframes wqPulse { 0% { box-shadow: 0 0 0 0 rgba(245,158,11,0.34); transform: scale(1); } 70% { box-shadow: 0 0 0 5px rgba(245,158,11,0); transform: scale(1.03); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); transform: scale(1); } }
.wq-history-loading-highlight { color: #b45309; font-weight: 800; font-size: 12px; }
.wq-history-loading-desc { margin-top: 3px; font-size: 10px; line-height: 1.35; color: #9a3412; }
.wq-result-tip { margin-top: 6px; padding: 0 10px 4px; font-size: 11px; color: #8e8e93; font-weight: 500; line-height: 1.3; }
.wq-result-source { padding: 0 10px 16px; font-size: 11px; color: #8e8e93; font-weight: 500; line-height: 1.3; }

/* ===== Segment Star Query Module ===== */
/* ══════════════════════════════════════════════════════════════
   Segment Star Query — Apple Design Language
   ══════════════════════════════════════════════════════════════ */
.wq-seg-star-module {
  margin: 12px 0 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.04), 0 16px 32px rgba(0,0,0,0.06);
}
.wq-seg-star-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.wq-seg-star-title {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.wq-seg-star-note {
  font-size: 10px;
  color: #d6ad5f;
  font-weight: 600;
  background: rgba(214,173,95,0.10);
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.35;
  flex-shrink: 0;
}
.wq-seg-picker-grid {
  display: flex;
  gap: 10px;
}
.wq-seg-picker {
  flex: 1;
  min-width: 0;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wq-seg-picker:active {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
}
.wq-seg-picker-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.wq-seg-picker-label {
  font-size: 10px;
  color: #86868B;
  font-weight: 400;
  line-height: 1;
}
.wq-seg-picker-value {
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.wq-seg-picker-arrow {
  font-size: 14px;
  color: #C7C7CC;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 6px;
}
.wq-seg-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.wq-seg-query-btn {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: rgba(0,0,0,0.04);
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.wq-seg-query-btn:active:not(:disabled) {
  background: rgba(0,0,0,0.08);
  transform: scale(0.98);
}
.wq-seg-query-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.wq-seg-query-btn-active {
  background: #d6ad5f;
  color: #fff;
  box-shadow: 0 2px 8px rgba(214,173,95,0.30);
}
.wq-seg-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wq-seg-spin 0.6s linear infinite;
}
@keyframes wq-seg-spin {
  to { transform: rotate(360deg); }
}

/* ===== Segment Star Preview — Apple Design ===== */
.wq-seg-section {
  margin: 16px 0 0;
}
.wq-seg-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}
.wq-seg-section-title {
  font-size: 17px;
  font-weight: 600;
  color: #000000;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.wq-seg-section-badge {
  font-size: 11px;
  color: #86868B;
  font-weight: 400;
  background: rgba(0,0,0,0.04);
  border-radius: 999px;
  padding: 3px 12px;
  line-height: 1.25;
  flex-shrink: 0;
}
.wq-seg-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  margin-bottom: 10px;
  border: 0.5px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.04), 0 12px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}
.wq-seg-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 0;
}
.wq-seg-card-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.wq-seg-card-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  font-size: 11px;
  font-weight: 600;
  color: #86868B;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.wq-seg-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.wq-seg-card-total {
  font-size: 12px;
  font-weight: 500;
  color: #86868B;
  background: rgba(0,0,0,0.04);
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.3;
  flex-shrink: 0;
}
.wq-star-badges-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 4px;
}
.wq-star-badges-scroll::-webkit-scrollbar { display: none; }
.wq-star-badges-row {
  display: flex;
  gap: 8px;
  padding: 10px 18px 10px;
  min-width: min-content;
}
.wq-star-badge-wrap {
  flex: 0 0 auto;
  min-width: 0;
}
.wq-star-badge {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  padding: 6px 10px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.wq-star-badge:active { transform: scale(0.95); }
.wq-star-badge-1 { background: rgba(142, 142, 147, 0.06); border: 0.5px solid rgba(142, 142, 147, 0.10); }
.wq-star-badge-2 { background: rgba(255, 159, 10, 0.06); border: 0.5px solid rgba(255, 159, 10, 0.14); }
.wq-star-badge-3 { background: rgba(52, 199, 89, 0.06); border: 0.5px solid rgba(52, 199, 89, 0.14); }
.wq-star-badge-4 { background: rgba(214, 173, 95, 0.06); border: 0.5px solid rgba(214, 173, 95, 0.14); }
.wq-star-badge-5 { background: rgba(255, 59, 48, 0.06); border: 0.5px solid rgba(255, 59, 48, 0.14); }
.wq-star-badge-label { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.wq-star-badge-label-1 { color: #8e8e93; }
.wq-star-badge-label-2 { color: #ff9f0a; }
.wq-star-badge-label-3 { color: #34c759; }
.wq-star-badge-label-4 { color: #d6ad5f; }
.wq-star-badge-label-5 { color: #ff3b30; }
.wq-star-badge-count {
  font-size: 12px;
  font-weight: 600;
  color: #000000;
  line-height: 1;
}
.wq-star-badge-delta {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}
.wq-star-delta-up { color: #D70015; }
.wq-star-delta-down { color: #30B158; }
.wq-seg-empty {
  padding: 24px 16px;
  color: #86868B;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  background: rgba(255,255,255,0.6);
  border-radius: 16px;
  border: 0.5px solid rgba(0,0,0,0.04);
}

/* ===== Result Overlay — Apple Dark Card Design ===== */
.wq-result-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
}
.wq-result-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: wq-glassBackdropIn 280ms ease both;
}
@keyframes wq-glassBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wq-result-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(20px + env(safe-area-inset-top)) 0 calc(20px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: wq-resultStageRise 320ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}
@keyframes wq-resultStageRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.wq-result-card-head {
  width: 100%;
  padding: 0 20px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  animation: wq-headContentIn 250ms ease 120ms both;
}
@keyframes wq-headContentIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wq-result-card-title-wrap {
  flex: 1;
  min-width: 0;
}
.wq-result-card-kicker-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.wq-result-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 0.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.wq-result-card-kicker-sub {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.wq-result-card-title {
  display: block;
  font-size: 24px;
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wq-result-card-close {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.wq-result-card-close:active { background: rgba(255, 255, 255, 0.2); transform: scale(0.92); }

/* -- Card Swiper -- */
.wq-result-swiper {
  width: 100%;
  padding: 10px 20px;
  box-sizing: border-box;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 12px;
  padding-bottom: 24px;
  animation: wq-swipeReveal 280ms ease 400ms both;
}
@keyframes wq-swipeReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wq-result-swiper::-webkit-scrollbar { display: none; }
.wq-result-swiper-slide {
  flex: 0 0 calc(100% - 40px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.wq-result-card-frame {
  position: relative;
  border-radius: 20px;
  padding: 6px;
  background: linear-gradient(180deg, #2C2C2E 0%, #1C1C1E 40%, #000000 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 0.5px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.06);
  aspect-ratio: 3 / 4;
  perspective: 800px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.wq-result-card-frame:active { transform: scale(0.98); }
.wq-result-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  transform-style: preserve-3d;
  transition: transform 480ms cubic-bezier(0.22, 0.88, 0.22, 1);
}
.wq-result-card-frame-flipped .wq-result-card-inner {
  transform: rotateY(180deg);
}
.wq-result-card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #000000;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}
.wq-result-card-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.wq-result-card-back {
  transform: rotateY(180deg);
  background: #000000;
  color: #fff;
}
.wq-result-card-back-scroll {
  position: absolute;
  inset: 0;
  padding: 32px 18px 24px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.wq-result-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wq-result-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.2), transparent 32%, rgba(255,210,110,0.12) 62%, transparent 82%);
  opacity: 0.74;
  pointer-events: none;
}
.wq-result-card-name-bar {
  position: relative;
  z-index: 1;
  padding: 18px 15px 55px;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.42) 62%, transparent 100%);
}
.wq-result-card-name {
  display: block;
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.wq-result-card-id {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  font-family: var(--font-mono);
}
.wq-result-star-slot {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
}
.wq-result-star-slot-bottom {
  right: 15px;
  bottom: 15px;
  color: #f2d680;
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.wq-result-star-slot-top {
  top: 15px;
  right: 15px;
  color: #f2d680;
  font-size: 18px;
  z-index: 10;
}
.wq-result-card-back-head {
  margin-bottom: 14px;
}
.wq-result-card-back-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.03em;
}
.wq-result-card-back-id {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  font-family: var(--font-mono);
}
.wq-result-card-back-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.wq-result-card-back-metric {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.wq-result-card-back-label {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
}
.wq-result-card-back-value {
  font-size: 16px;
  font-weight: 700;
  color: #f2d680;
  font-variant-numeric: tabular-nums;
}
.wq-result-card-detail-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.wq-result-card-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.wq-result-card-section-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.wq-result-card-section-hint {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}
.wq-result-card-table {
  width: 100%;
  font-size: 11px;
}
.wq-result-card-table-row {
  display: flex;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wq-result-card-table-head {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 4px;
}
.wq-result-card-table-row > span {
  flex: 1;
  text-align: center;
  color: rgba(255,255,255,0.7);
}
.wq-result-card-table-head > span {
  color: rgba(255,255,255,0.4);
}
.wq-result-card-star-text {
  color: #f2d680 !important;
  font-weight: 700;
}
.wq-result-card-empty {
  padding: 12px 0;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 11px;
}
.wq-result-card-disclaimer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  text-align: center;
}
.wq-result-card-foot {
  display: flex;
  justify-content: space-between;
  padding: 8px 17px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  gap: 12px;
}

/* -- Swiper Dots -- */
.wq-swiper-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 0;
}
.wq-swiper-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.wq-swiper-dot-active {
  background: #f2d680;
}

/* ===== Selector Sheet — iOS Bottom Sheet Style ===== */
.wq-selector-mask {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0,0,0,0.32);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: wqMaskFadeIn 0.22s ease both;
}
@keyframes wqMaskFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wq-selector-sheet {
  width: 100%;
  max-width: 430px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: 20px 20px 0 0;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
  animation: wqSheetSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes wqSheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.wq-selector-handle {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: rgba(0,0,0,0.16);
  margin: 6px auto 14px;
}
.wq-selector-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  margin-bottom: 4px;
}
.wq-selector-title {
  font-size: 17px;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.01em;
}
.wq-selector-subtitle {
  font-size: 12px;
  color: #86868B;
}
.wq-selector-list {
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.wq-selector-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 8px;
}
.wq-selector-option:active { background: rgba(0,0,0,0.04); }
.wq-selector-option-active {
  background: rgba(214, 173, 95,0.06);
}
.wq-selector-option-label {
  font-size: 16px;
  color: #000000;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.wq-selector-option-active .wq-selector-option-label {
  color: #d6ad5f;
  font-weight: 500;
}
.wq-selector-option-check {
  font-size: 12px;
  color: #d6ad5f;
  font-weight: 600;
  background: rgba(214,173,95,0.10);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ===== Footer Brand ===== */
.wq-footer-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 0 10px;
}
.wq-footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}
.wq-footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wq-footer-brand-name {
  font-size: 12px;
  color: #8e8e93;
  font-weight: 500;
  line-height: 1.2;
}
.wq-footer-brand-tagline {
  font-size: 10px;
  color: #b4b4bb;
  line-height: 1.2;
}

/* Modals */
.wq-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.wq-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.52);
}
.wq-modal-panel {
  position: relative;
  width: 100%;
  max-height: 88vh;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15,23,42,0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wq-modal-head {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}
.wq-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.wq-modal-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}
.wq-modal-body {
  flex: 1;
  padding: 20px;
  overflow: auto;
  max-height: 60vh;
  text-align: center;
}
.wq-modal-qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #f5f5f9;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  font-size: 13px;
}
.wq-modal-qr-desc {
  font-size: 11px;
  color: #6e6e73;
  line-height: 1.5;
}
.wq-modal-actions {
  padding: 14px 24px 20px;
  border-top: 1px solid #e5e7eb;
}
.wq-modal-close-btn {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.wq-modal-close-btn:active { opacity: 0.85; }
.wq-modal-panel--confirm {
  max-width: 320px;
  border-radius: 24px;
}
.wq-modal-panel--confirm .wq-modal-head {
  padding: 28px 28px 0;
  border-bottom: none;
}
.wq-modal-panel--confirm .wq-modal-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wq-modal-panel--confirm .wq-modal-body {
  padding: 20px 28px 24px;
  text-align: center;
}
.wq-modal-panel--confirm .wq-modal-confirm-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
  padding: 0;
}
.wq-modal-panel--confirm .wq-modal-confirm-text strong {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
  letter-spacing: -0.01em;
}
.wq-modal-actions--double {
  display: flex;
  gap: 10px;
  padding: 0 28px 28px;
  border-top: none;
}
.wq-modal-cancel-btn {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  background: #f2f2f7;
  color: #6b7280;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.wq-modal-cancel-btn:active { background: #e5e5ea; }
.wq-modal-confirm-btn {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  background: #d6ad5f;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(214,173,95,0.30);
  transition: opacity 0.2s;
}
.wq-modal-confirm-btn:active { opacity: 0.85; }
@keyframes wq-modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.wq-modal-panel--confirm {
  animation: wq-modal-in 0.2s ease-out;
}
@keyframes wq-mask-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wq-modal-mask {
  animation: wq-mask-in 0.2s ease-out;
}

@media (max-width: 380px) {
  .wq-stats-row { grid-template-columns: 1fr; }
  .wq-stat-value { font-size: 18px; }
  .wq-quick-actions { grid-template-columns: 1fr; }
  .wq-metric-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .member-center__metrics { grid-template-columns: 1fr; }
  .member-center { padding: 16px; }
}



/* Toast notification — Apple style */
.wq-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  white-space: nowrap;
}
.wq-toast.wq-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Page loading overlay */
.wq-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.wq-loading-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(59,130,246,0.22);
  border-top-color: var(--accent);
  animation: wqSpin 0.7s linear infinite;
}
@keyframes wqSpin {
  to { transform: rotate(360deg); }
}
.wq-loading-text {
  font-size: 13px;
  color: #1d1d1f;
  font-weight: 600;
}

/* Leaderboard page (mini program replica) */
.wq-lb-page {
  padding: 10px 12px 20px;
}
.wq-lb-hero {
  background: #fff;
  border-radius: 22px;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(60,60,67,0.12);
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}
.wq-lb-hero-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(59,130,246,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wq-lb-hero-icon svg {
  width: 24px;
  height: 24px;
}
.wq-lb-hero-content { flex: 1; min-width: 0; }
.wq-lb-hero-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.3;
  text-wrap: pretty;
}
.wq-lb-hero-subtitle {
  margin-top: 6px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}
.wq-lb-hero-meta {
  flex-shrink: 0;
  min-width: 96px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(59,130,246,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
.wq-lb-hero-meta-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b7280;
}
.wq-lb-hero-meta-value {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

/* Tabs */
.wq-lb-tabs {
  display: flex;
  background: #f2f4f7;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 12px;
  gap: 4px;
}
.wq-lb-tab {
  flex: 1;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  -webkit-user-select: none;
  user-select: none;
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
}
.wq-lb-tab:active { opacity: 0.82; }
.wq-lb-tab-active {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* List */
.wq-lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wq-lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(60,60,67,0.12);
  box-shadow: 0 8px 20px rgba(15,23,42,0.04);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: wqLbRowIn 260ms ease-out both;
}
@keyframes wqLbRowIn {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.wq-lb-rank {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  background: #f2f4f7;
}
.wq-lb-rank-1 {
  background: linear-gradient(135deg, #ffd699 0%, #ffb347 100%);
  color: #8a4f00;
  box-shadow: 0 2px 8px rgba(255,179,71,0.3);
}
.wq-lb-rank-2 {
  background: linear-gradient(135deg, #eceff4 0%, #cfd6e2 100%);
  color: #4b5563;
  box-shadow: 0 2px 8px rgba(148,163,184,0.3);
}
.wq-lb-rank-3 {
  background: linear-gradient(135deg, #edd8c8 0%, #e0c4a8 100%);
  color: #7a4f2c;
  box-shadow: 0 2px 8px rgba(214,155,112,0.3);
}
.wq-lb-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wq-lb-name {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wq-lb-hint {
  font-size: 11px;
  color: #7b8798;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wq-lb-count-wrap { flex-shrink: 0; }
.wq-lb-count {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.22);
  font-weight: 600;
  white-space: nowrap;
}
.wq-lb-loading,
.wq-lb-empty {
  padding: 60px 20px;
  text-align: center;
  font-size: 13px;
  color: #8e8e93;
  background: #f7f8fa;
  border-radius: 18px;
  margin-top: 4px;
}
.wq-lb-error-text { color: #dc2626; }



.mobile-soft-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1200;
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(14px);
  max-width: 80%;
  white-space: nowrap;
}

/* History page (mini program replica) */
.wq-hist-page { padding: 10px 12px 20px; }
.wq-hist-overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(255,255,255,0.8));
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: 22px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}
.wq-hist-overview-main { flex: 1; min-width: 0; }
.wq-hist-overview-kicker {
  display: block;
  color: #64748b;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
}
.wq-hist-overview-title {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wq-hist-overview-count {
  flex-shrink: 0;
  color: #2563EB;
  font-size: 13px;
  font-weight: 700;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.wq-hist-empty {
  text-align: center;
  padding: 40px 20px;
  color: #8e8e93;
  font-size: 14px;
  background: #f7f8fa;
  border-radius: 18px;
  margin-top: 4px;
}

/* History record list */
.wq-hist-list { display: flex; flex-direction: column; gap: 8px; }
.wq-hist-record {
  position: relative;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(59,130,246,0.12);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
  animation: wqHistFadeIn 360ms cubic-bezier(0.19,1,0.22,1) both;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}
@keyframes wqHistFadeIn {
  from { opacity: 0; transform: translate3d(0,14px,0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}
.wq-hist-record-expanded {
  border-color: rgba(59,130,246,0.25);
  box-shadow: 0 12px 24px rgba(37,99,235,0.12);
  background: linear-gradient(180deg, #fff 0%, #F0F7FF 100%);
}
.wq-hist-record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}
.wq-hist-record-header:active { opacity: 0.88; }
.wq-hist-record-title-wrap { flex: 1; min-width: 0; width: 0; }
.wq-hist-record-title {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wq-hist-record-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 200px;
}
.wq-hist-record-time {
  font-size: 11px;
  color: #6e6e73;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  font-family: var(--font-mono);
}
.wq-hist-record-del {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f9;
  border: 1px solid rgba(60,60,67,0.16);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.wq-hist-record-del:active {
  background: #ffe6e2;
  border-color: rgba(180,35,24,0.26);
  transform: scale(0.92) rotate(-8deg);
}
.wq-hist-record-del-icon {
  font-size: 16px;
  line-height: 1;
  color: #b42318;
}

/* Record body */
.wq-hist-record-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(59,130,246,0.18);
  animation: wqHistBodyReveal 280ms cubic-bezier(0.22,1,0.36,1) both;
  transform-origin: top center;
}
@keyframes wqHistBodyReveal {
  from { opacity: 0; transform: translate3d(0,-8px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
.wq-hist-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.wq-hist-result-title-wrap { flex: 1; min-width: 0; }
.wq-hist-result-title {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wq-hist-result-flags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.wq-hist-result-ai-tag,
.wq-hist-result-hot-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.wq-hist-result-ai-tag { color: #8f4f00; background: #EFF6FF; border: 1px solid rgba(255,149,0,0.22); }
.wq-hist-result-hot-tag { color: #a03c34; background: #ffeceb; border: 1px solid rgba(255,59,48,0.2); }
.wq-hist-result-tag {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.wq-hist-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.wq-hist-metric-item {
  background: #f5f5f9;
  border-radius: 10px;
  border: 1px solid rgba(60,60,67,0.1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wq-hist-metric-label { font-size: 10px; color: #6e6e73; display: block; }
.wq-hist-metric-value { font-size: 14px; color: #1d1d1f; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wq-hist-meta { font-size: 10px; color: #6e6e73; margin-bottom: 8px; }

/* Distribution in history */
.wq-hist-dist-title { font-size: 12px; font-weight: 700; color: #1d1d1f; margin-bottom: 4px; margin-top: 2px; }
.wq-hist-dist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f9;
  border-radius: 8px;
  border: 1px solid rgba(60,60,67,0.1);
  padding: 6px 8px;
  margin-bottom: 4px;
  font-size: 12px;
}
.wq-hist-dist-head { font-size: 10px; font-weight: 600; color: #8e8e93; }
.wq-hist-col-bucket { width: 36%; color: #2f2f34; }
.wq-hist-col-count { width: 32%; text-align: center; color: #4d4d55; }
.wq-hist-col-ratio { width: 32%; text-align: right; color: #4d4d55; }
.wq-hist-dist-head .wq-hist-col-bucket,
.wq-hist-dist-head .wq-hist-col-count,
.wq-hist-dist-head .wq-hist-col-ratio { color: #8e8e93; }

/* History sub-table */
.wq-hist-sub-title { font-size: 13px; font-weight: 700; color: #1d1d1f; margin-top: 8px; margin-bottom: 4px; }
.wq-hist-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f9;
  border-radius: 8px;
  border: 1px solid rgba(60,60,67,0.1);
  padding: 6px 8px;
  margin-bottom: 4px;
  font-size: 12px;
}
.wq-hist-sub-head { font-size: 10px; font-weight: 600; color: #8e8e93; }
.wq-hist-sub-col-time { width: 30%; color: #2f2f34; font-size: 11px; }
.wq-hist-sub-col-holder,
.wq-hist-sub-col-total,
.wq-hist-sub-col-avg { width: 18%; text-align: center; color: #4d4d55; font-size: 11px; }
.wq-hist-sub-col-star { width: 16%; text-align: center; color: #b8860b; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; font-family: var(--font-mono); }
.wq-hist-sub-head .wq-hist-sub-col-time,
.wq-hist-sub-head .wq-hist-sub-col-holder,
.wq-hist-sub-head .wq-hist-sub-col-total,
.wq-hist-sub-head .wq-hist-sub-col-avg,
.wq-hist-sub-head .wq-hist-sub-col-star { color: #8e8e93; font-weight: 600; }
.wq-hist-sub-empty { font-size: 11px; color: #8e8e93; padding: 8px 0; text-align: center; }
.wq-hist-source-note { margin-top: 8px; font-size: 10px; color: #8e8e93; }

@media (max-width: 360px) {
  .wq-hist-overview-title { font-size: 17px; }
  .wq-hist-overview-count { font-size: 12px; padding: 3px 10px; }
  .wq-hist-record-title { font-size: 14px; }
  .wq-hist-record-right { max-width: 160px; }
  .wq-hist-record-time { max-width: 110px; }
  .wq-hist-record-del { width: 28px; height: 28px; }
}



/* ===== Push Management (异动推送设置) ===== */
.push-mgmt { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; padding-bottom: 90px; }

.push-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.push-card--link { border-color: rgba(59,130,246,0.35); background: linear-gradient(160deg, #12151c 0%, #0b0d12 68%, #08090e 100%); }
.push-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px 8px; }
.push-card-title { font-size: 15px; font-weight: 700; color: var(--text-main); line-height: 1.35; }
.push-card-badge { flex-shrink: 0; padding: 2px 10px; border-radius: 999px; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.20); color: #93C5FD; font-size: 11px; font-weight: 600; }
.push-link-box { margin: 6px 18px 16px; border: 1px solid #d1d1d6; border-radius: 12px; background: #fff; padding: 8px 12px; }
.push-link-text { font-size: 12px; color: var(--text-main); word-break: break-all; line-height: 1.5; }
.push-card--link .push-card-title { color: #E0E8F5; }
.push-card--link .push-link-box { border-color: rgba(59, 130, 246, 0.26); background: rgba(255, 255, 255, 0.06); }
.push-card--link .push-link-text { color: rgba(255, 255, 255, 0.68); }

/* Purchase link highlight with golden left border accent (matches miniprogram) */
.detail-section .purchase-link-highlight {
  position: relative;
  border-color: rgba(59, 130, 246, 0.26);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.12);
}
.detail-section .purchase-link-highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFD45A 0%, #3B82F6 100%);
}

.push-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; cursor: pointer; user-select: none; }
.push-card--collapsed .push-section-head { padding-bottom: 14px; }
.push-section-title-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.push-section-title { font-size: 16px; font-weight: 700; color: var(--text-main); }
.push-section-caption { font-size: 12px; color: var(--text-second); line-height: 1.4; }
.push-indicator { font-size: 16px; color: var(--text-second); transform: rotate(180deg); transition: transform 0.2s ease; flex-shrink: 0; }
.push-indicator--open { transform: rotate(0deg); }
.push-collapse-body { padding: 0 18px 16px; }

.push-instruction-item { font-size: 13px; color: var(--text-second); line-height: 1.65; margin-bottom: 4px; }
.push-qrcode-wrap { margin-top: 12px; text-align: center; }
.push-qrcode { width: 180px; height: 180px; border-radius: 8px; }
.push-uid-row { display: flex; gap: 10px; }
.push-input { flex: 1; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); font-size: 14px; color: var(--text-main); outline: 0; }
.push-input:focus { border-color: var(--brand); }
.push-btn { height: 44px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.push-btn-primary { padding: 0 18px; background: var(--accent); color: #fff; border: 0; }
.push-btn-primary:active { opacity: 0.88; }
.push-btn-secondary { width: 100%; margin-top: 10px; background: #F0F7FF; border: 1px solid rgba(59,130,246,0.26); color: #2563EB; }
.push-btn-secondary:active { opacity: 0.88; }
.push-status { margin-top: 8px; font-size: 13px; color: var(--text-main); line-height: 1.45; }
.push-hint { font-size: 12px; color: var(--text-second); line-height: 1.45; }

.push-sub-list { display: flex; flex-direction: column; gap: 12px; padding: 0 18px 16px; }
.push-sub-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.push-sub-card--focused { border-color: rgba(59,130,246,0.35); box-shadow: 0 0 0 2px rgba(59,130,246,0.10); }
.push-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 8px; }
.push-sub-name { font-size: 15px; font-weight: 600; color: var(--text-main); line-height: 1.35; word-break: break-all; flex: 1; min-width: 0; }
.push-btn-danger { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12px; font-weight: 500; color: #ff3b30; background: #fff5f5; border: 1px solid #ffd7d4; cursor: pointer; }
.push-btn-danger:active { opacity: 0.88; }

.push-sub-toggles { padding: 0 16px 12px; display: flex; gap: 10px; }
.push-toggle-row { flex: 1; display: flex; align-items: center; justify-content: space-between; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.push-toggle-row__label { font-size: 13px; color: var(--text-main); font-weight: 500; white-space: nowrap; }
.push-toggle { width: 44px; height: 26px; border-radius: 999px; background: #d1d1d6; padding: 3px; box-sizing: border-box; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
.push-toggle--active { background: #34c759; }
.push-toggle--disabled { opacity: 0.5; pointer-events: none; }
.push-toggle__thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,0.2); transition: transform 0.2s ease; }
.push-toggle--active .push-toggle__thumb { transform: translateX(18px); }

.push-price-section { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.push-price-section .push-toggle-row { flex: none; }
.push-price-fields { display: flex; align-items: center; gap: 8px; }
.push-price-field { flex: 1; display: flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); gap: 6px; }
.push-price-label { font-size: 13px; color: var(--text-second); font-weight: 500; white-space: nowrap; }
.push-price-input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text-main); }
.push-btn-save { flex-shrink: 0; height: 44px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #2563EB; background: #F0F7FF; border: 1px solid rgba(59,130,246,0.26); cursor: pointer; }
.push-btn-save:active { opacity: 0.88; }

.push-status-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.push-status-text { font-size: 13px; color: var(--text-second); }
.push-empty { padding: 24px 18px; text-align: center; font-size: 13px; color: var(--text-second); }

/* Push management: keep the H5 surface in lockstep with the mini-program. */
.push-mgmt {
  gap: 12px;
  padding-top: 14px;
  padding-bottom: calc(var(--tabbar-height) + 20px);
}
.push-card {
  border-radius: 12px;
  border-color: rgba(60,60,67,0.12);
  box-shadow: 0 4px 12px rgba(60,60,67,0.06);
}
.push-card--collapsed { box-shadow: 0 3px 10px rgba(60,60,67,0.05); }
.push-section-head { padding: 14px 16px; }
.push-card--collapsed .push-section-head { padding-bottom: 14px; }
.push-section-title { color: #1c1c1e; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.push-section-caption,
.push-status-text,
.push-hint,
.push-instruction-item,
.push-empty { color: #8e8e93; }
.push-collapse-body { padding: 0 16px 16px; }
.push-instruction-item { font-size: 13px; line-height: 1.65; margin-bottom: 4px; }
.push-qrcode { width: 156px; height: 156px; border-radius: 12px; border: 1px solid #dfe3e9; }
.push-input,
.push-toggle-row,
.push-price-field {
  background: #f2f2f7;
  border-color: transparent;
}
.push-input { height: 42px; border-radius: 9px; }
.push-btn { height: 42px; border-radius: 9px; }
.push-btn-primary {
  background: #ffbf00;
  color: #fff;
}
.push-btn-secondary {
  background: rgba(255,191,0,0.10);
  border-color: rgba(255,191,0,0.30);
  color: #b88700;
}
.push-status { color: #3a3a3c; }
.push-sub-list { gap: 12px; padding: 0 16px 16px; }
.push-sub-card {
  border-radius: 11px;
  border-color: rgba(60,60,67,0.12);
  box-shadow: none;
}
.push-sub-card--focused {
  border-color: #ffe09a;
  box-shadow: 0 0 0 2px rgba(255,191,0,0.08);
}
.push-sub-head { padding: 12px 14px 8px; }
.push-sub-name { color: #1c1c1e; font-size: 15px; font-weight: 600; }
.push-btn-danger {
  height: 30px;
  border-radius: 8px;
  color: #ff3b30;
  background: #fff5f5;
  border-color: #ffd7d4;
}
.push-sub-toggles { flex-wrap: wrap; padding: 0 14px 10px; gap: 8px; }
.push-toggle-row {
  height: 42px;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 9px;
  border-width: 1px;
}
.push-sub-toggles .push-toggle-row { flex: 1 1 calc(50% - 4px); }
.push-sub-toggles .push-toggle-row:last-child { flex-basis: 100%; }
.push-toggle-row__label { color: #1c1c1e; font-size: 13px; }
.push-toggle { width: 40px; height: 24px; padding: 3px; }
.push-toggle__thumb { width: 18px; height: 18px; }
.push-toggle--active { background: #34c759; }
.push-toggle--active .push-toggle__thumb { transform: translateX(16px); }
.push-price-section { padding: 0 14px 14px; gap: 8px; }
.push-price-fields { flex-wrap: wrap; gap: 8px; }
.push-price-field { height: 40px; border-radius: 9px; padding: 0 10px; }
.push-price-label { color: #8e8e93; font-size: 13px; }
.push-price-input { height: 36px; font-size: 14px; }
.push-btn-save {
  flex: 1 1 100%;
  height: 38px;
  border-radius: 9px;
  color: #b88700;
  background: rgba(255,191,0,0.10);
  border-color: rgba(255,191,0,0.30);
}
.push-status-bar { padding: 14px 16px; }
.push-card[data-section="subscriptions"] { padding-bottom: 8px; }



.detail-header { display: flex; align-items: center; gap: 8px; padding: 16px 0; }
.detail-back { font-size: 15px; color: var(--brand); cursor: pointer; flex-shrink: 0; }
.detail-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-date { font-size: 12px; color: var(--text-second); padding: 0 0 8px; }
.detail-body { line-height: 1.8; font-size: 15px; color: var(--text-main); word-break: break-word; overflow-wrap: break-word; }
.detail-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.detail-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.detail-body th, .detail-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.detail-body th { background: var(--bg-soft); font-weight: 600; }
.detail-body a { color: var(--brand); text-decoration: underline; }
.detail-body p { margin: 8px 0; }
.detail-body h1, .detail-body h2, .detail-body h3, .detail-body h4 { margin: 16px 0 8px; }
.detail-error { padding: 40px 16px; text-align: center; font-size: 14px; color: var(--text-second); }

/* ─── Market: member notice toast ─── */
.member-notice-toast {
  position: fixed; top: 120px; left: 50%; transform: translate(-50%,0);
  opacity: 0; z-index: 220;
  padding: 8px 13px; border-radius: 999px;
  background: rgba(17,24,39,0.9);
  box-shadow: 0 6px 14px rgba(15,23,42,0.24);
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  animation: memberNoticeToastEnter 280ms cubic-bezier(0.22,1,0.36,1) forwards;
  will-change: transform,opacity;
}
.member-notice-toast-text {
  color: #fff; font-size: 13px; line-height: 1.2; white-space: nowrap;
}
@keyframes memberNoticeToastEnter {
  0% { opacity: 0; transform: translate(-50%,-7px) scale(0.985); }
  100% { opacity: 1; transform: translate(-50%,0) scale(1); }
}

/* ─── Market: notify popup ─── */




/* ─── Market: calendar modal ─── */
.calendar-modal-mask {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.38); z-index: 120;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 12px;
}
.calendar-modal-panel {
  width: 100%; max-width: 351px;
  background: #fff; border-radius: 14px;
  box-sizing: border-box; padding: 14px 12px 15px;
}
.calendar-modal-head {
  display: flex; align-items: center; justify-content: space-between;
}
.calendar-modal-title {
  color: #1f1f24; font-size: 16px; font-weight: 600; line-height: 1.2;
}
.calendar-modal-close {
  color: #929299; font-size: 22px; line-height: 1;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.calendar-range-text {
  display: block; margin-top: 7px;
  color: #7f8595; font-size: 11px; line-height: 1.4;
}
.calendar-week-header {
  margin-top: 11px; display: flex;
}
.calendar-week-label {
  flex: 1; text-align: center;
  color: #9ba1af; font-size: 11px; line-height: 1.4;
}
.calendar-week-list { margin-top: 5px; }
.calendar-week-row { display: flex; margin-top: 4px; }
.calendar-day-cell {
  flex: 1; height: 32px; margin: 0 2px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.calendar-day-cell:active { transform: scale(0.96); }
.calendar-day-cell--active { background: rgba(59,130,246,0.12); }
.calendar-day-cell--today { border: 1px solid #3B82F6; }
.calendar-day-cell--selected { background: #3B82F6; }
.calendar-day-text {
  color: #b1b5c0; font-size: 12px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calendar-day-cell--active .calendar-day-text { color: #8f6d31; }
.calendar-day-cell--today .calendar-day-text { color: #3B82F6; font-weight: 600; }
.calendar-day-cell--selected .calendar-day-text { color: #fff; font-weight: 600; }
.calendar-pro-tip {
  margin-top: 8px; padding-top: 7px;
  border-top: 0.5px solid #e9edf5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.calendar-pro-tip-text {
  flex: 1; min-width: 0;
  color: #6f7484; font-size: 11px; line-height: 1.35;
}
.calendar-pro-tip-link {
  flex-shrink: 0; color: #3B82F6; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.calendar-card-link-module {
  margin-top: 9px; padding: 7px 7px 1px;
  border: 0.5px solid rgba(59,130,246,0.26);
  border-radius: 8px; background: #fff;
  box-shadow: 0 5px 12px rgba(59,130,246,0.10);
  position: relative;
}
.calendar-card-link-module::before {
  content: ''; position: absolute;
  left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 999px;
  background: linear-gradient(180deg,#e8c97f 0%,#3B82F6 100%);
}
.card-link-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 5px;
}
.card-link-title-wrap { flex: 1; min-width: 0; }
.card-link-title { color: #1f1f24; font-size: 13px; font-weight: 600; line-height: 1.3; }
.card-link-badge {
  flex-shrink: 0; font-size: 10px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(59,130,246,0.12);
  border: 0.5px solid rgba(59,130,246,0.22);
  color: #2563EB; font-weight: 600;
}
.card-link-box {
  margin-top: 6px; padding: 5px 12px; border-radius: 10px;
  background: #f9fafb; border: 0.5px solid rgba(17,24,39,0.06);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-link-input { color: #6f7484; font-size: 12px; }

/* ─── Market: star toggle ─── */
.collect-star-wrap {
  width: 12px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto; margin-right: 4px; flex-shrink: 0;
}
.collect-star {
  color: #d1d1d6; font-size: 17px; line-height: 1;
  cursor: pointer; user-select: none;
}
.collect-star--followed { color: #f7c948; }

/* ─── Market dark mode ─── */
body.dark-mode .replica-page,
body.dark-mode .mobile-screen--market,
body.dark-mode .market-scroll,
body.dark-mode .market-scroll-wrap,
body.dark-mode .market-table,
body.dark-mode .market-head,
body.dark-mode .market-head .cell,
body.dark-mode .market-head .sticky-name-col,
body.dark-mode .cell,
body.dark-mode .body-row { background: #0f1115; }
body.dark-mode .top-search-wrap,
body.dark-mode .search-shell { background: #0f1115; }
body.dark-mode .search-shell {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 11px rgba(0,0,0,0.12);
}
body.dark-mode .search-icon { color: #7f8798; }
body.dark-mode .search-input { color: #f0f2f5; }
body.dark-mode .search-input::placeholder { color: #5f6878; }
body.dark-mode .name-title { color: #e8ecf2; }
body.dark-mode .name-sub { color: #6f7484; }
body.dark-mode .num-value { color: #e8ecf2; }
body.dark-mode .cell.th { color: #6f7484; }
body.dark-mode .sort-button { color: #6f7484; }
body.dark-mode .sort-button--active { color: var(--gold); }
body.dark-mode .high-value { color: #ff7f74; }
body.dark-mode .low-value { color: #5bd68b; }
body.dark-mode .market-clear-btn { background: #e8ecf2; color: #0f1115; }
body.dark-mode .empty-holder { color: #5f6878; }
body.dark-mode .history-only-search-panel {
  background: #1d2128; border-color: rgba(214,173,95,0.12);
  box-shadow: 0 5px 12px rgba(0,0,0,0.18);
}
body.dark-mode .history-only-search-title { color: #e8ecf2; }
body.dark-mode .history-only-search-pill {
  background: #171a20; border-color: rgba(214,173,95,0.16);
}
body.dark-mode .history-only-search-pill-text { color: #d6ad5f; }
body.dark-mode .calendar-modal-panel { background: #171a20; }
body.dark-mode .calendar-modal-title { color: #e8ecf2; }
body.dark-mode .calendar-modal-close { color: #7f8798; }
body.dark-mode .calendar-range-text { color: #6f7484; }
body.dark-mode .calendar-day-cell--active { background: rgba(59,130,246,0.16); }
body.dark-mode .calendar-day-text { color: #5f6878; }
body.dark-mode .calendar-day-cell--active .calendar-day-text { color: #3B82F6; }
body.dark-mode .calendar-pro-tip { border-top-color: rgba(255,255,255,0.08); }
body.dark-mode .calendar-pro-tip-text { color: #7f8798; }
body.dark-mode .calendar-card-link-module {
  background: #171a20; border-color: rgba(59,130,246,0.18);
  box-shadow: 0 5px 12px rgba(0,0,0,0.18);
}
body.dark-mode .card-link-title { color: #e8ecf2; }
body.dark-mode .card-link-box { background: #0f1115; border-color: rgba(255,255,255,0.06); }
body.dark-mode .card-link-input { color: #7f8798; }
body.dark-mode .member-notice-toast {
  background: #fff; border: 0.5px solid rgba(17,24,39,0.12);
  box-shadow: 0 5px 13px rgba(0,0,0,0.22);
}
body.dark-mode .member-notice-toast-text { color: #1f1f24; }

@media (prefers-reduced-motion: reduce) {
  .member-notice-toast { animation: none; opacity: 1; transform: translate(-50%,0); }
  .card--new-highlight,
  .card--new-highlight .card-header,
  .card--new-highlight .card-body,
  .card--new-highlight::before,
  .card--new-highlight::after { animation: none; }
  .market-segment-tab,
  .mode-btn,
  .sort-button,
  .body-row,
  .mobile-screen--feed .feed-mode-tab,
  .mobile-screen--feed .feed-mode-tabs__indicator,
  .mobile-screen--feed .card,
  .mobile-screen--feed .feed-switch-slider,
  .mobile-screen--feed .feed-switch-slider::before,
  .mobile-screen--feed .feed-menu-panel,
  .mobile-screen--feed .feed-info-modal-panel,
  .mobile-screen--feed .auto-refresh-toggle,
  .mobile-screen--feed .auto-refresh-toggle__text,
  .mobile-screen--feed .auto-refresh-toggle__switch,
  .mobile-screen--feed .auto-refresh-toggle__thumb { transition: none !important; }
  .mobile-screen--feed .feed-menu-mask,
  .mobile-screen--feed .feed-menu-panel,
  .mobile-screen--feed .feed-info-modal-mask,
  .mobile-screen--feed .feed-info-modal-panel,
  .mobile-screen--feed .auto-refresh-float-feedback,
  .mobile-screen--feed .card--value-updated .price-value,
  .mobile-screen--feed .card--value-updated .volume-value,
  .mobile-screen--feed .card--value-updated .badge-val { animation: none !important; }
  .mobile-screen--feed .card:active { transform: none !important; opacity: .84; }
  .mobile-screen--feed .feed-list--loading { transition: none !important; opacity: .84; }
}
@media (prefers-reduced-transparency: reduce) {
  .market-head { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .market-head::after { display: none; }
  .mobile-screen--feed .header,
  .mobile-screen--feed .mobile-tabbar.tab-bar,
  .mobile-screen--feed .tab-bar-backdrop,
  .mobile-screen--feed .tab-bar-inner { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-screen--feed .header::after { display: none; }
  .mobile-screen--feed .feed-menu-mask,
  .mobile-screen--feed .feed-info-modal-mask { background: rgba(15,23,42,0.64); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-screen--feed .feed-menu-panel,
  .mobile-screen--feed .feed-info-modal-panel { background: #fff; }
}
@media (prefers-contrast: more) {
  .mobile-screen--feed .header,
  .mobile-screen--feed .feed-mode-tab,
  .mobile-screen--feed .search-shell,
  .mobile-screen--feed .mode-btn,
  .mobile-screen--feed .card,
  .mobile-screen--feed .feed-menu-panel,
  .mobile-screen--feed .feed-info-modal-panel,
  .mobile-screen--feed .mobile-tabbar.tab-bar { border: 1px solid currentColor; }
  .mobile-screen--feed .feed-mode-tab--active { border-color: transparent; }
}
/* iBox 市场分区：与小程序市场页保持同一信息层级 */
.market-segment-section {
  padding: 0;
  margin-top: -6px;
}

.market-segment-section__title {
  padding: 0 16px 4px;
  color: #1c1c1e;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.market-segment-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

.market-segment-tabs::-webkit-scrollbar { display: none; }

.market-segment-tab {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 5px;
  min-width: 105px;
  padding: 10px 11px;
  border: 0.5px solid #e5e5ea;
  border-radius: 12px;
  background: #f2f2f7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 2px 6px rgba(15,23,42,0.035);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease-out, background-color 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}
.market-segment-tab:active { transform: scale(0.97); transition-duration: 0.08s; }

.market-segment-tab__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #3a3a3c;
}
.market-segment-tab__metrics { display: flex; flex-direction: column; gap: 2px; }
.market-segment-tab__metric-row { display: flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.market-segment-tab__metric-label {
  font-size: 9px;
  font-weight: 500;
  color: #8e8e93;
  flex-shrink: 0;
}
.market-segment-tab__metric-value {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #48484a;
}

.market-segment-tab--active {
  background: #000000;
  border-color: #000000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 5px 12px rgba(15,23,42,0.18);
}
.market-segment-tab--active .market-segment-tab__name { color: #ffffff; }
.market-segment-tab--active .market-segment-tab__metric-label { color: rgba(255,255,255,0.55); }
.market-segment-tab--active .market-segment-tab__metric-value { color: #ffffff; }

/* ── auto-refresh float feedback ("已刷新" toast) ── */
.auto-refresh-float-feedback {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: calc(var(--tabbar-height) + 12px);
  transform: translateX(-50%);
  height: 34px;
  padding: 0 13px 0 9px;
  border-radius: 17px;
  background: rgba(27, 128, 60, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 6px 14px rgba(21, 112, 51, 0.28);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: autoRefreshFeedbackIn .26s cubic-bezier(.23, 1, .32, 1) both;
  pointer-events: none;
}
.auto-refresh-float-feedback--feed { background: rgba(28, 28, 30, 0.90); box-shadow: 0 8px 20px rgba(15,23,42,0.18), 0 0 0 0.5px rgba(255,255,255,0.12); }
.auto-refresh-float-feedback--feed.auto-refresh-float-feedback--error { background: rgba(180, 55, 45, 0.94); box-shadow: 0 8px 20px rgba(180,55,45,0.22); }

.auto-refresh-float-feedback__check {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.auto-refresh-float-feedback__text {
  font-size: 13px;
  font-weight: 700;
}

.auto-refresh-float-feedback--hiding {
  animation: autoRefreshFeedbackOut .22s ease forwards;
}

@keyframes autoRefreshFeedbackIn {
  from { opacity: 0; transform: translate(-50%, 16px) scale(.92); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes autoRefreshFeedbackOut {
  from { opacity: 1; transform: translate(-50%, 0) scale(1); }
  to   { opacity: 0; transform: translate(-50%, 8px) scale(.95); }
}



/* ── Auto Refresh Toggle (小程序同款) ── */
.auto-refresh-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  height: 32px;
  min-width: 83px;
  padding: 0 4px 0 8px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: #f0f1f3;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.12s ease-out, background-color 0.18s ease-out, border-color 0.18s ease-out;
}
.auto-refresh-toggle:active { transform: scale(0.97); transition-duration: 0.08s; }
.auto-refresh-toggle--on {
  background: rgba(52, 199, 89, 0.14);
  border-color: rgba(52, 199, 89, 0.30);
}
.auto-refresh-toggle__text {
  font-size: 11px;
  font-weight: 600;
  color: #60646c;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: color 0.18s ease-out;
}
.auto-refresh-toggle--on .auto-refresh-toggle__text { color: #187333; }
.auto-refresh-toggle__switch {
  width: 26px;
  height: 16px;
  margin-left: auto;
  padding: 2px;
  border-radius: 9px;
  background: rgba(28, 28, 30, 0.22);
  box-sizing: border-box;
  transition: background-color 0.18s ease-out;
}
.auto-refresh-toggle__thumb {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.20);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease-out;
}
.auto-refresh-toggle--on .auto-refresh-toggle__switch { background: #34c759; }
.auto-refresh-toggle--on .auto-refresh-toggle__thumb { transform: translateX(10px); }

/* ===== ibox自助科技 登录/注册/续卡页 ===== */
.tech2-page-wrap { min-height: 100vh; padding: calc(14px + env(safe-area-inset-top)) 12px calc(21px + env(safe-area-inset-bottom)); box-sizing: border-box; background: #f5f6f8; }
@keyframes tech2CardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tech2FieldIn { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tech2Glow { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: .65; transform: scale(1.08); } }
@keyframes tech2Float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes tech2Sheen { from { transform: translateX(-120%) skewX(-18deg); opacity: 0; } 35% { opacity: .42; } to { transform: translateX(120%) skewX(-18deg); opacity: 0; } }
@keyframes tech2Spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes tech2Pop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.25); } to { transform: scale(1); opacity: 1; } }

.tech2-auth-state-banner { border-radius: 9px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(120deg,#151922,#08090e); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 7px 8px; margin-bottom: 10px; }
.tech2-auth-state-title { font-size: 11px; font-weight: 600; line-height: 1.45; flex: 1; }
.tech2-exp-banner-btn { min-height: 28px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; border: none; font-size: 12px; font-weight: 600; cursor: pointer; }

.tech2-auth-hero { position: relative; background: linear-gradient(160deg,#12151c 0%,#0b0d12 68%,#08090e); border-radius: 16px; padding: 15px; margin-bottom: 10px; border: 1px solid rgba(214,173,95,.28); box-shadow: 0 4px 12px rgba(0,0,0,.12); overflow: hidden; animation: tech2CardIn 420ms cubic-bezier(.22,1,.36,1) both; }
.tech2-auth-hero::before { content: ''; position: absolute; top: -70px; right: -50px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle,rgba(214,173,95,.09),transparent 70%); pointer-events: none; }
.tech2-auth-hero:active { transform: scale(.992); }
.tech2-auth-hero__bg-glow { position: absolute; bottom: -25px; left: -25px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle,rgba(214,173,95,.06),transparent 65%); pointer-events: none; animation: tech2Glow 4s ease-in-out infinite; }
.tech2-auth-hero__content { position: relative; z-index: 1; }
.tech2-auth-hero__top-row { display: flex; align-items: center; gap: 8px; }
.tech2-auth-hero__icon-wrap { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(214,173,95,.26); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 7px rgba(0,0,0,.18); }
.tech2-auth-hero__icon { width: 21px; height: 21px; object-fit: contain; animation: tech2Float 2.8s ease-in-out infinite; filter: brightness(0) saturate(100%) invert(68%) sepia(28%) saturate(950%) hue-rotate(359deg) brightness(108%) contrast(90%); }
.tech2-auth-hero__titles { flex: 1; min-width: 0; }
.tech2-auth-hero__title { font-size: 21px; font-weight: 800; color: #fff7e8; line-height: 1.15; letter-spacing: .5px; }
.tech2-auth-hero__purchase { margin-top: 12px; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 12px; background: linear-gradient(135deg,#f4d987 0%,#c99845 100%); border: 1px solid rgba(255,241,186,.9); box-shadow: 0 7px 15px rgba(214,173,95,.24),inset 0 1px rgba(255,255,255,.38); color: #17130c; cursor: pointer; text-decoration: none; transition: filter .2s,box-shadow .2s,transform .16s cubic-bezier(.22,1,.36,1); }
.tech2-auth-hero__purchase:hover { filter: brightness(1.06); box-shadow: 0 9px 18px rgba(214,173,95,.3),inset 0 1px rgba(255,255,255,.42); transform: translateY(-1px); }
.tech2-auth-hero__purchase:active { filter: brightness(.96); box-shadow: 0 4px 9px rgba(214,173,95,.2),inset 0 1px rgba(0,0,0,.08); transform: translateY(1px) scale(.985); }
.tech2-auth-hero__purchase-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 1; color: #17130c; object-fit: contain; }
.tech2-auth-hero__purchase-label { flex-shrink: 0; font-size: 15px; font-weight: 800; color: #17130c; letter-spacing: .7px; }
.tech2-auth-hero__purchase::after { content: '立即开通 →'; margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 800; color: rgba(23,19,12,.72); letter-spacing: .2px; }
.tech2-auth-hero__purchase-url { display: none; }

.tech2-auth-form-card { background: #fff; border: 1px solid #e4ebf4; border-radius: 14px; padding: 14px; box-shadow: 0 11px 26px rgba(17,24,39,.105),0 3px 9px rgba(17,24,39,.06); animation: tech2CardIn 420ms cubic-bezier(.22,1,.36,1) 80ms both; }

.tech2-auth-mode-switch { position: relative; display: flex; padding: 2px; border-radius: 999px; background: #f8f9fb; margin-bottom: 12px; overflow: hidden; }
.tech2-auth-mode-item { flex: 1; height: 34px; line-height: 34px; text-align: center; border-radius: 999px; font-size: 13px; font-weight: 600; color: #5f6b7a; position: relative; z-index: 2; background: none; border: none; cursor: pointer; transition: color .3s cubic-bezier(.22,1,.36,1); }
.tech2-auth-mode-item--active { color: #1d1d1f; font-weight: 700; }
.tech2-auth-mode-item:active { opacity: .7; }
.tech2-auth-mode-slider { position: absolute; top: 2px; bottom: 2px; width: calc(33.333% - 2px); border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.08),0 0 0 1px rgba(15,23,42,.02); z-index: 1; transition: transform .36s cubic-bezier(.2,.9,.2,1); }
.tech2-auth-mode-slider--login { transform: translateX(0); }
.tech2-auth-mode-slider--register { transform: translateX(calc(100% + 1px)); }
.tech2-auth-mode-slider--renew { transform: translateX(calc(200% + 2px)); }

.tech2-auth-field { margin-bottom: 9px; animation: tech2FieldIn 340ms cubic-bezier(.22,1,.36,1) both; }
.tech2-auth-field:nth-child(2) { animation-delay: 130ms; }
.tech2-auth-field:nth-child(3) { animation-delay: 170ms; }
.tech2-auth-field:nth-child(4) { animation-delay: 210ms; }
.tech2-auth-field__label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; color: #5f6b7a; }
.tech2-auth-field--filled .tech2-auth-field__label { color: #A67C3C; }
.tech2-auth-field__input-wrap { position: relative; display: flex; align-items: center; border-radius: 8px; border: 1.5px solid #e4ebf4; background: #f8f9fb; overflow: hidden; transition: border-color .25s,background .25s,box-shadow .25s,transform .22s cubic-bezier(.22,1,.36,1); }
.tech2-auth-field__input-wrap:focus-within { border-color: #D6AD5F; background: #fff; box-shadow: 0 0 0 3px rgba(214,173,95,.12),0 2px 6px rgba(214,173,95,.06); transform: translateY(-1px); }
.tech2-auth-field__accent { width: 2px; min-height: 42px; flex-shrink: 0; background: transparent; transform: scaleY(0); transition: background .25s,transform .25s cubic-bezier(.34,1.56,.64,1); }
.tech2-auth-field__input-wrap:focus-within .tech2-auth-field__accent { background: linear-gradient(#D6AD5F,#A67C3C); transform: scaleY(1); }
.tech2-auth-field__input { flex: 1; min-width: 0; height: 42px; padding: 0 10px; font-size: 14px; color: #1d1d1f; background: transparent; border: none; outline: none; }
.tech2-auth-field__input::placeholder { color: #8b95a5; }
.tech2-auth-field__input--with-toggle { padding-right: 37px; }
.tech2-auth-field__toggle { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: none; border: none; cursor: pointer; z-index: 3; }
.tech2-auth-field__toggle:active { background: rgba(0,0,0,.04); transform: translateY(-50%) scale(.9); }

.tech2-auth-remember { margin: 3px 0; }
.tech2-auth-remember__label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.tech2-auth-remember__checkbox { width: 19px; height: 19px; border-radius: 5px; border: 2px solid #d6e1ee; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: border-color .2s,background .2s,transform .16s cubic-bezier(.22,1,.36,1); }
.tech2-auth-remember__checkbox:active { transform: scale(.92); }
.tech2-auth-remember__checkbox--checked { border-color: #D6AD5F; background: linear-gradient(135deg,#D6AD5F,#A67C3C); box-shadow: 0 1px 4px rgba(214,173,95,.25); }
.tech2-auth-remember__checkbox--checked svg { animation: tech2Pop 250ms cubic-bezier(.34,1.56,.64,1) both; }
.tech2-auth-remember__text { font-size: 12px; color: #5f6b7a; font-weight: 500; }

.tech2-auth-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; animation: tech2FieldIn 340ms cubic-bezier(.22,1,.36,1) 240ms both; }
.tech2-auth-btn-primary { position: relative; width: 100%; height: 44px; border-radius: 9px; border: none; background: linear-gradient(135deg,#151922,#08090e); box-shadow: 0 2px 7px rgba(8,9,14,.2); display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; overflow: hidden; transition: transform .2s,box-shadow .2s; }
.tech2-auth-btn-primary::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent); opacity: 0; pointer-events: none; }
.tech2-auth-btn-primary:active { transform: scale(.98); box-shadow: 0 1px 4px rgba(8,9,14,.15); }
.tech2-auth-btn-primary--loading { opacity: .85; }
.tech2-auth-btn-primary--loading::before { animation: tech2Sheen 1.05s ease-in-out infinite; }
.tech2-auth-btn-primary__bg { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(255,255,255,.06),transparent 50%); pointer-events: none; }
.tech2-auth-btn-primary__text { position: relative; z-index: 1; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.tech2-auth-btn-primary__spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: tech2Spin .7s linear infinite; }
.tech2-auth-btn-experience { width: 100%; height: 41px; border-radius: 9px; border: 1.5px solid rgba(214,173,95,.5); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s,border-color .2s,transform .2s cubic-bezier(.22,1,.36,1); }
.tech2-auth-btn-experience:active { transform: scale(.98); background: rgba(214,173,95,.08); border-color: rgba(214,173,95,.6); }
.tech2-auth-btn-experience__text { font-size: 13px; font-weight: 600; color: #b8860b; }

.tech2-auth-footer { margin-top: auto; padding: 24px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; animation: tech2FieldIn 340ms cubic-bezier(.22,1,.36,1) 300ms both; }
.tech2-auth-footer__logo { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e4ebf4; flex-shrink: 0; }
.tech2-auth-footer__text { display: flex; flex-direction: column; gap: 1px; }
.tech2-auth-footer__name { font-size: 12px; font-weight: 500; color: #8b95a5; }
.tech2-auth-footer__tagline { font-size: 9px; color: #8b95a5; opacity: .7; }

.tech2-error-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 10px; }
.tech2-error-modal[hidden] { display: none; }
.tech2-error-modal__mask { position: absolute; inset: 0; background: rgba(15,23,42,.42); }
.tech2-error-modal__panel { position: relative; width: 100%; max-width: 280px; background: #fff; border-radius: 11px; border: 1px solid #e4ebf4; padding: 16px 14px; box-shadow: 0 16px 32px rgba(15,23,42,.2); text-align: center; }
.tech2-error-modal__message { font-size: 14px; color: #1d1d1f; line-height: 1.55; margin: 0 0 12px; }
.tech2-error-modal__btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 24px; border-radius: 8px; border: none; background: linear-gradient(135deg,#151922,#08090e); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.tech2-error-modal__btn:active { transform: scale(.96); }

/* ── iOS‑style pill toast (auth gate) ── */
.tech2-toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(12px);
  z-index: 10000;
  padding: 9px 20px;
  background: rgba(28, 28, 30, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: #ffffff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 510;
  letter-spacing: -0.1px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  transition: opacity 280ms cubic-bezier(0.17, 0.17, 0.13, 1),
              transform 280ms cubic-bezier(0.17, 0.17, 0.13, 1);
}
.tech2-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .tech2-auth-hero, .tech2-auth-form-card, .tech2-auth-field, .tech2-auth-actions, .tech2-auth-footer { animation: none!important; }
  .tech2-auth-hero, .tech2-auth-hero__purchase, .tech2-auth-form-card, .tech2-auth-mode-slider, .tech2-auth-field__input-wrap, .tech2-auth-remember__checkbox, .tech2-auth-btn-primary, .tech2-auth-btn-experience { transition-duration: 120ms!important; }
}
@media (max-width: 360px) {
  .tech2-auth-hero__title { font-size: 18px; }
  .tech2-auth-hero { padding: 12px; }
  .tech2-auth-form-card { padding: 11px; }
  .tech2-auth-mode-item { height: 31px; line-height: 31px; font-size: 12px; }
  .tech2-auth-field__input { height: 38px; font-size: 13px; }
  .tech2-auth-btn-primary { height: 40px; }
  .tech2-auth-btn-primary__text { font-size: 14px; }
}
/* ═══════════════════════════════════════════════════════
   tech2/hub — ibox自助科技主控制台 (Apple Design System)
   ═══════════════════════════════════════════════════════ */

.hub-wrap {
  min-height: 100vh;
  padding: calc(13px + env(safe-area-inset-top)) 12px calc(60px + env(safe-area-inset-bottom));
  background: #f5f6f8;
  box-sizing: border-box;
}
.hub-wrap--experience { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }

/* tab-content entrance animation */
.tab-content {
  animation: hubTabIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: center top;
}
@keyframes hubTabIn {
  from { opacity: 0; transform: translateY(7px) scale(0.992); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* surface card entrance */
.hub-wrap .head-card,
.hub-wrap .data-card {
  animation: hubSurfaceIn 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hubSurfaceIn {
  from { opacity: 0; transform: translateY(8px) scale(0.988); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hub-wrap--no-entry .tab-content,
.hub-wrap--no-entry .head-card,
.hub-wrap--no-entry .data-card,
.hub-wrap .task-card-list--update .head-card,
.hub-wrap .task-card-list--update .data-card {
  animation: none;
}

/* 类型是新建任务的唯一入口；选中后再把具体配置以一段连续动作展开。 */
.task-form-options {
  transform-origin: center top;
  animation: taskFormOptionsIn 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes taskFormOptionsIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Bottom tab bar — iOS glass with gold accent ── */
.hub-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(17,24,39,.07);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -1px 6px rgba(17,24,39,.03);
}
.hub-tabbar-inner { display: flex; height: 50px; max-width: 580px; margin: 0 auto; }
.hub-tabbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; position: relative; height: 100%;
  transition: transform 160ms cubic-bezier(0.22,1,0.36,1); will-change: transform;
}
.hub-tabbar-item:active { transform: scale(.94); }
.hub-tabbar-icon {
  width: 17px; height: 17px; object-fit: contain;
  opacity: .35;
  transition: opacity 250ms ease; flex-shrink: 0;
}
.hub-tabbar-item.active .hub-tabbar-icon { opacity: 1; }
.hub-tabbar-line {
  width: 24px; height: 2px; border-radius: 999px; background: transparent;
  transition: all 250ms cubic-bezier(0.25,0.1,0.25,1);
}
.hub-tabbar-item.active .hub-tabbar-line { width: 32px; background: linear-gradient(90deg, #D6AD5F, #C69E4A); }
.hub-tabbar-text { font-size: 11px; font-weight: 500; color: var(--text-second); transition: color 250ms ease; }
.hub-tabbar-item.active .hub-tabbar-text { color: var(--text-main); font-weight: 600; }

/* ── Cards — tech2 design system ── */
.settings-card,
.head-card,
.data-card,
.empty-card {
  background: #fff; border: 1px solid #e6eaf0;
  border-radius: 12px; box-shadow: 0 7px 18px rgba(15,23,42,0.14);
}
.settings-card { overflow: hidden; margin-bottom: 10px; }
.head-card, .data-card { padding: 12px; margin-bottom: 8px; }
.empty-card { text-align: center; color: var(--text-second); font-size: 14px; padding: 40px 10px; border-radius: 12px; }
.settings-card-header { padding: 14px 14px 0; }

/* skeleton loading keyframes */
@keyframes skeleton-pulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
.skeleton-card { pointer-events: none; }
.skeleton-header,
.skeleton-body { display: flex; align-items: center; gap: 8px; }
.skeleton-header { margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(17,24,39,.05); }
.skeleton-body { gap: 10px; }
.skeleton-line { height: 11px; border-radius: 999px; background: #eef0f5; animation: skeleton-pulse 1.5s ease-in-out infinite; }
.skeleton-line--sm { height: 13px; }
.skeleton-line--xs { height: 10px; }
.skeleton-pill { width: 32px; height: 18px; border-radius: 999px; background: #eef0f5; flex-shrink: 0; animation: skeleton-pulse 1.5s ease-in-out infinite; }
.skeleton-badge-sq { width: 26px; height: 26px; border-radius: 6px; background: #eef0f5; flex-shrink: 0; animation: skeleton-pulse 1.5s ease-in-out infinite; }
.skeleton-image { width: 57px; height: 57px; border-radius: 10px; background: #eef0f5; flex-shrink: 0; animation: skeleton-pulse 1.5s ease-in-out infinite; }
.skeleton-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.skeleton-metric { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 63px; padding-left: 7px; border-left: 1px solid rgba(17,24,39,.05); }
.skeleton-badge { width: 54px; height: 30px; border-radius: 11px; background: #eef0f5; animation: skeleton-pulse 1.5s ease-in-out infinite; }

/* settings skeleton */
.settings-skeleton-wrap { width: 100%; }
.settings-skeleton-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.settings-skeleton-line {
  height: 11px;
  border-radius: 999px;
  background: #eef0f5;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.settings-skeleton-pill {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #eef0f5;
  flex-shrink: 0;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.settings-skeleton-btn {
  height: 27px;
  border-radius: 6px;
  background: #eef0f5;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* settings footer */
/* ── Settings footer (iOS style) ── */
.settings-footer { display: flex; gap: 10px; margin-top: 16px; }
.settings-footer .btn {
  flex: 1; height: 48px; border-radius: 14px; font-size: 16px; font-weight: 590;
  letter-spacing: -0.2px;
  display: flex; align-items: center; justify-content: center;
  margin: 0; border: none; cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.settings-footer .btn-logout {
  background: rgba(118, 118, 128, 0.1);
  color: #1c1c1e;
}
.settings-footer .btn-logout:active { background: rgba(118, 118, 128, 0.18); transform: scale(0.97); }
.settings-footer .btn-renew {
  background: #D6AD5F;
  color: #101216;
  font-weight: 620;
}
.settings-footer .btn-renew:active { background: #A67C3C; transform: scale(0.97); }

/* footer branding */
.footer-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0 8px; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); }
.footer-brand-text { display: flex; align-items: center; gap: 6px; }
.footer-brand-name { font-size: 12px; font-weight: 600; color: var(--text-second); }
.footer-brand-tagline { font-size: 11px; color: var(--text-third); }

/* data sub-tab bar (matches mini-program) */
.data-subtab-bar {
  position: sticky;
  top: calc(13px + env(safe-area-inset-top));
  z-index: 10;
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 8px;
  border: 1px solid #e6eaf0;
  box-shadow: 0 7px 18px rgba(15,23,42,0.14);
}
.data-subtab-item {
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-second);
  border-radius: 10px;
  cursor: pointer;
  transition: all 200ms ease;
}
.data-subtab-item.active {
  background: linear-gradient(135deg, #151922 0%, #08090e 100%);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.settings-card-header-row { display: flex; align-items: center; justify-content: space-between; }
.settings-card-title { font-size: 17px; font-weight: 700; color: var(--text-main); }
.settings-card-add-btn { font-size: 15px; font-weight: 590; color: #D6AD5F; cursor: pointer; white-space: nowrap; letter-spacing: -0.1px; transition: opacity 200ms ease, transform 200ms ease; }
.settings-card-add-btn:active { opacity: .6; transform: scale(0.97); }
.settings-card-divider { height: 1px; background: var(--line); margin: 0 14px; }
.settings-card-empty-compact { text-align: center; color: var(--text-second); font-size: 12px; padding: 16px 10px; }
.settings-card-item { padding: 11px 14px; }
.settings-card-item-top { display: flex; flex-direction: column; gap: 4px; }
.settings-card-item-title-row { display: flex; align-items: center; justify-content: space-between; }
.settings-card-item-title { font-size: 15px; font-weight: 600; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-card-item-meta { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.settings-card-item-meta-key { font-size: 11px; color: var(--text-second); }
.settings-card-item-meta-val { font-size: 11px; color: var(--text-main); }
.settings-card-item-meta-divider { font-size: 10px; color: var(--line); margin: 0 1px; }
.settings-card-item-actions { display: flex; flex-direction: column; gap: 3px; margin-top: 7px; }
.settings-card-item-actions-primary,
.settings-card-item-actions-secondary { display: flex; gap: 4px; }
.settings-card-remain-days { font-weight: 700; color: #A67C3C; font-size: 16px; }
.settings-card-toolbar { display: flex; align-items: center; padding: 5px 14px 8px; gap: 6px; }
.settings-card-toolbar-left { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.settings-card-hint { font-size: 11px; color: var(--text-second); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Action buttons (iOS pill style) ── */
.action-btn-sm {
  margin: 0; min-width: 0; height: 32px; padding: 0 12px;
  border-radius: 10px; border: none; font-size: 14px; font-weight: 510;
  letter-spacing: -0.1px;
  color: #1c1c1e; background: rgba(118, 118, 128, 0.1);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.action-btn-sm:active { background: rgba(118, 118, 128, 0.18); transform: scale(0.97); }
.action-btn-sm--muted { color: #6e6e73; background: rgba(118, 118, 128, 0.06); }
.action-btn-sm--danger { color: #ff3b30; background: rgba(255, 59, 48, 0.08); }
.action-btn-sm--danger:active { background: rgba(255, 59, 48, 0.16); transform: scale(0.97); }
.action-btn-sm--muted.action-btn-sm--danger { color: #ff3b30; background: rgba(255, 59, 48, 0.06); }
.action-btn-sm--brand { color: #101216; background: #D6AD5F; font-weight: 590; }
.action-btn-sm--brand:active { background: #A67C3C; transform: scale(0.97); }

/* ── Member hero card ── */
.member-hero-card { overflow: hidden; }
.member-hero-bar {
  padding: 0; background: linear-gradient(160deg, #12151c 0%, #0b0d12 68%, #08090e 100%);
  min-height: 44px; display: flex; align-items: center;
}
.member-hero-wordmark-wrap { display: flex; align-items: center; gap: 4px; padding: 9px 14px; width: 100%; box-sizing: border-box; }
.member-hero-wordmark { position: relative; width: 110px; height: 22px; overflow: hidden; transform: skewX(-9deg); flex-shrink: 0; }
.member-hero-wordmark-shadow,
.member-hero-wordmark-text { position: absolute; left: 0; top: 1px; font-size: 15px; line-height: 1; font-weight: 950; letter-spacing: .5px; font-style: italic; white-space: nowrap; }
.member-hero-wordmark-shadow { color: #05060a; -webkit-text-stroke: 1.5px #05060a; transform: translate(-1.5px,2.5px); opacity: .9; }
.member-hero-wordmark-text { color: #ffe59a; -webkit-text-stroke: .75px #fff; text-shadow: 0 .5px 0 #9b6500, 0 1.5px 0 rgba(45,30,0,.82), 0 3px 6px rgba(0,0,0,.38); }
.member-hero-wordmark-rail { position: absolute; right: 1px; bottom: 2px; width: 86%; height: 1px; border-radius: 999px; background: linear-gradient(90deg, rgba(214,173,95,0), rgba(214,173,95,.64) 28%, #faf3e6 100%); box-shadow: 0 0 4px rgba(214,173,95,.38); }
.member-hero-suffix { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.75); letter-spacing: .5px; flex-shrink: 0; }
.member-info-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.member-info-left, .member-info-right { display: flex; align-items: center; gap: 3px; }
.member-username-val { font-weight: 600; color: var(--text-main); font-size: 14px; }

/* ── Settings footer ── */
.settings-footer { display: flex; gap: 7px; margin-top: 16px; }
.settings-footer .btn { flex: 1; height: 44px; border-radius: 9px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; }
.settings-footer .btn-logout { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--line); }
.settings-footer .btn-renew { background: linear-gradient(135deg,#151922,#08090e); color: #fff; }
.settings-footer .btn:active { opacity: .88; transform: scale(.985); }

/* ── Experience banner ── */
.experience-banner {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24);
  color: #ffffff;
}
.experience-banner__text {
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
}
.experience-banner__btn {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
  color: #334155;
  border: none;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}
.experience-banner__btn:active {
  opacity: 0.8;
  transform: scale(0.96);
}

/* ── Task tab ── */
.execution-account-panel { margin-bottom: 8px; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.account-row-left { min-width: 0; display: flex; align-items: center; gap: 3px; }
.panel-title { font-size: 19px; font-weight: 700; color: var(--text-main); }
.panel-title-inline { font-size: 11.5px; font-weight: 600; color: var(--text-second); flex-shrink: 0; }
.account-name { font-size: 16px; font-weight: 650; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-status-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.copy-token-btn { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 600; color: #fff; background: #101216; border: none; cursor: pointer; }
.copy-token-btn:active { opacity: .72; }
.account-actions { margin-top: 7px; display: flex; gap: 5px; }
.account-actions .btn { flex: 1; height: 38px; line-height: 38px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: var(--bg-card); color: var(--text-main); }
.execution-home-btn { background: #101216!important; color: #fff!important; border-color: #101216!important; }
.execution-password-btn { background: linear-gradient(135deg, #E8C97A 0%, #D6AD5F 100%)!important; color: #ffffff!important; border-color: #D6AD5F!important; }

/* ── Task config ── */
.config-panel.head-card { padding: 12px; }
.config-title { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.tasktype-group { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; margin-bottom: 7px; }
.tasktype-item { position: relative; display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 999px; border: 1px solid #e5eaf0; background: #f5f7fa; padding: 0 5px; cursor: pointer; transition: all 220ms cubic-bezier(0.25,0.1,0.25,1); }
.tasktype-item:active { transform: scale(.94); }
.tasktype-item.checked { border-color: #D6AD5F; background: linear-gradient(135deg,#fef9ed,#fff4dd); box-shadow: 0 2px 7px rgba(214,173,95,.18); }
.tasktype-item.checked::after { content: ''; position: absolute; top: -2px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #D6AD5F; box-shadow: 0 0 4px rgba(214,173,95,.4); }
.tasktype-text { font-size: 12.5px; font-weight: 600; color: #6f7f95; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tasktype-item.checked .tasktype-text { color: #A67C3C; font-weight: 700; }

/* ── Form elements (reused from auth) ── */
.form-group { margin-top: 10px; }
.form-group .label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.1px;
  text-transform: none;
}
.hub-wrap .form-group .input,
.hub-wrap .select-trigger .input,
.hub-wrap .search-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: none;
  background: #f2f2f7;
  box-sizing: border-box;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 400;
  color: #1c1c1e;
  letter-spacing: -0.2px;
  outline: none;
  transition: background 200ms ease;
}
.form-group .input:focus {
  background: #e5e5ea;
}
.form-group .input::placeholder {
  color: #aeaeb2;
  font-weight: 400;
}
.select-trigger {
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: #f2f2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  cursor: pointer;
  transition: background 200ms ease;
}
.select-trigger:active {
  background: #e5e5ea;
}
.select-value {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: #1c1c1e;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 10px;
}
.select-arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #8e8e93;
  flex-shrink: 0;
}
.dropdown-panel {
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12), 0 1px 4px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  animation: dropdownSlideIn 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes dropdownSlideIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hub-wrap .search-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
  background: #f8f8fa;
}
.hub-wrap .search-row .search-input {
  flex: 1;
  min-height: 36px !important;
  height: 36px !important;
  border: none;
  border-radius: 10px;
  background: #e5e5ea;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
  color: #1c1c1e;
  outline: none;
  box-sizing: border-box;
}
.hub-wrap .search-row .search-input::placeholder {
  color: #8e8e93;
  font-weight: 400;
}
.hub-wrap .dropdown-list {
  max-height: 180px;
  overflow-y: auto;
  padding: 6px 8px;
  -webkit-overflow-scrolling: touch;
}
.hub-wrap .option-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 400;
  color: #1c1c1e;
  letter-spacing: -0.2px;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 120ms ease;
}
.hub-wrap .option-item + .option-item {
  margin-top: 2px;
}
.hub-wrap .option-item:active {
  background: rgba(60, 60, 67, 0.08);
}
.hub-wrap .option-empty {
  text-align: center;
  color: #aeaeb2;
  font-size: 13px;
  font-weight: 400;
  padding: 20px 0;
  letter-spacing: -0.1px;
}
.inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #ffffff;
  padding: 0 12px;
  font-size: 13px;
  color: #3c3c43;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
}
.radio-item:active {
  transform: scale(0.96);
  border-color: #D6AD5F;
}
.radio-item.checked {
  border-color: #D6AD5F;
  background: rgba(214, 173, 95, 0.10);
  color: #A67C3C;
  font-weight: 600;
}
.add-task-btn {
  margin-top: 10px;
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #151922 0%, #08090e 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(8, 9, 14, 0.18);
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}
.add-task-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
  box-shadow: 0 2px 6px rgba(8, 9, 14, 0.12);
}

/* ── Task cards ── */
.task-card-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.records-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.records-title { font-size: 15px; font-weight: 680; color: #1c1c1e; letter-spacing: -0.1px; }
.records-head .btn-ghost { width: auto; min-width: 0; padding: 0 14px; height: 28px; font-size: 12px; font-weight: 600; border-radius: 999px; background: linear-gradient(135deg, #E8C97A 0%, #D6AD5F 100%); color: #ffffff; border: 1px solid rgba(214, 173, 95, 0.55); box-shadow: 0 1px 4px rgba(166, 124, 60, 0.16); }
.records-head .btn-ghost:active { opacity: .85; transform: scale(.97); }
.task-narrow-card { padding: 11px; margin-bottom: 0; transition: transform 220ms, box-shadow 220ms, border-color 220ms; }
.task-narrow-card:active { transform: translateY(1px); }
.task-narrow-card.is-active { border-color: #A67C3C; }
.task-narrow-card.is-running { border-color: #E8C97A; box-shadow: 0 0 8px rgba(232,201,122,.35); animation: runningPulse 2s ease-in-out infinite; }
@keyframes runningPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(232,201,122,.35); }
  50% { box-shadow: 0 0 14px rgba(232,201,122,.6); }
}
.task-card-main { display: flex; }
.task-left { flex: 1; min-width: 0; }
.task-top-line { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 4px; }
.task-name { font-size: 14px; font-weight: 600; color: var(--text-main); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-expanded-account-value { font-size: 11px; color: #334155; flex-shrink: 0; }
.task-inline-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* 任务卡片行内徽标与信息条对齐小程序 hub 浅色：奶油/淡彩胶囊 + 金色描边芯片 */
.task-type { display: inline-flex; align-items: center; min-height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #FFF8E1; color: #B8860B; }
.task-type-5 { background: #E6F7EE; color: #0D8A4A; }
.task-type-7 { background: #FDEDEC; color: #C0392B; }
.task-type-8 { background: #E6F7FF; color: #0E7490; }
.task-running-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e9f8ef; color: #137a40; }
.task-completed-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f3f6; color: #5b6472; }
.task-inline-meta-item { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid rgba(166,124,60,.28); background: #f9fafc; color: #526070; }
.task-actions-grid { display: none; flex-wrap: wrap; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.task-actions-grid--open { display: flex; }

/* ── Action buttons for task ── */
.action-btn { min-height: 35px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; background: var(--bg-card); color: var(--text-main); cursor: pointer; white-space: nowrap; }
.action-btn:active { opacity: .8; transform: scale(.97); }
.action-btn-status { border-color: #D6AD5F; }
.action-btn-start { color: #A67C3C; background: rgba(214,173,95,.12); border-color: rgba(214,173,95,.28); }
.action-btn-stop { color: #be185d; background: rgba(255,127,116,.1); border-color: rgba(255,127,116,.28); }
.action-btn-disabled { opacity: .5; pointer-events: none; }
.action-btn-config { color: #3b82f6; background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.22); }
.action-btn-logs { color: var(--text-second); }
.action-btn.danger { color: #be185d; background: #fff5f8; border-color: #fce7f3; }

/* ── Data tab ── */
/* ── Feed cards (reuse existing, overrides below) ── */
.feed-card { padding: 10px 12px; margin-bottom: 9px; background: rgba(255,255,255,0.96); border: 0.5px solid rgba(17,24,39,0.07); border-radius: 14px; box-shadow: 0 6px 15px rgba(17,24,39,0.055), 0 1px 3px rgba(17,24,39,0.025), inset 0 1px 0 rgba(255,255,255,0.9); position: relative; overflow: hidden; transition: transform 120ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, border-color 180ms ease; }
.feed-card:active { transform: translateY(1px) scale(0.985); border-color: rgba(17,24,39,0.12); box-shadow: 0 3px 7px rgba(17,24,39,0.045), inset 0 1px 0 rgba(255,255,255,.9); }
.feed-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.42), transparent 38%); opacity: .7; }
.feed-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; border-bottom: 0.5px solid rgba(17,24,39,0.06); padding-bottom: 6px; }
.feed-card-header-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.feed-card-time { font-size: 13px; height: 20px; line-height: 20px; color: #d6ad5f; background: rgba(214,173,95,.1); border: 1px solid rgba(214,173,95,.16); border-radius: 999px; padding: 0 8px; font-family: 'DIN Alternate', sans-serif; flex-shrink: 0; }
.feed-card-body { display: flex; align-items: center; gap: 6px; }
.feed-card-image { width: 57px; height: 57px; border-radius: 10px; object-fit: cover; background: #fff; border: 1px solid rgba(255,255,255,.5); flex-shrink: 0; box-shadow: 0 4px 11px rgba(0,0,0,0.13), inset 0 1px 0 rgba(255,255,255,.9); }
.feed-card-main { flex: 1; min-width: 0; }
.feed-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-card-info { display: flex; flex-direction: column; gap: 4px; }
.feed-card .info-row { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 13px; flex-wrap: nowrap; min-width: 0; }
.feed-card .info-label { font-size: 11px; color: var(--text-second); flex-shrink: 0; width: 48px; white-space: nowrap; overflow: hidden; }
.feed-card .info-value { min-width: 0; font-size: 13px; color: var(--text-main); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; flex: 1; }
.feed-card .volume-value { color: var(--text-main); font-weight: 600; font-family: 'SF Mono', 'Menlo', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-card .price-value { color: var(--text-main); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-card .dayorder-amount { font-size: 14px; font-weight: 700; color: #1c1c1e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-card .dayorder-avg { font-size: 14px; font-weight: 600; color: #1c1c1e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-card-metric { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 63px; padding-left: 7px; border-left: 1px solid var(--line); flex-shrink: 0; }
.feed-metric-label { font-size: 11px; color: var(--text-second); margin-bottom: 4px; }
.feed-ios-badge { background: linear-gradient(180deg,#151922,#08090e); padding: 7px 14px; min-width: 80px; border-radius: 11px; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 12px rgba(8,9,14,.22), inset 0 1px 0 rgba(255,255,255,.12); }
.feed-badge-val { color: #fff; font-size: 17px; font-weight: 600; font-family: 'SF Pro Text', sans-serif; line-height: 1; }

/* ── Skeleton loading ── */
.skeleton-card { padding: 11px; margin-bottom: 8px; overflow: hidden; }
.skeleton-header { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.skeleton-body { display: flex; align-items: center; gap: 6px; }
.skeleton-image { width: 55px; height: 55px; border-radius: 9px; background: var(--bg-soft); flex-shrink: 0; animation: skeletonPulse 1.5s ease-in-out infinite; }
.skeleton-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.skeleton-metric { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 63px; padding-left: 7px; border-left: 1px solid var(--line); flex-shrink: 0; }
.skeleton-line { height: 12px; border-radius: 999px; background: var(--bg-soft); animation: skeletonPulse 1.5s ease-in-out infinite; }
.skeleton-line--sm { height: 11px; }
.skeleton-line--xs { height: 9px; }
.skeleton-pill { width: 40px; height: 20px; border-radius: 999px; background: var(--bg-soft); flex-shrink: 0; animation: skeletonPulse 1.5s ease-in-out infinite; }
.skeleton-badge { width: 48px; height: 28px; border-radius: 10px; background: var(--bg-soft); animation: skeletonPulse 1.5s ease-in-out infinite; }
.skeleton-badge-sq { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); flex-shrink: 0; animation: skeletonPulse 1.5s ease-in-out infinite; }
@keyframes skeletonPulse {
  0% { opacity: 1; } 50% { opacity: .3; } 100% { opacity: 1; }
}

/* ── Status tags ── */
.status-tag {
  flex-shrink: 0; min-height: 22px; line-height: 22px; padding: 0 7px;
  border-radius: 999px; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center;
}
.status-tag--success { background: #e9f8ef; color: #137a40; }
.status-tag--danger { background: rgba(214,173,95,.08); color: #A67C3C; }
.status-tag--info { background: #edf3fb; color: #3b4b63; }
.status-tag--neutral { background: #f3f4f6; color: #6b7280; }
.status-tag--warning { background: #fff4e6; color: #9a5b11; }
.execution-status-tag { display: inline-flex; align-items: center; gap: 4px; min-width: 58px; padding-right: 6px; cursor: pointer; }
.execution-status-tag:active { opacity: .72; }
.notice-status-tag { flex-shrink: 0; min-height: 20px; line-height: 20px; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; }
.notice-status-tag--on { background: #e9f8ef; color: #137a40; }
.notice-status-tag--off { background: #f1f3f6; color: #5b6472; }

/* ── Rank badges ── */
.rank-badge {
  min-width: 26px; height: 26px; line-height: 26px; border-radius: 999px; text-align: center;
  font-size: 12px; font-weight: 800; color: #fff; background: #6b7280; flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.rank-1 { background: linear-gradient(135deg,#E8C97A,#D6AD5F 50%,#A67C3C); box-shadow: 0 1px 5px rgba(214,173,95,.35); }
.rank-2 { background: linear-gradient(135deg,#e5e7eb,#9ca3af); box-shadow: 0 1px 4px rgba(156,163,175,.25); }
.rank-3 { background: linear-gradient(135deg,#fcd34d,#d97706); box-shadow: 0 1px 4px rgba(217,119,6,.25); }

/* ── Modals — iOS-style, borderless, card-shadow ── */
/* ── Apple Design iOS‑style Modals ── */
.modal-wrap {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: center; align-items: center;
  padding: 24px 16px; box-sizing: border-box;
}
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalMaskFadeIn 280ms ease-out both;
}
@keyframes modalMaskFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative;
  width: 100%;
  max-width: min(340px, calc(100vw - 32px));
  max-height: 84vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  padding: 22px 20px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(15, 23, 42, 0.15),
    0 2px 8px rgba(15, 23, 42, 0.06);
  animation: modalPanelIn 360ms cubic-bezier(0.17, 0.17, 0.13, 1.0) both;
}
@keyframes modalPanelIn {
  from { opacity: 0; transform: translateY(32px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-panel.large {
  max-width: min(440px, calc(100vw - 32px));
  height: 72vh;
  display: flex;
  flex-direction: column;
}
.modal-title {
  font-size: 17px;
  font-weight: 680;
  color: #1c1c1e;
  margin-bottom: 6px;
  line-height: 1.24;
  letter-spacing: -0.1px;
  text-align: center;
}
.modal-subtitle {
  font-size: 13px;
  color: #8e8e93;
  margin-bottom: 14px;
  line-height: 1.45;
  text-align: center;
}
.panel-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}
.panel-actions .btn {
  flex: 1;
  min-height: 46px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.2px;
  cursor: pointer;
  border: none;
  background: rgba(118, 118, 128, 0.1);
  color: #1c1c1e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.panel-actions .btn:active {
  background: rgba(118, 118, 128, 0.18);
  transform: scale(0.97);
}
.panel-actions .btn-primary {
  background: #D6AD5F;
  color: #101216;
  font-weight: 620;
  border: none;
  box-shadow: none;
}
.panel-actions .btn-primary:active {
  background: #A67C3C;
  color: #101216;
  transform: scale(0.97);
}

/* ── Logs / Guide ── */
.logs-box {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #f8f9fb;
  padding: 10px;
  box-sizing: border-box;
  max-height: 52vh;
  overflow-y: auto;
}
.logs-text {
  font-size: 12px;
  line-height: 1.6;
  color: #3c3c43;
  white-space: pre-wrap;
  font-family: var(--font-mono);
}
.guide-box {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #f8f9fb;
}
.guide-title {
  font-size: 13px;
  font-weight: 700;
  color: #1c1c1e;
  margin-bottom: 8px;
}
.guide-item {
  font-size: 12px;
  color: var(--text-second);
  line-height: 1.7;
}
.guide-qrcode {
  width: 140px;
  height: 140px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #fff;
}

/* ── Task confirm list ── */
/* ── Task Confirm iOS inset grouped list ── */
.task-confirm-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 14px 0 8px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(118, 118, 128, 0.06);
  box-shadow: inset 0 0 0 0.5px rgba(17, 24, 39, 0.06);
}
.task-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  min-height: 48px;
  box-sizing: border-box;
  background: #ffffff;
}
.task-confirm-row + .task-confirm-row {
  border-top: 1px solid rgba(60, 60, 67, 0.08);
}
.task-confirm-label {
  font-size: 15px;
  color: #6e6e73;
  font-weight: 400;
  flex-shrink: 0;
  margin-right: 20px;
  letter-spacing: -0.1px;
}
.task-confirm-value {
  font-size: 15px;
  font-weight: 510;
  color: #1c1c1e;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.1px;
}

/* ── Footer ── */
.footer-hint { margin-top: 24px; padding: 0; text-align: center; display: flex; align-items: center; justify-content: center; gap: 7px; }
.footer-brand-text { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.footer-brand-name { font-size: 12px; font-weight: 500; color: #8e8e93; }
.footer-brand-tagline { font-size: 9px; color: #c7c7cc; }

/* ── Toast ── */
/* ── iOS‑style pill toast ── */
.tech2-toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(12px);
  z-index: 10000;
  padding: 9px 20px;
  background: rgba(28, 28, 30, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: #ffffff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 510;
  letter-spacing: -0.1px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  transition: opacity 280ms cubic-bezier(0.17, 0.17, 0.13, 1),
              transform 280ms cubic-bezier(0.17, 0.17, 0.13, 1);
}
.tech2-toast--in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Buttons ── */
.btn { min-height: 44px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.btn-primary { background: linear-gradient(135deg,#151922,#08090e); color: #fff; border: 1px solid rgba(255,255,255,.08); }
.btn-ghost { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--line); }
.btn:active { opacity: .85; transform: scale(.98); }
.load-more-wrap { margin-top: 4px; }
.load-more-btn { width: 100%; height: 40px; line-height: 40px; border-radius: 8px; font-size: 13px; }

/* ── Dark mode ── */

@media (prefers-reduced-motion: reduce) {
  .tab-content, .hub-tabbar-item, .tasktype-item, .radio-item, .modal-panel, .modal-wrap, .modal-mask,
  .panel-actions .btn, .add-task-btn, .experience-banner__btn, .select-trigger, .option-item,
  .data-subtab-item, .head-card, .data-card, .task-form-options { animation: none!important; transition: none!important; }
}

/* ═══════════════════════════════════════════════════════
   tech2/personal-home — 个人仓库/订单页
   ═══════════════════════════════════════════════════════ */
.ph-page {
  display: flex; flex-direction: column; height: 100vh; background: #ffffff; color: #171a20; overflow: hidden;
}
.ph-hero { position:relative; flex-shrink:0; padding: 20px 17px 22px 22px; background: #fff; }
.ph-hero__content { display:flex; align-items:center; gap:14px; }
.ph-avatar { width:48px; height:48px; border-radius:50%; background:#eceff5; flex-shrink:0; object-fit:cover; }
.ph-hero__main { min-width:0; }
.ph-nickname { font-size:21px; line-height:1.25; color:#171a20; }
.ph-uid-row { display:flex; align-items:center; gap:6px; margin-top:8px; }
.ph-uid-text { font-size:12px; color:#8b9099; letter-spacing:0.5px; }
.ph-uid-masked { letter-spacing:1px; }
.ph-eye-btn { width:22px; height:18px; display:flex; align-items:center; justify-content:center; border-radius:5px; }
.ph-eye-btn:active { background:rgba(0,0,0,.06); }
.ph-eye-icon { width:16px; height:10px; position:relative; }
.ph-eye-open::before { content:""; position:absolute; inset:0; border:1.5px solid #8b9099; border-radius:50%; }
.ph-eye-open::after { content:""; position:absolute; width:4px; height:4px; border-radius:50%; background:#8b9099; top:50%; left:50%; transform:translate(-50%,-50%); }
.ph-eye-closed::before { content:""; position:absolute; left:0; right:0; top:50%; height:1.5px; margin-top:-.75px; background:#8b9099; border-radius:99px; }
.ph-eye-closed::after { content:""; position:absolute; top:50%; left:50%; width:10px; height:6px; margin-top:-3px; margin-left:-5px; border:1.5px solid #8b9099; border-top:none; border-radius:0 0 50% 50%/0 0 100% 100%; }

.ph-tabs { display:flex; align-items:center; gap:22px; height:34px; padding:0 14px; border-bottom:1px solid #e8e8e8; flex-shrink:0; background:#fff; }
.ph-tab { position:relative; height:34px; display:flex; align-items:center; font-size:14px; color:#8b9099; background:none; border:0; cursor:pointer; transition:color .25s; }
.ph-tab--active { color:#171a20; font-weight:700; }
.ph-tab--active::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:2.5px; border-radius:99px; background:#f5a400; }

.ph-panel { flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:4px 14px 0; }
.ph-bottom-spacer { height:42px; }

/* tab content */
.ph-tab-body { padding-top:12px; }
.ph-state { padding:40px 10px; text-align:center; color:#8b9099; font-size:13px; }
.ph-state--error { color:#d14343; }
.ph-load-more { padding:20px 10px 6px; text-align:center; color:#8b9099; font-size:13px; }

/* assets grid */
.ph-asset-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 17px; margin-top:14px; }
.ph-asset-card { min-width:0; }
.ph-asset-cover { position:relative; width:100%; padding-bottom:100%; border-radius:24px; overflow:hidden; background:#eceff5; }
.ph-asset-cover img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.ph-asset-name { margin-top:8px; font-size:14px; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ph-asset-meta { margin-top:5px; color:#8b9099; font-size:11px; }

/* sold grid */
.ph-sold-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 17px; margin-top:14px; }
.ph-sold-card { min-width:0; }
.ph-sold-cover { position:relative; width:100%; padding-bottom:100%; border-radius:24px; overflow:hidden; background:#eceff5; }
.ph-sold-cover img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.ph-sold-name { margin-top:7px; font-size:13px; line-height:1.22; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ph-sold-token { margin-top:7px; color:#6d7078; font-size:11px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ph-sold-price { margin-top:7px; font-size:0; }
.ph-sold-price-sym { font-size:10px; font-weight:800; margin-right:2px; }
.ph-sold-price-val { font-size:16px; font-weight:800; }

/* orders list */
.ph-order-list { padding-top:12px; }
.ph-order-card { margin-bottom:11px; padding:10px 14px 12px; border-radius:14px; background:#fff; box-shadow:0 1px 8px rgba(0,0,0,.10); border:1px solid rgba(0,0,0,.06); }
.ph-order-head { display:flex; align-items:center; gap:4px; min-width:0; }
.ph-order-uuid { flex:1; min-width:0; color:#9a9da5; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ph-copy-btn { width:20px; height:20px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ph-copy-icon { width:11px; height:11px; border:1.5px solid #111; border-radius:1px; position:relative; }
.ph-copy-icon::after { content:""; position:absolute; right:-4px; top:-4px; width:7px; height:7px; border:1.5px solid #111; border-left:0; border-bottom:0; border-radius:1px; }
.ph-order-status { flex-shrink:0; min-width:58px; text-align:right; font-size:11px; font-weight:600; color:#a9aaae; }
.ph-status-0 { color:#f5a400; }
.ph-status-1 { color:#2f6bff; }
.ph-status-5 { color:#0d0f14; }
.ph-status-10 { color:#8b9099; }
.ph-status-15 { color:#d14343; }
.ph-order-divider { height:1px; margin-top:9px; background:#e7e7e7; }
.ph-order-product { display:flex; gap:14px; margin-top:8px; }
.ph-order-cover { width:56px; height:56px; border-radius:9px; background:#e7e9ee; flex-shrink:0; object-fit:cover; }
.ph-order-info { min-width:0; padding-top:7px; }
.ph-order-name { max-width:215px; font-size:15px; line-height:1.22; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ph-order-time { margin-top:12px; color:#9a9da5; font-size:12px; }
.ph-order-price { margin-top:14px; display:flex; align-items:baseline; justify-content:flex-end; gap:6px; }
.ph-price-label { color:#73757a; font-size:13px; }
.ph-price-sym { color:#0d0f14; font-size:13px; font-weight:600; }
.ph-price-val { color:#0d0f14; font-size:13px; font-weight:600; }
.ph-order-actions { margin-top:10px; display:flex; justify-content:flex-end; gap:13px; }
.ph-cancel-btn { min-width:80px; height:32px; padding:0 15px; border-radius:7px; border:1px solid #d8d8d8; background:#f0f0f0; color:#6f7075; font-size:13px; cursor:pointer; }
.ph-pay-btn { min-width:80px; height:32px; padding:0 15px; border-radius:7px; background:#fff3d0; color:#0d0f14; font-size:13px; cursor:pointer; }
.ph-cancel-btn:disabled { opacity:.5; cursor:default; }

/* toast */
.ph-toast { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:2000; padding:10px 24px; border-radius:10px; background:rgba(0,0,0,.78); color:#fff; font-size:14px; opacity:0; pointer-events:none; transition:opacity .25s; }
.ph-toast--show { opacity:1; }

/* ── More page footer (mini-program 1:1) ── */
.mobile-screen--more .footer-hint { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0 8px; margin-top: 0; text-align: center; }
.mobile-screen--more .footer-logo { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.mobile-screen--more .footer-brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.mobile-screen--more .footer-brand-name { font-size: 12px; font-weight: 600; color: #171a20; line-height: 1.2; }
.mobile-screen--more .footer-brand-tagline { font-size: 10px; font-weight: 400; color: #8b9099; line-height: 1.2; }

.self-tech-qrcode-open { overflow: hidden; }
.self-tech-qrcode-modal, .super-ib-qrcode-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
}
.self-tech-qrcode-modal[hidden], .super-ib-qrcode-modal[hidden] { display: none; }
.self-tech-qrcode-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}
.self-tech-qrcode-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(92vw, 430px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  padding: 24px 18px 20px;
  border: 1px solid rgba(214, 173, 95, 0.26);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
  text-align: center;
}
.self-tech-qrcode-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #6e6e73;
  background: rgba(60, 60, 67, 0.08);
  font-size: 25px;
  line-height: 1;
}
.self-tech-qrcode-modal__close:active { transform: scale(0.94); }
.self-tech-qrcode-modal__title {
  margin: 0 28px 14px;
  color: #171a20;
  font-size: 18px;
  line-height: 1.35;
}
.self-tech-qrcode-modal__image {
  display: block;
  width: 100%;
  max-height: min(68vh, 560px);
  border-radius: 12px;
  object-fit: contain;
}
.self-tech-qrcode-modal__hint {
  margin: 14px 0 0;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .self-tech-qrcode-modal { padding: 16px; }
  .self-tech-qrcode-modal__panel { padding: 22px 12px 16px; border-radius: 18px; }
  .self-tech-qrcode-modal__title { margin-bottom: 10px; font-size: 17px; }
  .self-tech-qrcode-modal__hint { margin-top: 10px; font-size: 13px; }
}


/* Collection detail interaction surfaces: one final, state-driven layer. */
.collection-detail-page {
  min-height: 100vh;
  padding: 0 0 calc(var(--tabbar-height) + 24px);
  background: linear-gradient(180deg, #ffffff 0%, #f8f8fa 42%, #f2f2f5 100%);
  color: #1c1c1e;
}
.collection-detail-page .collection-hero {
  height: 190px;
  background: #d9dee6;
}
.collection-detail-page .collection-hero-mask {
  background: linear-gradient(180deg, rgba(15,23,42,.14) 0%, rgba(15,23,42,.02) 40%, rgba(255,255,255,.88) 78%, #fff 100%);
}
.collection-detail-page .collection-hero-content { bottom: -60px; padding: 0 16px; }
.collection-detail-page .collection-hero-cover {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  border: 3px solid rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(15,23,42,.18), 0 1px 2px rgba(15,23,42,.08);
  transform: translateY(-8px);
}
.collection-detail-page .collection-hero-name { margin-top: 2px; font-size: 17px; letter-spacing: -.02em; }
.collection-detail-page .collection-hero-tags-wrap { margin-top: 8px; }
.collection-detail-page .collection-hero-tags { gap: 6px; }
.collection-detail-page .collection-hero-tag { border-radius: 999px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.collection-detail-page .collection-hero-tag-label,
.collection-detail-page .collection-hero-tag-value { height: 20px; line-height: 20px; }
.collection-detail-page .collection-hero-tag-label { min-width: 28px; padding: 0 7px; background: #fff2c7; color: #8a6500; }
.collection-detail-page .collection-hero-tag-value { padding: 0 8px; background: rgba(255,255,255,.88); color: #48484a; }
.collection-detail-page .collection-back-btn {
  top: max(28px, calc(env(safe-area-inset-top) + 12px));
  left: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(238,242,248,.78));
  border-color: rgba(255,255,255,.88);
  box-shadow: 0 8px 20px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.8);
  color: #172033;
  font-size: 0;
}
.collection-detail-page .collection-back-btn__icon {
  width: 10px;
  height: 10px;
  border-left: 2.2px solid currentColor;
  border-bottom: 2.2px solid currentColor;
  border-radius: 1px;
  transform: translateX(2px) rotate(45deg);
  transition: transform .18s ease;
}
.collection-detail-page .collection-back-btn:active .collection-back-btn__icon {
  transform: translateX(1px) rotate(45deg) scale(.88);
}
.collection-detail-page .collection-hero-actions {
  position: absolute;
  top: max(28px, calc(env(safe-area-inset-top) + 12px));
  right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.collection-detail-page .collection-hero-action,
.collection-detail-page .collection-peer-trade-action {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15,23,42,.5), rgba(15,23,42,.28));
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  font-size: 11px;
  font-weight: 700;
}
.collection-detail-page .collection-hero-action:active,
.collection-detail-page .collection-peer-trade-action:active { transform: scale(.98); opacity: .82; }
.collection-detail-page .collection-peer-trade-badge {
  padding: 2px 5px;
  border-radius: 999px;
  background: #2f7df6;
  color: #fff;
  font-size: 9px;
  line-height: 1.2;
  text-shadow: none;
}
.collection-detail-page .detail-section,
.collection-detail-page .market-orders-section {
  padding: 8px 14px 26px;
  background: #fff;
}
.collection-detail-page .wq-panel,
.collection-detail-page .sample-panel,
.collection-detail-page .sample-result-panel,
.collection-detail-page .nt-trade-dashboard-card,
.collection-detail-page .nt-chart-panel,
.collection-detail-page .market-orders-panel {
  border: 1px solid rgba(60,60,67,.10);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  background: rgba(255,255,255,.96);
}
.collection-detail-page .sample-btn-row { gap: 10px; }
.collection-detail-page .sample-btn-row .wq-search-btn,
.collection-detail-page .wq-segment-star-btn {
  height: 42px;
  min-height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: none;
}
.collection-detail-page .sample-btn-row .wq-search-btn { background: #111318; color: #fff; }
.collection-detail-page .sample-btn-row .wq-history-btn { background: #eef0f4; color: #17181c; }
.collection-detail-page .wq-segment-star-btn {
  width: 100%;
  margin-top: 8px;
  background: #fff;
  color: #17181c;
  border: 1px solid rgba(60,60,67,.12);
}
.collection-detail-page .wq-search-btn:disabled { opacity: .52; }
.collection-detail-page .history-auth-panel { padding: 12px 16px; }
.collection-detail-page .meta-buy-btn { background: #111318; color: #fff; }

.collection-detail-page .detail-tab-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: 60px;
  padding: 0 14px;
  background: rgba(255,255,255,.88) !important;
  border-bottom: 1px solid rgba(60,60,67,.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.collection-detail-page .detail-tab-bar {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  gap: 2px;
  padding: 0;
  border-bottom: 0 !important;
  overflow-x: auto;
  scrollbar-width: none;
}
.collection-detail-page .detail-tab-bar::-webkit-scrollbar { display: none; }
.collection-detail-page .detail-tab-item {
  appearance: none;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  color: #8e8e93;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.collection-detail-page .detail-tab-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: 10px;
}
.collection-detail-page .detail-tab-item::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  z-index: 2;
  width: 4em;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
  pointer-events: none;
}
.collection-detail-page .detail-tab-item--active { color: #a87916; }
.collection-detail-page .detail-tab-item--active::after {
  background: var(--brand);
}
.collection-detail-page .detail-tab-shell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,23,42,.08), transparent);
  opacity: .28;
}

.detail-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(60,60,67,.08);
  border-radius: 16px;
  background: #fff;
}
.detail-skeleton-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}
.detail-skeleton-cell {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e9e9ef 20%, #f7f7fa 50%, #e9e9ef 80%);
  background-size: 220% 100%;
  animation: detailSkeletonShimmer 1.4s ease-in-out infinite;
}
.detail-skeleton-cell--short { width: 22%; }
.detail-skeleton-cell--medium { width: 20%; }
.detail-skeleton-cell--wide { flex: 1; }
@keyframes detailSkeletonShimmer {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

.collection-query-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: block;
  pointer-events: none;
}
.collection-query-sheet-overlay--visible { pointer-events: auto; }
.collection-query-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.42);
  opacity: 0;
  transition: opacity 180ms ease;
}
.collection-query-sheet-overlay--visible .collection-query-sheet-mask { opacity: 1; }
.collection-query-sheet {
  position: absolute;
  left: 50%;
  bottom: var(--collection-query-sheet-bottom, calc(12px + env(safe-area-inset-bottom)));
  width: min(calc(100% - 32px), 390px);
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 -12px 32px rgba(15,23,42,.16);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transform: translate(-50%, 100%);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}
.collection-query-sheet-overlay--visible .collection-query-sheet { transform: translate(-50%, 0); }
.collection-query-sheet-grabber {
  width: 34px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(60,60,67,.22);
}
.collection-query-sheet-title {
  margin: 0;
  color: #1c1c1e;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
}
.collection-query-sheet-body { padding: 20px 0 18px; text-align: center; }
.collection-query-sheet-copy,
.collection-query-sheet-meta,
.collection-query-sheet-balance {
  margin: 0;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.6;
}
.collection-query-sheet-copy strong,
.collection-query-sheet-meta strong,
.collection-query-sheet-balance strong { color: #1c1c1e; font-weight: 700; }
.collection-query-sheet-balance { margin-top: 4px; }
.collection-query-sheet-actions { display: flex; gap: 10px; }
.collection-query-sheet-actions button {
  flex: 1;
  min-height: 46px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}
.collection-query-sheet-actions .wq-modal-cancel-btn { background: #f2f2f7; color: #1c1c1e; }
.collection-query-sheet-actions .wq-modal-confirm-btn { background: #111318; color: #fff; }
.collection-query-sheet-actions button:active { transform: scale(.98); opacity: .82; }

.collection-detail-toast {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  z-index: 1400;
  max-width: min(calc(100vw - 32px), 360px);
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(28,28,30,.92);
  box-shadow: 0 8px 22px rgba(15,23,42,.18);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}
.collection-detail-toast--visible { opacity: 1; transform: translate(-50%, 0); }
.collection-detail-toast--success { background: rgba(20,83,45,.94); }
.collection-detail-toast--error { background: rgba(127,29,29,.94); }

.collection-detail-brand-capsule {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 14px 5px 7px;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 7px 22px rgba(15,23,42,.11), 0 1px 3px rgba(15,23,42,.06);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.collection-detail-brand-capsule__logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.collection-detail-brand-capsule__text { display: flex; flex-direction: column; gap: 1px; align-items: center; line-height: 1.15; }
.collection-detail-brand-capsule__text strong { color: #171a20; font-size: 11px; }
.collection-detail-brand-capsule__text small { color: #8b9099; font-size: 9px; }
.collection-detail-brand-capsule--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.collection-detail-brand-capsule--visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .collection-detail-page .detail-section,
  .detail-skeleton-cell,
  .collection-query-sheet-mask,
  .collection-query-sheet,
  .collection-detail-toast,
  .collection-detail-brand-capsule {
    animation: none !important;
    transition: opacity 120ms ease !important;
    transform: none !important;
  }
  .collection-detail-toast { transform: translate(-50%, 0) !important; }
  .collection-detail-brand-capsule { transform: translateX(-50%) !important; }
  .collection-query-sheet { transform: translateX(-50%) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .collection-detail-page .detail-tab-shell,
  .collection-query-sheet,
  .collection-detail-brand-capsule {
    background: #fff !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .collection-detail-page .detail-tab-shell,
  .detail-skeleton,
  .collection-query-sheet {
    border: 1px solid currentColor;
  }
}
@media (max-width: 360px) {
  .collection-detail-page .collection-hero-actions { right: 10px; gap: 4px; }
  .collection-detail-page .collection-hero-action,
  .collection-detail-page .collection-peer-trade-action { min-height: 30px; padding: 0 8px; font-size: 11px; }
  .collection-detail-page .collection-peer-trade-badge { display: none; }
  .collection-detail-page .collection-hero-cover { width: 86px; height: 86px; }
}

/* ════════════════════════════════════════════════════════════════════════
   H5 藏品族谱：把桌面横向大画布重排成可触摸的纵向时间轴。
   视觉母题来自「谱系」本身：金色主轴定位当前藏品，陶土色/灰蓝色分别
   标记来源、用途与持仓条件，节点卡同时承担图片、语义和下一步跳转。
   ════════════════════════════════════════════════════════════════════════ */
.collection-detail-page .h5-lineage-section {
  padding-top: 12px;
  padding-bottom: calc(var(--tabbar-height) + 30px);
  background: #f7f6f2;
}
.h5-lineage-intro {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(79, 62, 44, .12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(214, 173, 95, .16), transparent 42%),
    #fffdfa;
  box-shadow: 0 12px 26px rgba(79, 62, 44, .08);
}
.h5-lineage-intro__eyebrow,
.h5-lineage-core__eyebrow,
.h5-lineage-sheet__eyebrow {
  display: block;
  color: #a06e2d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.h5-lineage-intro h2 {
  margin: 7px 0 6px;
  color: #29231d;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h5-lineage-intro p {
  margin: 0;
  color: #756e64;
  font-size: 13px;
  line-height: 1.7;
  text-wrap: pretty;
}
.h5-lineage-intro__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid rgba(79, 62, 44, .10);
  color: #9a9083;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.h5-lineage-intro__meta span:last-child { color: #b08249; }
.h5-lineage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  align-items: center;
  padding: 12px 3px 8px;
  color: #887f73;
  font-size: 11px;
}
.h5-lineage-legend span { display: inline-flex; align-items: center; gap: 5px; }
.h5-lineage-legend__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.h5-lineage-legend__dot--source { background: #c77558; }
.h5-lineage-legend__dot--target { background: #8d9ba3; }
.h5-lineage-legend__dot--holding { border: 1px solid #8d9ba3; background: transparent; }

/* H5 族谱采用真正的关系画布：世界坐标比视口宽，默认聚焦核心，靠拖动探索。 */
.h5-lineage-board {
  overflow: hidden;
  border: 1px solid rgba(79, 62, 44, .13);
  border-radius: 20px;
  background: #efede7;
  box-shadow: 0 14px 28px rgba(79, 62, 44, .09);
}
.h5-lineage-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px 12px;
  border-bottom: 1px solid rgba(79, 62, 44, .10);
  background: rgba(255, 253, 250, .78);
}
.h5-lineage-board__head > div:first-child { min-width: 0; }
.h5-lineage-board__eyebrow {
  display: block;
  color: #a06e2d;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
}
.h5-lineage-board__head strong {
  display: block;
  margin-top: 3px;
  color: #332c24;
  font-family: var(--font-display);
  font-size: 17px;
}
.h5-lineage-board__head small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #928879;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-lineage-board__tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(79, 62, 44, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .70);
}
.h5-lineage-board__tools button {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  color: #665b4d;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}
.h5-lineage-board__tools button:nth-of-type(2) { font-size: 10px; }
.h5-lineage-board__tools button:active { background: rgba(214, 173, 95, .18); }
.h5-lineage-board__tools span {
  min-width: 36px;
  color: #a18d74;
  font-size: 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.h5-lineage-canvas {
  position: relative;
  height: 500px;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  cursor: grab;
  background-color: #f5f3ee;
  background-image: linear-gradient(rgba(130, 117, 96, .085) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 117, 96, .085) 1px, transparent 1px), radial-gradient(circle at 50% 48%, rgba(214, 173, 95, .15), transparent 40%);
  background-size: 22px 22px, 22px 22px, auto;
}
.h5-lineage-canvas--dragging { cursor: grabbing; }
.h5-lineage-canvas__world {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.h5-lineage-canvas--dragging .h5-lineage-canvas__world { transition: none; }
.h5-lineage-canvas__edges,
.h5-lineage-canvas__nodes { position: absolute; inset: 0; }
.h5-lineage-canvas__edges { overflow: visible; pointer-events: none; }
.h5-lineage-canvas__edge {
  fill: none;
  stroke: #c77558;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .86;
  vector-effect: non-scaling-stroke;
}
.h5-lineage-canvas__edge--holding {
  stroke: #8799a2;
  stroke-dasharray: 6 5;
}
.h5-lineage-canvas__edges marker path { fill: #c77558; }
.h5-lineage-canvas__nodes { pointer-events: none; }
.h5-lineage-canvas-node,
.h5-lineage-canvas-event,
.h5-lineage-canvas-core {
  position: absolute;
  pointer-events: auto;
}
.h5-lineage-canvas-node {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 60px;
  padding: 7px;
  border: 1px solid rgba(79, 62, 44, .16);
  border-radius: 12px;
  color: inherit;
  background: rgba(255, 253, 250, .96);
  box-shadow: 0 7px 16px rgba(79, 62, 44, .08);
  text-align: left;
  cursor: pointer;
}
.h5-lineage-canvas-node:active,
.h5-lineage-canvas-event:active { transform: scale(.985); }
.h5-lineage-canvas-node:hover,
.h5-lineage-canvas-node:focus-visible { border-color: #c77558; outline: 0; }
.h5-lineage-canvas-node--holding { border-style: dashed; border-color: rgba(110, 130, 141, .62); }
.h5-lineage-canvas-node--empty { cursor: default; }
.h5-lineage-canvas-node img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 9px;
  object-fit: cover;
  background: #f0ece4;
}
.h5-lineage-canvas-node__empty-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px dashed rgba(110, 130, 141, .52);
  border-radius: 9px;
  color: #9b9184;
  font-size: 18px;
}
.h5-lineage-canvas-node__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}
.h5-lineage-canvas-node__copy strong,
.h5-lineage-canvas-node__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-lineage-canvas-node__copy strong { color: #443a2f; font-size: 11px; line-height: 1.25; }
.h5-lineage-canvas-node__copy small { color: #9a9084; font-size: 9px; line-height: 1.2; }
.h5-lineage-canvas-node--holding .h5-lineage-canvas-node__copy small { color: #6e808a; }
.h5-lineage-canvas-node__chevron { color: #b8a58f; font-size: 17px; line-height: 1; }
.h5-lineage-canvas-event {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  height: 82px;
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid rgba(183, 123, 84, .38);
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 250, 242, .97);
  box-shadow: 0 10px 20px rgba(79, 62, 44, .11);
  text-align: left;
  cursor: pointer;
}
.h5-lineage-canvas-event--downstream { border-color: rgba(110, 130, 141, .38); background: rgba(248, 251, 251, .97); }
.h5-lineage-canvas-event:hover,
.h5-lineage-canvas-event:focus-visible { border-color: #c77558; outline: 0; }
.h5-lineage-canvas-event__top { display: flex; align-items: center; gap: 7px; color: #b36f4f; font-size: 9px; }
.h5-lineage-canvas-event--downstream .h5-lineage-canvas-event__top { color: #70818b; }
.h5-lineage-canvas-event__top b { letter-spacing: .08em; }
.h5-lineage-canvas-event__top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h5-lineage-canvas-event strong { overflow: hidden; color: #3d352b; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.h5-lineage-canvas-event small { overflow: hidden; color: #9a9084; font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.h5-lineage-canvas-event em { overflow: hidden; color: #a06e2d; font-size: 9px; font-style: normal; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.h5-lineage-canvas-event--downstream em { color: #657782; }
.h5-lineage-canvas-core {
  padding: 13px;
  border: 1px solid rgba(198, 154, 82, .62);
  border-radius: 17px;
  background: linear-gradient(135deg, #fff8e9, #fffdfa);
  box-shadow: 0 14px 30px rgba(151, 110, 45, .18), 0 0 0 5px rgba(214, 173, 95, .10);
}
.h5-lineage-canvas-core__eyebrow { color: #a06e2d; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.h5-lineage-canvas-core__body { display: flex; align-items: center; gap: 11px; margin-top: 9px; }
.h5-lineage-canvas-core img { width: 54px; height: 54px; flex: 0 0 54px; border: 2px solid rgba(198, 154, 82, .46); border-radius: 13px; object-fit: cover; background: #f1eadc; }
.h5-lineage-canvas-core__body > span { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.h5-lineage-canvas-core strong { overflow: hidden; color: #33271d; font-family: var(--font-display); font-size: 16px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.h5-lineage-canvas-core small { color: #9d876b; font-size: 10px; }
.h5-lineage-canvas-core i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #c77558; box-shadow: 0 0 0 5px rgba(199, 117, 88, .12); }
.h5-lineage-canvas__center-mark { position: absolute; top: 12px; left: 50%; padding: 4px 8px; border: 1px solid rgba(198, 154, 82, .28); border-radius: 999px; color: #a06e2d; background: rgba(255, 253, 250, .72); font-size: 9px; pointer-events: none; transform: translateX(-50%); }
.h5-lineage-canvas__gesture { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border: 1px solid rgba(79, 62, 44, .12); border-radius: 999px; color: #948a7d; background: rgba(255, 253, 250, .84); font-size: 9px; pointer-events: none; }
.h5-lineage-board__legend { display: flex; flex-wrap: wrap; gap: 8px 13px; align-items: center; padding: 10px 14px 12px; color: #887f73; font-size: 10px; }
.h5-lineage-board__legend span { display: inline-flex; align-items: center; gap: 5px; }

/* 关系画布只提供 viewport，不改柱状族谱本身：柱、卡片和线路仍按原顺序排布。 */
.h5-lineage-pan-board {
  overflow: hidden;
  border: 1px solid rgba(79, 62, 44, .13);
  border-radius: 20px;
  background: #efede7;
  box-shadow: 0 14px 28px rgba(79, 62, 44, .09);
}
.h5-lineage-pan-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(79, 62, 44, .10);
  background: #fffdfa;
}
.h5-lineage-pan-board__head strong { display: block; color: #332c24; font-family: var(--font-display); font-size: 16px; }
.h5-lineage-pan-board__head small { display: block; margin-top: 2px; color: #928879; font-size: 10px; }
.h5-lineage-pan-board__gesture { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(198, 154, 82, .28); border-radius: 999px; color: #a06e2d; background: rgba(214, 173, 95, .10); font-size: 10px; }
.h5-lineage-pan-board__tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(79, 62, 44, .12);
  border-radius: 10px;
  background: #fffdfa;
}
.h5-lineage-pan-board__tools button {
  min-width: 34px;
  height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  color: #665b4d;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.h5-lineage-pan-board__tools button:active,
.h5-lineage-pan-board__tools button:focus-visible { color: #9b5f42; background: rgba(214, 173, 95, .18); outline: 0; }
.h5-lineage-pan-canvas {
  position: relative;
  height: 590px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background-color: #f7f6f2;
  background-image: linear-gradient(rgba(79, 62, 44, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 62, 44, .055) 1px, transparent 1px), radial-gradient(circle at 50% 48%, rgba(214, 173, 95, .10), transparent 40%);
  background-size: 22px 22px, 22px 22px, auto;
}
.h5-lineage-pan-canvas--dragging { cursor: grabbing; user-select: none; }
.h5-lineage-pan-world { position: absolute; top: 0; left: 0; width: 1120px; min-width: 1120px; height: 100%; transform-origin: 0 0; will-change: transform; }
.h5-lineage-pan-map {
  display: grid;
  grid-template-columns: 285px 64px 250px 64px 285px;
  grid-template-areas: "upstream spine-up core spine-down downstream";
  column-gap: 0;
  align-items: center;
  width: 1040px;
  min-width: 1040px;
  min-height: 100%;
  padding: 42px 46px;
}
.h5-lineage-pan-map .h5-lineage-lane { grid-area: upstream; gap: 12px; min-width: 0; }
.h5-lineage-pan-map .h5-lineage-lane--downstream { grid-area: downstream; }
.h5-lineage-pan-map .h5-lineage-lane__label { padding: 0 2px 7px; }
.h5-lineage-pan-map .h5-lineage-event { width: 100%; }
.h5-lineage-pan-map .h5-lineage-spine { position: relative; display: block; align-self: stretch; width: auto; height: auto; }
.h5-lineage-pan-map .h5-lineage-spine--upstream { grid-area: spine-up; }
.h5-lineage-pan-map .h5-lineage-spine--downstream { grid-area: spine-down; }
.h5-lineage-pan-map .h5-lineage-spine::before { top: 50%; right: 0; bottom: auto; left: 0; width: auto; height: 1px; background: repeating-linear-gradient(to right, #c69a52 0 4px, transparent 4px 8px); }
.h5-lineage-pan-map .h5-lineage-spine span { position: absolute; top: calc(50% - 5px); left: calc(50% - 5px); }
.h5-lineage-pan-map .h5-lineage-core { grid-area: core; align-self: center; width: 100%; }
.h5-lineage-pan-canvas__hint { position: absolute; right: 12px; bottom: 10px; z-index: 2; padding: 5px 8px; border: 1px solid rgba(79, 62, 44, .12); border-radius: 999px; color: #948a7d; background: rgba(255, 253, 250, .88); font-size: 9px; pointer-events: none; }

/* 直接承载桌面端原始族谱画布：H5 只负责容器尺寸，不再重排柱状路线。 */
.h5-lineage-desktop-canvas {
  position: relative;
  height: clamp(580px, 76svh, 740px);
  min-height: 580px;
  overflow: hidden;
  background: #f7f6f2;
}
.h5-lineage-desktop-canvas__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7f6f2;
}
.h5-lineage-map {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.h5-lineage-lane {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.h5-lineage-lane__label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 2px 3px;
  color: #736b61;
}
.h5-lineage-lane__label span {
  color: #a06e2d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.h5-lineage-lane--downstream .h5-lineage-lane__label span { color: #687985; }
.h5-lineage-lane__label strong {
  color: #332c24;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.h5-lineage-lane__label em {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 19px;
  padding: 0 6px;
  border-radius: 99px;
  color: #9c6a2c;
  background: rgba(214, 173, 95, .18);
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.h5-lineage-lane--downstream .h5-lineage-lane__label em {
  color: #647580;
  background: rgba(141, 155, 163, .16);
}
.h5-lineage-lane__empty {
  padding: 18px 14px;
  border: 1px dashed rgba(79, 62, 44, .18);
  border-radius: 14px;
  color: #978d80;
  background: rgba(255, 253, 250, .62);
  font-size: 12px;
  text-align: center;
}
.h5-lineage-spine {
  position: relative;
  display: grid;
  place-items: center;
  height: 34px;
}
.h5-lineage-spine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, #c69a52 0 4px, transparent 4px 8px);
}
.h5-lineage-spine span {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 2px solid #fffdfa;
  border-radius: 50%;
  background: #c69a52;
  box-shadow: 0 0 0 1px rgba(198, 154, 82, .5);
}
.h5-lineage-core {
  position: relative;
  z-index: 1;
  padding: 14px;
  border: 1px solid rgba(198, 154, 82, .5);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff9ed, #fffdfa);
  box-shadow: 0 14px 28px rgba(151, 110, 45, .13), 0 0 0 4px rgba(214, 173, 95, .08);
}
.h5-lineage-core__body {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
}
.h5-lineage-core__body img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 2px solid rgba(198, 154, 82, .46);
  border-radius: 13px;
  object-fit: cover;
  background: #f1eadc;
}
.h5-lineage-core__copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.h5-lineage-core__copy strong {
  overflow: hidden;
  color: #33271d;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-lineage-core__copy small { color: #9d876b; font-size: 11px; }
.h5-lineage-core__pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #c77558;
  box-shadow: 0 0 0 5px rgba(199, 117, 88, .12);
}
.h5-lineage-event {
  overflow: hidden;
  border: 1px solid rgba(79, 62, 44, .12);
  border-radius: 15px;
  background: rgba(255, 253, 250, .92);
  box-shadow: 0 8px 20px rgba(79, 62, 44, .06);
}
.h5-lineage-event--downstream { border-color: rgba(110, 130, 141, .22); }
.h5-lineage-event__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "index title open"
    "time time open";
  gap: 4px 8px;
  width: 100%;
  padding: 12px 13px 10px;
  border-bottom: 1px solid rgba(79, 62, 44, .08);
  text-align: left;
  cursor: pointer;
}
.h5-lineage-event__head:active { background: rgba(214, 173, 95, .10); }
.h5-lineage-event__index {
  grid-area: index;
  color: #b36f4f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.h5-lineage-event--downstream .h5-lineage-event__index { color: #70818b; }
.h5-lineage-event__title {
  grid-area: title;
  overflow: hidden;
  color: #3d352b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-lineage-event__time {
  grid-area: time;
  overflow: hidden;
  color: #9a9084;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-lineage-event__open {
  grid-area: open;
  align-self: center;
  color: #a06e2d;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.h5-lineage-event--downstream .h5-lineage-event__open { color: #657782; }
.h5-lineage-flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px 12px;
}
.h5-lineage-flow__refs {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.h5-lineage-flow__arrow {
  display: grid;
  place-items: center;
  width: 18px;
  flex: 0 0 18px;
  color: #b87b54;
  font-size: 18px;
  line-height: 1;
}
.h5-lineage-event--downstream .h5-lineage-flow__arrow { color: #748892; }
.h5-lineage-flow__current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0 8px;
  border: 1px solid rgba(198, 154, 82, .38);
  border-radius: 10px;
  color: #89672f;
  background: rgba(214, 173, 95, .10);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.h5-lineage-event--downstream .h5-lineage-flow__current {
  border-color: rgba(110, 130, 141, .35);
  color: #60717b;
  background: rgba(141, 155, 163, .10);
}
.h5-lineage-node {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(79, 62, 44, .12);
  border-radius: 10px;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.h5-lineage-node:active { transform: scale(.985); background: #fff7ea; }
.h5-lineage-node img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 7px;
  object-fit: cover;
  background: #f1eee8;
}
.h5-lineage-node__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.h5-lineage-node__copy strong {
  overflow: hidden;
  color: #443a2f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-lineage-node__copy small {
  overflow: hidden;
  color: #9a9084;
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-lineage-node__chevron { color: #b8a58f; font-size: 17px; line-height: 1; }
.h5-lineage-node--holding { border-style: dashed; border-color: rgba(110, 130, 141, .46); }
.h5-lineage-node--holding .h5-lineage-node__copy small { color: #6e808a; }
.h5-lineage-node--empty { cursor: default; }
.h5-lineage-node--empty .h5-lineage-node__copy strong { color: #91877b; }
.h5-lineage-footnote {
  margin: 13px 3px 0;
  color: #9a9084;
  font-size: 10px;
  line-height: 1.65;
}
.h5-lineage-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 260px;
  padding: 28px 20px;
  border: 1px dashed rgba(79, 62, 44, .20);
  border-radius: 18px;
  color: #8d8377;
  background: rgba(255, 253, 250, .72);
  text-align: center;
}
.h5-lineage-empty__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(198, 154, 82, .42);
  border-radius: 13px;
  color: #a06e2d;
  background: #fff8eb;
  font-family: var(--font-display);
  font-size: 12px;
}
.h5-lineage-empty strong { color: #4a4035; font-family: var(--font-display); font-size: 17px; }
.h5-lineage-empty p { max-width: 28em; margin: 0; font-size: 12px; line-height: 1.6; }
.h5-lineage-retry,
.h5-lineage-sheet__original-btn {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(183, 123, 84, .48);
  border-radius: 999px;
  color: #9b5f42;
  background: rgba(199, 117, 88, .08);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.h5-lineage-skeleton {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 360px;
  padding: 18px 16px;
  border: 1px solid rgba(79, 62, 44, .10);
  border-radius: 18px;
  background: #fffdfa;
}
.h5-lineage-skeleton__line,
.h5-lineage-skeleton__card {
  display: block;
  border-radius: 9px;
  background: linear-gradient(90deg, #f0ece4, #faf7f1, #f0ece4);
  background-size: 300% 100%;
  animation: h5LineageShimmer 1.3s ease-in-out infinite;
}
.h5-lineage-skeleton__line { width: 70%; height: 14px; }
.h5-lineage-skeleton__line--short { width: 32%; height: 10px; }
.h5-lineage-skeleton__card { width: 100%; height: 90px; margin-top: 8px; }
.h5-lineage-skeleton__card--tall { height: 152px; }
@keyframes h5LineageShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* 线路详情采用 bottom sheet：保留移动端单手可返回的层级，也承载桌面端的证据/原公告操作。 */
.h5-lineage-sheet-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(26, 20, 15, .0);
  pointer-events: none;
  transition: background .18s ease;
}
.h5-lineage-sheet-overlay--visible { background: rgba(26, 20, 15, .42); pointer-events: auto; }
.h5-lineage-sheet-mask { position: absolute; inset: 0; }
.h5-lineage-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(84vh, 720px);
  overflow: auto;
  padding: 13px 17px calc(24px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #fffdfa;
  box-shadow: 0 -18px 50px rgba(35, 24, 16, .24);
  transform: translateY(100%);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}
.h5-lineage-sheet-overlay--visible .h5-lineage-sheet { transform: translateY(0); }
.h5-lineage-sheet__grabber {
  width: 38px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #d8cfc1;
}
.h5-lineage-sheet__close {
  position: absolute;
  top: 14px;
  right: 15px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(79, 62, 44, .14);
  border-radius: 50%;
  color: #7e7366;
  background: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.h5-lineage-sheet h2 {
  margin: 7px 38px 4px 0;
  color: #332a22;
  font-family: var(--font-display);
  font-size: 23px;
}
.h5-lineage-sheet__meta { margin: 0; color: #9a9084; font-size: 11px; line-height: 1.5; }
.h5-lineage-sheet__flow {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 17px 0 18px;
  padding: 12px;
  border: 1px solid rgba(79, 62, 44, .10);
  border-radius: 14px;
  background: #faf7f0;
}
.h5-lineage-sheet__flow > div { display: flex; flex-direction: column; gap: 6px; }
.h5-lineage-sheet__flow > div > span { color: #887d70; font-size: 10px; font-weight: 750; }
.h5-lineage-sheet__flow > b { color: #b87b54; font-size: 18px; line-height: 1; text-align: center; }
.h5-lineage-sheet__flow .h5-lineage-node { background: #fffdfa; }
.h5-lineage-sheet h3 { margin: 0 0 7px; color: #887d70; font-size: 10px; letter-spacing: .1em; }
.h5-lineage-sheet__evidence {
  margin: 0 0 15px;
  color: #50463b;
  font-size: 13px;
  line-height: 1.75;
  text-wrap: pretty;
}
.h5-lineage-sheet__original {
  margin-top: 12px;
  padding: 11px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(79, 62, 44, .10);
  border-radius: 12px;
  color: #5b5145;
  background: #faf7f0;
  font-size: 12px;
  line-height: 1.75;
}
.h5-lineage-sheet__original img { max-width: 100%; height: auto; }
.h5-lineage-sheet__original a { color: #a05f43; }
.h5-lineage-sheet__empty { color: #9a9084; font-size: 11px; }

/* 放在通用 .h5-lineage-map 规则之后，确保横向画布不会被纵向默认布局覆盖。 */
.h5-lineage-pan-map { display: grid; }

@media (min-width: 700px) {
  .collection-detail-page .h5-lineage-section { padding-right: clamp(20px, 5vw, 72px); padding-left: clamp(20px, 5vw, 72px); }
  .h5-lineage-intro, .h5-lineage-map, .h5-lineage-footnote, .h5-lineage-legend { max-width: 780px; margin-right: auto; margin-left: auto; }
}

html.desktop-dark .collection-detail-page .h5-lineage-section,
html.desktop-dark-collection .collection-detail-page .h5-lineage-section {
  background: #0b0e11;
}
html.desktop-dark .h5-lineage-intro,
html.desktop-dark-collection .h5-lineage-intro {
  border-color: rgba(255,255,255,.09);
  background: radial-gradient(circle at 100% 0, rgba(214,173,95,.12), transparent 42%), #14181f;
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}
html.desktop-dark .h5-lineage-intro__eyebrow,
html.desktop-dark .h5-lineage-core__eyebrow,
html.desktop-dark .h5-lineage-sheet__eyebrow,
html.desktop-dark-collection .h5-lineage-intro__eyebrow,
html.desktop-dark-collection .h5-lineage-core__eyebrow,
html.desktop-dark-collection .h5-lineage-sheet__eyebrow { color: #d6ad5f; }
html.desktop-dark .h5-lineage-intro h2,
html.desktop-dark-collection .h5-lineage-intro h2 { color: #e8ecf2; }
html.desktop-dark .h5-lineage-intro p,
html.desktop-dark-collection .h5-lineage-intro p { color: #9aa1ab; }
html.desktop-dark .h5-lineage-intro__meta,
html.desktop-dark-collection .h5-lineage-intro__meta { border-color: rgba(255,255,255,.08); color: #7a8290; }
html.desktop-dark .h5-lineage-intro__meta span:last-child,
html.desktop-dark-collection .h5-lineage-intro__meta span:last-child { color: #d6ad5f; }
html.desktop-dark .h5-lineage-legend,
html.desktop-dark-collection .h5-lineage-legend,
html.desktop-dark .h5-lineage-footnote,
html.desktop-dark-collection .h5-lineage-footnote { color: #7a8290; }
html.desktop-dark .h5-lineage-lane__label,
html.desktop-dark-collection .h5-lineage-lane__label { color: #9aa1ab; }
html.desktop-dark .h5-lineage-lane__label strong,
html.desktop-dark-collection .h5-lineage-lane__label strong { color: #e8ecf2; }
html.desktop-dark .h5-lineage-lane__label span,
html.desktop-dark-collection .h5-lineage-lane__label span { color: #d6ad5f; }
html.desktop-dark .h5-lineage-lane--downstream .h5-lineage-lane__label span,
html.desktop-dark-collection .h5-lineage-lane--downstream .h5-lineage-lane__label span { color: #9aaab2; }
html.desktop-dark .h5-lineage-lane__empty,
html.desktop-dark-collection .h5-lineage-lane__empty { border-color: rgba(255,255,255,.13); color: #7a8290; background: #14181f; }
html.desktop-dark .h5-lineage-core,
html.desktop-dark-collection .h5-lineage-core { border-color: rgba(214,173,95,.5); background: linear-gradient(135deg, #2a241c, #1a1f28); box-shadow: 0 14px 28px rgba(0,0,0,.32), 0 0 0 4px rgba(214,173,95,.06); }
html.desktop-dark .h5-lineage-core__body img,
html.desktop-dark-collection .h5-lineage-core__body img { border-color: rgba(214,173,95,.42); background: #252c38; }
html.desktop-dark .h5-lineage-core__copy strong,
html.desktop-dark-collection .h5-lineage-core__copy strong { color: #e8ecf2; }
html.desktop-dark .h5-lineage-core__copy small,
html.desktop-dark-collection .h5-lineage-core__copy small { color: #9b8a70; }
html.desktop-dark .h5-lineage-event,
html.desktop-dark-collection .h5-lineage-event { border-color: rgba(255,255,255,.09); background: #14181f; box-shadow: 0 9px 22px rgba(0,0,0,.22); }
html.desktop-dark .h5-lineage-event--downstream,
html.desktop-dark-collection .h5-lineage-event--downstream { border-color: rgba(154,170,178,.22); }
html.desktop-dark .h5-lineage-event__head,
html.desktop-dark-collection .h5-lineage-event__head { border-color: rgba(255,255,255,.08); }
html.desktop-dark .h5-lineage-event__title,
html.desktop-dark-collection .h5-lineage-event__title { color: #d1d5db; }
html.desktop-dark .h5-lineage-event__time,
html.desktop-dark-collection .h5-lineage-event__time { color: #7a8290; }
html.desktop-dark .h5-lineage-node,
html.desktop-dark-collection .h5-lineage-node { border-color: rgba(255,255,255,.10); background: #1a1f28; }
html.desktop-dark .h5-lineage-node:active,
html.desktop-dark-collection .h5-lineage-node:active { background: #242c35; }
html.desktop-dark .h5-lineage-node__copy strong,
html.desktop-dark-collection .h5-lineage-node__copy strong { color: #d1d5db; }
html.desktop-dark .h5-lineage-node__copy small,
html.desktop-dark-collection .h5-lineage-node__copy small { color: #7a8290; }
html.desktop-dark .h5-lineage-node--holding,
html.desktop-dark-collection .h5-lineage-node--holding { border-color: rgba(154,170,178,.5); }
html.desktop-dark .h5-lineage-flow__current,
html.desktop-dark-collection .h5-lineage-flow__current { border-color: rgba(214,173,95,.35); color: #d6ad5f; background: rgba(214,173,95,.12); }
html.desktop-dark .h5-lineage-event--downstream .h5-lineage-flow__current,
html.desktop-dark-collection .h5-lineage-event--downstream .h5-lineage-flow__current { border-color: rgba(154,170,178,.35); color: #9aaab2; background: rgba(154,170,178,.10); }
html.desktop-dark .h5-lineage-board,
html.desktop-dark-collection .h5-lineage-board { border-color: rgba(255,255,255,.10); background: #11161a; box-shadow: 0 14px 30px rgba(0,0,0,.30); }
html.desktop-dark .h5-lineage-board__head,
html.desktop-dark-collection .h5-lineage-board__head { border-color: rgba(255,255,255,.08); background: rgba(20,24,31,.92); }
html.desktop-dark .h5-lineage-board__head strong,
html.desktop-dark-collection .h5-lineage-board__head strong { color: #e8ecf2; }
html.desktop-dark .h5-lineage-board__head small,
html.desktop-dark-collection .h5-lineage-board__head small,
html.desktop-dark .h5-lineage-board__legend,
html.desktop-dark-collection .h5-lineage-board__legend { color: #7a8290; }
html.desktop-dark .h5-lineage-board__tools,
html.desktop-dark-collection .h5-lineage-board__tools { border-color: rgba(255,255,255,.10); background: #1a1f28; }
html.desktop-dark .h5-lineage-board__tools button,
html.desktop-dark-collection .h5-lineage-board__tools button { color: #d1d5db; }
html.desktop-dark .h5-lineage-board__tools span,
html.desktop-dark-collection .h5-lineage-board__tools span { color: #7a8290; }
html.desktop-dark .h5-lineage-canvas,
html.desktop-dark-collection .h5-lineage-canvas { background-color: #11161a; background-image: linear-gradient(rgba(214,197,167,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(214,197,167,.075) 1px, transparent 1px), radial-gradient(circle at 50% 48%, rgba(144,82,64,.10), transparent 40%); }
html.desktop-dark .h5-lineage-canvas__edge,
html.desktop-dark-collection .h5-lineage-canvas__edge { stroke: #d9896c; }
html.desktop-dark .h5-lineage-canvas__edge--holding,
html.desktop-dark-collection .h5-lineage-canvas__edge--holding { stroke: #9aaab2; }
html.desktop-dark .h5-lineage-canvas__edges marker path,
html.desktop-dark-collection .h5-lineage-canvas__edges marker path { fill: #d9896c; }
html.desktop-dark .h5-lineage-canvas-node,
html.desktop-dark-collection .h5-lineage-canvas-node { border-color: rgba(255,255,255,.10); color: #d1d5db; background: #1a1f28; box-shadow: 0 9px 20px rgba(0,0,0,.24); }
html.desktop-dark .h5-lineage-canvas-node:hover,
html.desktop-dark .h5-lineage-canvas-node:focus-visible,
html.desktop-dark-collection .h5-lineage-canvas-node:hover,
html.desktop-dark-collection .h5-lineage-canvas-node:focus-visible { border-color: #d9896c; }
html.desktop-dark .h5-lineage-canvas-node__copy strong,
html.desktop-dark-collection .h5-lineage-canvas-node__copy strong { color: #d1d5db; }
html.desktop-dark .h5-lineage-canvas-node__copy small,
html.desktop-dark-collection .h5-lineage-canvas-node__copy small { color: #7a8290; }
html.desktop-dark .h5-lineage-canvas-event,
html.desktop-dark-collection .h5-lineage-canvas-event { border-color: rgba(217,137,108,.45); color: #d1d5db; background: #1d2025; box-shadow: 0 10px 22px rgba(0,0,0,.28); }
html.desktop-dark .h5-lineage-canvas-event--downstream,
html.desktop-dark-collection .h5-lineage-canvas-event--downstream { border-color: rgba(154,170,178,.42); background: #1a2025; }
html.desktop-dark .h5-lineage-canvas-event strong,
html.desktop-dark-collection .h5-lineage-canvas-event strong { color: #e8ecf2; }
html.desktop-dark .h5-lineage-canvas-event small,
html.desktop-dark-collection .h5-lineage-canvas-event small { color: #7a8290; }
html.desktop-dark .h5-lineage-canvas-event em,
html.desktop-dark-collection .h5-lineage-canvas-event em { color: #d6ad5f; }
html.desktop-dark .h5-lineage-canvas-core,
html.desktop-dark-collection .h5-lineage-canvas-core { border-color: rgba(214,173,95,.52); background: linear-gradient(135deg, #2a241c, #1a1f28); box-shadow: 0 14px 30px rgba(0,0,0,.36), 0 0 0 5px rgba(214,173,95,.06); }
html.desktop-dark .h5-lineage-canvas-core__eyebrow,
html.desktop-dark-collection .h5-lineage-canvas-core__eyebrow { color: #d6ad5f; }
html.desktop-dark .h5-lineage-canvas-core strong,
html.desktop-dark-collection .h5-lineage-canvas-core strong { color: #e8ecf2; }
html.desktop-dark .h5-lineage-canvas-core small,
html.desktop-dark-collection .h5-lineage-canvas-core small { color: #9b8a70; }
html.desktop-dark .h5-lineage-canvas__center-mark,
html.desktop-dark-collection .h5-lineage-canvas__center-mark,
html.desktop-dark .h5-lineage-canvas__gesture,
html.desktop-dark-collection .h5-lineage-canvas__gesture { border-color: rgba(255,255,255,.10); color: #9aa1ab; background: rgba(20,24,31,.86); }
html.desktop-dark .h5-lineage-pan-board,
html.desktop-dark-collection .h5-lineage-pan-board { border-color: rgba(255,255,255,.10); background: #11161a; box-shadow: 0 14px 30px rgba(0,0,0,.30); }
html.desktop-dark .h5-lineage-pan-board__head,
html.desktop-dark-collection .h5-lineage-pan-board__head { border-color: rgba(255,255,255,.08); background: rgba(20,24,31,.92); }
html.desktop-dark .h5-lineage-pan-board__head strong,
html.desktop-dark-collection .h5-lineage-pan-board__head strong { color: #e8ecf2; }
html.desktop-dark .h5-lineage-pan-board__head small,
html.desktop-dark-collection .h5-lineage-pan-board__head small { color: #7a8290; }
html.desktop-dark .h5-lineage-pan-board__gesture,
html.desktop-dark-collection .h5-lineage-pan-board__gesture { border-color: rgba(214,173,95,.28); color: #d6ad5f; background: rgba(214,173,95,.10); }
html.desktop-dark .h5-lineage-pan-canvas,
html.desktop-dark-collection .h5-lineage-pan-canvas { background-color: #11161a; background-image: linear-gradient(rgba(214,197,167,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(214,197,167,.075) 1px, transparent 1px), radial-gradient(circle at 50% 48%, rgba(144,82,64,.10), transparent 40%); }
html.desktop-dark .h5-lineage-pan-canvas__hint,
html.desktop-dark-collection .h5-lineage-pan-canvas__hint { border-color: rgba(255,255,255,.10); color: #9aa1ab; background: rgba(20,24,31,.88); }
html.desktop-dark .h5-lineage-desktop-canvas,
html.desktop-dark-collection .h5-lineage-desktop-canvas,
html.desktop-dark .h5-lineage-desktop-canvas__frame,
html.desktop-dark-collection .h5-lineage-desktop-canvas__frame { background: #11161a; }
html.desktop-dark .h5-lineage-skeleton,
html.desktop-dark-collection .h5-lineage-skeleton,
html.desktop-dark .h5-lineage-empty,
html.desktop-dark-collection .h5-lineage-empty { border-color: rgba(255,255,255,.10); background: #14181f; }
html.desktop-dark .h5-lineage-skeleton__line,
html.desktop-dark .h5-lineage-skeleton__card,
html.desktop-dark-collection .h5-lineage-skeleton__line,
html.desktop-dark-collection .h5-lineage-skeleton__card { background: linear-gradient(90deg, #1f2632, #292f39, #1f2632); background-size: 300% 100%; }
html.desktop-dark .h5-lineage-empty strong,
html.desktop-dark-collection .h5-lineage-empty strong { color: #e8ecf2; }
html.desktop-dark .h5-lineage-sheet,
html.desktop-dark-collection .h5-lineage-sheet { background: #14181f; box-shadow: 0 -18px 50px rgba(0,0,0,.5); }
html.desktop-dark .h5-lineage-sheet h2,
html.desktop-dark-collection .h5-lineage-sheet h2 { color: #e8ecf2; }
html.desktop-dark .h5-lineage-sheet__meta,
html.desktop-dark-collection .h5-lineage-sheet__meta,
html.desktop-dark .h5-lineage-sheet h3,
html.desktop-dark-collection .h5-lineage-sheet h3 { color: #7a8290; }
html.desktop-dark .h5-lineage-sheet__flow,
html.desktop-dark-collection .h5-lineage-sheet__flow,
html.desktop-dark .h5-lineage-sheet__original,
html.desktop-dark-collection .h5-lineage-sheet__original { border-color: rgba(255,255,255,.09); background: #1a1f28; }
html.desktop-dark .h5-lineage-sheet__evidence,
html.desktop-dark-collection .h5-lineage-sheet__evidence { color: #c7cbd3; }
html.desktop-dark .h5-lineage-sheet__original,
html.desktop-dark-collection .h5-lineage-sheet__original { color: #9aa1ab; }
html.desktop-dark .h5-lineage-sheet__close,
html.desktop-dark-collection .h5-lineage-sheet__close { border-color: rgba(255,255,255,.12); color: #d1d5db; background: #1a1f28; }
html.desktop-dark .h5-lineage-sheet__grabber,
html.desktop-dark-collection .h5-lineage-sheet__grabber { background: #505766; }

@media (prefers-reduced-motion: reduce) {
  .h5-lineage-skeleton__line,
  .h5-lineage-skeleton__card { animation: none; }
  .h5-lineage-sheet-overlay,
  .h5-lineage-sheet { transition: none; }
}

@media (max-width: 480px) {
  .h5-lineage-desktop-canvas { height: clamp(560px, 76svh, 680px); min-height: 560px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Desktop Dark Theme — html.desktop-dark
   ────────────────────────────────────────────────────────────────────────
   桌面盯盘平台（desktop.html）通过同源 iframe 内嵌 H5 页面（爬仓数据 /
   藏品详情 / 活动图片数据监控）时带 desktop=1 参数；mobile_web_app.js 据此给
   <html> 挂 desktop-dark 类。本节让这些模块切换为暗色主题，配色与桌面端一致：
   底色 #0b0e11、面板 #1a1f28、卡片 #1a1f28、输入框 #1e2430、
   边框 #252c38、主文本 #d1d5db、次级文本 #7a8290、金色强调 #d6ad5f。
   ════════════════════════════════════════════════════════════════════════ */

/* ── 1. 基础变量重定义（作用于整页） ── */
html.desktop-dark {
  --bg-page: #0b0e11;
  --bg-card: #1a1f28;
  --bg-soft: #1a1f28;
  --text-main: #d1d5db;
  --text-second: #7a8290;
  --text-third: #505766;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #d6ad5f;
  --brand-hover: #c49a3c;
  --brand-light: #1a1f28;
  --brand-soft: rgba(214, 173, 95, 0.14);
  --brand-border: rgba(214, 173, 95, 0.32);
  --brand-shadow: rgba(0, 0, 0, 0.4);
  --accent: #d6ad5f;
  --accent-soft: rgba(214, 173, 95, 0.14);
  --accent-border: rgba(214, 173, 95, 0.32);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-hero: 0 22px 50px rgba(0, 0, 0, 0.5);
}
html.desktop-dark #mobile-app,
html.desktop-dark .mobile-screen,
html.desktop-dark .mobile-screen--warehouse-query { background: #0b0e11; color: #d1d5db; }

/* 桌面双 K 对比台的外层模块会提供实际宽度；移除 H5 在桌面浏览器上的 430px 手机壳上限，
   让顶部指标和 canvas 按 iframe 宽高自适应。手机端不带 desktop-dark-kline，不受影响。 */
@media (min-width: 768px) {
  html.desktop-dark-kline #mobile-app {
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: none;
  }
}

/* 底部 TabBar 玻璃暗色 */
html.desktop-dark .mobile-tabbar.tab-bar,
html.desktop-dark .tab-bar-backdrop,
html.desktop-dark .tab-bar-inner {
  background: rgba(11, 14, 17, 0.88);
  border-top-color: rgba(255, 255, 255, 0.06);
}
html.desktop-dark .tab-text { color: #7a8290; }
html.desktop-dark .mobile-tabbar__item--active.active { color: #d6ad5f; }
html.desktop-dark .tab-bar-item.active .tab-text { color: #d1d5db; }
html.desktop-dark .tab-bar-item.active .tab-icon { filter: brightness(0) invert(1); }
html.desktop-dark .tab-bar-item.active .icon-container { background: rgba(255, 255, 255, 0.1); }
html.desktop-dark .active-dot { background: #d6ad5f; border-color: #0b0e11; }

/* 桌面端内嵌 H5（爬仓数据 / 活动图片监控 等）时隐藏底部 TabBar：
   桌面窗口自带模块导航，底部导航在窗口内是多余占位；手机端直访 H5 无 desktop-dark 类，导航保留。 */
html.desktop-dark .mobile-tabbar.tab-bar { display: none; }
html.desktop-dark .mobile-screen--warehouse-query,
html.desktop-dark .announcements-page { padding-bottom: 16px; }
html.desktop-dark .announcements-page .ann-footer-state { display: none; }

/* ── Desktop Light Theme：复用 H5 的浅色组件，只补桌面 iframe 的结构约束 ── */
html.desktop-light {
  --bg-page: #f7f7f8;
  --bg-card: #ffffff;
  --bg-soft: #f1f2f4;
  --text-main: #1c1c1e;
  --text-second: #6e6e73;
  --text-third: #8e8e93;
  --line: rgba(60, 60, 67, 0.16);
  --brand: #b48937;
  --brand-hover: #9e772f;
  --brand-light: #f7f2e7;
  --brand-soft: rgba(180, 137, 55, 0.08);
  --brand-border: rgba(180, 137, 55, 0.28);
  --brand-shadow: rgba(15, 23, 42, 0.12);
  --accent: #b48937;
  --accent-soft: rgba(180, 137, 55, 0.08);
  --accent-border: rgba(180, 137, 55, 0.28);
}
html.desktop-light body,
html.desktop-light #mobile-app,
html.desktop-light .mobile-screen,
html.desktop-light .mobile-auth {
  background: #f7f7f8;
  color: #1c1c1e;
}
html.desktop-light #mobile-app {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
}
html.desktop-light .mobile-tabbar.tab-bar { display: none; }
html.desktop-light .mobile-screen--warehouse-query,
html.desktop-light .announcements-page { padding-bottom: 16px; }
html.desktop-light .announcements-page .ann-footer-state { display: none; }

/* ── 2. 爬仓数据页（含收藏详情内嵌的爬仓面板，共用 wq-* 类） ── */
/* 卡片容器 */
html.desktop-dark .wq-panel,
html.desktop-dark .wq-status-panel,
html.desktop-dark .wq-stat-card,
html.desktop-dark .wq-leaderboard-entry,
html.desktop-dark .search-module,
html.desktop-dark .wq-seg-star-module {
  background: #1a1f28;
  border-color: #252c38;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}
html.desktop-dark .wq-panel-title,
html.desktop-dark .wq-panel-head .wq-panel-title { color: #e8ecf2; }
html.desktop-dark .wq-status-label,
html.desktop-dark .wq-stat-label,
html.desktop-dark .wq-status-hint,
html.desktop-dark .wq-candidate-hint,
html.desktop-dark .wq-empty-text,
html.desktop-dark .wq-snapshot-meta,
html.desktop-dark .wq-result-tip,
html.desktop-dark .wq-result-source,
html.desktop-dark .wq-leaderboard-desc,
html.desktop-dark .wq-leaderboard-desc--locked,
html.desktop-dark .wq-leaderboard-desc--unlocked { color: #7a8290; }
html.desktop-dark .wq-status-value,
html.desktop-dark .wq-leaderboard-title,
html.desktop-dark .wq-leaderboard-title--unlocked,
html.desktop-dark .wq-result-title,
html.desktop-dark .wq-keyword-input,
html.desktop-dark .wq-footer-brand-name { color: #d1d5db; }
html.desktop-dark .wq-leaderboard-title--locked { color: #505766; }
html.desktop-dark .wq-status-value-error { color: #ff7b72; }
html.desktop-dark .wq-status-hint-error {
  background: rgba(214, 173, 95, 0.12);
  border-color: rgba(214, 173, 95, 0.3);
  color: #d6ad5f;
}
html.desktop-dark .status-node-gold { background: #d6ad5f; }
html.desktop-dark .status-node-green { background: #22c55e; }
html.desktop-dark .status-node-error { background: #ef4444; }
html.desktop-dark .wq-status-row + .wq-status-row { border-top-color: rgba(255, 255, 255, 0.08); }

/* 搜索框与按钮 */
html.desktop-dark .mobile-screen--warehouse-query .wq-search-shell {
  background: #1e2430;
  border-color: #252c38;
  box-shadow: 0 4px 11px rgba(0, 0, 0, 0.3);
}
html.desktop-dark .mobile-screen--warehouse-query .wq-search-shell .search-icon { color: #7a8290; }
html.desktop-dark .wq-keyword-input { color: #e8ecf2; }
html.desktop-dark .wq-keyword-input::placeholder { color: #5f6878; }
html.desktop-dark .wq-search-btn { background: #d6ad5f; color: #0b0e11; }
html.desktop-dark .wq-search-btn:active:not(:disabled) { opacity: 0.85; }

/* 候选结果 */
html.desktop-dark .wq-candidate-item {
  background: #1a1f28;
  border-color: #252c38;
  color: #d1d5db;
}
html.desktop-dark .wq-candidate-item-active {
  background: rgba(214, 173, 95, 0.14);
  border-color: rgba(214, 173, 95, 0.36);
  color: #d6ad5f;
}

/* 快捷卡片 */
html.desktop-dark .wq-quick-card {
  border-color: #252c38;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}
html.desktop-dark .wq-quick-card-monitor {
  background: linear-gradient(135deg, rgba(214, 173, 95, 0.16), rgba(26, 31, 40, 0.92));
  border-color: rgba(214, 173, 95, 0.35);
}
html.desktop-dark .wq-quick-card-model {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(26, 31, 40, 0.92));
  border-color: rgba(255, 255, 255, 0.1);
}
html.desktop-dark .wq-quick-label { color: #7a8290; }
html.desktop-dark .wq-quick-value-blue { color: #d6ad5f; }
html.desktop-dark .wq-quick-value-green { color: #e8ecf2; }

/* 查询结果面板 */
html.desktop-dark .wq-result-head {
  background: linear-gradient(135deg, rgba(214, 173, 95, 0.18) 0%, rgba(214, 173, 95, 0.06) 100%);
  border-bottom-color: rgba(214, 173, 95, 0.14);
}
html.desktop-dark .wq-result-ai-tag {
  color: #f0b35a;
  background: rgba(255, 159, 10, 0.14);
  border-color: rgba(255, 159, 10, 0.3);
}
html.desktop-dark .wq-result-hot-tag {
  color: #ff7b72;
  background: rgba(255, 59, 48, 0.14);
  border-color: rgba(255, 59, 48, 0.3);
}
html.desktop-dark .wq-result-tag { background: #d6ad5f; color: #0b0e11; }
html.desktop-dark .wq-metric-item {
  background: #1a1f28;
  border-color: #252c38;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.18);
}
html.desktop-dark .wq-metric-label { color: #7a8290; }
html.desktop-dark .wq-metric-value { color: #e8ecf2; }

/* 持仓分布 / 历史表 */
html.desktop-dark .wq-distribution-title,
html.desktop-dark .wq-history-title { color: #e8ecf2; }
html.desktop-dark .wq-dist-row,
html.desktop-dark .wq-hist-row {
  background: #1a1f28;
  border-top-color: #252c38;
  color: #c7cbd3;
}
html.desktop-dark .wq-dist-head,
html.desktop-dark .wq-hist-head { background: rgba(214, 173, 95, 0.08); }
html.desktop-dark .wq-dist-head .wq-col-bucket,
html.desktop-dark .wq-dist-head .wq-col-count,
html.desktop-dark .wq-dist-head .wq-col-ratio,
html.desktop-dark .wq-hist-head .wq-hist-col-time,
html.desktop-dark .wq-hist-head .wq-hist-col-holder,
html.desktop-dark .wq-hist-head .wq-hist-col-total,
html.desktop-dark .wq-hist-head .wq-hist-col-avg,
html.desktop-dark .wq-hist-head .wq-hist-col-star { color: #7a8290; }
html.desktop-dark .wq-col-bucket,
html.desktop-dark .wq-col-count,
html.desktop-dark .wq-col-ratio,
html.desktop-dark .wq-hist-col-time,
html.desktop-dark .wq-hist-col-holder,
html.desktop-dark .wq-hist-col-total,
html.desktop-dark .wq-hist-col-avg { color: #c7cbd3; }
html.desktop-dark .wq-hist-col-star { color: #f2d680; }
html.desktop-dark .wq-history-empty {
  color: #7a8290;
  border-color: rgba(255, 255, 255, 0.14);
}
html.desktop-dark .wq-history-error-row {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}
html.desktop-dark .wq-history-error-text { color: #ff7b72; }
html.desktop-dark .wq-history-refresh-btn { background: #d6ad5f; color: #0b0e11; }
html.desktop-dark .wq-history-loading-alert {
  background: rgba(214, 173, 95, 0.1);
  border-color: rgba(214, 173, 95, 0.3);
}
html.desktop-dark .wq-history-loading-highlight { color: #d6ad5f; }
html.desktop-dark .wq-history-loading-desc { color: #9aa1ab; }

/* 页脚品牌 */
html.desktop-dark .wq-footer-brand-tagline { color: #505766; }

/* ── 3. 分区查星（segment-star） ── */
html.desktop-dark .wq-seg-star-module {
  background: rgba(26, 31, 40, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(255, 255, 255, 0.08);
}
html.desktop-dark .wq-seg-star-title,
html.desktop-dark .wq-seg-picker-value,
html.desktop-dark .wq-seg-section-title,
html.desktop-dark .wq-seg-card-name,
html.desktop-dark .wq-star-badge-count { color: #e8ecf2; }
html.desktop-dark .wq-seg-picker {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
html.desktop-dark .wq-seg-picker:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
html.desktop-dark .wq-seg-picker-label,
html.desktop-dark .wq-seg-section-badge,
html.desktop-dark .wq-seg-card-total { color: #9aa1ab; }
html.desktop-dark .wq-seg-picker-arrow { color: #505766; }
html.desktop-dark .wq-seg-card-index { background: rgba(255, 255, 255, 0.08); color: #9aa1ab; }
html.desktop-dark .wq-seg-section-badge,
html.desktop-dark .wq-seg-card-total { background: rgba(255, 255, 255, 0.07); }
html.desktop-dark .wq-seg-query-btn { background: rgba(255, 255, 255, 0.06); color: #e8ecf2; }
html.desktop-dark .wq-seg-query-btn:active:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
html.desktop-dark .wq-seg-query-btn-active { background: #d6ad5f; color: #0b0e11; }
html.desktop-dark .wq-seg-card {
  background: rgba(26, 31, 40, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}
html.desktop-dark .wq-seg-empty {
  background: rgba(26, 31, 40, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  color: #9aa1ab;
}

/* 分区选择 Sheet */
html.desktop-dark .wq-selector-sheet {
  background: rgba(26, 31, 40, 0.96);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}
html.desktop-dark .wq-selector-handle { background: rgba(255, 255, 255, 0.2); }
html.desktop-dark .wq-selector-head { border-bottom-color: rgba(255, 255, 255, 0.1); }
html.desktop-dark .wq-selector-title { color: #e8ecf2; }
html.desktop-dark .wq-selector-subtitle { color: #9aa1ab; }
html.desktop-dark .wq-selector-option { border-bottom-color: rgba(255, 255, 255, 0.08); }
html.desktop-dark .wq-selector-option:active { background: rgba(255, 255, 255, 0.06); }
html.desktop-dark .wq-selector-option-label { color: #d1d5db; }
html.desktop-dark .wq-selector-option-active { background: rgba(214, 173, 95, 0.14); }
html.desktop-dark .wq-selector-option-active .wq-selector-option-label { color: #d6ad5f; }

/* ── 4. 排行榜（leaderboard） ── */
html.desktop-dark .wq-lb-hero {
  background: #1a1f28;
  border-color: #252c38;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
html.desktop-dark .wq-lb-hero-title,
html.desktop-dark .wq-lb-name { color: #e8ecf2; }
html.desktop-dark .wq-lb-hero-subtitle,
html.desktop-dark .wq-lb-hint,
html.desktop-dark .wq-lb-loading,
html.desktop-dark .wq-lb-empty { color: #7a8290; }
html.desktop-dark .wq-lb-hero-meta {
  background: #1a1f28;
  border-color: rgba(214, 173, 95, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html.desktop-dark .wq-lb-hero-meta-label { color: #7a8290; }
html.desktop-dark .wq-lb-tabs { background: #1a1f28; }
html.desktop-dark .wq-lb-tab { color: #7a8290; }
html.desktop-dark .wq-lb-tab-active {
  background: #252c38;
  color: #d6ad5f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
html.desktop-dark .wq-lb-row {
  background: #1a1f28;
  border-color: #252c38;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
html.desktop-dark .wq-lb-rank { background: #1e2430; color: #9aa1ab; }
html.desktop-dark .wq-lb-count {
  background: rgba(214, 173, 95, 0.14);
  border-color: rgba(214, 173, 95, 0.32);
  color: #d6ad5f;
}
html.desktop-dark .wq-lb-loading,
html.desktop-dark .wq-lb-empty { background: #1a1f28; }
html.desktop-dark .wq-lb-error-text { color: #ff7b72; }

/* ── 5. 历史页（history） ── */
html.desktop-dark .wq-hist-overview {
  background: linear-gradient(145deg, rgba(26, 31, 40, 0.96), rgba(26, 31, 40, 0.9));
  border-color: rgba(214, 173, 95, 0.24);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
html.desktop-dark .wq-hist-overview-kicker { color: #7a8290; }
html.desktop-dark .wq-hist-overview-title { color: #e8ecf2; }
html.desktop-dark .wq-hist-overview-count {
  color: #d6ad5f;
  background: rgba(214, 173, 95, 0.14);
  border-color: rgba(214, 173, 95, 0.3);
}
html.desktop-dark .wq-hist-record {
  background: #1a1f28;
  border-color: rgba(214, 173, 95, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
html.desktop-dark .wq-hist-record-expanded {
  border-color: rgba(214, 173, 95, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #1a1f28 0%, #14181f 100%);
}
html.desktop-dark .wq-hist-record-title,
html.desktop-dark .wq-hist-result-title { color: #e8ecf2; }
html.desktop-dark .wq-hist-record-time,
html.desktop-dark .wq-hist-metric-label,
html.desktop-dark .wq-hist-meta,
html.desktop-dark .wq-hist-source-note { color: #7a8290; }
html.desktop-dark .wq-hist-record-del {
  background: #1a1f28;
  border-color: #2d3542;
}
html.desktop-dark .wq-hist-record-del:active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
}
html.desktop-dark .wq-hist-record-body { border-top-color: rgba(214, 173, 95, 0.2); }
html.desktop-dark .wq-hist-result-ai-tag {
  color: #f0b35a;
  background: rgba(255, 159, 10, 0.14);
  border-color: rgba(255, 159, 10, 0.3);
}
html.desktop-dark .wq-hist-result-hot-tag {
  color: #ff7b72;
  background: rgba(255, 59, 48, 0.14);
  border-color: rgba(255, 59, 48, 0.3);
}
html.desktop-dark .wq-hist-result-tag {
  background: rgba(214, 173, 95, 0.14);
  color: #d6ad5f;
}
html.desktop-dark .wq-hist-metric-item,
html.desktop-dark .wq-hist-dist-row,
html.desktop-dark .wq-hist-sub-row {
  background: #1a1f28;
  border-color: #252c38;
}
html.desktop-dark .wq-hist-metric-value,
html.desktop-dark .wq-hist-dist-title,
html.desktop-dark .wq-hist-sub-title { color: #e8ecf2; }
html.desktop-dark .wq-hist-dist-head,
html.desktop-dark .wq-hist-sub-head { color: #7a8290; }
html.desktop-dark .wq-hist-col-bucket { color: #c7cbd3; }
html.desktop-dark .wq-hist-col-count,
html.desktop-dark .wq-hist-col-ratio,
html.desktop-dark .wq-hist-sub-col-holder,
html.desktop-dark .wq-hist-sub-col-total,
html.desktop-dark .wq-hist-sub-col-avg { color: #9aa1ab; }
html.desktop-dark .wq-hist-sub-col-time { color: #c7cbd3; }
html.desktop-dark .wq-hist-sub-col-star { color: #f2d680; }
html.desktop-dark .wq-hist-sub-empty { color: #7a8290; }
html.desktop-dark .wq-hist-empty { background: #1a1f28; color: #7a8290; }

/* ── 6. 弹层 / 提示 ── */
html.desktop-dark .wq-modal-panel {
  background: #1a1f28;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
html.desktop-dark .wq-modal-head,
html.desktop-dark .wq-modal-actions { border-color: #252c38; }
html.desktop-dark .wq-modal-title { color: #d1d5db; }
html.desktop-dark .wq-modal-subtitle { color: #7a8290; }
html.desktop-dark .wq-modal-qr-placeholder {
  background: #1a1f28;
  border-color: #252c38;
  color: #7a8290;
}
html.desktop-dark .wq-modal-qr-desc { color: #9aa1ab; }
html.desktop-dark .wq-modal-cancel-btn { background: #1a1f28; color: #9aa1ab; }
html.desktop-dark .wq-modal-cancel-btn:active { background: #1f2632; }
html.desktop-dark .wq-modal-panel--confirm .wq-modal-confirm-text { color: #9aa1ab; }
html.desktop-dark .wq-modal-panel--confirm .wq-modal-confirm-text strong { color: #e8ecf2; }
html.desktop-dark .wq-modal-mask { background: rgba(0, 0, 0, 0.6); }
html.desktop-dark .wq-loading-overlay { background: rgba(11, 14, 17, 0.8); }
html.desktop-dark .wq-loading-text { color: #d1d5db; }

/* ── 7. 藏品详情页 ── */
html.desktop-dark .collection-detail-page .detail-section,
html.desktop-dark .collection-detail-page .market-orders-section { background: #0b0e11; }
html.desktop-dark .collection-detail-page .detail-tab-shell {
  background: rgba(11, 14, 17, 0.88) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html.desktop-dark .collection-detail-page .detail-tab-shell::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0.5;
}
html.desktop-dark .collection-detail-page .detail-tab-item { color: #7a8290; }
html.desktop-dark .collection-detail-page .detail-tab-item--active { color: #d6ad5f; }
html.desktop-dark .collection-detail-page .sticky-collection-row {
  background: #1a1f28;
  border-color: #252c38;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}
html.desktop-dark .collection-detail-page .sticky-collection-name { color: #d1d5db; }
html.desktop-dark .collection-detail-page .sticky-collection-price { color: #d6ad5f; }
html.desktop-dark .collection-detail-page .collection-hero-mask {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.08) 40%, rgba(11, 14, 17, 0.9) 78%, #0b0e11 100%);
}
html.desktop-dark .collection-detail-page .collection-hero-tag-label { background: #d6ad5f; color: #0b0e11; }
html.desktop-dark .collection-detail-page .collection-hero-tag-value { background: rgba(26, 31, 40, 0.92); color: #d1d5db; }
html.desktop-dark .collection-detail-page .collection-back-btn {
  background: rgba(26, 31, 40, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d1d5db;
}
html.desktop-dark .collection-detail-page .wq-panel,
html.desktop-dark .collection-detail-page .sample-panel,
html.desktop-dark .collection-detail-page .sample-result-panel,
html.desktop-dark .collection-detail-page .nt-trade-dashboard-card,
html.desktop-dark .collection-detail-page .nt-chart-panel,
html.desktop-dark .collection-detail-page .market-orders-panel {
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  background: rgba(26, 31, 40, 0.96);
}
html.desktop-dark .collection-detail-page .sample-meta { color: #7a8290; }
html.desktop-dark .collection-detail-page .meta-buy-btn { background: #d6ad5f; color: #0b0e11; }
html.desktop-dark .collection-detail-page .sample-btn-row .wq-search-btn { background: #d6ad5f; color: #0b0e11; }
html.desktop-dark .collection-detail-page .sample-btn-row .wq-history-btn { background: #1e2430; color: #d1d5db; }
html.desktop-dark .collection-detail-page .wq-segment-star-btn {
  background: #1a1f28;
  color: #d1d5db;
  border-color: #2d3542;
}
html.desktop-dark .collection-detail-page .quick-action-card-monitor {
  background: #1a1f28;
  border-color: rgba(214, 173, 95, 0.32);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
html.desktop-dark .collection-detail-page .quick-action-card-model {
  background: #1a1f28;
  border-color: rgba(52, 199, 89, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
html.desktop-dark .collection-detail-page .quick-action-label { color: #7a8290; }
html.desktop-dark .collection-detail-page .quick-action-value { color: #d6ad5f; }
html.desktop-dark .collection-detail-page .quick-action-value-link { color: #34c759; }
html.desktop-dark .collection-detail-page .card-link-title { color: #d1d5db; }
html.desktop-dark .collection-detail-page .card-link-box {
  background: #1a1f28;
  border-color: #2d3542;
}
html.desktop-dark .collection-detail-page .card-link-input { color: #9aa1ab; }
html.desktop-dark .collection-detail-page .card-link-badge {
  background: rgba(214, 173, 95, 0.14);
  border-color: rgba(214, 173, 95, 0.3);
  color: #d6ad5f;
}

/* 查询结果面板（藏品详情内） */
html.desktop-dark .collection-detail-page .result-panel .result-title { color: #e8ecf2; }
html.desktop-dark .collection-detail-page .result-panel .metric-item,
html.desktop-dark .collection-detail-page .result-panel .distribution-row,
html.desktop-dark .collection-detail-page .result-panel .history-row {
  background: #1a1f28;
  border-color: #252c38;
}
html.desktop-dark .collection-detail-page .result-panel .metric-label,
html.desktop-dark .collection-detail-page .result-panel .meta,
html.desktop-dark .collection-detail-page .result-panel .result-tip,
html.desktop-dark .collection-detail-page .result-panel .result-source-note { color: #7a8290; }
html.desktop-dark .collection-detail-page .result-panel .metric-value { color: #e8ecf2; }
html.desktop-dark .collection-detail-page .result-panel .result-ai-tag {
  color: #f0b35a;
  background: rgba(255, 159, 10, 0.14);
  border-color: rgba(255, 159, 10, 0.3);
}
html.desktop-dark .collection-detail-page .result-panel .result-hot-tag {
  color: #ff7b72;
  background: rgba(255, 59, 48, 0.14);
  border-color: rgba(255, 59, 48, 0.3);
}
html.desktop-dark .collection-detail-page .result-panel .result-tag {
  background: rgba(214, 173, 95, 0.14);
  color: #d6ad5f;
}
html.desktop-dark .collection-detail-page .result-panel .col-bucket { color: #c7cbd3; }
html.desktop-dark .collection-detail-page .result-panel .col-count,
html.desktop-dark .collection-detail-page .result-panel .col-ratio { color: #9aa1ab; }
html.desktop-dark .collection-detail-page .result-panel .distribution-head .col-bucket,
html.desktop-dark .collection-detail-page .result-panel .distribution-head .col-count,
html.desktop-dark .collection-detail-page .result-panel .distribution-head .col-ratio { color: #7a8290; }
html.desktop-dark .collection-detail-page .result-panel .history-col-time { color: #c7cbd3; }
html.desktop-dark .collection-detail-page .result-panel .history-col-holder,
html.desktop-dark .collection-detail-page .result-panel .history-col-total,
html.desktop-dark .collection-detail-page .result-panel .history-col-avg,
html.desktop-dark .collection-detail-page .result-panel .history-col-star { color: #9aa1ab; }
html.desktop-dark .collection-detail-page .result-panel .history-head .history-col-time,
html.desktop-dark .collection-detail-page .result-panel .history-head .history-col-holder,
html.desktop-dark .collection-detail-page .result-panel .history-head .history-col-total,
html.desktop-dark .collection-detail-page .result-panel .history-head .history-col-avg,
html.desktop-dark .collection-detail-page .result-panel .history-head .history-col-star { color: #7a8290; }
html.desktop-dark .collection-detail-page .result-panel .history-empty { color: #7a8290; }
html.desktop-dark .collection-detail-page .result-panel .history-error-text { color: #ff7b72; }
html.desktop-dark .collection-detail-page .result-panel .history-loading-highlight {
  border-color: rgba(214, 173, 95, 0.35);
  background: rgba(214, 173, 95, 0.12);
  color: #d6ad5f;
}
html.desktop-dark .collection-detail-page .result-panel .sample-btn.verify-btn {
  background: #d6ad5f;
  color: #0b0e11;
}

/* 骨架屏 / 状态提示 */
html.desktop-dark .collection-detail-page .detail-state-hint { color: #7a8290; }
html.desktop-dark .detail-skeleton,
html.desktop-dark .skeleton-table {
  background: #1a1f28;
  border-color: #252c38;
}
html.desktop-dark .skeleton-row { border-bottom-color: #252c38; }
html.desktop-dark .skeleton-cell {
  background: linear-gradient(90deg, #1f2632 25%, #1a1f28 50%, #1f2632 75%);
  background-size: 400px 100%;
}

/* 历史收盘表 */
html.desktop-dark .history-table-scroll-wrap,
html.desktop-dark .history-table-scroll,
html.desktop-dark .history-table,
html.desktop-dark .history-table-head,
html.desktop-dark .history-table-th,
html.desktop-dark .history-fixed-time-pane,
html.desktop-dark .history-fixed-time-head,
html.desktop-dark .history-fixed-time-body,
html.desktop-dark .history-time-sticky { background: #1a1f28; }
html.desktop-dark .history-table-th {
  color: #7a8290;
  border-bottom-color: #252c38;
}
html.desktop-dark .history-table-td { color: #c7cbd3; }
html.desktop-dark .history-table-cell { border-bottom-color: #252c38; }
html.desktop-dark .history-time-sticky,
html.desktop-dark .history-fixed-time-pane { border-right-color: #252c38; }
html.desktop-dark .history-table-summary-cell,
html.desktop-dark .history-summary-cell { background: rgba(214, 173, 95, 0.07); }
html.desktop-dark .history-table-summary-row,
html.desktop-dark .history-summary-row { border-top-color: #2d3542; }
html.desktop-dark .history-table-summary-row .history-table-value,
html.desktop-dark .history-table-summary-row .history-table-time,
html.desktop-dark .history-summary-row .history-table-value,
html.desktop-dark .history-summary-row .history-table-time { color: #d6ad5f; }
html.desktop-dark .history-right-mask {
  background: linear-gradient(90deg, rgba(11, 14, 17, 0.95) 0%, transparent 100%);
}
html.desktop-dark .history-cell-hint { color: #7a8290; }
html.desktop-dark .history-record-time-hint { color: #505766; }

/* 挂单求购数（mo-*） */
html.desktop-dark .market-orders-row {
  background: #1a1f28;
  border-top-color: #252c38;
  color: #c7cbd3;
}
html.desktop-dark .market-orders-row:not(.market-orders-row-head):nth-child(even) { background: #161b23; }
html.desktop-dark .market-orders-row-head {
  background: #1a1f28;
  color: #7a8290;
  border-top-color: #252c38;
}
html.desktop-dark .market-orders-row-head .market-orders-col-price,
html.desktop-dark .market-orders-row-head .market-orders-col-dist,
html.desktop-dark .market-orders-row-head .market-orders-col-wallet,
html.desktop-dark .market-orders-row-head .market-orders-col-count-new { color: #7a8290; }
html.desktop-dark .market-orders-col-price,
html.desktop-dark .market-orders-col-dist,
html.desktop-dark .market-orders-col-wallet,
html.desktop-dark .market-orders-col-count-new { color: #c7cbd3; }
html.desktop-dark .mo-dist-bar { background: #2d3542; }
html.desktop-dark .mo-dist-pct { color: #7a8290; }
html.desktop-dark .mo-wallet-pill-fg { color: #f5a623; background: rgba(245, 158, 11, 0.16); }
html.desktop-dark .mo-wallet-pill-f { color: #4ade80; background: rgba(52, 199, 89, 0.16); }
html.desktop-dark .mo-wallet-pill-g { color: #7ab8ff; background: rgba(59, 130, 246, 0.16); }
html.desktop-dark .mo-wallet-simple-fg { color: #f5a623; background: rgba(245, 158, 11, 0.16); }
html.desktop-dark .mo-wallet-simple-f { color: #4ade80; background: rgba(52, 199, 89, 0.16); }
html.desktop-dark .mo-wallet-simple-g { color: #7ab8ff; background: rgba(59, 130, 246, 0.16); }
html.desktop-dark .mo-wallet-simple-none { color: #7a8290; background: #1a1f28; }
html.desktop-dark .mo-history-card {
  background: rgba(214, 173, 95, 0.1);
  border-color: rgba(214, 173, 95, 0.2);
}
html.desktop-dark .mo-history-collection { color: #d1d5db; }
html.desktop-dark .mo-history-time { color: #7a8290; }
html.desktop-dark .mo-price-buy { color: #4ade80; }
html.desktop-dark .mo-price-sell { color: #ff7b72; }
html.desktop-dark .mo-result-panel {
  background: #1a1f28;
  border-color: #252c38;
}
html.desktop-dark .mo-result-head {
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: #252c38;
}
html.desktop-dark .mo-result-range,
html.desktop-dark .mo-result-meta { color: #7a8290; }
html.desktop-dark .mo-result-total { color: #9aa1ab; }

/* ── 8. 活动图片数据监控页（announcements 列表 + 公告详情 + 藏品相关公告 col-ann-page 共用 ann-* 类） ── */
html.desktop-dark .announcements-page {
  background: #0b0e11;
  color: #d1d5db;
}
/* 悬浮玻璃工具栏 */
html.desktop-dark .ann-header {
  background: rgba(26, 31, 40, 0.92);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
/* 搜索框 */
html.desktop-dark .ann-search-shell {
  background: #1e2430;
  border-color: rgba(255, 255, 255, 0.08);
}
html.desktop-dark .ann-search-shell .search-icon { color: #7a8290; }
html.desktop-dark .ann-search-shell .search-input { color: #d1d5db; }
html.desktop-dark .ann-search-shell .search-input::placeholder { color: #505766; }
html.desktop-dark .ann-clear-btn {
  background: rgba(255, 255, 255, 0.18);
  color: #0b0e11;
}
/* 分类过滤条 */
html.desktop-dark .ann-filter-bar { background: rgba(255, 255, 255, 0.07); }
html.desktop-dark .ann-filter-item { color: #7a8290; }
html.desktop-dark .ann-filter-item--active {
  color: #d6ad5f;
  background: rgba(214, 173, 95, 0.14);
  border-color: rgba(214, 173, 95, 0.32);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
/* 搜索摘要 / 提示条 */
html.desktop-dark .ann-summary__text { color: #7a8290; }
html.desktop-dark .ann-summary__num { color: #d6ad5f; }
html.desktop-dark .search-tip {
  background: rgba(214, 173, 95, 0.10);
  border-color: rgba(214, 173, 95, 0.22);
  color: #b9c0cb;
}
/* 公告卡片 */
html.desktop-dark .ann-card {
  background: #1a1f28;
  border-color: #252c38;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
html.desktop-dark .ann-card .title { color: #e8ecf2; }
html.desktop-dark .ann-card .time { color: #7a8290; }
html.desktop-dark .ann-card__hint { color: #7a8290; }
html.desktop-dark .ann-card__chevron {
  background: rgba(255, 255, 255, 0.08);
  color: #7a8290;
}
/* 分类标签：暗底下提亮文字，保留半透明底色 */
html.desktop-dark .category-tag.tag-default { color: #d6ad5f; background: rgba(214, 173, 95, 0.14); border-color: rgba(214, 173, 95, 0.30); }
html.desktop-dark .category-tag.tag-synthesis { color: #c084fc; background: rgba(147, 51, 234, 0.16); border-color: rgba(147, 51, 234, 0.30); }
html.desktop-dark .category-tag.tag-activity { color: #fbbf24; background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.30); }
html.desktop-dark .category-tag.tag-rule { color: #2dd4bf; background: rgba(20, 184, 166, 0.16); border-color: rgba(20, 184, 166, 0.30); }
html.desktop-dark .category-tag.tag-maintenance { color: #f87171; background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.28); }
html.desktop-dark .category-tag.tag-risk { color: #94a3b8; background: rgba(100, 116, 139, 0.16); border-color: rgba(100, 116, 139, 0.30); }
html.desktop-dark .calc-done-tag {
  color: #4ade80;
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.30);
}
/* 加载 / 加载更多 / 到底 */
html.desktop-dark .ann-loading__text { color: #7a8290; }
html.desktop-dark .ann-load-more {
  background: #1e2430;
  border-color: #252c38;
}
html.desktop-dark .ann-load-more:active { background: #161b23; }
html.desktop-dark .ann-load-more__text { color: #9aa3b2; }
html.desktop-dark .ann-no-more__divider { background: rgba(255, 255, 255, 0.12); }
html.desktop-dark .ann-no-more__text { color: #7a8290; }
/* 空态（活动图片监控等页面共用） */
html.desktop-dark .empty-state {
  background: rgba(26, 31, 40, 0.9);
  border-color: #252c38;
  color: #7a8290;
}

/* ════════════════════════════════════════════════════════════════════════
   desktop-dark 背景统一补丁 —— 补齐爬仓数据 / 藏品详情残留的浅色表面
   （逐项扫描暗色主题遗漏：藏品 Hero 灰带 #d9dee6、封面白框、奶油搜索条
    #FFF8EB、白底小卡片、挂单求购进度卡片等；统一换用暗色色板
    #1a1f28 / #14181f / #252c38，与其余模块背景一致。）
   ════════════════════════════════════════════════════════════════════════ */

/* ── 藏品详情：Hero 灰带 #d9dee6 → 暗底（主题此前只盖了蒙版，没盖底带） ── */
html.desktop-dark .collection-hero,
html.desktop-dark .collection-hero-bg { background: #1a1f28; }
/* 封面白框 → 暗色相框 */
html.desktop-dark .collection-hero-cover,
html.desktop-dark .collection-detail-page .collection-hero-cover {
  border-color: #252c38;
  background: #14181f;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.45);
}
/* 悬浮藏品条小封面占位 */
html.desktop-dark .collection-detail-page .sticky-collection-cover { background: #14181f; }
/* 卡片直链模块白卡 */
html.desktop-dark .collection-detail-page .sample-card-link-module {
  background: #1a1f28;
  border-color: #252c38;
}

/* ── 藏品详情：挂单求购进度卡片（mo-progress-*） ── */
html.desktop-dark .mo-progress-card-c {
  background: #1a1f28;
  border-color: #252c38;
}
html.desktop-dark .mo-progress-ring-c-bg { background: #252c38; }
html.desktop-dark .mo-progress-ring-c-mask { background: #14181f; }
html.desktop-dark .mo-progress-title-c { color: #e8ecf2; }
html.desktop-dark .mo-progress-stats-c { color: #7a8290; }
html.desktop-dark .mo-progress-stat-val { color: #d1d5db; }
html.desktop-dark .mo-progress-stop-btn {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.30);
  color: #ff7b72;
}
html.desktop-dark .mo-progress-stop-btn:disabled {
  background: #1e2430;
  border-color: #252c38;
  color: #505766;
}
html.desktop-dark .mo-query-btn-buy {
  color: #4ade80;
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.30);
}
html.desktop-dark .mo-query-btn-sell {
  color: #ff7b72;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.30);
}
html.desktop-dark .mo-query-btn-buy:disabled,
html.desktop-dark .mo-query-btn-sell:disabled {
  color: rgba(255, 255, 255, 0.28);
  background: #1e2430;
  border-color: #252c38;
}
/* 求购时间行：暗底改用浅色分隔线 / 斑马纹 */
html.desktop-dark .mo-time-row { border-top-color: rgba(255, 255, 255, 0.07); }
html.desktop-dark .mo-time-row:not(.mo-time-row-head):nth-child(even) { background: rgba(255, 255, 255, 0.03); }
html.desktop-dark .mo-time-row:not(.mo-time-row-head):active { background: rgba(255, 255, 255, 0.06); }
html.desktop-dark .mo-time-row-head {
  background: rgba(255, 255, 255, 0.05);
  border-top-color: rgba(255, 255, 255, 0.09);
}

/* ── 爬仓数据：历史记录顶部搜索条 / 胶囊（奶油色 #FFF8EB → 暗金玻璃） ── */
html.desktop-dark .history-only-search-panel {
  background: rgba(214, 173, 95, 0.10);
  border-color: rgba(214, 173, 95, 0.28);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}
html.desktop-dark .history-only-search-title { color: #d1d5db; }
html.desktop-dark .history-only-search-pill {
  background: #1a1f28;
  border-color: rgba(214, 173, 95, 0.32);
}
html.desktop-dark .history-only-search-pill-text { color: #d6ad5f; }

/* ── 藏品相关公告：奶油 Hero 渐变 → 暗金渐变 ── */
html.desktop-dark .col-ann-hero {
  background: linear-gradient(135deg, rgba(214, 173, 95, 0.18) 0%, rgba(214, 173, 95, 0.08) 50%, rgba(26, 31, 40, 0.9) 100%);
  border: 1px solid rgba(214, 173, 95, 0.18);
}
html.desktop-dark .col-ann-hero-cover { background: #14181f; }
html.desktop-dark .col-ann-hero-title { color: #e8ecf2; }
html.desktop-dark .col-ann-hero-floor { color: #d6ad5f; }
html.desktop-dark .col-ann-hero-back {
  background: rgba(255, 255, 255, 0.08);
  color: #9aa1ab;
}
html.desktop-dark .col-ann-hero-back:active { background: rgba(255, 255, 255, 0.14); }

/* ════════════════════════════════════════════════════════════════
   IB自助科技（/mobile/tech2）内嵌桌面暗色适配
   桌面端「IB自助科技」模块通过同源 iframe 内嵌 tech2 认证页（登录/注册/续卡）
   与任务中心 hub（任务管理/数据/设置）。两页默认样式为硬编码亮色
   （.tech2-page-wrap #f5f5f7 / 卡片 #fff），此处统一覆盖为黑金桌面同款
   底色 #0b0e11、面板 #1a1f28、输入框 #1e2430、边框 #252c38、
   主文本 #e8ecf2、次级文本 #7a8290、金色强调 #d6ad5f。
   ════════════════════════════════════════════════════════════════ */
html.desktop-dark {
  --bg-page: #0b0e11;
  --bg-card: #1a1f28;
  --bg-soft: #1e2430;
  --text-main: #e8ecf2;
  --text-second: #9aa1ab;
  --text-third: #7a8290;
  --line: #252c38;
}
html.desktop-dark body,
html.desktop-dark #mobile-app,
html.desktop-dark .mobile-screen,
html.desktop-dark .mobile-auth {
  background: #0b0e11;
  color: #e8ecf2;
}
html.desktop-dark .tech2-page-wrap { background: #0b0e11; }
html.desktop-dark .tech2-auth-form-card { background: #14181f; border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 11px 26px rgba(0, 0, 0, 0.35), 0 3px 9px rgba(0, 0, 0, 0.25); }
html.desktop-dark .tech2-auth-mode-switch { background: #1e2430; }
html.desktop-dark .tech2-auth-mode-item { color: #7a8290; }
html.desktop-dark .tech2-auth-mode-item--active { color: #e8ecf2; }
html.desktop-dark .tech2-auth-mode-slider { background: #252c38; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
html.desktop-dark .tech2-auth-field__label { color: #7a8290; }
html.desktop-dark .tech2-auth-field__input-wrap { border-color: #252c38; background: #1e2430; }
html.desktop-dark .tech2-auth-field__input-wrap:focus-within { border-color: #d6ad5f; background: #1a1f28; }
html.desktop-dark .tech2-auth-field__input { color: #e8ecf2; }
html.desktop-dark .tech2-auth-field__input::placeholder { color: #5d6675; }
html.desktop-dark .tech2-auth-remember__text { color: #7a8290; }
html.desktop-dark .tech2-auth-remember__checkbox { border-color: #2f3744; background: #1e2430; }
html.desktop-dark .tech2-auth-btn-experience { background: #1e2430; border-color: rgba(214, 173, 95, 0.5); }
html.desktop-dark .tech2-auth-btn-experience__text { color: #f0d080; }
html.desktop-dark .tech2-auth-footer__logo { border-color: #252c38; }
html.desktop-dark .tech2-auth-footer__name { color: #d1d5db; }
html.desktop-dark .tech2-auth-footer__tagline { color: #7a8290; }
html.desktop-dark .tech2-error-modal__message { color: #e8ecf2; }
html.desktop-dark .hub-wrap { background: #0b0e11; }
html.desktop-dark .settings-card,
html.desktop-dark .head-card,
html.desktop-dark .data-card,
html.desktop-dark .empty-card { background: #1a1f28; border-color: #252c38; box-shadow: 0 7px 18px rgba(0, 0, 0, 0.35); }
html.desktop-dark .hub-tabbar { background: rgba(11, 14, 17, 0.86); }
html.desktop-dark .hub-tabbar-icon { background: rgba(255, 255, 255, 0.12); }
html.desktop-dark .hub-tabbar-text { color: #7a8290; }
html.desktop-dark .hub-tabbar-item.active .hub-tabbar-text { color: #d6ad5f; }
html.desktop-dark .tech2-error-modal__panel { background: #1a1f28; border-color: #252c38; color: #d1d5db; }

/* 任务中心：避免亮色表单控件在黑金工作区里形成突兀的白色断层。 */
html.desktop-dark .hub-wrap .tasktype-item {
  border-color: #2d3542;
  background: #1e2430;
}
html.desktop-dark .hub-wrap .tasktype-item.checked {
  border-color: #d6ad5f;
  background: rgba(214, 173, 95, 0.14);
  box-shadow: 0 2px 8px rgba(214, 173, 95, 0.16);
}
html.desktop-dark .hub-wrap .tasktype-text { color: #a9b0bc; }
html.desktop-dark .hub-wrap .tasktype-item.checked .tasktype-text { color: #f0d080; }
html.desktop-dark .hub-wrap .form-group .label { color: #9aa1ab; }
html.desktop-dark .hub-wrap .form-group .input,
html.desktop-dark .hub-wrap .select-trigger,
html.desktop-dark .hub-wrap .search-input {
  background: #1e2430;
  color: #e8ecf2;
}
html.desktop-dark .hub-wrap .form-group .input:focus,
html.desktop-dark .hub-wrap .select-trigger:active { background: #252c38; }
html.desktop-dark .hub-wrap .form-group .input::placeholder,
html.desktop-dark .hub-wrap .search-input::placeholder { color: #5f6878; }
html.desktop-dark .hub-wrap .select-value { color: #e8ecf2; }
html.desktop-dark .hub-wrap .select-arrow { color: #9aa1ab; }
html.desktop-dark .hub-wrap .dropdown-panel { background: #1a1f28; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34); }
html.desktop-dark .hub-wrap .search-row { border-bottom-color: #252c38; background: #14181f; }
html.desktop-dark .hub-wrap .search-row .search-input { background: #1e2430; }
html.desktop-dark .hub-wrap .option-item { color: #d1d5db; }
html.desktop-dark .hub-wrap .option-item:active { background: rgba(255, 255, 255, 0.08); }
html.desktop-dark .hub-wrap .option-empty { color: #7a8290; }
html.desktop-dark .hub-wrap .radio-item {
  border-color: #2d3542;
  background: #1e2430;
  color: #c7cbd3;
}
html.desktop-dark .hub-wrap .radio-item.checked {
  border-color: #d6ad5f;
  background: rgba(214, 173, 95, 0.14);
  color: #f0d080;
}
html.desktop-dark .hub-wrap .records-title { color: #e8ecf2; }
html.desktop-dark .hub-wrap .records-head .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #9aa1ab; }
html.desktop-dark .hub-wrap .action-btn { border-color: #2d3542; background: #1e2430; color: #d1d5db; }
html.desktop-dark .hub-wrap .action-btn-config { color: #8ab4ff; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); }
html.desktop-dark .hub-wrap .action-btn.danger { color: #ff8f87; background: rgba(255, 85, 74, 0.1); border-color: rgba(255, 85, 74, 0.24); }

/* 个人仓库 / 订单页通过同一个 iframe 进入，也必须保持同一套表面层级。 */
html.desktop-dark .ph-page { background: #0b0e11; color: #e8ecf2; }
html.desktop-dark .ph-hero,
html.desktop-dark .ph-tabs { background: #14181f; }
html.desktop-dark .ph-tabs { border-bottom-color: #252c38; }
html.desktop-dark .ph-nickname,
html.desktop-dark .ph-tab--active,
html.desktop-dark .ph-asset-name,
html.desktop-dark .ph-sold-name,
html.desktop-dark .ph-order-name,
html.desktop-dark .ph-price-val { color: #e8ecf2; }
html.desktop-dark .ph-uid-text,
html.desktop-dark .ph-state,
html.desktop-dark .ph-load-more,
html.desktop-dark .ph-asset-meta,
html.desktop-dark .ph-order-time { color: #7a8290; }
html.desktop-dark .ph-avatar,
html.desktop-dark .ph-asset-cover,
html.desktop-dark .ph-sold-cover,
html.desktop-dark .ph-order-cover { background: #1e2430; }
html.desktop-dark .ph-order-card { background: #1a1f28; border-color: #252c38; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); }
html.desktop-dark .ph-order-divider { background: #252c38; }
html.desktop-dark .ph-copy-icon,
html.desktop-dark .ph-copy-icon::after { border-color: #c7cbd3; }
html.desktop-dark .ph-order-uuid,
html.desktop-dark .ph-price-label { color: #9aa1ab; }
html.desktop-dark .ph-price-sym,
html.desktop-dark .ph-status-5 { color: #d1d5db; }
html.desktop-dark .ph-cancel-btn { border-color: #3a4350; background: #1e2430; color: #c7cbd3; }
html.desktop-dark .ph-pay-btn { background: rgba(214, 173, 95, 0.18); color: #f0d080; }
html.desktop-dark .ph-panel { background: #0b0e11; }

/* ════════════════════════════════════════════════════════════════
   藏品 K 线看板（/mobile/collection-kline）
   1:1 复刻小程序藏品详情页横屏模式的成交均价 K 线看板：
   深色同花顺式画布 + 顶部成交概览 + 粒度切换 + 十字定位/缩放交互。
   桌面端通过同源 iframe 内嵌，手机端直访同样生效。
   ════════════════════════════════════════════════════════════════ */
.kl-screen {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  min-height: 0;
  padding: 5px 7px;
  color: #f3f4f6;
  background: #101217;
  overflow: hidden;
}

.kl-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.kl-identity {
  display: flex;
  flex: 0 0 23%;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.kl-identity__cover {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #e7ebef;
  object-fit: cover;
}

.kl-identity__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.kl-identity__name,
.kl-identity__meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kl-identity__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kl-identity__meta {
  font-size: 10px;
  color: #9aa3b0;
}

.kl-overview {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.kl-overview__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 14px;
}

.kl-overview__title {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.kl-overview__update {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  color: #9aa3b0;
  line-height: 1.1;
}

.kl-overview__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 3px;
  width: 100%;
  font-size: 10px;
  line-height: 1.1;
}

.kl-overview__stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}

.kl-overview__stat text:first-child,
.kl-overview__stat span:first-child {
  font-size: 9px;
  color: #8d98a5;
}

.kl-overview__stat text:last-child,
.kl-overview__stat span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  color: #a8b2bf;
}

.kl-overview__stat--primary span:last-child { color: #f1cc7a; }
.kl-overview__stat--high span:last-child { color: #ef7777; }
.kl-overview__stat--low span:last-child { color: #4eb995; }

.kl-granularity {
  flex: 0 0 30%;
  box-sizing: border-box;
  align-self: center;
  text-align: right;
  white-space: nowrap;
  line-height: 1;
}

.kl-granularity-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 24px;
  margin-right: 3px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #1d2631;
  color: #a8b2bf;
  font-size: 10px;
  line-height: 1;
  vertical-align: top;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.kl-granularity-option--active {
  background: rgba(214, 173, 95, 0.20);
  color: #f1cc7a;
  font-weight: 700;
}

.kl-granularity-option--cooling { opacity: 0.55; pointer-events: none; }

.kl-switch-btn {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(214, 173, 95, 0.32);
  background: rgba(214, 173, 95, 0.10);
  color: #d6ad5f;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.kl-switch-btn:hover { background: rgba(214, 173, 95, 0.18); }

.kl-divider {
  flex: 0 0 1px;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.kl-body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding-top: 5px;
  display: flex;
  flex-direction: column;
}

.kl-empty {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex-direction: column;
  gap: 6px;
  color: #9aa3b0;
  font-size: 12px;
  text-align: center;
}

.kl-empty--error .kl-empty__title { color: #ff7b72; }

.kl-empty__title {
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 700;
}

.kl-login-link {
  margin-top: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(214, 173, 95, 0.16);
  border: 1px solid rgba(214, 173, 95, 0.34);
  color: #f1cc7a;
  font-size: 11px;
  cursor: pointer;
}

.kl-chart-card {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 4px 6px 2px;
  border: 1px solid #26313d;
  border-radius: 6px;
  background: #10151c;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
}

.kl-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 18px;
}

.kl-chart-head__title-group {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
}

.kl-chart-head__meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
  white-space: nowrap;
}

.kl-chart-title { font-size: 12px; font-weight: 750; color: #f1f5f9; }
.kl-chart-caption, .kl-chart-update { font-size: 10px; color: #8995a4; }

.kl-chart-range {
  flex-shrink: 0;
  padding: 3px 5px;
  border-radius: 999px;
  background: #1d2631;
  font-size: 10px;
  color: #a8b2bf;
  white-space: nowrap;
}

.kl-chart-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.kl-chart-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.kl-chart-note {
  display: block;
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 9.5px;
  color: #8995a4;
}

.kl-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  z-index: 60;
  max-width: 78%;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(30, 33, 40, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f5f5f7;
  font-size: 11px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.kl-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 藏品切换搜索面板（桌面端模块入口；打开时悬浮于看板上方） ── */
.kl-search-panel {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 30;
  box-sizing: border-box;
  width: min(340px, calc(100% - 12px));
  max-height: calc(100% - 16px);
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 8px;
  background: #181d26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.kl-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: #10151c;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.kl-search-icon { color: #8a93a1; font-size: 13px; }

.kl-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f1f5f9;
  font-size: 12px;
}

.kl-search-input::placeholder { color: #5f6b7a; }

.kl-search-clear {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #a8b2bf;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.kl-search-clear--hidden { display: none; }

.kl-search-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kl-search-hint {
  padding: 14px 4px;
  text-align: center;
  color: #7c8795;
  font-size: 11px;
}

.kl-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecf2;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.kl-search-item:hover { background: rgba(255, 255, 255, 0.09); }
.kl-search-item:active { background: rgba(255, 255, 255, 0.13); }

.kl-search-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kl-search-item__id {
  flex-shrink: 0;
  color: #7c8795;
  font-size: 10px;
}

/* ── 藏品 K 线浅色模式：黑白灰画布 + 极少量品牌黄 ── */
html.desktop-light-kline .kl-screen {
  color: #1c1c1e;
  background: #f7f7f8;
}
html.desktop-light-kline .kl-identity__cover { background: #f1f2f4; }
html.desktop-light-kline .kl-identity__meta,
html.desktop-light-kline .kl-overview__update { color: #8e8e93; }
html.desktop-light-kline .kl-overview__stat text:first-child,
html.desktop-light-kline .kl-overview__stat span:first-child { color: #8e8e93; }
html.desktop-light-kline .kl-overview__stat text:last-child,
html.desktop-light-kline .kl-overview__stat span:last-child { color: #3a3a3c; }
html.desktop-light-kline .kl-overview__stat--primary span:last-child { color: #8a641f; }
html.desktop-light-kline .kl-overview__stat--high span:last-child { color: #c83e35; }
html.desktop-light-kline .kl-overview__stat--low span:last-child { color: #138257; }
html.desktop-light-kline .kl-granularity-option {
  background: #f1f2f4;
  color: #6e6e73;
}
html.desktop-light-kline .kl-granularity-option--active {
  background: rgba(180, 137, 55, 0.10);
  color: #8a641f;
}
html.desktop-light-kline .kl-switch-btn {
  border-color: rgba(180, 137, 55, 0.30);
  background: rgba(180, 137, 55, 0.08);
  color: #8a641f;
}
html.desktop-light-kline .kl-switch-btn:hover { background: rgba(180, 137, 55, 0.14); }
html.desktop-light-kline .kl-divider { background: rgba(60, 60, 67, 0.14); }
html.desktop-light-kline .kl-empty { color: #8e8e93; }
html.desktop-light-kline .kl-empty--error .kl-empty__title { color: #c83e35; }
html.desktop-light-kline .kl-empty__title { color: #1c1c1e; }
html.desktop-light-kline .kl-login-link {
  background: rgba(180, 137, 55, 0.09);
  border-color: rgba(180, 137, 55, 0.30);
  color: #8a641f;
}
html.desktop-light-kline .kl-chart-card {
  border-color: #e1e1e6;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}
html.desktop-light-kline .kl-chart-title { color: #1c1c1e; }
html.desktop-light-kline .kl-chart-caption,
html.desktop-light-kline .kl-chart-update,
html.desktop-light-kline .kl-chart-note { color: #8e8e93; }
html.desktop-light-kline .kl-chart-range {
  background: #f1f2f4;
  color: #6e6e73;
}
html.desktop-light-kline .kl-search-panel {
  background: #ffffff;
  border-color: #e1e1e6;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
html.desktop-light-kline .kl-search-box {
  background: #f7f7f8;
  border-color: #d1d1d6;
}
html.desktop-light-kline .kl-search-icon,
html.desktop-light-kline .kl-search-hint { color: #8e8e93; }
html.desktop-light-kline .kl-search-input { color: #1c1c1e; }
html.desktop-light-kline .kl-search-input::placeholder { color: #8e8e93; }
html.desktop-light-kline .kl-search-clear {
  background: rgba(60, 60, 67, 0.10);
  color: #6e6e73;
}
html.desktop-light-kline .kl-search-item {
  background: #f7f7f8;
  color: #1c1c1e;
}
html.desktop-light-kline .kl-search-item:hover,
html.desktop-light-kline .kl-search-item:active { background: rgba(180, 137, 55, 0.08); }
html.desktop-light-kline .kl-search-item__id { color: #8e8e93; }

/* ════════════════════════════════════════════════════════════════════════
   Desktop v2 藏品详情模块：容器响应式 + 暗色视觉收口
   详情页不是一个“被缩放的手机页面”，而是模块内的弹性工作区：沿用 H5
   的单一滚动模型，Hero 随内容上移，标签栏到达模块顶部后吸顶，悬浮藏品
   信息与导航一起显现。拖动模块边界时，卡片、表格、图表仍以 iframe 的
   实际宽高重新排版。
   ════════════════════════════════════════════════════════════════════════ */

html.desktop-dark-collection,
html.desktop-dark-collection body,
html.desktop-dark-collection #mobile-app {
  min-height: 100%;
}

html.desktop-dark-collection body {
  overflow-x: hidden;
  overflow-y: auto;
}

html.desktop-dark-collection #mobile-app {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  background: #0b0e11;
}

html.desktop-dark-collection .collection-detail-page {
  display: block;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: visible;
  background: #0b0e11;
}

html.desktop-dark-collection .collection-detail-page .collection-hero {
  height: clamp(148px, 25vh, 190px);
  min-height: 148px;
}

html.desktop-dark-collection .collection-detail-page .detail-tab-shell {
  margin-top: clamp(48px, 8vh, 60px);
}

html.desktop-dark-collection .collection-detail-page .detail-tab-body {
  display: block;
  width: 100%;
  min-height: auto;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-color: auto;
  scrollbar-width: auto;
}

html.desktop-dark-collection .collection-detail-page .detail-section,
html.desktop-dark-collection .collection-detail-page .market-orders-section {
  width: 100%;
  min-height: 0;
  padding: clamp(8px, 1.5vw, 14px) clamp(10px, 1.8vw, 18px) 20px;
  background: #0b0e11;
}

html.desktop-dark-collection .collection-detail-page .wq-panel,
html.desktop-dark-collection .collection-detail-page .sample-panel,
html.desktop-dark-collection .collection-detail-page .sample-result-panel,
html.desktop-dark-collection .collection-detail-page .nt-trade-dashboard-card,
html.desktop-dark-collection .collection-detail-page .nt-chart-panel,
html.desktop-dark-collection .collection-detail-page .market-orders-panel {
  width: 100%;
  max-width: 100%;
}

/* 图表和统计表的浅色子元素统一为暗色表面，避免出现“黑底白卡/白字灰底”。 */
html.desktop-dark-collection .collection-detail-page .nt-summary-panel,
html.desktop-dark-collection .collection-detail-page .nt-chart-panel,
html.desktop-dark-collection .collection-detail-page .nt-trade-dashboard-card {
  background: #1a1f28;
  border-color: #252c38;
}

html.desktop-dark-collection .collection-detail-page .nt-chart-title,
html.desktop-dark-collection .collection-detail-page .nt-summary-eyebrow,
html.desktop-dark-collection .collection-detail-page .nt-summary-val,
html.desktop-dark-collection .collection-detail-page .nt-summary-stat,
html.desktop-dark-collection .collection-detail-page .nt-summary-item {
  color: #e8ecf2;
}

html.desktop-dark-collection .collection-detail-page .nt-chart-subtitle,
html.desktop-dark-collection .collection-detail-page .nt-chart-legend-item,
html.desktop-dark-collection .collection-detail-page .nt-granularity-label,
html.desktop-dark-collection .collection-detail-page .nt-chart-scale-label,
html.desktop-dark-collection .collection-detail-page .nt-chart-note,
html.desktop-dark-collection .collection-detail-page .nt-summary-caption,
html.desktop-dark-collection .collection-detail-page .nt-summary-freshness,
html.desktop-dark-collection .collection-detail-page .nt-summary-label,
html.desktop-dark-collection .collection-detail-page .nt-summary-time,
html.desktop-dark-collection .collection-detail-page .nt-catchup-tag {
  color: #7a8290;
}

html.desktop-dark-collection .collection-detail-page .nt-summary-range {
  background: #14181f;
  border: 1px solid #252c38;
}

html.desktop-dark-collection .collection-detail-page .nt-summary-val--price,
html.desktop-dark-collection .collection-detail-page .illiquid-trade-pager button {
  color: #d6ad5f;
}

html.desktop-dark-collection .collection-detail-page .nt-granularity-option {
  color: #9aa1ab;
  background: #1e2430;
}

html.desktop-dark-collection .collection-detail-page .nt-granularity-option--active,
html.desktop-dark-collection .collection-detail-page .nt-chart-switch--on {
  color: #0b0e11;
  background: #d6ad5f;
}

html.desktop-dark-collection .collection-detail-page .nt-chart-switch {
  background: #3a4350;
}

html.desktop-dark-collection .collection-detail-page .nt-chart-switch-thumb {
  background: #e8ecf2;
}

html.desktop-dark-collection .collection-detail-page .illiquid-trade-hint {
  color: #9aa1ab;
  background: #14181f;
  border: 1px solid #252c38;
}

html.desktop-dark-collection .collection-detail-page .illiquid-trade-table {
  border-color: #252c38;
  background: #1a1f28;
}

html.desktop-dark-collection .collection-detail-page .illiquid-trade-row {
  color: #c7cbd3;
  border-top-color: #252c38;
}

html.desktop-dark-collection .collection-detail-page .illiquid-trade-head {
  color: #7a8290;
  background: rgba(214, 173, 95, 0.08);
}

/* 挂单求购页的输入与页数选择器也纳入同一层级。 */
html.desktop-dark-collection .collection-detail-page .mo-token-input-wrap,
html.desktop-dark-collection .collection-detail-page .mo-page-opt {
  border-color: #252c38;
  background: #1e2430;
}

html.desktop-dark-collection .collection-detail-page .mo-token-input,
html.desktop-dark-collection .collection-detail-page .mo-page-opt {
  color: #d1d5db;
}

html.desktop-dark-collection .collection-detail-page .mo-token-input::placeholder {
  color: #5f6878;
}

html.desktop-dark-collection .collection-detail-page .mo-token-label,
html.desktop-dark-collection .collection-detail-page .mo-token-tip,
html.desktop-dark-collection .collection-detail-page .mo-page-label {
  color: #7a8290;
}

html.desktop-dark-collection .collection-detail-page .mo-page-opt-active {
  border-color: rgba(214, 173, 95, 0.5);
  background: rgba(214, 173, 95, 0.14);
  color: #d6ad5f;
}

html.desktop-dark-collection .collection-detail-page .mo-dist-fill-buy {
  background: linear-gradient(90deg, #34c759, #65df8a);
}

html.desktop-dark-collection .collection-detail-page .mo-dist-fill-sell {
  background: linear-gradient(90deg, #ff554a, #ff8179);
}

@media (max-height: 520px) {
  html.desktop-dark-collection .collection-detail-page .collection-hero {
    height: 132px;
    min-height: 132px;
  }

  html.desktop-dark-collection .collection-detail-page .detail-tab-shell {
    margin-top: 42px;
  }

  html.desktop-dark-collection .collection-detail-page .collection-hero-cover {
    width: 76px;
    height: 76px;
  }
}

/* mobile_peer_trade.css 的通用 .tab-body 默认是 grid + padding-top:52px，
   只适合超级 IB 的手机页。藏品详情复用该 class 后会出现顶部空白，且 grid
   的 place-items:center 会让卡片 shrink-to-fit。桌面详情页必须显式恢复正常
   块级流，并用内容区自身的左右 padding 提供留白。 */
html.desktop-dark .collection-detail-page .detail-tab-body {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  place-items: normal;
  align-items: normal;
  justify-items: normal;
}

html.desktop-dark .collection-detail-page .detail-section,
html.desktop-dark .collection-detail-page .market-orders-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px clamp(16px, 3vw, 32px) 20px;
}

html.desktop-dark .collection-detail-page .detail-section > * {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* 历史收盘：对齐小程序的“固定时间列 + 数据列横向滚动”结构。 */
.collection-detail-page .history-table-scroll-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
}

.collection-detail-page .history-table-scroll,
.collection-detail-page .history-table-scroll-x {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.collection-detail-page .history-table {
  display: block;
  width: max-content;
  min-width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.collection-detail-page .history-table-row {
  display: flex;
  width: max-content;
  min-width: 100%;
}

.collection-detail-page .history-table-cell {
  flex: 0 0 auto;
}

.collection-detail-page .history-time-col {
  flex: 0 0 var(--time-col-w);
  width: var(--time-col-w);
  min-width: var(--time-col-w);
  max-width: var(--time-col-w);
}

.collection-detail-page .history-data-col {
  flex: 0 0 var(--data-col-w);
  width: var(--data-col-w);
  min-width: var(--data-col-w);
  max-width: var(--data-col-w);
}

.collection-detail-page .history-total-batch-col {
  flex-basis: var(--total-batch-col-w);
  width: var(--total-batch-col-w);
  min-width: var(--total-batch-col-w);
  max-width: var(--total-batch-col-w);
}

.collection-detail-page .history-fixed-time-pane {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  width: var(--time-col-w);
  min-width: var(--time-col-w);
  max-width: var(--time-col-w);
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 8px 0 14px -13px rgba(0, 0, 0, .9);
}

.collection-detail-page .history-fixed-time-head,
.collection-detail-page .history-fixed-time-body,
.collection-detail-page .history-fixed-time-row {
  width: var(--time-col-w);
  min-width: var(--time-col-w);
  max-width: var(--time-col-w);
  box-sizing: border-box;
}

.collection-detail-page .history-right-mask {
  left: var(--time-col-w);
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 560px) {
  .collection-detail-page .history-table-scroll-wrap {
    border-radius: 12px;
  }

  .collection-detail-page .history-table-scroll-x {
    scrollbar-width: none;
  }

  .collection-detail-page .history-table-scroll-x::-webkit-scrollbar {
    display: none;
  }
}

/*
   H5 藏品详情页与桌面详情模块共享容器约束。
   mobile_peer_trade.css 的通用 .tab-body 默认使用 grid + padding-top:52px，
   会让详情标签页出现顶部空白，并通过 place-items:center 让内容按自身宽度收缩。
   详情页在手机端也应保持 100% 内容宽度，左右留白由内容区统一提供。
*/
.collection-detail-page {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.collection-detail-page .detail-tab-body {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  place-items: normal;
  align-items: normal;
  justify-items: normal;
}

.collection-detail-page .detail-section,
.collection-detail-page .market-orders-section {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  padding: clamp(10px, 3vw, 16px) clamp(12px, 4vw, 20px) calc(var(--tabbar-height) + 24px);
}

.collection-detail-page .detail-section > *,
.collection-detail-page .market-orders-section > * {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════════════════════
   Desktop v2 藏品详情浅色布局
   视觉直接复用 H5 浅色组件；这里只补 iframe 内的页面级滚动与全宽容器，
   避免手机端 tab-body 的默认网格和底部留白污染桌面二级页面。
   ════════════════════════════════════════════════════════════════════════ */
html.desktop-light-collection,
html.desktop-light-collection body,
html.desktop-light-collection #mobile-app {
  min-height: 100%;
}
html.desktop-light-collection body {
  overflow-x: hidden;
  overflow-y: auto;
}
html.desktop-light-collection #mobile-app {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  background: #f7f7f8;
}
html.desktop-light-collection .collection-detail-page {
  display: block;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: visible;
  background: #f7f7f8;
}
html.desktop-light-collection .collection-detail-page .collection-hero {
  height: clamp(148px, 25vh, 190px);
  min-height: 148px;
}
html.desktop-light-collection .collection-detail-page .detail-tab-shell {
  margin-top: clamp(48px, 8vh, 60px);
}
html.desktop-light-collection .collection-detail-page .detail-tab-body {
  display: block;
  width: 100%;
  min-height: auto;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-color: auto;
  scrollbar-width: auto;
}
html.desktop-light-collection .collection-detail-page .detail-section,
html.desktop-light-collection .collection-detail-page .market-orders-section {
  width: 100%;
  min-height: 0;
  padding: 14px clamp(16px, 3vw, 32px) 20px;
  background: #f7f7f8;
}
html.desktop-light-collection .collection-detail-page .wq-panel,
html.desktop-light-collection .collection-detail-page .sample-panel,
html.desktop-light-collection .collection-detail-page .sample-result-panel,
html.desktop-light-collection .collection-detail-page .nt-trade-dashboard-card,
html.desktop-light-collection .collection-detail-page .nt-chart-panel,
html.desktop-light-collection .collection-detail-page .market-orders-panel {
  width: 100%;
  max-width: 100%;
}
html.desktop-light-collection .collection-detail-page .detail-tab-body {
  padding: 0;
  place-items: normal;
  align-items: normal;
  justify-items: normal;
}
html.desktop-light-collection .collection-detail-page .detail-section > *,
html.desktop-light-collection .collection-detail-page .market-orders-section > * {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
@media (max-height: 520px) {
  html.desktop-light-collection .collection-detail-page .collection-hero { height: 132px; min-height: 132px; }
  html.desktop-light-collection .collection-detail-page .detail-tab-shell { margin-top: 42px; }
  html.desktop-light-collection .collection-detail-page .collection-hero-cover { width: 76px; height: 76px; }
}

/* ===== ib自助科技 hub：候选同步失败 / 数据加载失败提示（对齐小程序） ===== */
.hub-wrap .error-text {
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-second);
  font-size: 12px;
  line-height: 1.45;
  padding: 7px 9px;
}
.hub-wrap .error-banner {
  padding: 11px 13px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid rgba(217, 45, 32, 0.22);
  background: rgba(217, 45, 32, 0.08);
  color: #d92d20;
  font-size: 12px;
  line-height: 1.45;
}

/* ===== ib自助科技 hub：体验模式卡密购买链接卡（对齐小程序 card-link-dock） ===== */
.hub-wrap .card-link-dock { margin-top: 12px; }
.hub-wrap .card-link-module {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.hub-wrap .card-link-module.purchase-link-highlight {
  position: relative;
  border-color: var(--brand-border);
  background: var(--bg-card);
  box-shadow: 0 8px 22px rgba(214, 173, 95, 0.10);
  cursor: pointer;
}
.hub-wrap .card-link-module.purchase-link-highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #E8C97A 0%, #D6AD5F 100%);
}
.hub-wrap .card-link-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hub-wrap .card-link-title-wrap { flex: 1; min-width: 0; }
.hub-wrap .card-link-title {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-main);
  font-weight: 700;
}
.hub-wrap .card-link-badge {
  flex-shrink: 0;
  min-height: 18px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
}
.hub-wrap .card-link-box {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 3px 6px 3px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hub-wrap .card-link-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 20px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-main);
  word-break: break-all;
}

/* ===== feed「快捷科技」入口（对齐小程序 quick-tech-btn） ===== */
.mobile-screen .feed-container .quick-tech-btn {
  margin: 0;
  width: auto;
  flex: 0 0 auto;
  padding: 0 8px;
  min-height: 0;
  height: 20px;
  line-height: 20px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 400;
  color: #21813f;
  background: rgba(33, 129, 63, 0.10);
  border: 1px solid rgba(33, 129, 63, 0.16);
  font-family: 'DIN Alternate', sans-serif;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}
.mobile-screen .feed-container .quick-tech-btn:active { transform: scale(0.96); opacity: 0.9; }

/* 暗色模式适配 */
html.desktop-dark .hub-wrap .error-banner {
  border-color: rgba(255, 123, 114, 0.24);
  background: rgba(255, 123, 114, 0.10);
  color: #ff7b72;
}
html.desktop-dark .hub-wrap .error-text { background: #1c2330; color: #9aa4b2; }
html.desktop-dark .hub-wrap .card-link-module.purchase-link-highlight { border-color: rgba(214, 173, 95, 0.4); }
html.desktop-dark .hub-wrap .card-link-badge { color: #e8c97a; }
html.desktop-dark .hub-wrap .card-link-input { color: #e6e9ef; }

/* ===== wxpush 弹窗「复制二维码链接」按钮 ===== */
.hub-wrap .guide-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}
.hub-wrap .guide-link-btn {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 12px;
  line-height: 30px;
  cursor: pointer;
}
.hub-wrap .guide-link-btn:active { opacity: 0.85; }

/* ===== 下拉刷新指示器（hub / personal-home 共用） ===== */
.hub-pull-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1001;
  min-width: 92px;
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.82);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.hub-pull-indicator--refreshing::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: hub-pull-spin 0.8s linear infinite;
}
@keyframes hub-pull-spin { to { transform: rotate(360deg); } }

/* ===== 合成活动列表页（对齐小程序 synthesis） ===== */
.mobile-screen--synthesis { padding: 0; min-height: 100vh; background: var(--bg-page); }
.syn-page { min-height: 100vh; }
.syn-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 10px;
  background: linear-gradient(180deg, rgba(252,252,252,0.97), rgba(252,252,252,0.86), rgba(252,252,252,0));
}
.syn-back {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.05); display: inline-flex; align-items: center; justify-content: center;
}
.syn-back-icon { width: 9px; height: 9px; border-left: 2px solid #1c1c1e; border-bottom: 2px solid #1c1c1e; transform: rotate(45deg); display: block; margin-left: 3px; }
.syn-nav-title { font-size: 16px; font-weight: 700; color: var(--text-main); }
.syn-content { padding: 4px 16px calc(var(--tabbar-height) + 24px); }
.syn-state { padding: 90px 0; text-align: center; color: var(--text-third); font-size: 13px; }
.syn-spinner {
  width: 26px; height: 26px; margin: 0 auto 10px;
  border-radius: 50%; border: 2.5px solid rgba(214, 173, 95, 0.25); border-top-color: var(--brand);
  animation: syn-spin 0.8s linear infinite;
}
@keyframes syn-spin { to { transform: rotate(360deg); } }
.syn-empty-title { font-size: 15px; font-weight: 700; color: var(--text-main); margin-top: 10px; }
.syn-empty-sub { font-size: 12px; color: var(--text-third); margin-top: 4px; }
.syn-card {
  background: var(--bg-card);
  border: 0.5px solid rgba(17,24,39,0.07);
  border-radius: 14px; padding: 12px; margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
}
.syn-card-main { display: flex; gap: 10px; }
.syn-cover { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #f2f2f7; }
.syn-card-info { flex: 1; min-width: 0; }
.syn-card-title { font-size: 14px; font-weight: 700; color: var(--text-main); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.syn-card-time { font-size: 11px; color: var(--text-second); margin-top: 6px; line-height: 1.4; }
.syn-card-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.syn-status-mark { display: inline-flex; align-items: center; }
.syn-status-ring { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.08); display: inline-flex; align-items: center; justify-content: center; }
.syn-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #9aa0a6; }
.syn-status { font-size: 12px; font-weight: 600; }
.syn-status.active { color: #d6ad5f; }
.syn-status.active + .syn-status-dot, .syn-status.active .syn-status-dot { background: #d6ad5f; }
.syn-status.upcoming { color: #4a7dff; }
.syn-status.ended { color: #9aa0a6; }
.syn-card-arrow { margin-left: auto; color: #c7c9cc; font-size: 16px; }
.syn-more { text-align: center; color: var(--text-third); font-size: 12px; padding: 6px 0 10px; }
.syn-load-more-wrap { text-align: center; padding: 4px 0 14px; }
.syn-load-more-btn {
  padding: 8px 22px; border-radius: 999px; background: var(--bg-card); border: 0.5px solid rgba(17,24,39,0.08);
  color: var(--text-main); font-size: 12px;
}
.syn-mask { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.45); display: flex; flex-direction: column; justify-content: flex-end; }
.syn-sheet {
  background: var(--bg-page); border-radius: 20px 20px 0 0; padding: 18px 18px calc(env(safe-area-inset-bottom,0px) + 22px);
  max-height: 74vh; overflow-y: auto;
}
.syn-sheet-close { position: absolute; right: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; z-index: 2; }
.syn-sheet-close span { position: absolute; width: 12px; height: 1.6px; background: #1c1c1e; border-radius: 2px; }
.syn-sheet-close span:first-child { transform: rotate(45deg); }
.syn-sheet-close span:last-child { transform: rotate(-45deg); }
.syn-sheet-cover { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; display: block; margin: 6px auto 10px; background: #f2f2f7; }
.syn-sheet-title { text-align: center; font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 14px; }
.syn-channel {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-card); border: 0.5px solid rgba(17,24,39,0.07); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
}
.syn-channel-title { font-size: 13px; font-weight: 700; color: var(--text-main); }
.syn-channel-time { font-size: 11px; color: var(--text-second); margin-top: 3px; }
.syn-channel-status { font-size: 12px; font-weight: 700; flex-shrink: 0; }
.syn-channel-status.active { color: #d6ad5f; }
.syn-channel-status.upcoming { color: #4a7dff; }
.syn-channel-status.ended { color: #9aa0a6; }
.syn-loading-mask { position: fixed; inset: 0; z-index: 200; background: rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center; }

/* ===== 合成详情页（对齐小程序 synthesis-detail） ===== */
.mobile-screen--synd { padding: 0; min-height: 100vh; background: #12141c; }
.synd-page { min-height: 100vh; position: relative; color: #e8ecf2; }
.synd-scene-bg { position: fixed; top: 0; left: 0; right: 0; height: 320px; background-size: cover; background-position: center; filter: blur(6px) brightness(0.45); transform: scale(1.15); z-index: 0; pointer-events: none; }
.synd-scene-shade { position: fixed; top: 0; left: 0; right: 0; height: 320px; background: linear-gradient(180deg, rgba(18,20,28,0.25) 0%, rgba(18,20,28,0.88) 78%, #12141c 100%); z-index: 0; pointer-events: none; }
.synd-nav { position: relative; z-index: 10; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top,0px) + 12px) 16px 10px; }
.synd-nav .syn-back { background: rgba(255,255,255,0.1); }
.synd-nav .syn-back-icon { border-color: #fff; }
.synd-nav-title { font-size: 16px; font-weight: 700; color: #fff; }
.synd-state { position: relative; z-index: 10; padding: 120px 0; text-align: center; }
.synd-content { position: relative; z-index: 5; padding: 6px 16px 130px; }
.synd-target-note { font-size: 12px; color: #9aa4b2; margin-bottom: 10px; }
.synd-targets { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.synd-target { flex: 0 0 62%; scroll-snap-align: center; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.10); border-radius: 16px; padding: 12px; }
.synd-target-img-wrap { position: relative; }
.synd-target-badge { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 10px; color: #12141c; background: #ffc625; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.synd-target-img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; background: #2a2d38; }
.synd-target-title { font-size: 13px; font-weight: 700; margin-top: 8px; color: #f2f4f8; }
.synd-target-tags { display: flex; gap: 6px; font-size: 11px; color: #9aa4b2; margin-top: 4px; }
.synd-tag-divider { opacity: 0.5; }
.synd-rush-card { margin-top: 16px; background: linear-gradient(180deg, #1d1f29, #181a23); border: 0.5px solid rgba(255,198,37,0.28); border-radius: 16px; padding: 14px; box-shadow: 0 10px 26px rgba(255,198,37,0.06); }
.synd-rush-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.synd-rush-kicker { display: block; font-size: 10px; letter-spacing: 2px; color: #ffc625; font-weight: 700; }
.synd-rush-title { font-size: 17px; font-weight: 800; color: #fff; margin-top: 2px; }
.synd-rush-time { font-size: 11px; color: #9aa4b2; margin-top: 3px; }
.synd-switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.synd-switch input { display: none; }
.synd-switch-slider { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #343846; transition: background 0.2s; }
.synd-switch-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.synd-switch input:checked + .synd-switch-slider { background: #ffc625; }
.synd-switch input:checked + .synd-switch-slider::after { transform: translateX(18px); }
.synd-switch em { font-style: normal; font-size: 11px; color: #9aa4b2; }
.synd-rush-countdown-panel { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 10px 12px; }
.synd-rush-countdown-label { font-size: 10px; color: #9aa4b2; }
.synd-countdown { font-size: 20px; font-weight: 800; font-family: var(--font-mono); color: #ffc625; letter-spacing: 1px; margin-top: 2px; }
.synd-rush-status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 5px 10px; border-radius: 999px; background: rgba(154,164,178,0.12); color: #9aa4b2; }
.synd-rush-status-pill.waiting { background: rgba(74,125,255,0.16); color: #6f96ff; }
.synd-rush-status-pill.submitting { background: rgba(255,198,37,0.14); color: #ffc625; }
.synd-rush-status-pill.success { background: rgba(63,185,80,0.16); color: #4ec15f; }
.synd-rush-status-pill.failed { background: rgba(244,67,54,0.16); color: #ff6f61; }
.synd-rush-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.synd-rush-settings { margin-top: 12px; }
.synd-rush-settings-title { font-size: 12px; font-weight: 700; color: #fff; }
.synd-rush-settings-caption { font-size: 10px; color: #9aa4b2; margin: 2px 0 10px; }
.synd-rush-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #cfd5e0; padding: 7px 0; }
.synd-dt-input { width: 46%; background: rgba(255,255,255,0.07); border: 0.5px solid rgba(255,255,255,0.10); border-radius: 8px; color: #fff; font-size: 11px; padding: 6px 8px; color-scheme: dark; }
.synd-stepper { display: inline-flex; align-items: center; gap: 10px; }
.synd-stepper button { width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,0.08); color: #ffc625; font-size: 14px; }
.synd-stepper span { min-width: 52px; text-align: center; font-size: 12px; color: #fff; }
.synd-number-input { display: inline-flex; align-items: center; gap: 6px; }
.synd-number-input input { width: 52px; background: rgba(255,255,255,0.07); border: 0.5px solid rgba(255,255,255,0.10); border-radius: 8px; color: #fff; font-size: 12px; padding: 6px 8px; text-align: center; }
.synd-rush-material-setting { margin-top: 6px; }
.synd-rush-material-title { font-size: 11px; font-weight: 700; color: #fff; }
.synd-rush-material-tip { font-size: 10px; color: #9aa4b2; margin: 2px 0 8px; }
.synd-rush-material-group { margin-bottom: 8px; }
.synd-rush-material-group-title { font-size: 11px; color: #9aa4b2; margin-bottom: 6px; }
.synd-rush-material-options { display: flex; flex-wrap: wrap; gap: 8px; }
.synd-rush-material-option { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #cfd5e0; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.10); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.synd-rush-material-option.selected { border-color: #ffc625; color: #ffc625; background: rgba(255,198,37,0.10); }
.synd-radio { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #5b6270; display: inline-block; }
.synd-rush-material-option.selected .synd-radio { border-color: #ffc625; background: #ffc625; box-shadow: inset 0 0 0 2px #1d1f29; }
.synd-rush-log { margin-top: 12px; border-top: 0.5px solid rgba(255,255,255,0.08); padding-top: 10px; }
.synd-rush-log-title { font-size: 11px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.synd-rush-log-row { display: flex; gap: 10px; font-size: 11px; color: #9aa4b2; line-height: 1.7; }
.synd-rush-log-time { flex-shrink: 0; color: #ffc625; font-family: var(--font-mono); }
.synd-rush-tip { margin-top: 10px; font-size: 10px; color: #7d8594; line-height: 1.6; }
.synd-material-panel { margin-top: 16px; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.10); border-radius: 16px; padding: 14px; }
.synd-material-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.synd-section-title { font-size: 13px; font-weight: 800; color: #fff; }
.synd-material-tip { font-size: 10px; color: #9aa4b2; }
.synd-material-group { margin-bottom: 12px; }
.synd-material-group-head { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #cfd5e0; margin-bottom: 8px; }
.synd-essential { font-weight: 700; color: #ffc625; }
.synd-albums-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.synd-album { flex: 0 0 104px; background: rgba(255,255,255,0.04); border: 0.5px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 8px; cursor: pointer; }
.synd-album.synd-album--preferred { border-color: rgba(255,198,37,0.5); }
.synd-album-img-wrap { position: relative; }
.synd-album-img { width: 100%; height: 88px; object-fit: cover; border-radius: 8px; background: #2a2d38; }
.synd-usable { position: absolute; left: 4px; bottom: 4px; font-size: 9px; color: #fff; background: rgba(0,0,0,0.55); border-radius: 4px; padding: 1px 5px; }
.synd-album-name { font-size: 10px; color: #cfd5e0; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.synd-prefer { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #9aa4b2; margin-top: 6px; }
.synd-radio.synd-radio--on { border-color: #ffc625; background: #ffc625; box-shadow: inset 0 0 0 2px #181a23; }
.synd-progress { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); margin-top: 7px; overflow: hidden; }
.synd-progress-fill { height: 100%; background: linear-gradient(90deg, #ffc625, #ffdf7e); }
.synd-count { display: block; text-align: right; font-size: 10px; color: #9aa4b2; margin-top: 3px; }
.synd-bottom-space { height: 20px; }
.synd-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(env(safe-area-inset-bottom,0px) + 10px); background: rgba(18,20,28,0.92); backdrop-filter: blur(10px); border-top: 0.5px solid rgba(255,255,255,0.08); }
.synd-footer-stepper { display: flex; align-items: center; gap: 8px; }
.synd-footer-max { font-size: 11px; color: #ffc625; }
.synd-footer-stepper > div { display: inline-flex; align-items: center; gap: 8px; }
.synd-footer-stepper button { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.09); color: #fff; font-size: 15px; }
.synd-footer-stepper button:disabled { opacity: 0.35; }
.synd-footer-stepper span { min-width: 20px; text-align: center; font-size: 14px; color: #fff; }
.synd-submit { flex: 1; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #ffcf40, #ffb300); color: #12141c; font-size: 14px; font-weight: 800; }
.synd-submit--disabled { background: rgba(255,255,255,0.08); color: #7d8594; }
.synd-mask { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; }
.synd-result { width: 82%; max-width: 320px; background: #1d1f29; border-radius: 16px; padding: 20px; }
.synd-result-title { font-size: 15px; font-weight: 800; color: #fff; text-align: center; margin-bottom: 12px; }
.synd-result-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #cfd5e0; padding: 7px 0; border-bottom: 0.5px solid rgba(255,255,255,0.07); }
.synd-result-close { width: 100%; margin-top: 14px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #ffcf40, #ffb300); color: #12141c; font-size: 13px; font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   对齐小程序 hub 的剩余细节（骨架屏行数/暗色/展开动画）
   ═══════════════════════════════════════════════════════ */

/* 展开态任务名：两行截断（对齐 mp .task-name--expanded） */
.hub-wrap .task-name--expanded {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

/* 操作栏展开/编辑表单入场动画（mp 由节点级 transition 实现，
   H5 每次 draw 重建 DOM，故用一次性类 + keyframes 模拟展开） */
@keyframes tech2TaskExpandIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hub-wrap .task-actions-grid--open.task-actions-anim-in,
.hub-wrap .task-inline-edit--open.task-inline-anim-in {
  animation: tech2TaskExpandIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: center top;
}

/* 操作栏四按钮对齐 mp：grid 四等分，避免窄屏换行 */
.hub-wrap .task-actions-grid {
  display: none;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
}
.hub-wrap .task-actions-grid--open {
  display: grid;
  margin-top: 8px;
  padding-top: 8px;
  border-top-color: var(--line);
}
.hub-wrap .task-actions-grid--open .action-btn {
  min-width: 0;
  width: 100%;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 350px) {
  .hub-wrap .task-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 暗色：hub 骨架屏底色跟随卡片表面（对齐 mp prefers-color-scheme） */
html.desktop-dark .hub-wrap .settings-skeleton-line,
html.desktop-dark .hub-wrap .settings-skeleton-pill,
html.desktop-dark .hub-wrap .settings-skeleton-btn,
html.desktop-dark .hub-wrap .skeleton-line,
html.desktop-dark .hub-wrap .skeleton-pill,
html.desktop-dark .hub-wrap .skeleton-badge,
html.desktop-dark .hub-wrap .skeleton-badge-sq,
html.desktop-dark .hub-wrap .skeleton-image {
  background: #252c38;
}
html.desktop-dark .hub-wrap .skeleton-header,
html.desktop-dark .hub-wrap .skeleton-metric {
  border-color: rgba(255, 255, 255, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .hub-wrap .task-actions-grid--open.task-actions-anim-in,
  .hub-wrap .task-inline-edit--open.task-inline-anim-in,
  .hub-wrap .task-name--expanded {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   IB自助科技 组件级暗色收口（html.desktop-dark Ⅱ）
   ────────────────────────────────────────────────────────────────────────
   小程序暗色 tokens（tech2-theme/tech2-redesign/hub.wxss）在
   prefers-color-scheme:dark 下为：#0f1115 页面底、#171a20 卡片、
   #1d2128 输入槽、rgba(255,255,255,.09~.14) 描边、#f5f7fb 主文、
   #aeb7c7 次文、#7c8798 弱文、#E8C97A/#D6AD5F 金色、
   #70e6a0/rgba(91,214,139,.16) 成功、#ffcb7d/rgba(255,180,77,.16) 警示、
   #ffb199/rgba(255,127,116,.16) 危险。本节把 tech2 各页残留的硬编码
   亮色组件（feed 记录卡、模态、状态胶囊、Tab、骨架屏、个人仓库、合成列表）
   逐类对齐到同一套暗色观感。仅 html.desktop-dark（desktop=1）生效。
   ════════════════════════════════════════════════════════════════════════ */

/* ── 0. 页面底色统一为小程序暗色 #0f1115 ── */
html.desktop-dark .tech2-page-wrap,
html.desktop-dark .hub-wrap,
html.desktop-dark .ph-page,
html.desktop-dark .ph-hero,
html.desktop-dark .ph-tabs,
html.desktop-dark .ph-panel,
html.desktop-dark .mobile-screen--synthesis .syn-page { background: #0f1115; }

/* ── 1. 登录/注册/续卡页（tech2 auth）对齐 mp tech2.wxss 暗色 ── */
html.desktop-dark .tech2-auth-hero {
  background: linear-gradient(160deg, #0e1017 0%, #090b10 60%, #06080c 100%);
  border-color: rgba(214, 173, 95, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(214, 173, 95, 0.06);
}
html.desktop-dark .tech2-auth-hero::before { background: radial-gradient(circle, rgba(214, 173, 95, 0.07) 0%, transparent 70%); }
html.desktop-dark .tech2-auth-hero__title { color: #ece5d8; }
html.desktop-dark .tech2-auth-hero__icon-wrap {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(214, 173, 95, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
html.desktop-dark .tech2-auth-hero__icon {
  filter: brightness(0) saturate(100%) invert(74%) sepia(22%) saturate(2640%) hue-rotate(184deg) brightness(102%) contrast(101%);
}
/* 卡密购买：暗色下由亮金胶囊收为玻璃幽灵钮（对齐 mp auth-hero__purchase） */
html.desktop-dark .tech2-auth-hero__purchase {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(214, 173, 95, 0.16);
  box-shadow: none;
}
html.desktop-dark .tech2-auth-hero__purchase:hover,
html.desktop-dark .tech2-auth-hero__purchase:active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(214, 173, 95, 0.24);
  filter: none;
  transform: translateY(-1px);
}
html.desktop-dark .tech2-auth-hero__purchase-label { color: #d4b87a; }
html.desktop-dark .tech2-auth-hero__purchase-icon { opacity: 0.75; }
html.desktop-dark .tech2-auth-hero__purchase::after { color: rgba(244, 230, 207, 0.5); }

html.desktop-dark .tech2-auth-form-card {
  background: #171a20;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), 0 3px 8px rgba(0, 0, 0, 0.2);
}
html.desktop-dark .tech2-auth-mode-switch { background: #1d2128; }
html.desktop-dark .tech2-auth-mode-item { color: #f5f7fb; }
html.desktop-dark .tech2-auth-mode-item--active { color: #ffffff; }
html.desktop-dark .tech2-auth-mode-slider {
  background: #171a20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
html.desktop-dark .tech2-auth-field__label { color: #aeb7c7; }
html.desktop-dark .tech2-auth-field--filled .tech2-auth-field__label { color: #E8C97A; }
html.desktop-dark .tech2-auth-field__input-wrap {
  background: #1d2128;
  border-color: rgba(255, 255, 255, 0.12);
}
html.desktop-dark .tech2-auth-field__input-wrap:focus-within {
  border-color: #E8C97A;
  background: #171a20;
  box-shadow: 0 0 0 3px rgba(214, 173, 95, 0.2), 0 4px 12px rgba(214, 173, 95, 0.08);
}
html.desktop-dark .tech2-auth-field__input-wrap:focus-within .tech2-auth-field__accent {
  background: linear-gradient(180deg, #E8C97A, #D6AD5F);
}
html.desktop-dark .tech2-auth-field__input { color: #f5f7fb; }
html.desktop-dark .tech2-auth-field__input::placeholder { color: #7c8798; }
html.desktop-dark .tech2-auth-field__toggle:active { background: rgba(255, 255, 255, 0.06); }
html.desktop-dark .tech2-auth-remember__checkbox {
  background: #1d2128;
  border-color: rgba(255, 255, 255, 0.18);
}
html.desktop-dark .tech2-auth-remember__checkbox--checked {
  border-color: #E8C97A;
  background: linear-gradient(135deg, #E8C97A, #D6AD5F);
}
html.desktop-dark .tech2-auth-remember__text { color: #aeb7c7; }
/* 主按钮：暗色下转 iOS 浅灰高亮 + 深色文字（对齐 mp auth-btn-primary） */
html.desktop-dark .tech2-auth-btn-primary {
  background: linear-gradient(135deg, #e8e8ea 0%, #d4d4d8 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
}
html.desktop-dark .tech2-auth-btn-primary:active { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
html.desktop-dark .tech2-auth-btn-primary__bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
}
html.desktop-dark .tech2-auth-btn-primary__text { color: #1a1c23; }
html.desktop-dark .tech2-auth-btn-primary__spinner {
  border-color: rgba(26, 28, 35, 0.12);
  border-top-color: #1a1c23;
}
html.desktop-dark .tech2-auth-btn-experience {
  background: rgba(214, 173, 95, 0.1);
  border-color: rgba(214, 173, 95, 0.18);
}
html.desktop-dark .tech2-auth-btn-experience:active {
  background: rgba(214, 173, 95, 0.16);
  border-color: rgba(214, 173, 95, 0.26);
}
html.desktop-dark .tech2-auth-btn-experience__text { color: #d4b87a; }
html.desktop-dark .tech2-auth-footer__logo { border-color: rgba(255, 255, 255, 0.12); }
html.desktop-dark .tech2-auth-footer__name,
html.desktop-dark .tech2-auth-footer__tagline { color: #7c8798; }
html.desktop-dark .tech2-auth-state-banner {
  background: linear-gradient(120deg, #171a20, #0c0e13);
  border-color: rgba(214, 173, 95, 0.2);
}
html.desktop-dark .tech2-exp-banner-btn {
  background: rgba(214, 173, 95, 0.14);
  color: #E8C97A;
}
html.desktop-dark .tech2-error-modal__panel {
  background: #171a20;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}
html.desktop-dark .tech2-error-modal__btn {
  background: linear-gradient(135deg, #e8e8ea, #d4d4d8);
  color: #1a1c23;
}

/* ── 2. 任务中心 hub：表单、数据记录卡、状态胶囊与操作按钮 ── */
/* 卡片表面：小程序暗色 surface #171a20（含 modal、confirm 面板） */
html.desktop-dark .hub-wrap .settings-card,
html.desktop-dark .hub-wrap .head-card,
html.desktop-dark .hub-wrap .data-card,
html.desktop-dark .hub-wrap .empty-card,
html.desktop-dark .hub-wrap .modal-panel,
html.desktop-dark .hub-wrap .task-confirm-list {
  background: #171a20;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
html.desktop-dark .hub-wrap .feed-card {
  background: #171a20;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
html.desktop-dark .hub-wrap .feed-card:active {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
html.desktop-dark .hub-wrap .feed-card::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 38%);
  opacity: 1;
}
html.desktop-dark .hub-wrap .feed-card-header { border-bottom-color: rgba(255, 255, 255, 0.08); }
html.desktop-dark .hub-wrap .feed-card-title,
html.desktop-dark .hub-wrap .feed-card-title-row .feed-card-title { color: #f5f7fb; }
html.desktop-dark .hub-wrap .feed-card-time {
  color: #E8C97A;
  background: rgba(214, 173, 95, 0.12);
  border-color: rgba(232, 201, 122, 0.3);
}
html.desktop-dark .hub-wrap .feed-card-image {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html.desktop-dark .hub-wrap .feed-card .dayorder-amount,
html.desktop-dark .hub-wrap .feed-card .dayorder-avg { color: #f5f7fb; }
html.desktop-dark .hub-wrap .feed-ios-badge {
  background: linear-gradient(180deg, #1e222a 0%, #111318 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.desktop-dark .hub-wrap .feed-card-metric { border-left-color: rgba(255, 255, 255, 0.1); }

/* 数据分栏（最新出单 / 当日排行）：浅灰胶囊栏 → 暗色玻璃栏，选中用亮金 */
html.desktop-dark .hub-wrap .data-subtab-bar {
  background: #171a20;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}
html.desktop-dark .hub-wrap .data-subtab-item { color: #aeb7c7; }
html.desktop-dark .hub-wrap .data-subtab-item.active {
  background: linear-gradient(135deg, #f8d56a 0%, #d6ad5f 100%);
  color: #101216;
  box-shadow: 0 2px 8px rgba(214, 173, 95, 0.22);
}

/* 任务表单控件：输入槽 / 下拉 / 单选 / 类型胶囊 */
html.desktop-dark .hub-wrap .form-group .input,
html.desktop-dark .hub-wrap .select-trigger,
html.desktop-dark .hub-wrap .search-row .search-input {
  background: #1d2128;
  color: #f5f7fb;
}
html.desktop-dark .hub-wrap .form-group .input:focus,
html.desktop-dark .hub-wrap .select-trigger:active,
html.desktop-dark .hub-wrap .search-row .search-input:focus {
  background: #171a20;
  box-shadow: 0 0 0 1px rgba(214, 173, 95, 0.4), 0 0 0 3px rgba(214, 173, 95, 0.14);
}
html.desktop-dark .hub-wrap .form-group .input::placeholder,
html.desktop-dark .hub-wrap .search-row .search-input::placeholder { color: #7c8798; }
html.desktop-dark .hub-wrap .search-row { border-bottom-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
html.desktop-dark .hub-wrap .dropdown-panel {
  background: #1d2128;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
html.desktop-dark .hub-wrap .option-item { color: #d6dce4; }
html.desktop-dark .hub-wrap .option-item:active { background: rgba(255, 255, 255, 0.08); }
html.desktop-dark .hub-wrap .option-empty { color: #7c8798; }
html.desktop-dark .hub-wrap .radio-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}
html.desktop-dark .hub-wrap .radio-item.checked {
  background: rgba(214, 173, 95, 0.15);
  border-color: rgba(214, 173, 95, 0.42);
  color: #E8C97A;
}

/* 任务类型 / 运行态徽标：语义色全部转暗色玻璃版本 */
html.desktop-dark .hub-wrap .tasktype-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
html.desktop-dark .hub-wrap .tasktype-item.checked {
  background: rgba(214, 173, 95, 0.15);
  border-color: rgba(214, 173, 95, 0.42);
  box-shadow: 0 2px 10px rgba(214, 173, 95, 0.14);
}
html.desktop-dark .hub-wrap .tasktype-text { color: #aeb7c7; }
html.desktop-dark .hub-wrap .tasktype-item.checked .tasktype-text { color: #E8C97A; }
html.desktop-dark .hub-wrap .tasktype-item.checked::after {
  background: #E8C97A;
  box-shadow: 0 0 6px rgba(232, 201, 122, 0.55);
}
html.desktop-dark .hub-wrap .task-type {
  background: rgba(214, 173, 95, 0.16);
  color: #E8C97A;
}
html.desktop-dark .hub-wrap .task-type-5 {
  background: rgba(91, 214, 139, 0.16);
  color: #70e6a0;
}
html.desktop-dark .hub-wrap .task-type-7 {
  background: rgba(255, 127, 116, 0.16);
  color: #ffb199;
}
html.desktop-dark .hub-wrap .task-type-8 {
  background: rgba(64, 197, 232, 0.16);
  color: #8be9fd;
}
html.desktop-dark .hub-wrap .task-running-badge {
  background: rgba(91, 214, 139, 0.16);
  color: #70e6a0;
}
html.desktop-dark .hub-wrap .task-completed-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #aeb7c7;
}
html.desktop-dark .hub-wrap .task-inline-meta-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(166, 124, 60, 0.3);
  color: #cbd5e1;
}
html.desktop-dark .hub-wrap .task-expanded-account-value { color: #9ca3af; }
html.desktop-dark .hub-wrap .task-actions-grid--open { border-top-color: rgba(255, 255, 255, 0.09); }
html.desktop-dark .hub-wrap .task-narrow-card.is-active {
  border-color: rgba(214, 173, 95, 0.42);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
html.desktop-dark .hub-wrap .task-narrow-card.is-running {
  border-color: #D4AF37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.32);
}

/* 状态胶囊 / 公告锁 / 通用操作按钮 */
html.desktop-dark .hub-wrap .status-tag--success,
html.desktop-dark .hub-wrap .notice-status-tag--on {
  background: rgba(91, 214, 139, 0.16);
  color: #70e6a0;
}
html.desktop-dark .hub-wrap .status-tag--danger {
  background: rgba(255, 127, 116, 0.16);
  color: #ffb199;
}
html.desktop-dark .hub-wrap .status-tag--warning {
  background: rgba(255, 180, 77, 0.16);
  color: #ffcb7d;
}
html.desktop-dark .hub-wrap .status-tag--info {
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}
html.desktop-dark .hub-wrap .status-tag--neutral,
html.desktop-dark .hub-wrap .notice-status-tag--off {
  background: rgba(255, 255, 255, 0.06);
  color: #aeb7c7;
}
html.desktop-dark .hub-wrap .action-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
html.desktop-dark .hub-wrap .action-btn:active { background: rgba(255, 255, 255, 0.12); }
html.desktop-dark .hub-wrap .action-btn-status { border-color: rgba(214, 173, 95, 0.42); }
html.desktop-dark .hub-wrap .action-btn-start {
  color: #E8C97A;
  background: rgba(214, 173, 95, 0.14);
  border-color: rgba(214, 173, 95, 0.32);
}
html.desktop-dark .hub-wrap .action-btn-stop {
  color: #ff9d94;
  background: rgba(255, 127, 116, 0.12);
  border-color: rgba(255, 127, 116, 0.26);
}
html.desktop-dark .hub-wrap .action-btn-config {
  color: #8ab4ff;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}
html.desktop-dark .hub-wrap .action-btn-logs { color: #8b95a5; }
html.desktop-dark .hub-wrap .action-btn.danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.24);
}
html.desktop-dark .hub-wrap .action-btn-sm {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
html.desktop-dark .hub-wrap .action-btn-sm:active { background: rgba(255, 255, 255, 0.14); }
html.desktop-dark .hub-wrap .action-btn-sm--muted {
  background: rgba(255, 255, 255, 0.05);
  color: #8b95a5;
}
html.desktop-dark .hub-wrap .action-btn-sm--muted:active { background: rgba(255, 255, 255, 0.1); }
html.desktop-dark .hub-wrap .action-btn-sm--brand {
  background: #d6ad5f;
  color: #101216;
}
html.desktop-dark .hub-wrap .action-btn-sm--brand:active { background: #b98a3e; }
html.desktop-dark .hub-wrap .action-btn-sm--danger,
html.desktop-dark .hub-wrap .action-btn-sm--muted.action-btn-sm--danger {
  color: #ff9d94;
  background: rgba(255, 127, 116, 0.14);
}
html.desktop-dark .hub-wrap .action-btn-sm--danger:active { background: rgba(255, 127, 116, 0.22); }

/* 执行账号行 / 底部设置按钮：暗色下主行动统一亮金 */
html.desktop-dark .hub-wrap .copy-token-btn {
  background: #d6ad5f;
  color: #101216;
}
html.desktop-dark .hub-wrap .execution-home-btn,
html.desktop-dark .hub-wrap .execution-password-btn {
  background: #d6ad5f !important;
  color: #101216 !important;
  border-color: #d6ad5f !important;
}
html.desktop-dark .hub-wrap .account-actions .btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d6dce4;
}
html.desktop-dark .hub-wrap .settings-footer .btn-logout {
  background: rgba(255, 255, 255, 0.08);
  color: #aeb7c7;
  border-color: rgba(255, 255, 255, 0.1);
}
html.desktop-dark .hub-wrap .settings-footer .btn-renew {
  background: linear-gradient(135deg, #f8d56a 0%, #d6ad5f 100%);
  color: #101216;
  border-color: rgba(214, 173, 95, 0.26);
}
/* 主按钮（含 add-task-btn / 模态确认）：暗色下统一 iOS 白底深字（对齐 mp .btn-primary） */
html.desktop-dark .hub-wrap .btn-primary {
  background: #ffffff;
  color: #1c1c1e;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
html.desktop-dark .hub-wrap .btn-primary:active { background: #e6e6ea; }
html.desktop-dark .hub-wrap .modal-panel .panel-actions .btn-primary {
  background: #ffffff;
  color: #1c1c1e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
html.desktop-dark .hub-wrap .modal-panel .panel-actions .btn-primary:active { background: #e6e6ea; }
html.desktop-dark .hub-wrap .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #aeb7c7;
  border-color: rgba(255, 255, 255, 0.1);
}
html.desktop-dark .hub-wrap .btn-ghost:active { background: rgba(255, 255, 255, 0.14); }
html.desktop-dark .hub-wrap .error-banner {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
html.desktop-dark .hub-wrap .records-title { color: #f5f7fb; }
html.desktop-dark .hub-wrap .settings-card-title,
html.desktop-dark .hub-wrap .settings-card-item-title,
html.desktop-dark .hub-wrap .member-username-val { color: #f5f7fb; }
html.desktop-dark .hub-wrap .settings-card-add-btn { color: rgba(232, 201, 122, 0.75); }
html.desktop-dark .hub-wrap .settings-card-remain-days { color: #E8C97A; }
html.desktop-dark .hub-wrap .footer-brand-name,
html.desktop-dark .hub-wrap .footer-brand-tagline { color: #7c8798; }
html.desktop-dark .hub-wrap .footer-logo { border-color: rgba(255, 255, 255, 0.12); }

/* 底部导航：玻璃更实、文字按小程序弱化/高亮两级 */
html.desktop-dark .hub-wrap .hub-tabbar {
  background: rgba(15, 17, 21, 0.92);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.3);
}
html.desktop-dark .hub-wrap .hub-tabbar-text { color: #6b7280; }
html.desktop-dark .hub-wrap .hub-tabbar-item.active .hub-tabbar-text { color: #f5f7fb; }
html.desktop-dark .hub-wrap .hub-tabbar-icon { background: rgba(255, 255, 255, 0.14); }

/* 模态：面板 / 标题 / 日志 / 引导 / 启动确认 */
html.desktop-dark .hub-wrap .modal-mask { background: rgba(0, 0, 0, 0.52); }
html.desktop-dark .hub-wrap .modal-title { color: #f5f7fb; }
html.desktop-dark .hub-wrap .modal-subtitle { color: #aeb7c7; }
html.desktop-dark .hub-wrap .panel-actions .btn {
  background: rgba(255, 255, 255, 0.08);
  color: #d6dce4;
}
html.desktop-dark .hub-wrap .panel-actions .btn:active { background: rgba(255, 255, 255, 0.14); }
html.desktop-dark .hub-wrap .logs-box,
html.desktop-dark .hub-wrap .guide-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
html.desktop-dark .hub-wrap .logs-text { color: #aeb7c7; }
html.desktop-dark .hub-wrap .guide-title { color: #f5f7fb; }
html.desktop-dark .hub-wrap .guide-item { color: #aeb7c7; }
html.desktop-dark .hub-wrap .guide-qrcode {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}
html.desktop-dark .hub-wrap .task-confirm-list { background: rgba(255, 255, 255, 0.04); box-shadow: none; }
html.desktop-dark .hub-wrap .task-confirm-row { background: #171a20; }
html.desktop-dark .hub-wrap .task-confirm-row + .task-confirm-row { border-top-color: rgba(255, 255, 255, 0.08); }
html.desktop-dark .hub-wrap .task-confirm-label { color: #7c8798; }
html.desktop-dark .hub-wrap .task-confirm-value { color: #f5f7fb; }

/* 骨架屏：跟随暗色卡片表面，弱化为白色半透明条 */
html.desktop-dark .hub-wrap .settings-skeleton-line,
html.desktop-dark .hub-wrap .settings-skeleton-pill,
html.desktop-dark .hub-wrap .settings-skeleton-btn,
html.desktop-dark .hub-wrap .skeleton-line,
html.desktop-dark .hub-wrap .skeleton-pill,
html.desktop-dark .hub-wrap .skeleton-badge,
html.desktop-dark .hub-wrap .skeleton-badge-sq,
html.desktop-dark .hub-wrap .skeleton-image {
  background: rgba(255, 255, 255, 0.08);
}
html.desktop-dark .hub-wrap .skeleton-header,
html.desktop-dark .hub-wrap .skeleton-metric { border-color: rgba(255, 255, 255, 0.08); }

/* ── 3. 个人仓库 / 订单页（ph-*）对齐 mp personal-home 暗色 ── */
html.desktop-dark .ph-page { background: #0f1115; color: #f5f7fb; }
html.desktop-dark .ph-hero,
html.desktop-dark .ph-tabs,
html.desktop-dark .ph-panel { background: #0f1115; }
html.desktop-dark .ph-tabs { border-bottom-color: rgba(255, 255, 255, 0.18); }
html.desktop-dark .ph-nickname,
html.desktop-dark .ph-asset-name,
html.desktop-dark .ph-sold-name,
html.desktop-dark .ph-order-name,
html.desktop-dark .ph-price-val,
html.desktop-dark .ph-price-sym { color: #f5f7fb; }
html.desktop-dark .ph-uid-text,
html.desktop-dark .ph-load-more,
html.desktop-dark .ph-state,
html.desktop-dark .ph-order-uuid,
html.desktop-dark .ph-order-time,
html.desktop-dark .ph-price-label,
html.desktop-dark .ph-sold-token { color: #aeb7c7; }
html.desktop-dark .ph-avatar,
html.desktop-dark .ph-asset-cover,
html.desktop-dark .ph-sold-cover,
html.desktop-dark .ph-order-cover { background: rgba(255, 255, 255, 0.08); }
html.desktop-dark .ph-order-card {
  background: #171a20;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
html.desktop-dark .ph-order-divider { background: rgba(255, 255, 255, 0.08); }
html.desktop-dark .ph-copy-icon,
html.desktop-dark .ph-copy-icon::after { border-color: #aeb7c7; }
html.desktop-dark .ph-eye-open::before { border-color: #aeb7c7; }
html.desktop-dark .ph-eye-open::after { background: #aeb7c7; }
html.desktop-dark .ph-eye-closed::before { background: #aeb7c7; }
html.desktop-dark .ph-eye-closed::after { border-color: #aeb7c7; }
html.desktop-dark .ph-eye-btn:active { background: rgba(255, 255, 255, 0.08); }
html.desktop-dark .ph-cancel-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #aeb7c7;
}
html.desktop-dark .ph-pay-btn {
  background: rgba(245, 164, 0, 0.15);
  color: #f5a400;
}
html.desktop-dark .ph-state--error { color: #fca5a5; }
html.desktop-dark .ph-order-status { color: #aeb7c7; }
html.desktop-dark .ph-status-1 { color: #60a5fa; }
html.desktop-dark .ph-status-5 { color: #f5f7fb; }
html.desktop-dark .ph-status-15 { color: #fca5a5; }

/* ── 4. 合成活动列表（syn-*）对齐 mp synthesis 暗色 ── */
html.desktop-dark .mobile-screen--synthesis { background: #0f1115; }
html.desktop-dark .syn-page { background: #0f1115; }
html.desktop-dark .syn-nav {
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.97), rgba(15, 17, 21, 0.86), rgba(15, 17, 21, 0));
}
html.desktop-dark .syn-back { background: rgba(255, 255, 255, 0.08); }
html.desktop-dark .syn-back-icon { border-color: #f4f6fb; }
html.desktop-dark .syn-card {
  background: #1a1d24;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}
html.desktop-dark .syn-card:active { background: #20242d; }
html.desktop-dark .syn-cover,
html.desktop-dark .syn-sheet-cover {
  background: #2a2f3a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html.desktop-dark .syn-card-title,
html.desktop-dark .syn-sheet-title,
html.desktop-dark .syn-channel-title { color: #f4f6fb; }
html.desktop-dark .syn-card-time,
html.desktop-dark .syn-channel-time { color: rgba(244, 246, 251, 0.6); }
html.desktop-dark .syn-status-ring { border-color: rgba(255, 255, 255, 0.18); }
html.desktop-dark .syn-status.active,
html.desktop-dark .syn-channel-status.active { color: #E8C97A; }
html.desktop-dark .syn-status.upcoming,
html.desktop-dark .syn-channel-status.upcoming { color: #6f96ff; }
html.desktop-dark .syn-status.ended { color: rgba(244, 246, 251, 0.55); }
html.desktop-dark .syn-channel-status.ended { color: rgba(244, 246, 251, 0.5); }
html.desktop-dark .syn-card-arrow { color: #7c8798; }
html.desktop-dark .syn-sheet {
  background: #11131a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.42);
}
html.desktop-dark .syn-sheet-close { background: rgba(255, 255, 255, 0.08); }
html.desktop-dark .syn-sheet-close span { background: #f4f6fb; }
html.desktop-dark .syn-channel {
  background: #1b1f28;
  border-color: rgba(255, 255, 255, 0.05);
}
html.desktop-dark .syn-loading-mask { background: rgba(15, 17, 21, 0.62); }

/* ── 5. 浅色对齐后的暗色复查（新增金色实底组件需同步暗色态） ── */
/* 任务卡片“清空全部”暗色下为实金胶囊 + 深字（对齐 mp hub.wxss dark records-head-action--danger） */
html.desktop-dark .hub-wrap .records-head .btn-ghost {
  background: #d6ad5f;
  color: #101216;
  border-color: #d6ad5f;
  box-shadow: none;
}
html.desktop-dark .hub-wrap .records-head .btn-ghost:active {
  background: #b98a3e;
  color: #101216;
}
