@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: #3B82F6;
  --brand-hover: #2563EB;
  --brand-light: #EFF6FF;
  --brand-soft: rgba(59, 130, 246, 0.12);
  --brand-border: rgba(59, 130, 246, 0.24);
  --brand-shadow: rgba(37, 99, 235, 0.22);
  --accent: #3B82F6;
  --accent-soft: rgba(59, 130, 246, 0.10);
  --accent-border: rgba(59, 130, 246, 0.24);
  --gold: #3B82F6;
  --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; background: #fff; }
.search-shell { flex: 1; display: flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 17px; background: #fff; border: 1px solid rgba(17, 24, 39, 0.08); box-shadow: 0 4px 11px rgba(17, 24, 39, 0.04); }
.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: 3px; width: 62px; height: 35px; border-radius: 18px; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.24); }
.mode-text, .mode-caret { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; }

.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 { min-height: 100vh; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.top-search-wrap { display: flex; align-items: center; gap: 7px; padding: 10px 13px 0; background: #fff; flex-shrink: 0; position: relative; z-index: 50; }
.search-shell { flex: 1; min-width: 0; height: 34px; 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: 1px solid rgba(17, 24, 39, 0.08); }
.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); }
.mode-btn { width: 62px; height: 35px; border-radius: 18px; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.24); display: flex; align-items: center; justify-content: center; gap: 3px; flex-shrink: 0; }
.mode-text { color: #3B82F6; font-size: 13px; font-weight: 600; line-height: 1; }
.mode-caret { display: inline-flex; align-items: center; }
.market-scroll-wrap { flex: 1; min-height: 0; overflow: hidden; }
.market-scroll { height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 10px; }
.market-table { min-width: max-content; background: #fff; }
.market-head { display: block; position: sticky; top: 0; z-index: 40; background: #fff; overflow: visible; padding: 0; }
.market-head .cell,
.market-head .sticky-name-col { background: #fff; }
.market-body { display: block; margin-top: 0; }
.market-row { display: flex; align-items: center; min-width: 608px; }
.body-row { height: 76px; padding: 0; border-radius: 0; background: #fff; border: 0; box-shadow: none; }
.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: 12px; height: 12px; flex-shrink: 0; font-size: 10px; }
.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: 230px; min-width: 230px; max-width: 230px; 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: 69px; min-width: 69px; max-width: 69px; justify-content: flex-end; text-align: right; }
.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: 71px; min-width: 71px; max-width: 71px; }
.col-volume--no-rise-home { width: 74px; min-width: 74px; max-width: 74px; }
.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: 18px;
  height: 18px;
  border-radius: 9px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.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: #F0F7FF; border: 1px solid rgba(59, 130, 246, 0.16); border-radius: 12px; box-shadow: 0 5px 12px rgba(37, 99, 235, 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(59, 130, 246, 0.22); box-sizing: border-box; }
.history-only-search-pill-text { color: #2563EB; 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: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-screen--feed .header {
  padding: 10px 13px 9px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}
.mobile-screen--feed .top-search-wrap { padding: 0; }
.mobile-screen--feed .container {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #fff;
  overflow: auto;
  padding-bottom: calc(var(--tabbar-height) + 18px);
}
.mobile-screen--feed .feed-scroll {
  padding: 0 13px 10px;
}
.feed-scroll [data-role="feed-list"],
.feed-container { display: flex; flex-direction: column; gap: 12px; }
.feed-clear-btn {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feed-clear-btn[hidden] { display: none; }
.card { border-radius: 16px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(15,23,42,0.06), 0 2px 8px rgba(15,23,42,0.04); }
.card-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(60, 60, 67, 0.08); padding-bottom: 6px; margin-bottom: 8px; min-width: 0; }
.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; }
.card-time { font-size: 13px; color: #3B82F6; background: rgba(59, 130, 246, 0.10); border: 1px solid rgba(59, 130, 246, 0.16); border-radius: 999px; padding: 0 8px; line-height: 20px; font-family: var(--font-mono); flex-shrink: 0; white-space: nowrap; }
.card-body { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-image { width: 57px; height: 57px; border-radius: 12px; object-fit: cover; background: var(--bg-soft); border: 1px solid rgba(60, 60, 67, 0.12); flex-shrink: 0; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
.card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.card-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; font-size: 13px; }
.label { color: #7e8595; font-size: 11px; width: 44px; flex-shrink: 0; line-height: 1.3; 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; }
.price-value { color: #1D1D1F; font-weight: 700; font-size: 13px; }
.range-tags { display: inline-flex; gap: 4px; min-width: 0; }
.range-tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.range-tag.high { color: #FF3B30; background: rgba(255, 59, 48, 0.08); border-color: rgba(255, 59, 48, 0.2); }
.range-tag.low { color: #21813f; background: rgba(52, 199, 89, 0.06); border-color: rgba(52, 199, 89, 0.14); }
.card-metric { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 63px; padding-left: 8px; border-left: 0.5px solid rgba(60, 60, 67, 0.1); flex-shrink: 0; }
.metric-label { color: #71717a; font-size: 11px; margin-bottom: 5px; font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; }
.ios-badge { min-width: 56px; padding: 8px 18px; border-radius: 14px; background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%); color: #fff; text-align: center; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.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(0,0,0,0.35);
  display: flex; align-items: flex-end; justify-content: center;
}
.feed-menu-panel {
  width: 100%; max-width: 430px;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
  animation: feedMenuSlideUp 0.25s ease-out;
}
@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: #3B82F6;
  background: rgba(59,130,246,0.12); padding: 2px 8px; border-radius: 6px; margin-bottom: 4px;
}
.feed-setting-tag--qty { color: #21813f; background: rgba(52,199,89,0.1); }
.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:checked + .feed-switch-slider { background: #3B82F6; }
.feed-switch input:checked + .feed-switch-slider::before { transform: translateX(18px); }

/* ── more-page: member-center ── */
.member-center {
  position: relative; overflow: hidden;
  margin-top: 16px; margin-bottom: 16px;
  padding: 24px 20px 20px;
  border-radius: 20px;
  background: linear-gradient(160deg, #12151c 0%, #0b0d12 68%, #08090e 100%);
  border: 1px solid rgba(214, 173, 95, 0.35);
  box-shadow: 0 6px 16px 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__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: 24px; font-weight: 400;
  letter-spacing: 2px; color: #fff7e8;
}
.member-center__vip-badge {
  display: inline-flex;
  padding: 3px 10px; border-radius: 6px;
  background: linear-gradient(135deg, #deb86b, #a97935);
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; line-height: 1.3;
}
.member-center__benefit-id {
  margin: 8px 0 0; font-size: 12px;
  color: rgba(241,230,204,0.46); letter-spacing: 1px;
}
.member-center__benefit-id strong {
  font-weight: 500; color: rgba(241,230,204,0.55);
}
.member-center__aside {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 16px; border-radius: 8px;
  border: 1px solid rgba(214,173,95,0.35);
  background: rgba(214,173,95,0.08);
  color: #e7c778; font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; cursor: pointer; flex-shrink: 0;
  transition: all .2s;
}
.member-center__aside-btn {
  background: none; border: none; color: inherit;
  font: inherit; padding: 0; cursor: pointer;
}
.member-center__metrics {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; position: relative; z-index: 1;
}
.member-center__metric {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.member-center__metric-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.member-center__metric-label {
  font-size: 13px; font-weight: 500;
  color: rgba(241,230,204,0.66);
}
.member-center__metric-value-row { margin-top: 8px; }
.member-center__metric-value {
  font-size: 22px; font-weight: 300;
  color: #e7c778; line-height: 1;
}
.member-center__actions {
  margin-top: 14px;
  display: flex; gap: 10px;
  position: relative; z-index: 1;
}
.member-center__action-btn {
  flex: 1; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(241,230,204,0.72);
  font-size: 13px; font-weight: 500;
  cursor: default;
}
.member-center__action-btn:first-child {
  background: rgba(214,173,95,0.14);
  border-color: rgba(221,184,115,0.58);
  color: #f1d58a; font-weight: 650;
  box-shadow: 0 8px 18px rgba(214,173,95,0.16);
}
.member-center__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,173,95,0.15), transparent);
  margin: 14px 0; position: relative; z-index: 1;
}
.member-center__footer {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.member-center__username {
  color: rgba(241,230,204,0.3); font-size: 11px;
  letter-spacing: 0.02em; margin: 0;
}
.member-center__username strong {
  font-weight: 500; color: rgba(241,230,204,0.5);
}

/* guest card for not logged in */
.member-center__guest-reward {
  position: relative; z-index: 1;
  margin-top: 8px; padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(214,173,95,0.22);
}
.member-center__guest-reward-title {
  margin: 0; font-size: 16px; font-weight: 600;
  color: #edcd85; line-height: 1.3;
}
.member-center__guest-reward-desc {
  display: block; margin-top: 8px;
  font-size: 13px; line-height: 1.5;
  color: rgba(241,230,204,0.62);
}
.member-center__guest-actions {
  margin-top: 14px;
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 1;
}
.member-center__feature-btn {
  flex: 1; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #d6ad5f, #a97935);
  color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(169,121,53,0.4);
  transition: opacity .2s;
}
.member-center__feature-btn:active { opacity: 0.85; }

/* ── renew card panel ── */
.member-center__panel-wrap {
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
}
.member-center__panel-wrap--open { max-height: 400px; opacity: 1; margin-top: 8px; }
.member-center__panel-wrap--open .member-center__panel {
  animation: h5PanelRise 0.35s cubic-bezier(0.22,1,0.36,1) 0.05s both;
}
@keyframes h5PanelRise {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.member-center__panel {
  padding: 12px 15px; border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
}
.member-center__panel-row {
  display: flex; align-items: center; gap: 8px;
  animation: h5PanelRowIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.08s;
}
@keyframes h5PanelRowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.member-center__renew-input {
  flex: 1; height: 38px; padding: 0 12px; border-radius: 8px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff5e5; font-size: 13px; outline: none;
  animation: h5InputGlow 0.9s ease;
}
@keyframes h5InputGlow {
  0% { border-color: rgba(214,173,95,0.24); }
  40% { border-color: rgba(214,173,95,0.5); box-shadow: 0 0 8px rgba(214,173,95,0.15); }
  100% { border-color: rgba(255,255,255,0.14); box-shadow: none; }
}
.member-center__renew-input::placeholder { color: rgba(233,207,153,0.5); }
.member-center__panel-button {
  flex-shrink: 0; height: 38px; padding: 0 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.member-center__panel-button--gold {
  background: linear-gradient(135deg, #d6ad5f, #a97935);
  color: #fff; box-shadow: 0 5px 12px rgba(169,121,53,0.35);
  animation: h5GoldBounce 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.15s;
}
@keyframes h5GoldBounce {
  from { opacity: 0; transform: scale(0.92); }
  60% { transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}
.member-center__panel-button--disabled { opacity: 0.6; pointer-events: none; }
.member-center__panel-divider {
  height: 1px; margin: 10px 0 9px;
  background: rgba(255,255,255,0.08);
}
.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__purchase-link-action {
  flex-shrink: 0; height: 30px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  background: transparent; border: 1px solid #d6ad5f;
  color: #d6ad5f; cursor: pointer; transition: all .2s;
}
.member-center__purchase-link-action:active { background: rgba(214,173,95,0.12); }

.button-list { display: flex; flex-direction: column; gap: 10px; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
.button-item { display: flex; align-items: center; justify-content: space-between; min-width: 0; border-radius: 12px; padding: 13px 15px; position: relative; }
.button-item.ripple { background: #fff; border: 1px solid rgba(60, 60, 67, 0.1); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 4px rgba(15, 23, 42, 0.03); }
.button-item:active { background-color: #f2f2f7; }
.item-left { display: flex; align-items: center; flex: 1; min-width: 0; }
.icon-wrapper { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; justify-content: center; align-items: center; margin-right: 14px; background: #fff; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9); flex-shrink: 0; }
.icon-wrapper--gold { background: #fff; }
.icon-wrapper--dark { background: #fff; }
.icon-wrapper--dark .btn-icon { filter: none; }
.icon-wrapper--orange,
.icon-wrapper--gray { background: rgba(255, 255, 255, 0.82); }
.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: 16px; line-height: 1.3; font-weight: 600; color: #1c1c1e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-desc { margin-top: 2px; font-size: 12px; line-height: 1.35; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.free-inline-tag { flex-shrink: 0; padding: 3px 7px; border-radius: 999px; background: transparent; border: 1px solid #3B82F6; }
.free-inline-text { color: #3B82F6; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0; 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 {
  background: #fff;
  padding: 0 16px calc(var(--tabbar-height) + 20px);
}
.ann-header {
  position: sticky;
  top: 0;
  z-index: 18;
  padding: 18px 10px 14px;
  background: #fff;
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.05);
}
.ann-header .top-search-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: transparent;
}
.ann-search-shell {
  flex: 1;
  min-width: 0;
  height: 33px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 4px 11px rgba(17, 24, 39, 0.04);
  display: flex;
  align-items: center;
  padding: 0 13px;
}
.ann-clear-btn {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ann-clear-btn[hidden] { display: none; }
.ann-header .feature-panel__title { font-size: 20px; color: #1c1c1e; }
.ann-header .feature-panel__desc { margin-top: 7px; color: #8e8e93; }
.search-tip {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 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: #3B82F6;
  border: 1px solid rgba(59,130,246,0.45);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.announcements-page .announcement-list { padding: 12px 0 0; }
.ann-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 15px;
  box-shadow: 0 11px 32px rgba(15, 23, 42, 0.16), 0 3px 9px rgba(15, 23, 42, 0.08);
  transition: transform 0.1s linear;
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.ann-card:active { transform: scale(0.98); }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}
.tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.category-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.10);
  color: #3B82F6;
  white-space: nowrap;
}
.category-tag.tag-default { background: rgba(59, 130, 246, 0.10); color: #3B82F6; }
.category-tag.tag-synthesis { background: rgba(147, 51, 234, 0.12); color: #7e22ce; }
.category-tag.tag-activity { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.category-tag.tag-rule { background: rgba(20, 184, 166, 0.15); color: #0f766e; }
.category-tag.tag-maintenance { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.category-tag.tag-risk { background: rgba(100, 116, 139, 0.18); color: #334155; }
.calc-done-tag {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1;
  white-space: nowrap;
}
.time {
  font-size: 11px;
  color: #86868b;
  font-family: "DIN Alternate", var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}
.title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ann-detail-hint { display: block; margin-top: 2px; }
.ann-footer-state { padding: 20px 0 30px; text-align: center; }
.no-more-title { font-size: 12px; color: #aeaeb2; margin-bottom: 4px; }
.no-more-sub { font-size: 11px; color: #d1d1d6; }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: #86868b;
  font-size: 13px;
}
.empty-img {
  width: 120px;
  height: 120px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.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(0,122,255,0.14) 0, rgba(0,122,255,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(0,122,255,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__notice {
  width: 100%;
  margin: 0 0 24px;
  padding: 13px 16px 14px;
  position: relative;
  transform: rotate(-0.7deg);
  border-radius: 8px 11px 9px 12px;
  background: #fff3b8;
  border: 2px solid #1d4ed8;
  color: #17315f;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
  box-shadow: 5px 7px 0 rgba(29, 78, 216, 0.13), 0 12px 26px rgba(15, 23, 42, 0.10);
}
.scheme-b__notice span {
  display: block;
}
.scheme-b__notice span + span {
  margin-top: 3px;
}
.scheme-b__notice-emphasis {
  color: #1d4ed8;
  font-size: 12px;
}
.scheme-b__notice::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 62px;
  height: 18px;
  transform: translateX(-50%) rotate(2deg);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(29, 78, 216, 0.16);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}
.scheme-b__notice::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 5px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.18);
  transform: rotate(-0.8deg);
}
.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(0,122,255,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(0,122,255,0.07);
  border: 1px solid rgba(0,122,255,0.12);
}
.scheme-b__wb-tag-key {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #007AFF;
}
.scheme-b__wb-dot {
  color: #007AFF;
  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: #007AFF;
  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: #007AFF;
  box-shadow: 0 0 0 3px rgba(0,122,255,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__btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: #007AFF;
  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(0,122,255,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: #007AFF;
  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;
}
.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__notice,
.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; }
.mobile-inline-tip { margin-top: 12px; text-align: center; }
.footer-hint { padding: 18px 0 8px; text-align: center; }
.footer-logo { width: 40px; height: 40px; border-radius: 8px; margin-bottom: 4px; background: #fff; border: none; }

.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);
}
.tab-bar-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  bottom: 0;
  background: #fff;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}
.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;
}
.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;
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.tab-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0.9;
}
.tab-bar-item.active .tab-icon {
  transform: scale(1.15) translateY(-1px);
  opacity: 1;
  filter: brightness(0) saturate(100%);
}
.tab-text {
  font-size: 10px;
  margin-top: 2px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  transition: color 0.3s ease;
}
.tab-bar-item.active .tab-text { color: #000; }
.active-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 5px;
  height: 5px;
  background: #000;
  border-radius: 50%;
  border: 1px solid #fff;
}
.tab-bar-item:active .icon-container {
  transform: scale(0.85);
  opacity: 0.7;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}
.tab-bar-item:active .tab-text { opacity: 0.7; }

@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-detail-page {
  min-height: 100vh;
  padding: 0 0 calc(var(--tabbar-height) + 20px);
  background: #fff;
}
.collection-detail-page .detail-tab-shell { padding: 0 16px; }
.collection-detail-page .detail-section { 
  padding: 16px 16px 100px; 
  animation: detailSectionEnter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.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;
}

.detail-tab-shell {
  position: sticky; top: 0; z-index: 20;
  margin-top: 75px;
  padding: 0 16px;
  background: #fff;
}
.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;
}
.detail-tab-bar {
  display: flex; align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.detail-tab-bar::-webkit-scrollbar {
  display: none;
}
.detail-tab-item {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 0 8px;
  margin-right: 14px;
  font-size: 14px; color: #9ca3af;
  cursor: pointer;
  transition: color 0.22s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.25;
  background: transparent;
  border-radius: 0;
}
.detail-tab-item:last-child {
  margin-right: 0;
}
.detail-tab-item::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; border-radius: 999px;
  background: var(--brand);
  transform: scaleX(0); opacity: 0.4;
  transition: transform 0.24s cubic-bezier(0.2,0.8,0.2,1), opacity 0.22s;
}
.detail-tab-item--active {
  color: #111827; font-weight: 700;
}
.detail-tab-item--active::after {
  transform: scaleX(1); opacity: 1;
}

/* 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;
  animation: detailSectionEnter 0.22s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes detailSectionEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Announcements tab */
.ann-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.15s;
}
.ann-card:active { transform: scale(0.98); }
.ann-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.ann-tag-group { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ann-tag {
  flex-shrink: 0;
  font-size: 11px; font-weight: 600;
  color: #3B82F6;
  background: rgba(59, 130, 246, 0.10);
  border-radius: 999px;
  padding: 4px 10px;
  border: none;
}
.ann-tag.tag-synthesis {
  color: #7e22ce;
  background: rgba(147,51,234,0.12);
  border-color: rgba(147,51,234,0.14);
}
.ann-tag.tag-activity {
  color: #b45309;
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.14);
}
.ann-tag.tag-rule {
  color: #0f766e;
  background: rgba(20,184,166,0.15);
  border-color: rgba(20,184,166,0.14);
}
.ann-tag.tag-maintenance {
  color: #b91c1c;
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.14);
}
.ann-tag.tag-risk {
  color: #334155;
  background: rgba(100,116,139,0.18);
  border-color: rgba(100,116,139,0.14);
}
.ann-tag-done {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
  font-size: 11px; color: #15803d;
  background: rgba(22,163,74,0.1);
  border-radius: 999px;
  padding: 3px 8px;
}
.ann-time { font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.ann-title { font-size: 14px; color: #0f172a; line-height: 1.5; font-weight: 600; text-wrap: pretty; }
.ann-summary {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(59,130,246,0.18);
  background: rgba(59,130,246,0.08);
  font-size: 13px; color: var(--brand); font-weight: 600;
}
.ann-load-more-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 40px;
  margin-top: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #151922 0%, #08090e 100%);
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; border: none;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.20);
  transition: transform 0.18s, opacity 0.18s;
}
.ann-load-more-btn:active { transform: scale(0.97); opacity: 0.9; }
.ann-load-more-end {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; margin-top: 8px;
  font-size: 12px; color: #94a3b8;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.88);
}

/* 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-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 ===== */
.mobile-screen--warehouse-query {
  padding: 0 0 calc(var(--tabbar-height) + 20px);
  background: var(--bg-page);
}
.wq-page { padding: 8px 16px 24px; }
.wq-panel {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 8px;
  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: #1d1d1f;
  line-height: 1.24;
  text-wrap: pretty;
}

/* Status overview */
.wq-status-panel {
  padding: 8px 14px;
}
.wq-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.wq-status-row + .wq-status-row {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(60,60,67,0.06);
}
.wq-status-label {
  font-size: 14px;
  color: #6e6e73;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.45;
}
.wq-status-value-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.wq-status-value {
  font-size: 14px;
  color: #1d1d1f;
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wq-status-value-error { color: #b42318; }
.wq-status-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}
.status-simple-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.status-node {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.status-node-gold { background: var(--brand); }
.status-node-green { background: #21813f; box-shadow: 0 0 0 3px rgba(33, 129, 63, 0.10); }
.status-node-error { background: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.10); }
.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;
  color: #3B82F6;
  background: rgba(59, 130, 246, 0.09);
  border: 0.5px solid rgba(59, 130, 246, 0.15);
}
.status-pill-ok { color: #3B82F6; background: rgba(59, 130, 246, 0.09); border-color: rgba(59, 130, 246, 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: #1c1c1e; background: rgba(28, 28, 30, 0.06); border-color: rgba(28, 28, 30, 0.12); }
.wq-subscription-btn {
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.wq-subscription-btn:active { opacity: 0.8; }

/* Stats row */
.wq-stats-row {
  display: flex;
  gap: 8px;
  padding: 8px 0 0;
  margin-bottom: 7px;
}
.wq-stat-card {
  flex: 1;
  background: #fff;
  border: 1px 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.15s;
  min-width: 0;
}
.wq-stat-card:active { transform: scale(0.97); }
.wq-stat-label {
  font-size: 11px;
  color: #6e6e73;
  line-height: 1.3;
}
.wq-stat-value {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Leaderboard entry */
.wq-leaderboard-entry-panel { padding: 0; }
.tools-section { margin: 8px 0 0; }
.tools-grid { display: flex; gap: 8px; }
.wq-leaderboard-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  flex: 1;
  min-height: 60px;
}
.wq-leaderboard-entry--locked {
  background: #fff;
  border: 1px 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);
  cursor: default;
}
.wq-leaderboard-entry--unlocked {
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 42%),
    linear-gradient(135deg, #F0F7FF 0%, #fff6dd 100%);
  border: 1px solid rgba(59,130,246,0.22);
  box-shadow: 0 8px 22px rgba(37,99,235,0.10);
  cursor: pointer;
}
.wq-leaderboard-entry--unlocked:active {
  transform: scale(0.992);
  box-shadow: 0 5px 16px rgba(37,99,235,0.14);
}
.wq-leaderboard-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.wq-leaderboard-icon--locked {
  color: #8e8e93;
  background: rgba(60,60,67,0.06);
}
.wq-leaderboard-icon--unlocked {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.08));
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.14);
}
.wq-leaderboard-main { flex: 1; min-width: 0; }
.wq-leaderboard-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wq-leaderboard-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.wq-leaderboard-title--locked { color: #636366; }
.wq-leaderboard-title--unlocked { color: #1d1d1f; }
.wq-leaderboard-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.wq-leaderboard-badge--unlocked {
  color: #15803d;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.15);
}
.wq-leaderboard-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}
.wq-leaderboard-desc--locked { color: #8e8e93; }
.wq-leaderboard-desc--unlocked { color: #5d6778; }
.wq-leaderboard-hint {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.wq-leaderboard-hint--locked { color: #8e8e93; }
.wq-leaderboard-hint--unlocked {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--brand-hover) 100%);
  padding: 0 14px;
  height: 32px;
  line-height: 32px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24);
}

/* Search panel */
.search-module {
  margin: 8px 0 0;
  padding: 16px;
  border-radius: 16px;
}
.wq-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.wq-keyword-input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  color: #1d1d1f;
  outline: none;
  display: block;
  box-sizing: border-box;
}
.wq-keyword-input:focus { border-color: var(--accent); }
.wq-keyword-input::placeholder { color: #8e8e93; }
.mobile-screen--warehouse-query .wq-search-shell {
  width: 100%;
  height: 33px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 4px 11px rgba(17, 24, 39, 0.04);
  padding: 0 13px;
}
.search-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.wq-search-btn {
  width: 100%;
  height: 40px;
  margin: 0;
  border-radius: 12px;
  background: #1c1c1e;
  color: #fff;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: block;
  box-sizing: border-box;
  transition: opacity 0.2s;
}
.wq-search-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.wq-search-btn:active:not(:disabled) { opacity: 0.85; }
.wq-status-hint {
  font-size: 11px;
  color: #7a7a81;
  line-height: 1.4;
  margin-top: 4px;
}
.wq-status-hint-error {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #ffd6a8;
  background: #fff6eb;
  color: #b45309;
  font-weight: 700;
  font-size: 11px;
}

/* Candidates */
.wq-candidate-hint {
  font-size: 12px;
  color: #6e6e73;
  margin-top: 6px;
  margin-bottom: 8px;
}
.wq-candidate-item {
  background: #f5f5f9;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #2a2a2f;
  margin-bottom: 6px;
  border: 1px solid rgba(60,60,67,0.12);
  cursor: pointer;
  transition: all 0.15s;
}
.wq-candidate-item:active { background: #ececf1; }
.wq-candidate-item-active {
  background: #EFF6FF;
  color: var(--brand);
  font-weight: 600;
  border-color: rgba(59,130,246,0.28);
}
.wq-empty-panel { text-align: center; }
.wq-empty-text {
  text-align: center;
  color: #6e6e73;
  font-size: 13px;
  padding: 16px 0;
}

/* Quick actions */
.wq-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.wq-quick-card {
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s;
}
.wq-quick-card:active { transform: scale(0.97); }
.wq-quick-card-monitor {
  background: linear-gradient(135deg, #F0F7FF 0%, #fff6dd 100%);
  border: 2px solid rgba(59,130,246,0.32);
}
.wq-quick-card-model {
  background: linear-gradient(135deg, #e9fbf4 0%, #f2fdf8 100%);
  border: 2px solid #b9ecd6;
}
.wq-quick-label-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wq-quick-label {
  font-size: 11px;
  color: #6e6e73;
  line-height: 1.3;
  white-space: nowrap;
}
.wq-quick-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.wq-quick-tag-member { background: linear-gradient(135deg, #151922 0%, #08090e 100%); }
.wq-quick-tag-free { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }
.wq-quick-value {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.wq-quick-value-blue { color: #2563EB; }
.wq-quick-value-green { color: #0f9f62; }

/* Result panel */
.wq-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.wq-result-title-wrap { flex: 1; min-width: 0; }
.wq-result-title {
  font-size: 17px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wq-result-flags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.wq-result-ai-tag,
.wq-result-hot-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.wq-result-ai-tag {
  color: #8f4f00;
  background: #EFF6FF;
  border: 1px solid rgba(255,149,0,0.22);
}
.wq-result-hot-tag {
  color: #a03c34;
  background: #ffeceb;
  border: 1px solid rgba(255,59,48,0.2);
}
.wq-result-tag {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #EFF6FF;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
}

/* Metrics grid */
.wq-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.wq-metric-item {
  background: #f5f5f9;
  border-radius: 10px;
  border: 1px solid rgba(60,60,67,0.1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wq-metric-label {
  font-size: 11px;
  color: #6e6e73;
  display: block;
}
.wq-metric-value {
  font-size: 16px;
  color: #1d1d1f;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wq-snapshot-meta {
  font-size: 11px;
  color: #6e6e73;
  margin-bottom: 8px;
}

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

/* History */
.wq-history-title {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  margin-top: 12px;
  margin-bottom: 6px;
}
.wq-hist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f9;
  border-radius: 10px;
  border: 1px solid rgba(60,60,67,0.1);
  padding: 8px 10px;
  margin-bottom: 4px;
  font-size: 13px;
}
.wq-hist-head {
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
}
.wq-hist-col-time { width: 30%; color: #2f2f34; font-size: 12px; }
.wq-hist-col-holder,
.wq-hist-col-total,
.wq-hist-col-avg {
  width: 18%;
  text-align: center;
  color: #4d4d55;
  font-size: 12px;
}
.wq-hist-col-star {
  width: 16%;
  text-align: center;
  color: #b8860b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.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: 600; }
.wq-history-empty {
  font-size: 12px;
  color: #8e8e93;
  padding: 12px 0;
  text-align: center;
}
.wq-history-error-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f5f5f9;
  border-radius: 10px;
  border: 1px solid rgba(220,38,38,0.15);
  padding: 10px 12px;
}
.wq-history-error-text {
  flex: 1;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}
.wq-history-refresh-btn {
  flex-shrink: 0;
  height: 32px;
  line-height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.wq-history-refresh-btn:active { opacity: 0.85; }
.wq-history-loading-alert {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ffd6a8;
  background: #fff9f1;
  margin-bottom: 8px;
}
.wq-history-loading-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wq-history-loading-beacon {
  display: inline-block;
  width: 8px;
  height: 8px;
  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 6px 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: 700;
  font-size: 12px;
}
.wq-history-loading-desc {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: #9a3412;
}
.wq-result-tip {
  margin-top: 10px;
  font-size: 11px;
  color: #6e6e73;
  line-height: 1.5;
}
.wq-result-source {
  margin-top: 2px;
  font-size: 11px;
  color: #8e8e93;
}

/* 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: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  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 */
.wq-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  max-width: 80vw;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.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); }



.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 auto-refresh capsule ─── */
.member-auto-refresh-capsule {
  display: flex; align-items: center; justify-content: center;
  height: 34px; width: 64px; border-radius: 17px;
  background: transparent; border: 1px solid rgba(59,130,246,0.18);
  gap: 4px; flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
  position: relative; overflow: hidden;
}
.member-auto-refresh-capsule--refreshed {
  background: rgba(232,246,237,0.98);
  border-color: rgba(52,199,89,0.28);
}
.member-auto-refresh-capsule__icon {
  width: 14px; height: 14px; position: relative;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.member-auto-refresh-capsule__icon-inner {
  width: 100%; height: 100%;
  border: 2px solid #3B82F6; border-top-color: transparent;
  border-radius: 50%; box-sizing: border-box;
  animation: capsuleRotate 1.2s cubic-bezier(0.4,0,0.2,1) infinite;
}
.member-auto-refresh-capsule--refreshed .member-auto-refresh-capsule__icon-inner {
  border: none; animation: none;
  display: flex; align-items: center; justify-content: center;
}
.member-auto-refresh-capsule--refreshed .member-auto-refresh-capsule__icon-inner::after {
  content: "✓"; color: #21813f; font-size: 14px; font-weight: 800;
}
.member-auto-refresh-capsule__value {
  font-size: 13px; font-weight: 700; color: #3B82F6;
  font-family: 'DIN Alternate',-apple-system,sans-serif;
  letter-spacing: -0.25px; text-align: center;
}
.member-auto-refresh-capsule--refreshed .member-auto-refresh-capsule__value {
  color: #21813f; font-size: 12px;
}
.member-auto-refresh-badge--stage-1 { border-color: rgba(59,130,246,0.30); background: #fff; }
.member-auto-refresh-badge--stage-1 .member-auto-refresh-capsule__value { color: #9f7935; }
.member-auto-refresh-badge--stage-1 .member-auto-refresh-capsule__icon-inner {
  border-color: #3B82F6; border-top-color: transparent;
}
@keyframes capsuleRotate {
  from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}

/* ─── 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(59,130,246,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(59,130,246,0.16);
}
body.dark-mode .history-only-search-pill-text { color: #FFD45A; }
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); }
  .member-auto-refresh-capsule__icon-inner { animation: none; }
}
