/* ============================================================
   早睡商店 · 商城样式（宣纸 · 墨 · 印泥）
   由旧的 styles.css（基础布局）+ tokyo-site.css（主题层）合并，并删掉了商城页面用不到的规则。
   前半部分是基础布局，后半部分从「主题变量：白天」起是主题与组件层，后者覆盖前者。
   颜色一律用 body / body.tokyo-dark 上定义的变量，不要写死。
   ============================================================ */
:root {
  --header-h: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(255, 46, 196, .35); }
/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3d2a55, #2a2a45);
  border-radius: 8px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: #4d3570; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--violet);
  box-shadow: 0 0 12px rgba(185, 103, 255, .35);
}
.icon-btn .material-symbols-rounded { font-size: 19px; }
#volumeSlider {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--magenta) var(--fill, 65%), var(--line) var(--fill, 65%));
  outline: none;
  cursor: pointer;
}
#volumeSlider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--magenta);
  box-shadow: 0 0 8px rgba(255, 46, 196, .7);
}
/* ============ 按钮体系 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s, color .18s;
  white-space: nowrap;
}
.btn .material-symbols-rounded { font-size: 19px; }
.btn--primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 22px rgba(255, 46, 196, .35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 46, 196, .5), 0 0 18px rgba(139, 92, 246, .4);
}
.btn--primary:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--line-bright);
}
.btn--outline:hover {
  color: var(--text);
  border-color: var(--violet);
  box-shadow: inset 0 0 18px rgba(139, 92, 246, .12), 0 0 14px rgba(139, 92, 246, .2);
}
.btn--sm { padding: 8px 18px; font-size: 13px; }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

/* ============ 通用 Section ============ */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px 60px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.chip .material-symbols-rounded { font-size: 17px; }
.chip:hover { color: var(--text); border-color: var(--line-bright); }
.chip.is-active {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 46, 196, .4);
}

/* ============ 常见问题（终端） ============ */
.terminal {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0b16;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 34px rgba(255, 46, 196, .07);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line-soft);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--red { background: #ff5f56; }
.dot--yellow { background: #ffbd2e; }
.dot--green { background: #27c93f; }
.terminal-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: .5px;
}
.terminal-body {
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 2;
  color: #c9c9e0;
}
.faq-item { margin-bottom: 4px; }
.faq-q {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 4px 6px;
  border: none;
  background: transparent;
  color: #c9c9e0;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  border-radius: 6px;
  transition: background .18s, color .18s;
}
.faq-q:hover { background: rgba(139, 92, 246, .12); color: #fff; }
.faq-q .arrow { color: var(--magenta); text-shadow: 0 0 8px rgba(255, 46, 196, .6); transition: transform .25s; }
.faq-item.is-open .arrow { transform: rotate(90deg); }
/* 展开动画：grid-template-rows 0fr→1fr，内容高度自适应，窗口任意拉伸不错位 */
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}
.faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a {
  overflow: hidden;
  min-height: 0;
  padding: 0 6px 0 34px;
  color: #8f8fb8;
  font-size: 13px;
  line-height: 1.75;
  transition: padding .32s ease, opacity .32s ease;
  opacity: 0;
}
.faq-item.is-open .faq-a { padding: 2px 6px 8px 34px; opacity: 1; }

/* ============ 公告弹窗 ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

@media (max-width: 720px) {
  .terminal-body { font-size: 12px; padding: 16px; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.field label small { color: var(--text-faint); font-weight: 400; }
.field select, .field input {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select:focus, .field input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}
.order-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px dashed var(--line-bright);
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
}
.order-summary span { font-size: 13px; color: var(--text-dim); letter-spacing: 2px; }
.order-summary strong {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--magenta);
  text-shadow: 0 0 14px rgba(255, 46, 196, .4);
}
.form-note { font-size: 12.5px; line-height: 1.8; color: var(--text-faint); }
.form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, .45);
  background: rgba(248, 113, 113, .1);
  color: var(--red);
  font-size: 13px;
}
.btn--block { width: 100%; }
/* 订单卡 */
.order-card {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 88%, transparent);
}
.order-loading { text-align: center; color: var(--text-faint); font-size: 14px; }
.order-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.order-time { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }
.order-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  padding: 16px 0;
  border-top: 1px dashed var(--line-soft);
  border-bottom: 1px dashed var(--line-soft);
}
.order-meta > div { display: flex; flex-direction: column; gap: 4px; }
.order-meta dt { font-size: 12px; color: var(--text-faint); letter-spacing: 1px; }
.order-meta dd { font-size: 14px; word-break: break-all; }
.order-meta code { font-family: var(--font-mono); color: var(--cyan); }
.order-price {
  font-family: var(--font-num, Georgia, serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}
/* 状态徽章 */
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--line-bright);
  color: var(--text-dim);
}
.order-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.st-pending { color: var(--yellow); border-color: rgba(250, 204, 21, .4); }
.st-paid { color: var(--green); border-color: rgba(74, 222, 128, .4); }
.st-processing { color: var(--cyan); border-color: rgba(0, 229, 255, .4); }
.st-done { color: var(--violet); border-color: rgba(185, 103, 255, .4); }
.st-refunded { color: var(--red); border-color: rgba(248, 113, 113, .4); }
.st-cancelled { color: var(--text-faint); }
/* 客服交接区 */
.handoff {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 46, 196, .4);
  border-radius: var(--radius);
  background: var(--grad-soft);
  box-shadow: inset 0 0 24px rgba(255, 46, 196, .06);
}
.handoff-tip { font-size: 13.5px; color: var(--text-dim); }
.handoff-no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 46, 196, .5);
  background: rgba(8, 8, 15, .5);
}
.handoff-no code {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 46, 196, .6);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  transition: color .2s, border-color .2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--violet); }
.copy-btn .material-symbols-rounded { font-size: 16px; }
.handoff-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.handoff-steps {
  margin: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.6;
}
.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 860px;
}
.admin-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(139, 92, 246, .05); }
.admin-table code { font-family: var(--font-mono); color: var(--cyan); }
.cell-product {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim);
}
.cell-time { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.admin-empty { text-align: center; color: var(--text-faint); padding: 32px 0 !important; }
@media (max-width: 720px) {
  .order-meta { grid-template-columns: 1fr; }
  .handoff-actions { grid-template-columns: 1fr; }
  .order-card { padding: 22px 18px; }
}
/* ============================================================
   v2：结算页 / 账户 / 管理后台扩展（参考 acg-faka 领域模型）
   ============================================================ */
.field-tip { font-size: 12px; color: var(--cyan); }
/* 数量选择 */
.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-row input {
  width: 90px;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-mono);
  outline: none;
}
.qty-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--text-dim);
  font-size: 18px;
  transition: color .2s, border-color .2s;
}
.qty-btn:hover { color: var(--text); border-color: var(--violet); }
/* 支付方式选择 */
.pay-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.pay-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.pay-option input { accent-color: var(--magenta); }
.pay-option .material-symbols-rounded { font-size: 19px; color: var(--violet); }
.pay-option:has(input:checked) {
  border-color: var(--magenta);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 46, 196, .12);
}
.step-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.step-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  color: var(--text-dim);
}
.step-item em {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(255, 46, 196, .5);
}
.step-arrow {
  width: 26px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--purple));
  opacity: .6;
}
.step-no {
  font-style: normal;
  color: var(--magenta);
  font-family: var(--font-mono);
  margin-right: 4px;
}
.field textarea {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  outline: none;
  resize: vertical;
}
.field textarea:focus { border-color: var(--violet); }
.redeem-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}
.redeem-result {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  padding: 4px 2px;
  word-break: break-all;
}
.redeem-result--dim { color: var(--text-faint); }
.redeem-footnote {
  margin-top: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-faint);
}
@media (max-width: 720px) {
  .redeem-actions { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}
/* ============================================================
   GPT 额度刷新追踪
   ============================================================ */
.track-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 88%, transparent);
}
.track-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}
.track-status.is-running .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.track-tags .chip { padding: 7px 16px; font-size: 12.5px; }
.track-list { display: flex; flex-direction: column; gap: 4px; }
.track-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.track-item:hover { background: rgba(139, 92, 246, .07); }
.track-item + .track-item { border-top: 1px dashed var(--line-soft); }
.track-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .2);
}
.track-body { flex: 1; min-width: 0; }
.track-author {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.track-author small {
  font-weight: 400;
  color: var(--text-faint);
  margin-right: 8px;
}
.track-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 46, 196, .45);
  color: var(--magenta);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}
.track-text {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dim);
  word-break: break-all;
}
.track-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.track-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}
.track-link {
  font-size: 12px;
  color: var(--cyan);
  white-space: nowrap;
  transition: color .2s, text-shadow .2s;
}
.track-link:hover { text-shadow: 0 0 10px rgba(0, 229, 255, .6); }
.track-more {
  display: block;
  margin: 16px auto 0;
  padding: 8px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  transition: color .2s, border-color .2s;
}
.track-more:hover { color: var(--text); border-color: var(--violet); }
@media (max-width: 720px) {
  .track-item { flex-direction: column; }
  .track-side { flex-direction: row; align-items: center; }
}
/* 额度刷新日历（追踪模块侧栏） */
.track-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  align-items: start;
}
.track-card { max-width: 1060px; }
.track-status.is-delayed { color: var(--yellow); }
.track-status.is-delayed .status-dot { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.track-calendar {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 15, .45);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-head strong { font-size: 14px; letter-spacing: 1px; }
.cal-head button {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--text-dim);
  font-size: 16px;
  transition: color .2s, border-color .2s;
}
.cal-head button:hover { color: var(--text); border-color: var(--violet); }
.cal-weekdays, .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  padding: 4px 0 8px;
}
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1;
  max-height: 38px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.cal-day--empty { pointer-events: none; }
.cal-day--marked { color: var(--text); background: rgba(139, 92, 246, .10); cursor: help; }
.cal-day--today {
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 0 12px rgba(255, 46, 196, .45);
  font-weight: 800;
}
.cal-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
}
.cal-dot--magenta { background: var(--magenta); box-shadow: 0 0 5px var(--magenta); }
.cal-dot--cyan { background: var(--cyan); box-shadow: 0 0 5px var(--cyan); }
.cal-dot--past { opacity: .3; box-shadow: none; }
.cal-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 46, 196, .45);
  background: var(--grad-soft);
}
.cal-next-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-faint);
}
.cal-next strong { font-size: 12.5px; }
.cal-next small { font-size: 12px; color: var(--magenta); font-family: var(--font-mono); }
.cal-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-faint);
}
@media (max-width: 900px) {
  .track-layout { grid-template-columns: 1fr; }
}
.cal-summary {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}
.cal-summary strong { color: var(--magenta); }
.track-badge--stage {
  border-color: rgba(0, 229, 255, .45);
  color: var(--cyan);
  margin-left: 4px;
}
/* ============================================================
   重置邮件订阅
   ============================================================ */
.notify-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}
.notify-form input, .notify-form select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
.notify-form input:focus, .notify-form select:focus { border-color: var(--violet); }
.notify-subs h3 {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin: 16px 0 10px;
}
.notify-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.notify-row + .notify-row { border-top: 1px dashed var(--line-soft); }
.notify-row:hover { background: rgba(139, 92, 246, .06); }
.notify-row code { font-family: var(--font-mono); color: var(--cyan); font-size: 13px; }
.notify-ops { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 720px) {
  .notify-form { grid-template-columns: 1fr; }
}
/* ============================================================
   早睡商店 · 全站主题层（宣纸 · 墨 · 印泥）
   加载于 styles.css 之后，styles.css 只提供基础布局。
   - 默认 = 白天：宣纸底、墨色正文与主按钮、印泥红只做少量点缀
   - body.tokyo-dark = 夜间：暖深灰，结构与白天完全一致，只换变量
   组件一律引用下方变量，不要再写死颜色。
   ============================================================ */
/* ============ 主题变量：白天 ============ */
body {
  --bg: #FAF9F5;            /* 宣纸：页面底色 */
  --bg-deep: #F3F1EA;       /* 米灰：次级区块 */
  --sunk: #F3F1EA;
  --card: #FFFFFF;          /* 素白：面板 */
  --card-hover: #FBFAF6;
  --line: #E4E1D7;
  --line-soft: #ECE9E0;
  --line-bright: #D4D0C4;
  --text: #1F1E1B;          /* 墨 */
  --text-dim: #5C5A53;
  --text-faint: #6A675E;   /* 小字说明，对比度 ≥4.6 */
  --ink: #1F1E1B;
  --on-ink: #FAF9F5;
  --on-ink-soft: rgba(250,249,245,.18);
  --seal: #A84F2E;          /* 印泥：唯一强调色（作文字时对比度 ≥4.5） */
  --seal-soft: #F6E6DD;
  --seal-ink: #8E3F25;
  --ok-soft: #E8F0E6;  --ok-line: #CFE0CB;
  --warn-soft: #F7EDD6; --warn-line: #EBD9AE;
  --danger-soft: #F7E4E0; --danger-line: #EBC9C1;
  --info-soft: #E9EEF2;
  --hover: rgba(31,30,27,.05);
  --selection: rgba(194,97,63,.22);
  --backdrop: rgba(31,30,27,.42);
  --panel-ink: #1F1E1B;     /* 墨色品牌区（登录页左栏、邀请页头图），两套主题都是深底 */
  --on-panel: #FAF9F5;
  --on-panel-dim: #C9C5BA;
  --panel-line: rgba(250,249,245,.14);
  --panel-accent: #E9A27F;
  /* 旧变量名兼容（styles.css 基础层仍在引用） */
  --magenta: var(--seal); --purple: var(--seal); --violet: var(--seal); --cyan: var(--seal);
  --green: #356A43; --yellow: #82580C; --red: #A53D29;
  --grad-main: linear-gradient(var(--ink), var(--ink));
  --grad-soft: linear-gradient(var(--sunk), var(--sunk));
  --radius: 14px;
  --radius-sm: 10px;
  --font-serif: "ZS Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-num: "Iowan Old Style", Palatino, Georgia, serif;
  --font-display: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
  background: var(--bg);
  color: var(--text);
}
/* ============ 主题变量：夜间（暖深灰） ============ */
body.tokyo-dark {
  --bg: #1E1D1B;
  --bg-deep: #2A2926;
  --sunk: #2A2926;
  --card: #262523;
  --card-hover: #2C2B28;
  --line: #3A3934;
  --line-soft: #33322E;
  --line-bright: #4A4843;
  --text: #F1EEE5;
  --text-dim: #BDB9AE;
  --text-faint: #A8A498;   /* 夜间小字，对比度 ≥5.2 */
  --ink: #F1EEE5;
  --on-ink: #1E1D1B;
  --on-ink-soft: rgba(30,29,27,.14);
  --seal: #E08B66;
  --seal-soft: #3D2E27;
  --seal-ink: #F0B497;
  --ok-soft: #26332A;  --ok-line: #34473A;
  --warn-soft: #3A3221; --warn-line: #54472B;
  --danger-soft: #3D2724; --danger-line: #5A3631;
  --info-soft: #262D33;
  --hover: rgba(241,238,229,.06);
  --selection: rgba(224,139,102,.3);
  --backdrop: rgba(0,0,0,.55);
  --panel-ink: #151412;
  --on-panel: #F1EEE5;
  --on-panel-dim: #BDB9AE;
  --panel-line: rgba(241,238,229,.12);
  --panel-accent: #E9A27F;
  --green: #8CC096; --yellow: #E3B860; --red: #E8836F;
}
/* ============ 设计 tokens（组件层，双主题共用） ============ */
body {
  --tk-surface: var(--card);
  --tk-black: var(--ink);
  --tk-border: var(--line);
  --tk-border-strong: var(--line-bright);
  --tk-muted: var(--text-dim);
  --tk-faint: var(--text-faint);
  --tk-green: var(--green);
  --tk-yellow: var(--yellow);
  --tk-red: var(--red);
  --tk-link: var(--seal);
  --tk-shadow-soft: 0 0 0 1px var(--line);
  --tk-shadow-elevated: 0 0 0 1px var(--line-bright), 0 12px 32px rgba(31,30,27,.10);
  --tk-r-sm: 8px;
  --tk-r-md: 12px;
  --tk-r-lg: 18px;
  --tk-r-pill: 9999px;
}
/* ============ 顶部导航壳（全站统一 UI 位置） ============ */
.tokyo-nav-shell {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--tk-border);
}
.tokyo-nav-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.tokyo-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; }
.tokyo-brand-text strong { display: block; line-height: 1.1; }
.tokyo-brand-text small { display: block; font-size: 11.5px; font-weight: 600; color: var(--tk-muted); letter-spacing: .4px; }
.tokyo-nav-main { display: flex; gap: 4px; flex: 1; }
.tokyo-nav-main a {
  padding: 8px 14px; border-radius: var(--tk-r-pill); font-size: 14px; font-weight: 600;
  color: var(--tk-muted); transition: color .15s, background .15s; white-space: nowrap;
}
.tokyo-nav-main a:hover { color: var(--text); background: var(--hover); }
.tokyo-nav-main a.is-active { color: var(--text); background: var(--hover); }
.tokyo-nav-tools { display: flex; align-items: center; gap: 8px; }
.tokyo-nav-tools .icon-btn {
  width: 34px; height: 34px; border-radius: var(--tk-r-pill);
  border: 1px solid var(--tk-border-strong); background: var(--card); color: var(--tk-muted);
  display: grid; place-items: center; font-size: 17px; cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-faint); }
.tokyo-auth-actions { display: flex; gap: 8px; align-items: center; }
/* ============ 胶囊按钮（Tokyo 语义：黑=动作，颜色只做低饱和提示） ============ */
.tokyo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--tk-r-pill); font-weight: 700; font-size: 14px;
  padding: 9px 20px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.tokyo-btn--black { background: var(--ink); color: var(--on-ink); box-shadow: var(--tk-shadow-soft); }
.tokyo-btn--black:hover { transform: translateY(-1px); box-shadow: var(--tk-shadow-elevated); }
.tokyo-btn--ghost { background: var(--card); color: var(--text); border-color: var(--tk-border-strong); }
.tokyo-btn--ghost:hover { border-color: var(--text); }
.tokyo-btn--sm { padding: 6px 14px; font-size: 13px; }
.tokyo-btn.is-disabled { filter: grayscale(.75); pointer-events: none; opacity: .7; }
/* ============ 页面骨架 / 面板 ============ */
.tokyo-main { max-width: 1200px; margin: 0 auto; padding: 26px 20px 60px; }
.tokyo-shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.tokyo-panel {
  background: var(--tk-surface); border-radius: var(--tk-r-lg);
  box-shadow: var(--tk-shadow-soft); overflow: hidden;
}
.tokyo-panel-header {
  padding: 18px 22px 14px; border-bottom: 1px solid var(--tk-border);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.tokyo-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--tk-faint);
  text-transform: uppercase; display: block; margin-bottom: 3px;
}
.tokyo-panel-title { font-size: 20px; font-weight: 800; letter-spacing: .01em; }
.tokyo-panel-sub { font-size: 12.5px; color: var(--tk-muted); margin-top: 3px; }
.tokyo-panel-body { padding: 18px 22px 22px; }
/* ============ 左侧栏 / 分类树（首页） ============ */
.tokyo-sidebar-stack { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.tokyo-category-tree { display: flex; flex-direction: column; gap: 4px; }
.tokyo-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 10px 12px; border-radius: var(--tk-r-md); border: none; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--tk-muted); text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.tokyo-cat:hover { background: var(--hover); color: var(--text); }
.tokyo-cat.is-active { background: var(--ink); color: var(--on-ink); }
.tokyo-cat .tokyo-cat-count {
  font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: var(--tk-r-pill);
  background: var(--hover); color: var(--tk-muted);
}
.tokyo-cat.is-active .tokyo-cat-count { background: var(--on-ink-soft); color: var(--on-ink); }
.tokyo-cat .material-symbols-rounded { font-size: 18px; }
/* ============ 商品目录表格（首页） ============ */
.tokyo-catalog-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tokyo-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-deep); border: 1px solid var(--tk-border); border-radius: var(--tk-r-pill);
  padding: 8px 16px; min-width: 220px; transition: border-color .15s, background .15s;
}
.tokyo-search:focus-within { border-color: var(--text-faint); background: var(--card); }
.tokyo-search .material-symbols-rounded { font-size: 19px; color: var(--tk-faint); }
.tokyo-search input { border: none; outline: none; background: transparent; font-size: 14px; width: 100%; color: var(--text); }
.tokyo-tag {
  font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: var(--tk-r-pill);
  background: var(--ok-soft); color: var(--tk-green);
}
/* ============ 购买流程 / SEO 区 ============ */
.tokyo-seo-intro {
  margin-top: 20px; background: var(--bg-deep); border-radius: var(--tk-r-lg);
  padding: 26px 28px; font-size: 13px; color: var(--tk-muted); line-height: 1.9;
}
.tokyo-seo-intro h3 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.tokyo-seo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 18px; }
.tokyo-seo-step { background: var(--card); border-radius: var(--tk-r-md); padding: 14px 16px; box-shadow: var(--tk-shadow-soft); }
.tokyo-seo-step strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.tokyo-seo-step span { font-size: 12px; }
/* ============ 页脚 ============ */
.tokyo-footer { background: var(--ink); color: rgba(255,255,255,.82); margin-top: 30px; }
.tokyo-footer h4 { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: rgba(255,255,255,.5); text-transform: uppercase; margin-bottom: 12px; }
.tokyo-footer a { display: block; font-size: 13px; padding: 4px 0; color: rgba(255,255,255,.78); }
.tokyo-footer a:hover { color: #fff; }
.tokyo-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.tokyo-footer-bottom-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 20px; font-size: 12px; color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
/* ============================================================
   以下：既有组件的 Tokyo 浅色化（默认生效；夜间由 styles.css 原样式回归）
   ============================================================ */
::selection { background: var(--selection); }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-bright); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
/* ---- 表单卡片 / 订单卡 → 白面板 ---- */
.order-card {
  background: var(--card); border: none; border-radius: var(--tk-r-lg);
  box-shadow: var(--tk-shadow-soft); padding: 24px;
}
.order-card:hover { box-shadow: var(--tk-shadow-soft); }
/* ---- 输入控件 ---- */
.field label { color: var(--text); font-weight: 700; }
.field input, .field select, .field textarea, .notify-form input, .notify-form select, .qty-row input {
  background: var(--card); border: 1.5px solid var(--line-bright); color: var(--text);
  border-radius: 10px; box-shadow: none;
}
.field input:focus, .field select:focus, .field textarea:focus, .notify-form input:focus, .notify-form select:focus {
  border-color: var(--ink); box-shadow: none; outline: none;
}
.field-tip { color: var(--text-dim); }
.form-error { color: var(--tk-red); }
.form-note { color: var(--text-faint); }
/* 数量步进器 */
.qty-btn {
  background: var(--card); border: 1.5px solid var(--line-bright); color: var(--text);
  border-radius: 10px; box-shadow: none;
}
.qty-btn:hover { border-color: var(--ink); }
/* ---- 按钮：胶囊化，黑=动作 ---- */
.btn { border-radius: var(--tk-r-pill); font-weight: 700; box-shadow: none; }
.btn--primary {
  background: var(--ink); color: var(--on-ink); border: none;
  box-shadow: var(--tk-shadow-soft);
}
.btn--primary:hover {
  background: var(--ink); transform: translateY(-1px); box-shadow: var(--tk-shadow-elevated);
}
.btn--outline {
  background: var(--card); color: var(--text); border: 1.5px solid var(--line-bright); box-shadow: none;
}
.btn--outline:hover { border-color: var(--ink); }
.copy-btn {
  border-radius: var(--tk-r-pill); font-weight: 700;
  background: var(--card); border: 1.5px solid var(--line-bright); color: var(--text); box-shadow: none;
}
.copy-btn:hover { border-color: var(--ink); }
/* ---- 状态 chip：低饱和 tint ---- */
.order-status { border-radius: var(--tk-r-pill); font-weight: 700; font-size: 12px; }
.st-paid { background: var(--info-soft); color: var(--tk-link); }
.st-done { background: var(--ok-soft); color: var(--tk-green); }
.st-pending { background: var(--sunk); color: var(--text-dim); }
.st-processing { background: var(--warn-soft); color: var(--tk-yellow); }
.st-cancelled { background: var(--sunk); color: var(--text-faint); }
.st-refunded { background: var(--danger-soft); color: var(--tk-red); }
.status-dot { background: var(--tk-green); }
.order-price { color: var(--text); }
.order-meta dt { color: var(--text-faint); }
.order-meta dd { color: var(--text); }
.order-loading { color: var(--text-faint); }
.handoff { background: var(--bg-deep); border-radius: var(--tk-r-md); }
.handoff-tip { color: var(--text-dim); }
.handoff-no code { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: var(--tk-r-sm); }
/* ---- 支付方式选项（结算页） ---- */
.pay-option {
  background: var(--card); border: 1.5px solid var(--line-bright); border-radius: var(--tk-r-md); box-shadow: none;
}
.pay-option:hover { border-color: var(--ink); }
.pay-option.is-active { border-color: var(--ink); background: var(--card-hover); }
.redeem-footnote { color: var(--text-faint); }
.redeem-result { background: var(--bg-deep); border-radius: var(--tk-r-md); color: var(--text); }
.redeem-result--dim { color: var(--text-faint); }
.step-no { background: var(--ink); color: var(--on-ink); border-radius: var(--tk-r-pill); }
.step-item strong { color: var(--text); }
.step-arrow { color: var(--text-faint); }
/* ---- 追踪模块 ---- */
.track-card { background: transparent; padding: 0; border: none; }
.track-layout { grid-template-columns: minmax(0,1fr) 300px; }
.track-list, .track-calendar { background: var(--bg-deep); border-radius: var(--tk-r-md); }
.track-item { border-bottom: 1px solid var(--line-soft); }
.track-badge { background: var(--sunk); color: var(--text-dim); border-radius: var(--tk-r-pill); }
.track-status { background: var(--ok-soft); color: var(--tk-green); border-radius: var(--tk-r-pill); }
.track-more { background: var(--card); border: 1.5px solid var(--line-bright); color: var(--text); border-radius: var(--tk-r-pill); font-weight: 700; }
.track-tags .chip { background: var(--card); border: 1.5px solid var(--line-bright); color: var(--text-dim); border-radius: var(--tk-r-pill); font-weight: 700; }
.track-tags .chip.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.cal-head { color: var(--text); }
.cal-head button { background: var(--card); border: 1px solid var(--line-bright); color: var(--text-dim); border-radius: var(--tk-r-sm); }
.cal-weekdays span { color: var(--text-faint); }
.cal-days span { background: var(--card); border: 1px solid var(--line-soft); color: var(--text-dim); border-radius: var(--tk-r-sm); }
.cal-summary, .cal-next { color: var(--text-dim); }
.cal-legend { color: var(--text-faint); }
.notify-subs h3 { color: var(--text); }
.notify-row { background: var(--bg-deep); border-radius: var(--tk-r-sm); }
/* ---- FAQ 终端框：白天降为浅灰虚线框 ---- */
.terminal { background: var(--bg-deep); border: 1.5px dashed var(--line-bright); box-shadow: none; border-radius: var(--tk-r-md); }
.terminal-bar { background: var(--hover); }
.terminal-title { color: var(--text-faint); }
.terminal .dot { opacity: .45; }
.faq-q { color: var(--text); }
.faq-a { color: var(--text-dim); }
.admin-table { background: var(--card); border-radius: var(--tk-r-md); box-shadow: var(--tk-shadow-soft); }
.admin-table th { color: var(--text-faint); border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.admin-table td { border-bottom: 1px solid var(--line-soft); color: var(--text); }
.admin-table tr:hover td { background: var(--card-hover); }
.admin-empty { color: var(--text-faint); }
/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .tokyo-shop-layout { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .tokyo-shop-layout { grid-template-columns: 1fr; }
  .tokyo-sidebar-stack { position: static; }
  .tokyo-category-tree { flex-direction: row; flex-wrap: wrap; }
  .tokyo-cat { padding: 8px 12px; }
  .tokyo-nav-wrap { gap: 12px; }
  .tokyo-nav-main { overflow-x: auto; }
  .tokyo-seo-steps { grid-template-columns: 1fr 1fr; }
  .track-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tokyo-main { padding: 16px 12px 40px; }
  .tokyo-panel-header { padding: 14px 16px 12px; }
  .tokyo-panel-body { padding: 14px 16px 16px; }
  .tokyo-seo-steps { grid-template-columns: 1fr; }
  /* 手机导航：两行布局（品牌+工具 / 链接横滚），杜绝横向溢出 */
  .tokyo-nav-wrap { flex-wrap: wrap; height: auto; padding: 8px 12px 6px; gap: 6px 10px; }
  .tokyo-nav-shell { position: sticky; top: 0; z-index: 60; }
  .tokyo-nav-tools { margin-left: auto; }
  .tokyo-nav-main { order: 5; flex: 1 1 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .tokyo-nav-main::-webkit-scrollbar { display: none; }
  .tokyo-nav-main a { padding: 6px 10px; white-space: nowrap; }
}
/* ============ 子页面板（查单/订单/兑换/结算/账户 统一结构） ============ */
.tokyo-sub-panel { max-width: 1020px; margin: 0 auto; }
.tokyo-main > .tokyo-panel + .tokyo-panel { margin-top: 20px; }
.tokyo-panel-body .field { margin-bottom: 14px; }
.tokyo-panel-body .form-note { margin-top: 10px; }
.tokyo-panel-body .order-summary { margin: 16px 0 6px; }
.tokyo-panel.order-card { padding: 22px; }
.tokyo-panel-body .step-row { margin-bottom: 18px; }
.tokyo-panel-body .redeem-actions { margin-top: 8px; }
/* ==================== 客服二维码轮播（首页侧栏） ==================== */
.qr-carousel { position: relative; }
.qr-slide { margin: 0; opacity: 0; transform: scale(.98); transition: opacity .6s ease, transform .6s ease; pointer-events: none; display: none; }
.qr-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; display: block; }
.qr-box { background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 6px; height: 330px; display: flex; align-items: center; justify-content: center; box-shadow: var(--tk-shadow-soft, 0 6px 18px rgba(15,23,42,.08)); }
.qr-box img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.qr-slide figcaption, .qr-static figcaption { margin-top: 10px; text-align: center; }
.qr-slide figcaption b, .qr-static figcaption b { display: block; font-size: 14px; }
.qr-slide figcaption small, .qr-static figcaption small { display: block; margin-top: 2px; color: var(--tk-muted); font-size: 12px; }
.qr-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.qr-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--line); cursor: pointer; transition: all .3s ease; }
.qr-dots span.is-active { background: var(--text); width: 18px; }
/* ==================== 更多页：静态双码 + 充值步骤 ==================== */
.qr-static-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 6px; }
.qr-static { margin: 0; }
.qr-static .qr-box { height: 380px; }
.qq-no { color: var(--tk-muted); cursor: pointer; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.qq-no:hover { color: var(--text); }
.recharge-steps { display: flex; flex-direction: column; gap: 10px; }
.recharge-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; font-size: 14px; background: var(--sunk); }
.recharge-step em { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--text); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 13px; }
.more-back { text-align: center; margin: 26px 0 10px; }
@media (max-width: 560px) {
  .qr-static-grid { grid-template-columns: 1fr; }
  .qr-static .qr-box { height: 340px; }
}
.tokyo-sub-panel-wide { max-width: 1020px; margin: 0 auto; }
/* ==================== 登录后导航头像 + 个人中心下拉 ==================== */
.tokyo-user { position: relative; }
.tokyo-user-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 90; min-width: 200px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: 0 14px 38px rgba(15,23,42,.16); padding: 6px; }
.tokyo-user-menu a, .tokyo-user-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: none; border-radius: 9px; background: none; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.tokyo-user-menu a:hover, .tokyo-user-menu button:hover { background: var(--hover); }
.tokyo-user-menu .material-symbols-rounded { font-size: 18px; color: var(--tk-muted); }
/* 去掉旧主题残留的洋红光晕 */
.pc-avatar { width: 58px; height: 58px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
/* 邀请返利 */
.invite-hero { border: 1px dashed var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.invite-hero h3 { margin: 0 0 6px; font-size: 16px; }
.invite-hero p { margin: 0; font-size: 13.5px; color: var(--tk-muted); line-height: 1.7; }
.invite-hero b { color: var(--text); }
.invite-form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.invite-form-row label { font-size: 12px; color: var(--tk-muted); font-weight: 700; margin-top: 6px; }
.invite-copy-line { display: flex; align-items: center; gap: 10px; }
.invite-copy-line code { flex: 1; padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--sunk); font-size: 14px; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ============ 邮箱验证码行（注册表单） ============ */
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex-shrink: 0; padding: 0 14px; white-space: nowrap; }
.code-row .btn:disabled { opacity: .55; cursor: default; }
/* ==================== 个人中心工作台（account.html v2） ==================== */
.pc-workbench { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; min-width: 0; }
.pc-rail { position: sticky; top: 86px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 18px 14px; box-shadow: var(--tk-shadow-soft); display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 100%; }
.pc-rail-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 2px; }
.pc-rail-head strong { font-size: 16px; margin-top: 6px; }
.pc-rail-head small { color: var(--tk-muted); font-size: 12px; }
.pc-rail-balance { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; align-items: center; text-align: center; }
.pc-rail-balance > span { font-size: 12px; color: var(--tk-muted); }
.pc-rail-balance .order-price { font-size: 20px; }
.pc-rail-nav { display: flex; flex-direction: column; gap: 4px; }
.pc-rail-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: none; border-radius: 10px; background: none; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s ease; }
.pc-rail-nav button:hover { background: var(--hover); }
.pc-rail-nav button.is-active { background: var(--text); color: var(--on-ink); }
.pc-rail-nav .material-symbols-rounded { font-size: 19px; }
.pc-rail-logout { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 10px; background: none; color: var(--tk-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.pc-rail-logout:hover { color: var(--tk-red); border-color: var(--tk-red); }
.pc-content { min-width: 0; }
.pc-content .tokyo-panel + .tokyo-panel { margin-top: 0; }
/* 统计卡：auto-fit 流式换列，任何屏宽都等宽等高、数值底对齐 */
.pc-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pc-stat { border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; position: relative; height: 100%; min-height: 104px; }
.pc-stat .material-symbols-rounded { font-size: 20px; color: var(--tk-muted); }
.pc-stat em { font-style: normal; font-size: 12px; color: var(--tk-muted); white-space: nowrap; }
.pc-stat strong { font-size: 19px; margin-top: auto; padding-top: 4px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.pc-stat--accent strong { color: var(--tk-green); }
.pc-sec-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.pc-sec-head h3 { font-size: 15px; }
/* 设置页两块：等高卡片，窄屏自动一列 */
.pc-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }
.pc-settings-block { border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px; margin: 0; }
.pc-settings-block h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 14px; }
.pc-settings-block .material-symbols-rounded { font-size: 19px; color: var(--tk-muted); }
.pc-login-info { display: flex; flex-direction: column; gap: 0; margin: 0; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.pc-login-info > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.pc-login-info > div:last-child { border-bottom: none; }
.pc-login-info dt { color: var(--tk-muted); }
.pc-login-info dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 查看卡密弹窗 */
.pc-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pc-modal[hidden] { display: none; }
.pc-modal-mask { position: absolute; inset: 0; background: var(--backdrop); backdrop-filter: blur(3px); }
.pc-modal-panel { position: relative; background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: 0 24px 60px rgba(15,23,42,.25); padding: 20px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; }
.pc-modal-head { display: flex; align-items: center; justify-content: space-between; }
.pc-modal-head h3 { margin: 0; font-size: 16px; }
.pc-modal-x { border: none; background: none; cursor: pointer; color: var(--tk-muted); display: flex; padding: 4px; border-radius: 8px; }
.pc-modal-x:hover { color: var(--text); background: var(--hover); }
.pc-modal-product { margin: 0; font-size: 13px; color: var(--tk-muted); }
.pc-secret { display: block; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--sunk)); font-size: 14px; letter-spacing: .5px; white-space: pre-wrap; word-break: break-all; user-select: all; }
/* 导航 chip（头像+用户名+余额） */
.tokyo-user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 5px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--card); cursor: pointer; box-shadow: var(--tk-shadow-soft); transition: border-color .2s ease; }
.tokyo-user-chip:hover { border-color: var(--text); }
.tokyo-user-chip-avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.tokyo-user-chip-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.tokyo-user-chip-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.tokyo-user-chip-balance { font-size: 12px; color: var(--tk-muted); }
.tokyo-user-divider { height: 1px; background: var(--line-soft); margin: 5px 4px; }
@media (max-width: 900px) {
  .pc-workbench { grid-template-columns: minmax(0, 1fr); }
  .pc-rail { position: static; }
  .pc-rail-nav { flex-direction: row; overflow-x: auto; padding-bottom: 2px; min-width: 0; scrollbar-width: none; }
  .pc-rail-nav::-webkit-scrollbar { display: none; }
  .pc-rail-nav button { white-space: nowrap; width: auto; flex: none; }
  .pc-rail-logout { display: none; }
  /* 窄屏从导航头像菜单退出 */
  .tokyo-user-chip-meta { display: none; }
  /* 窄屏 chip 只剩头像 */
  .tokyo-user-chip { padding: 4px; }
}
/* ============ 邮箱验证码行（注册表单） ============ */
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex-shrink: 0; padding: 0 14px; white-space: nowrap; }
.code-row .btn:disabled { opacity: .55; cursor: default; }
/* ==================== 苹果风终端卡内容富样式（教程/FAQ 通用） ==================== */
.faq-a ol, .faq-a ul { margin: 2px 0 4px; padding-left: 20px; }
.faq-a li { margin: 5px 0; }
.faq-a li::marker { color: var(--magenta); font-weight: 700; }
.faq-a b { color: var(--text); }
.faq-a a { color: var(--magenta); text-decoration: none; border-bottom: 1px dashed currentColor; }
.faq-a a:hover { opacity: .8; }
.faq-a code { background: rgba(127,127,150,.14); border-radius: 5px; padding: 1px 6px; font-size: 12px; word-break: break-all; }
.faq-a p { margin: 4px 0; }
/* 苹果风终端卡：去掉基础层 880px 限宽，撑满面板内容区、四周留面板内边距 */
.tokyo-panel-body .terminal { max-width: none; width: 100%; margin: 4px 0 8px; }
.terminal + .terminal { margin-top: 14px; }
.faq-q .q-no { color: var(--tk-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
/* ==================== 个人中心满屏工作台（桌面：面板触底+卡内滚动） ==================== */
@media (min-width: 901px) {
  body.pc-shell .tokyo-main { height: calc(100vh - 64px); box-sizing: border-box; overflow: hidden; padding-bottom: 20px; }
  body.pc-shell .pc-workbench { height: 100%; min-height: 0; }
  body.pc-shell .pc-rail { position: static; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  body.pc-shell .pc-content { height: 100%; display: flex; min-height: 0; }
  body.pc-shell .pc-content > .tokyo-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
  body.pc-shell .pc-content > .tokyo-panel[hidden] { display: none; }
  /* 防止 flex 覆盖 hidden 导致视图叠加 */
  body.pc-shell .pc-content > .tokyo-panel > .tokyo-panel-body { flex: 1; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
  /* 内滚区细滚动条 */
  body.pc-shell .pc-rail::-webkit-scrollbar, body.pc-shell .tokyo-panel-body::-webkit-scrollbar { width: 6px; }
  body.pc-shell .pc-rail::-webkit-scrollbar-thumb, body.pc-shell .tokyo-panel-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
}
@media (max-width: 900px) {
  /* 手机/窄屏保持自然页面滚动（触底布局不适用） */
  body.pc-shell .tokyo-main { height: auto; overflow: visible; }
}
/* 高度链补全：main → meView → workbench 层层传递 */
body.pc-shell #meView { height: 100%; min-height: 0; }
.rc-online-soon { display: flex; align-items: center; gap: 12px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.rc-online-soon .material-symbols-rounded { font-size: 22px; color: var(--magenta); }
.rc-online-soon b { display: block; font-size: 14px; }
.rc-online-soon small { display: block; color: var(--tk-muted); font-size: 12px; margin-top: 2px; }
/* ==================== 个人中心侧栏排布（呼吸感） ==================== */
.pc-rail { padding: 20px 16px; gap: 16px; }
.pc-rail-head { padding: 2px 0 12px; border-bottom: 1px solid var(--line-soft); }
.pc-rail-balance { padding: 14px; gap: 8px; }
.pc-rail-nav { gap: 6px; padding-top: 2px; }
.pc-rail-nav button { padding: 11px 13px; }
.pc-rail-logout { margin-top: 2px; }
/* 滚动条槽位恒定：内容长短不挤动居中导航（消除切页 5px 跳动） */
html { overflow-y: scroll; scrollbar-gutter: stable; }
/* 首页侧栏：联系客服面板拉伸至与商品目录同底（和下方购买流程顶格） */
.tokyo-sidebar-stack > .tokyo-panel:last-child { flex: 1; }
.tokyo-sidebar-stack > .tokyo-panel:last-child .tokyo-panel-body { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.tokyo-shop-layout > .tokyo-sidebar-stack { align-self: stretch; }
/* 侧栏拉满行高，联系客服与目录同底 */
/* 查单页订单表：状态/操作不挤压 */
#myOrdersBody .order-status { white-space: nowrap; }
#myOrdersBody td:last-child, #myOrdersBody th:last-child { white-space: nowrap; width: 1%; padding-right: 18px; }
.lk-hit-name { margin: 6px 0 8px; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 弹窗头：关闭按钮在左上 */
.pc-modal-head { justify-content: flex-start; gap: 10px; }
.pc-modal-head h3 { flex: 1; }
/* 弹窗内双按钮行 */
.lk-modal-actions { display: flex; gap: 10px; }
.lk-modal-actions > * { flex: 1; }
/* 商品详情头（checkout） */
.pd-hero { display: flex; gap: 18px; padding: 4px 0 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; align-items: flex-start; }
.pd-thumb { flex: none; width: 148px; height: 148px; border-radius: 14px; overflow: hidden; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: 2px; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { flex: 1; min-width: 0; }
.pd-info h2 { margin: 2px 0 8px; font-size: 19px; line-height: 1.45; }
.pd-desc { margin: 0 0 10px; font-size: 13px; color: var(--tk-muted); line-height: 1.7; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pd-meta { display: flex; align-items: baseline; gap: 14px; }
.pd-price { font-size: 22px; font-weight: 800; }
.pd-price small { font-size: 12px; color: var(--tk-muted); font-weight: 600; margin-left: 6px; }
.pd-stock { font-size: 12px; color: var(--tk-muted); }
@media (max-width: 560px) {
  .pd-hero { flex-direction: column; }
  .pd-thumb { width: 100%; height: 180px; }
}
/* 商品详情页：切换商品胶囊横滑（替代原生 select） */
.pd-switch { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.pd-switch::-webkit-scrollbar { display: none; }
.pd-chip { display: flex; align-items: center; gap: 10px; flex: none; max-width: 230px; padding: 7px 14px 7px 7px; border: 1.5px solid var(--line-soft); border-radius: 12px; background: transparent; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.pd-chip:hover { border-color: var(--line); }
.pd-chip.is-active { border-color: var(--text); background: var(--hover); }
.pd-chip-thumb { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; }
.pd-chip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-chip-thumb span { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; }
.pd-chip-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; min-width: 0; }
.pd-chip-copy b { font-size: 13px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-chip-copy small { font-size: 12px; color: var(--tk-muted); font-weight: 700; }
/* 联系客服面板头：居中大字 + 标题下小横杠（与分类卡同族的强调版） */
.qr-panel-head { justify-content: center; text-align: center; padding-bottom: 14px; }
.qr-panel-title { position: relative; display: inline-block; font-size: 19px; }
.qr-panel-title::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -8px; width: 28px; height: 3px; border-radius: 2px; background: var(--line); }
/* 在线支付手续费醒目警示条 */
.fee-alert { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--warn-line); background: var(--warn-soft); }
.fee-alert .material-symbols-rounded { color: var(--tk-yellow); font-size: 22px; flex: none; margin-top: 1px; }
.fee-alert b { display: block; font-size: 14px; color: var(--tk-yellow); }
.fee-alert small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-dim); }
/* ============================================================
   宣纸 · 墨 · 印泥：组件层（覆盖以上旧规则，双主题共用变量）
   ============================================================ */
/* ---- 基础：字体 / 滚动 / 关掉旧主题的霓虹效果 ---- */
html { scroll-behavior: auto; }
body { font-family: var(--font-display); overflow-x: clip; -webkit-font-smoothing: antialiased; transition: none; }
* { text-shadow: none !important; }
::selection { background: var(--selection); }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-bright); border: 2px solid var(--bg); border-radius: 8px; }
.status-dot, .icon-btn:hover { box-shadow: none !important; }
a { color: inherit; }
/* 标题统一宋体 */
.tokyo-panel-title, .pd-info h2, .tokyo-seo-intro h3, .invite-hero h3, .pc-rail-head strong {
  font-family: var(--font-serif); font-weight: 700; letter-spacing: .02em;
}
.tokyo-panel-title { font-size: 21px; }
.tokyo-kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--text-faint); }
/* 价格 / 金额用衬线数字 */
.pd-price, .order-price, .zs-item-price, .pc-stat strong {
  font-family: var(--font-num); font-weight: 500;
}
/* ---- 顶部导航 ---- */
.tokyo-nav-shell { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tokyo-brand { gap: 10px; color: var(--ink); }
.zs-logo { width: 30px; height: 30px; flex: none; color: var(--ink); }
.tokyo-brand-text strong { font-family: var(--font-serif); font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.tokyo-brand-text small { font-size: 11.5px; font-weight: 500; letter-spacing: .08em; color: var(--text-faint); }
.tokyo-nav-main a { border-radius: 10px; font-weight: 500; color: var(--text-dim); }
.tokyo-nav-main a:hover { background: var(--hover); color: var(--text); }
.tokyo-nav-main a.is-active { background: transparent; color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.tokyo-nav-tools .icon-btn { border-radius: 10px; background: transparent; border-color: var(--line); color: var(--text-dim); }
/* ---- 按钮：圆角矩形，墨色主按钮，无阴影 ---- */
.tokyo-btn, .btn { border-radius: 10px; font-weight: 600; box-shadow: none; transform: none !important; }
.tokyo-btn--black, .btn--primary { background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); box-shadow: none; }
.tokyo-btn--black:hover, .btn--primary:hover { background: var(--ink); opacity: .88; box-shadow: none; }
.tokyo-btn--ghost, .btn--outline { background: transparent; color: var(--text); border: 1px solid var(--line-bright); }
.tokyo-btn--ghost:hover, .btn--outline:hover { border-color: var(--ink); background: var(--hover); }
.copy-btn { border-radius: 8px; background: transparent; border: 1px solid var(--line-bright); color: var(--text); font-weight: 600; }
.copy-btn:hover { border-color: var(--ink); }
/* ---- 面板：细边框代替投影 ---- */
.tokyo-panel, .order-card, .admin-table, .pc-rail, .tokyo-seo-step {
  background: var(--card); border: 1px solid var(--line); box-shadow: none;
}
.tokyo-panel { border-radius: var(--tk-r-lg); }
.tokyo-panel-header { border-bottom: 1px solid var(--line-soft); padding: 20px 24px 16px; }
.tokyo-panel-body { padding: 20px 24px 24px; }
.tokyo-panel-sub { color: var(--text-dim); }
/* ---- 表单控件 ---- */
.field label { font-weight: 600; }
.field input, .field select, .field textarea, .notify-form input, .notify-form select, .qty-row input, .tokyo-search {
  background: var(--card); border: 1px solid var(--line-bright); border-radius: 10px; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus, .notify-form input:focus, .notify-form select:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px var(--sunk); outline: none;
}
.tokyo-search:focus-within { border-color: var(--ink); background: var(--card); }
.qty-btn { background: transparent; border: 1px solid var(--line-bright); border-radius: 10px; color: var(--text); }
.qty-btn:hover { border-color: var(--ink); }
/* ---- 分类 ---- */
.tokyo-cat { border-radius: 10px; font-weight: 500; }
.tokyo-cat.is-active { background: var(--ink); color: var(--on-ink); }
.tokyo-cat-count { font-family: var(--font-num); }
/* ---- 首页商品列表（替代原表格，窄屏不截断） ---- */
.zs-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.zs-item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 16px 18px; background: var(--card); border-top: 1px solid var(--line-soft);
  color: var(--text); text-decoration: none; transition: background .15s;
}
.zs-item:first-child { border-top: 0; }
a.zs-item:hover { background: var(--card-hover); }
.zs-item.is-disabled { opacity: .6; cursor: not-allowed; }
.zs-thumb {
  width: 52px; height: 52px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line-soft);
  display: grid; place-items: center; overflow: hidden; flex: none;
  font-family: var(--font-num); font-size: 14px; color: var(--seal);
}
.zs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zs-item-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.zs-item-name { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.zs-item-desc { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-item-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.zs-item-price { font-size: 22px; text-align: right; white-space: nowrap; }
.zs-item-price small { display: block; font-family: var(--font-display); font-size: 12px; color: var(--text-faint); }
.zs-empty { padding: 40px 16px; text-align: center; color: var(--text-faint); font-size: 14px; background: var(--card); }
.zs-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--line-bright); font-size: 13.5px; font-weight: 600; color: var(--text-dim); white-space: nowrap;
}
.zs-btn--primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
@media (max-width: 640px) {
  .zs-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .zs-thumb { width: 44px; height: 44px; }
  .zs-item-cta { display: none; }
  .zs-item-desc { display: none; }
  .zs-item-price { font-size: 19px; }
}
/* ---- 徽标 / 标签 / 订单状态 ---- */
.zs-badge, .zs-tag { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.zs-badge--ok { background: var(--ok-soft); color: var(--green); }
.zs-badge--warn { background: var(--warn-soft); color: var(--yellow); }
.zs-badge--mute { background: var(--sunk); color: var(--text-faint); }
.zs-tag, .tokyo-tag { background: var(--seal-soft); color: var(--seal-ink); }
.order-status { border-radius: 999px; font-weight: 600; }
.st-paid { background: var(--info-soft); color: var(--text); }
.st-done { background: var(--ok-soft); color: var(--green); }
.st-processing { background: var(--warn-soft); color: var(--yellow); }
.st-pending, .st-cancelled { background: var(--sunk); color: var(--text-dim); }
.st-refunded { background: var(--danger-soft); color: var(--red); }
/* ---- FAQ 终端卡：宣纸化，保留窗口外框 ---- */
.terminal { background: var(--sunk); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.terminal-bar { background: transparent; border-bottom: 1px solid var(--line-soft); }
.terminal .dot { opacity: .35; }
.terminal-title { color: var(--text-faint); }
.terminal-body { color: var(--text); }
.faq-q { color: var(--text); font-weight: 600; }
.faq-q .arrow { color: var(--seal); }
.faq-a { color: var(--text-dim); }
.faq-a li::marker { color: var(--seal); }
.faq-a a { color: var(--seal-ink); }
/* ---- 购买流程 / 页脚 ---- */
.tokyo-seo-intro { background: transparent; border-top: 1px solid var(--line); border-radius: 0; padding: 28px 4px 8px; }
.tokyo-seo-step { border-radius: 12px; }
.tokyo-seo-step strong { font-family: var(--font-serif); font-size: 14px; }
.tokyo-footer { background: transparent; color: var(--text-faint); border-top: 1px solid var(--line); }
.tokyo-footer-bottom { border-top: 0; }
.tokyo-footer-bottom-inner { color: var(--text-faint); }
.tokyo-footer a, .tokyo-footer a:hover { color: var(--text-dim); }
/* ---- 公告条 ---- */
.home-notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 12px 16px; border-radius: 12px;
  background: var(--seal-soft); color: var(--seal-ink); border: 1px solid color-mix(in srgb, var(--seal) 25%, transparent); font-size: 14px; line-height: 1.7; }
.home-notice[hidden] { display: none; }
/* ---- 下单页 ---- */
.pd-thumb { background: var(--sunk); border: 1px solid var(--line-soft); color: var(--seal); font-family: var(--font-num); font-weight: 500; }
.pd-chip { border: 1px solid var(--line); border-radius: 12px; }
.pd-chip.is-active { border-color: var(--ink); background: var(--card-hover); box-shadow: inset 0 0 0 1px var(--ink); }
.pd-chip-thumb { background: var(--sunk); }
.pd-chip-thumb span { color: var(--seal); font-family: var(--font-num); font-weight: 500; background: none !important; }
.pay-option { background: var(--card); border: 1px solid var(--line-bright); border-radius: 12px; }
.pay-option:hover { border-color: var(--ink); }
.pay-option.is-active { border-color: var(--ink); background: var(--card-hover); box-shadow: inset 0 0 0 1px var(--ink); }
.fee-alert { border-radius: 12px; }
.fee-alert b { color: var(--text); font-weight: 600; }
/* ---- 订单详情：卡密框用印泥色 ---- */
.pc-secret { background: var(--seal-soft); border: 1px dashed var(--seal); color: var(--text); border-radius: 12px; }
.handoff { background: var(--sunk); }
/* ---- 个人中心 / 头像 ---- */
.tokyo-user-chip-avatar, .pc-avatar { background: var(--ink); color: var(--on-ink); }
.tokyo-user-chip, .tokyo-user-menu, .pc-modal-panel { background: var(--card); box-shadow: 0 12px 32px rgba(31,30,27,.12); }
.pc-rail-nav button.is-active { background: var(--ink); color: var(--on-ink); }
.pc-rail-balance, .invite-hero { border-color: var(--line); background: var(--sunk); }
/* ---- 二维码 ---- */
.qr-box { background: #fff; border-color: var(--line); box-shadow: none; }
.qr-dots span.is-active { background: var(--ink); }
.qr-panel-title::after { background: var(--line-bright); }
/* ---- 首页手机端：分类 → 商品 → 客服，二维码缩小，不再把商品挤到第二屏 ---- */
@media (max-width: 860px) {
  .tokyo-shop-layout > .tokyo-sidebar-stack { display: contents; }
  .tokyo-sidebar-stack > .tokyo-panel:first-child { order: 1; }
  .tokyo-shop-layout > .tokyo-catalog-stack { order: 2; }
  .tokyo-sidebar-stack > .tokyo-panel:last-child { order: 3; }
  .tokyo-sidebar-stack > .tokyo-panel:last-child .tokyo-panel-body { height: auto; }
  .tokyo-sidebar-stack > .tokyo-panel:first-child .tokyo-panel-header { display: none; }
  .tokyo-sidebar-stack > .tokyo-panel:first-child .tokyo-panel-body { padding: 12px; }
  .tokyo-category-tree { flex-direction: row; gap: 6px; }
  .tokyo-cat { width: auto; gap: 8px; }
  .qr-box { height: 240px; }
}
@media (max-width: 640px) {
  .zs-item { grid-template-columns: 44px minmax(0, 1fr); row-gap: 6px; }
  .zs-item-price { grid-column: 2; text-align: left; font-size: 18px; }
  .zs-item-price small { display: inline; margin-left: 8px; }
  .tokyo-catalog-stack .tokyo-panel-body { padding: 12px; }
  .tokyo-panel-header { padding: 16px 16px 12px; }
}
/* ---- 下单页：支付方式卡片 / 应付金额 ---- */
.pay-options { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pay-option { align-items: flex-start; gap: 10px; padding: 12px 14px; color: var(--text); }
.pay-option input { accent-color: var(--ink); margin-top: 3px; }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--card-hover); }
.pay-option-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-option-copy b { font-size: 14px; font-weight: 600; }
.pay-option-copy small { font-size: 12px; color: var(--text-faint); }
.order-summary { background: var(--sunk); border: 0; border-radius: 12px; }
.order-summary span { letter-spacing: 0; }
.order-summary strong { font-family: var(--font-num); font-weight: 500; font-size: 28px; color: var(--text); }
.field label small { font-weight: 400; color: var(--text-faint); margin-left: 6px; }
.form-error { color: var(--red); }
/* ---- 订单进度条 ---- */
.zs-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 20px; padding: 0; }
.zs-steps li { padding-top: 10px; border-top: 3px solid var(--line); font-size: 12.5px; color: var(--text-faint); }
.zs-steps li.is-done { border-color: var(--ink); color: var(--text); }
.zs-steps li.is-now { border-color: var(--seal); color: var(--seal-ink); font-weight: 600; }
.order-time { font-family: var(--font-display); }
.order-meta code { color: var(--text); font-family: var(--font-mono); }
.order-price { color: var(--text); }
/* ---- 注册 / 登录切换链接 ---- */
.auth-switch a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* ---- 工单客服（个人中心与后台共用，原内联样式迁入并变量化） ---- */
.tk-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.tk-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: var(--card); transition: border-color .15s; }
.tk-row:hover { border-color: var(--ink); }
.tk-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-row-title b { font-size: 14px; }
.tk-unread { font-style: normal; font-size: 12px; color: var(--seal-ink); background: var(--seal-soft); border-radius: 999px; padding: 1px 8px; }
.tk-row-excerpt { margin: 4px 0 0; font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px; }
.tk-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.tk-type-tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--sunk); color: var(--text-dim); }
.tk-head { margin: 12px 0; }
.tk-head-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-head-row b { font-size: 16px; }
.tk-head-meta { margin: 6px 0 0; font-size: 12.5px; color: var(--text-dim); }
.tk-msgs { max-height: 400px; overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); display: flex; flex-direction: column; gap: 12px; }
.tk-msg { display: flex; flex-direction: column; max-width: 78%; }
.tk-msg-mine { align-self: flex-end; align-items: flex-end; }
.tk-msg-admin { align-self: flex-start; align-items: flex-start; }
.tk-bubble { padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.tk-msg-mine .tk-bubble { background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 4px; }
.tk-msg-admin .tk-bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.tk-msg-time { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.tk-msg-sys { align-self: center; font-size: 12px; color: var(--text-faint); background: var(--card); border-radius: 999px; padding: 2px 12px; }
.tk-reply { margin-top: 12px; }
.tk-reply textarea { width: 100%; border: 1px solid var(--line-bright); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; background: var(--card); color: inherit; }
.tk-reply-actions { display: flex; justify-content: space-between; margin-top: 8px; }
.tk-type-row { display: flex; gap: 8px; }
.tk-type { flex: 1; padding: 9px 0; border: 1px solid var(--line-bright); border-radius: 10px; background: var(--card); color: inherit; font: inherit; font-size: 13.5px; cursor: pointer; }
.tk-type.is-active { border-color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ink); }
.admin-table-wrap { scrollbar-width: thin; }
/* hidden 属性优先于组件的 display（修：未登录时后台骨架外露） */
[hidden] { display: none !important; }
/* ---- 更多页：额度追踪 / 日历 ---- */
.track-avatar { background: var(--ink) !important; color: var(--on-ink); box-shadow: none; }
.chip.is-active, .track-tags .chip.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: none; }
.cal-day--marked { background: var(--sunk); }
.cal-day--today { border-color: var(--ink) !important; color: var(--text); box-shadow: none !important; font-weight: 700; }
/* 两类事件需要区分：全员重置 = 印泥，发重置卡 = 竹青 */
.cal-dot--magenta { background: var(--seal); box-shadow: none; }
.cal-dot--cyan { background: var(--green); box-shadow: none; }
.cal-next { border-color: var(--line-bright); background: var(--card); }
.track-badge { background: var(--sunk); color: var(--text-dim); border-color: var(--line); }
/* ---- 查单页：订单号 + 查询代码 / 本机最近订单 ---- */
.lk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) {
  .lk-fields { grid-template-columns: 1fr; }
}
.lk-recent { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.lk-recent-title { font-size: 12px; color: var(--text-faint); margin: 0 0 8px; }
.lk-recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-recent-item { font-family: var(--font-mono); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-bright); background: var(--card); color: var(--text); cursor: pointer; }
.lk-recent-item:hover { border-color: var(--ink); }
/* ---- 导航「工单」未读红点（原由 JS 注入样式） ---- */
.tokyo-nav-main a { position: relative; }
.nav-ticket-dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--seal); border: 2px solid var(--bg); }

/* ============ 联系客服卡片 ============ */
.zs-contact-tabs { display: flex; gap: 6px; margin-bottom: 12px; padding: 4px; background: var(--sunk); border-radius: 10px; }
.zs-contact-tabs button { flex: 1; border: 0; background: transparent; padding: 7px 0; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-dim); cursor: pointer; }
.zs-contact-tabs button.is-active { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.zs-contact-pane { margin: 0; }
.zs-contact .qr-box { height: auto; aspect-ratio: 1; max-width: 240px; margin: 0 auto; }
.zs-contact figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.zs-contact figcaption b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.zs-contact-note { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--text-faint); }
.zs-contact-name { margin: 0 0 10px; text-align: center; font-weight: 600; }
.zs-contact-link { margin-top: 10px; }
.zs-contact-inline { max-width: 320px; margin: 16px auto; }

/* ============ 订单页：状态提示 / 卡密 / 求助 ============ */
.zs-callout { margin: 16px 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--sunk); font-size: 14px; line-height: 1.7; }
.zs-callout p { margin: 0; }
.zs-callout b { font-family: var(--font-num); font-size: 16px; }
.zs-callout-sub { margin-top: 6px !important; font-size: 12.5px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zs-callout--warn { background: var(--warn-soft); }
.zs-secret { margin: 16px 0 10px; padding: 14px 16px; }
.zs-secret-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; font-weight: 600; color: var(--seal-ink); }
.zs-secret-head small { font-weight: 400; color: var(--text-dim); font-size: 12px; }
.zs-secret-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px dashed color-mix(in srgb, var(--seal) 35%, transparent); }
.zs-secret-line:first-of-type { border-top: 0; }
.zs-secret-line code { flex: 1; min-width: 200px; font-family: var(--font-mono); font-size: 15px; color: var(--text); word-break: break-all; user-select: all; }
.zs-secret-line .btn { padding: 8px 14px; }
.zs-help-row { margin: 10px 0 0; font-size: 13px; color: var(--text-dim); }
.zs-help-row a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* 下单页「切换商品」胶囊：按钮默认文字色是黑色，夜间看不见 */
.pd-chip { color: var(--text); }
.pd-chip-copy small { color: var(--text-faint); }

/* ============================================================
   手机专项（≤640px）
   ============================================================ */
@media (max-width: 640px) {
  /* iPhone Safari 对 16px 以下的输入框会在聚焦时自动放大页面，统一 16px */
  input, select, textarea, .tokyo-search input, .field input, .field select, .field textarea { font-size: 16px !important; }

  /* 手指可点区域 ≥44px */
  .faq-q { min-height: 44px; align-items: center; padding: 8px 6px; }
  .lk-recent-item { padding: 9px 14px; }
  .copy-btn, .mini-btn { min-height: 36px; }
  .zs-help-row a { display: inline-block; padding: 6px 0; }

  /* 商品 / 订单头：缩略图改小放左边，状态和关键信息留在首屏 */
  .pd-hero { flex-direction: row; gap: 12px; align-items: flex-start; padding-bottom: 14px; margin-bottom: 14px; }
  .pd-thumb { width: 64px; height: 64px; border-radius: 12px; font-size: 16px; letter-spacing: 0; }
  .pd-info h2 { font-size: 16px !important; line-height: 1.45; margin-bottom: 8px !important; }
  .pd-desc { display: none; }
  .order-meta { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .order-meta dt { letter-spacing: 0; }

  /* 面板内边距收紧，内容区更宽 */
  .tokyo-main { padding: 12px 10px 90px; }
  .tokyo-panel-body { padding: 14px; }
  .tokyo-panel-header { padding: 14px 14px 12px; }
  .tokyo-panel-title { font-size: 19px; }

  /* 订单页：卡密行里的按钮各占一半 */
  .zs-secret-line code { min-width: 100%; }
  .zs-secret-line .copy-btn, .zs-secret-line .btn { flex: 1; justify-content: center; }

  /* 下单页：「提交订单」贴底，长表单不用滚到最底才能下单
     （面板 overflow:hidden 会让 sticky 失效，改用 clip，圆角裁切效果不变） */
  .tokyo-panel { overflow: clip; }
  #submitBtn { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 6px 18px rgba(31, 30, 27, .18); }
  .pay-options { grid-template-columns: 1fr; }

  /* 首页分类条可横向滑动，不换成多行 */
  .tokyo-category-tree { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tokyo-category-tree::-webkit-scrollbar { display: none; }
  .tokyo-cat { flex: none; }
}

/* 首页客服栏：内容靠上，不再垂直居中（只有链接、没有二维码的渠道时不留大片空白） */
.tokyo-sidebar-stack > .tokyo-panel:last-child .tokyo-panel-body { justify-content: flex-start; }

/* ---- 图形验证码 ---- */
.zs-captcha { display: flex; gap: 10px; align-items: stretch; }
.zs-captcha input { flex: 1; min-width: 0; letter-spacing: .3em; text-transform: uppercase; }
.zs-captcha input::placeholder { letter-spacing: normal; }
.zs-captcha-img { flex: none; padding: 0; border: 1px solid var(--line-bright); border-radius: 10px; background: #FBFAF6; cursor: pointer; overflow: hidden; width: 140px; min-height: 48px; }
.zs-captcha-img img { display: block; width: 140px; height: 48px; }

/* ============ 导航不换行、不挤压（任何宽度下文字都保持一行） ============ */
.tokyo-brand, .tokyo-brand-text, .tokyo-nav-main a, .tokyo-btn, .btn, .tokyo-user-chip, .tokyo-user-chip-meta span, .tokyo-auth-actions a { white-space: nowrap; }
.tokyo-brand, .tokyo-nav-tools, .tokyo-auth-actions, .tokyo-user-chip, .tokyo-user-chip-avatar { flex-shrink: 0; }
/* 链接多了宁可横向滚动也不压缩成两行 */
.tokyo-nav-main { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tokyo-nav-main::-webkit-scrollbar { display: none; }
.tokyo-nav-main a { flex-shrink: 0; }
.tokyo-user-chip-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.tokyo-nav-main a.nav-hot { color: var(--seal-ink); }
.tokyo-nav-main a.nav-hot::after { content: "返利"; margin-left: 4px; padding: 1px 5px; border-radius: 999px; background: var(--seal-soft); color: var(--seal-ink); font-size: 10px; font-weight: 600; vertical-align: 1px; }
html[lang="en"] .tokyo-nav-main a.nav-hot::after { content: "Earn"; }
@media (max-width: 1080px) { .tokyo-nav-wrap { gap: 14px; } .tokyo-nav-main a { padding: 8px 10px; } .tokyo-brand-text small { display: none; } }

/* ============ 登录 / 注册卡片 ============ */
.auth-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-width: 880px; margin: 12px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
#authView:not([hidden]) { min-height: calc(100svh - 64px - 86px); display: flex; align-items: center; justify-content: center; }
#authView .auth-card { width: 100%; margin: 0 auto; }
.auth-brand { position: relative; overflow: hidden; background: var(--panel-ink); color: var(--on-panel); padding: 40px 38px; display: flex; flex-direction: column; min-height: 460px; }
.auth-brand > * { position: relative; z-index: 1; }
/* 右下角的大 Z 水印 */
.auth-brand .auth-brand-mark { position: absolute; z-index: 0; right: -44px; bottom: -52px; width: 260px; height: 260px; color: var(--on-panel); opacity: .05; transform: rotate(-8deg); }
.auth-brand-main { margin: auto 0; display: grid; gap: 14px; }
.auth-brand-sub { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--on-panel-dim); }
.auth-brand-ref { margin: 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; color: var(--on-panel-dim); }
/* 新人券：左边金额，右边说明，中间一道撕口虚线 */
.auth-coupon { position: relative; display: grid; grid-template-columns: 96px 1fr; margin-top: 6px; border-radius: 14px; background: var(--seal); color: #fff; overflow: hidden; }
.auth-coupon::before, .auth-coupon::after { content: ""; position: absolute; left: 87px; width: 18px; height: 18px; border-radius: 50%; background: var(--panel-ink); }
.auth-coupon::before { top: -9px; }
.auth-coupon::after { bottom: -9px; }
.auth-coupon-amt { display: flex; align-items: center; justify-content: center; padding: 18px 0; border-right: 2px dashed rgba(255,255,255,.45); font-family: var(--font-num); font-size: 38px; line-height: 1; white-space: nowrap; }
.auth-coupon-amt small { font-size: 18px; margin-right: 2px; }
.auth-coupon-info { display: grid; gap: 3px; align-content: center; padding: 14px 16px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.86); }
.auth-coupon-info b { font-size: 16px; color: #fff; letter-spacing: .08em; }
body.tokyo-dark .auth-coupon { background: #B85D3A; }
/* 电脑上新人券已在左侧，表单顶部横幅隐藏；手机上反过来 */
@media (min-width: 761px) { .auth-card.is-invited .invite-banner { display: none; } }
/* 券和邀请码只在注册视图展示，切到登录就收起 */
.auth-card:not(.is-invited) .auth-brand-ref { display: none; }
.auth-brand .zs-logo { width: 44px; height: 44px; color: var(--on-panel); }
.auth-brand-title { margin: 0; font-family: var(--font-serif); font-size: 40px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; color: var(--on-panel); white-space: nowrap; }
.auth-brand-foot { font-size: 12px; letter-spacing: .14em; color: var(--on-panel-dim); }
.auth-form { padding: 36px 40px 32px; min-width: 0; }
.auth-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 22px; background: var(--sunk); border-radius: 12px; }
.auth-seg button { border: 0; background: transparent; padding: 9px 0; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-dim); cursor: pointer; white-space: nowrap; }
.auth-seg button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.auth-form .field { margin-bottom: 14px; }
.auth-form .field label { display: flex; justify-content: space-between; gap: 8px; letter-spacing: 0; white-space: nowrap; }
.auth-form .btn--block { margin-top: 6px; }
.auth-note { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--text-faint); }
.auth-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pwd-row { position: relative; display: flex; }
.pwd-row input { flex: 1; min-width: 0; padding-right: 58px; }
.pwd-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; font-size: 12px; color: var(--text-faint); cursor: pointer; }
.pwd-eye:hover { color: var(--text); background: var(--hover); }
.auth-more { margin: 2px 0 14px; }
.auth-more > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 13px; color: var(--text-dim); padding: 4px 0; }
.auth-more > summary::-webkit-details-marker { display: none; }
.auth-more > summary::before { content: "+"; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 6px; font-size: 13px; line-height: 1; }
.auth-more[open] > summary::before { content: "−"; }
.auth-more > summary em { font-style: normal; color: var(--seal-ink); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-more[open] > summary { margin-bottom: 12px; }
.invite-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; background: var(--seal-soft); color: var(--seal-ink); font-size: 13.5px; line-height: 1.6; }
.invite-banner b { font-family: var(--font-num); font-size: 17px; }
.invite-ticket { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--seal); color: #fff; display: grid; place-items: center; font-family: var(--font-num); font-size: 16px; white-space: nowrap; }
body.tokyo-dark .invite-ticket { color: #1E1D1B; }
@media (max-width: 760px) {
  .auth-card { grid-template-columns: 1fr; margin-top: 0; border-radius: 18px; }
  .auth-brand { min-height: 0; padding: 20px 20px 18px; flex-direction: row; align-items: center; gap: 12px; }
  .auth-brand .zs-logo { width: 30px; height: 30px; }
  .auth-brand-title { margin: 0; font-size: 22px; letter-spacing: .04em; }
  .auth-brand-foot, .auth-brand-sub:not([hidden]), .auth-brand-ref, .auth-brand .auth-brand-mark { display: none; }
  .auth-brand-main { margin: 0; }
  #authView:not([hidden]) { min-height: 0; display: block; }
  .auth-form { padding: 20px 18px 22px; }
}

/* ============ 邀请有礼 invite.html ============ */
.btn--light { background: var(--on-panel); color: var(--panel-ink); border: 1px solid var(--on-panel); }
.btn--light:hover { opacity: .9; }
.btn--ghost-dark { background: transparent; color: var(--on-panel); border: 1px solid rgba(250,249,245,.32); }
.btn--ghost-dark:hover { background: rgba(250,249,245,.08); }
.inv { max-width: 1100px; margin: 0 auto; }
.inv-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding: 36px 36px 30px; border-radius: 22px; background: var(--panel-ink); color: var(--on-panel); }
.inv-eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--on-panel-dim); }
.inv-title { font-family: var(--font-serif); font-size: 34px; line-height: 1.35; margin: 10px 0 12px; color: var(--on-panel); }
.inv-title em { font-style: normal; color: var(--panel-accent); }
.inv-lead { margin: 0; color: var(--on-panel-dim); font-size: 14.5px; line-height: 1.85; max-width: 34em; }
.inv-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.inv-cta .btn { padding: 11px 20px; }
.inv-link-card { align-self: start; display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: rgba(250,249,245,.06); border: 1px solid var(--panel-line); min-width: 0; }
.inv-lbl { font-size: 12px; color: var(--on-panel-dim); line-height: 1.7; }
.inv-code { font-family: var(--font-mono); font-size: 26px; letter-spacing: .18em; color: var(--on-panel); }
.inv-link-line { display: flex; gap: 8px; align-items: center; min-width: 0; }
.inv-link-line code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; background: rgba(250,249,245,.08); color: var(--on-panel); font-family: var(--font-mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-link-line .btn { flex: none; padding: 9px 14px; }
.inv-qr-row { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.inv-qr { flex: none; border-radius: 8px; background: #fff; }
.inv-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 22px; }
.inv-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
.inv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.inv-stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.inv-stat span { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.inv-stat b { display: block; margin-top: 4px; font-family: var(--font-num); font-size: 26px; font-weight: 500; white-space: nowrap; }
.inv-stat b.is-seal { color: var(--seal); }
.inv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.inv-step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 13px; color: var(--text-dim); line-height: 1.65; }
.inv-step i { display: block; font-style: normal; font-family: var(--font-num); font-size: 20px; color: var(--seal); }
.inv-step b { display: block; margin-bottom: 2px; color: var(--text); font-size: 14px; }
.inv-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; min-width: 0; }
.inv-card h2 { margin: 0 0 12px; font-family: var(--font-serif); font-size: 17px; }
.inv-friends { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.inv-friends th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--text-faint); white-space: nowrap; }
.inv-friends td { padding: 10px 6px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.inv-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--sunk); color: var(--text-dim); white-space: nowrap; }
.inv-badge.is-ok { background: var(--ok-soft); color: var(--green); }
.inv-share-text { margin-bottom: 10px; padding: 12px 14px; border-radius: 12px; background: var(--sunk); color: var(--text-dim); font-size: 13px; line-height: 1.75; word-break: break-all; }
.inv-rules { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.85; color: var(--text-dim); }
.inv-poster-panel { max-width: 400px; }
.inv-poster-img { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.inv-poster-tip { text-align: center; margin: 10px 0 12px; }
@media (max-width: 900px) {
  .inv-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .inv-body { grid-template-columns: 1fr; }
  .inv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .inv-title { font-size: 26px; }
  .inv-cta { display: grid; grid-template-columns: 1fr 1fr; }
  .inv-cta .btn { padding: 11px 0; }
  .inv-steps { grid-template-columns: 1fr; }
  .inv-stat b { font-size: 22px; }
  .inv-card { padding: 14px; }
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============ 官网首页 home.html ============ */
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp-eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.lp-eyebrow--light { color: var(--on-panel-dim); }
.lp-hero { padding: 64px 0 72px; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.lp-title { margin: 0 0 18px; font-family: var(--font-serif); font-size: 52px; line-height: 1.25; letter-spacing: .04em; color: var(--text); }
.lp-lead { margin: 0; max-width: 30em; font-size: 16px; line-height: 1.9; color: var(--text-dim); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-cta .btn { padding: 13px 26px; font-size: 15px; }
.lp-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-dim); }
.lp-points li { white-space: nowrap; }
.lp-points li::before { content: "✓"; margin-right: 6px; color: var(--seal); }

/* 场景卡片：整体往左（或右）倾、带透视，像斜着看过去的一张截图 */
body.tokyo-dark .lp-tilt { --lp-shadow: 0 2px 4px rgba(0,0,0,.4), 30px 40px 70px rgba(0,0,0,.55); }
.lp-tilt { --lp-shadow: 0 2px 4px rgba(31,30,27,.06), 30px 40px 60px rgba(31,30,27,.14); perspective: 1600px; min-width: 0; }
.lp-tilt--right { --lp-shadow: 0 2px 4px rgba(31,30,27,.06), -30px 40px 60px rgba(31,30,27,.14); }
body.tokyo-dark .lp-tilt--right { --lp-shadow: 0 2px 4px rgba(0,0,0,.4), -30px 40px 70px rgba(0,0,0,.55); }
.lp-scene { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--lp-shadow); overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.lp-tilt--left .lp-scene { transform: rotateY(-16deg) rotateX(7deg) rotateZ(1.5deg); transform-origin: 30% 50%; }
.lp-tilt--right .lp-scene { transform: rotateY(16deg) rotateX(7deg) rotateZ(-1.5deg); transform-origin: 70% 50%; }
.lp-tilt:hover .lp-scene { transform: rotateY(0) rotateX(0) rotateZ(0); }
@media (prefers-reduced-motion: reduce) { .lp-scene { transition: none; } }
.lp-show-note { margin: 28px 0 0; font-size: 12px; color: var(--text-faint); text-align: center; }
.lp-uses { padding-top: 16px; }
.lp-uses .lp-sec-head { margin-bottom: 24px; }
.lp-uses-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.lp-use-list { display: grid; gap: 6px; }
.lp-use-item { display: grid; gap: 4px; padding: 16px 18px 16px 20px; border: 0; border-left: 2px solid var(--line); border-radius: 0 12px 12px 0; background: transparent; font: inherit; text-align: left; color: var(--text-dim); cursor: pointer; transition: background .2s, border-color .2s; }
.lp-use-item .lp-eyebrow { margin: 0; }
.lp-use-item b { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--text); }
.lp-use-item > span:last-child { font-size: 14px; line-height: 1.75; }
.lp-use-item:hover { background: var(--hover); }
.lp-use-item[aria-selected="true"] { border-left-color: var(--seal); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.lp-uses-grid .lp-scene { height: 360px; }
.lp-uses-grid .lp-scene[hidden] { display: none; }
.lp-ask { align-self: flex-end; max-width: 88%; display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--sunk); color: var(--text); font-size: 14px; line-height: 1.65; }
.lp-ask .material-symbols-rounded { font-size: 18px; color: var(--text-faint); margin-top: 2px; }
.lp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--text-faint); }
.lp-dot.is-ok { background: var(--green); }
.lp-dot.is-live { background: var(--seal); box-shadow: 0 0 0 4px var(--seal-soft); }

/* 写代码：编辑器两套主题都用深底 */
.lp-scene--code { padding: 0; background: #1F1E1B; border-color: #1F1E1B; color: #E9E5DA; }
body.tokyo-dark .lp-scene--code { background: #141311; border-color: #3A3934; }
body.tokyo-dark .lp-scene { border-color: var(--line-bright); }
.lp-win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(250,249,245,.08); font-family: var(--font-mono); font-size: 12px; color: #A8A498; }
.lp-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3B3A35; }
.lp-win-bar span { margin-left: 8px; }
.lp-scene--code .lp-ask { margin: 0 18px; background: rgba(250,249,245,.08); color: #F1EEE5; }
.lp-code { flex: 1; margin: 0; padding: 0 18px; overflow: hidden; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; color: #D9D5CA; white-space: pre; }
.lp-code .k { color: #E9A27F; }
.lp-code .f { color: #9CC3A4; }
.lp-code .t { color: #8FB7D6; }
.lp-code .s { color: #D9C27A; }
.lp-code .c { color: #8C887E; }
.lp-code .add { display: block; margin: 0 -18px; padding: 0 18px; background: rgba(140,192,150,.12); box-shadow: inset 3px 0 0 #8CC096; }
.lp-scene--code .lp-scene-foot { padding: 12px 18px; border-top: 1px solid rgba(250,249,245,.08); font-size: 12.5px; color: #BDB9AE; }
.lp-scene--code .lp-dot.is-ok { background: #8CC096; }

/* 语音 */
.lp-voice-top { font-size: 12.5px; color: var(--text-faint); }
.lp-wave { display: flex; align-items: center; justify-content: center; gap: 6px; height: 96px; margin: 4px 0; }
.lp-wave i { width: 6px; height: calc(var(--h) * 1px); border-radius: 3px; background: var(--ink); opacity: .85; }
.lp-wave i:nth-child(3n) { background: var(--seal); }
.lp-say { padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.lp-say b { display: block; margin-bottom: 2px; font-size: 12px; color: var(--text-faint); font-weight: 600; }
.lp-say.is-me { background: var(--sunk); color: var(--text); }
.lp-say.is-ai { border: 1px solid var(--line); }

/* 科研 */
.lp-research-meta { font-size: 12.5px; color: var(--text-faint); }
.lp-research-title { margin: 0; font-family: var(--font-serif); font-size: 19px; color: var(--text); }
.lp-bars { display: grid; gap: 8px; }
.lp-bars div { display: grid; grid-template-columns: 52px 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-dim); }
.lp-bars i { display: block; height: 10px; width: var(--w); border-radius: 5px; background: var(--ink); }
.lp-bars div:first-child i { background: var(--seal); }
.lp-bars em { font-style: normal; font-family: var(--font-num); color: var(--text); text-align: right; }
.lp-research-text { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--text-dim); }
.lp-research-text sup { color: var(--seal); }
.lp-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.lp-cites span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--text-faint); white-space: nowrap; }

/* 日常 */
.lp-life-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-life-card, .lp-life-list { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.lp-life-card h4, .lp-life-list h4 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 15px; color: var(--text); }
.lp-life-list h4 small { margin-left: 6px; font-family: var(--font-display); font-size: 12px; font-weight: 400; color: var(--text-faint); }
.lp-life-card p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-dim); }
.lp-life-card b { display: inline-block; width: 22px; color: var(--seal); font-weight: 600; }
.lp-life-list ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lp-life-list li { padding: 4px 10px; border-radius: 999px; background: var(--sunk); font-size: 12.5px; color: var(--text); white-space: nowrap; }

/* 套餐 / 邀请 / 页脚 */
.lp-sec { padding: 72px 0; }
.lp-sec--sunk { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-sec--last { padding-bottom: 88px; }
.lp-sec-head { max-width: 640px; margin-bottom: 32px; }
.lp-sec-head h2 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 32px; line-height: 1.35; color: var(--text); }
.lp-sec-head p:not(.lp-eyebrow) { margin: 0; font-size: 15px; line-height: 1.8; color: var(--text-dim); }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.lp-plan { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .15s; }
.lp-plan:hover { border-color: var(--ink); }
.lp-plan h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.lp-plan p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-dim); }
.lp-plan-price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lp-plan-price b { font-family: var(--font-num); font-size: 30px; font-weight: 500; white-space: nowrap; }
.lp-plan-price span { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.lp-plan-go { font-size: 13.5px; font-weight: 600; color: var(--seal-ink); }
.lp-invite { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px; border-radius: 22px; background: var(--panel-ink); color: var(--on-panel); }
.lp-invite h2 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 30px; color: var(--on-panel); }
.lp-invite p:not(.lp-eyebrow) { margin: 0; max-width: 36em; font-size: 14.5px; line-height: 1.85; color: var(--on-panel-dim); }
.lp-invite-cta { display: flex; flex-direction: column; gap: 10px; flex: none; }
.lp-invite-cta .btn { padding: 12px 24px; }
.lp-foot { padding: 28px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-faint); }
.lp-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-foot a { color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.lp-foot a:hover { color: var(--text); }
@media (max-width: 960px) {
  .lp-hero { padding: 40px 0 48px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-uses-grid { grid-template-columns: 1fr; gap: 28px; }
  .lp-title { font-size: 38px; }
  .lp-invite { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .lp-invite-cta { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .lp-wrap { padding: 0 16px; }
  .lp-title { font-size: 32px; }
  .lp-lead { font-size: 15px; }
  .lp-cta { display: grid; grid-template-columns: 1fr 1fr; }
  .lp-cta .btn { padding: 12px 0; }
  .lp-scene { padding: 16px; }
  .lp-tilt--left .lp-scene { transform: rotateY(-8deg) rotateX(5deg) rotateZ(1deg); }
  .lp-tilt--right .lp-scene { transform: rotateY(8deg) rotateX(5deg) rotateZ(-1deg); }
  .lp-use-item { padding: 12px 14px; }
  .lp-use-item b { font-size: 17px; }
  .lp-uses-grid .lp-scene { height: auto; min-height: 340px; }
  .lp-scene--code { padding: 0; }
  .lp-code { font-size: 11px; padding: 0 14px; overflow: hidden; }
  .lp-code .add { margin: 0 -14px; padding: 0 14px; }
  .lp-scene--code .lp-ask { margin: 0 14px; }
  .lp-wave { height: 72px; gap: 4px; }
  .lp-wave i { width: 5px; height: calc(var(--h) * .8px); }
  .lp-life-grid { grid-template-columns: 1fr; }
  .lp-sec { padding: 48px 0; }
  .lp-sec-head h2 { font-size: 25px; }
  .lp-invite h2 { font-size: 24px; }
  .lp-invite-cta { display: grid; grid-template-columns: 1fr; width: 100%; }
}

/* ============ 结算页：选优惠券 ============ */
.cp-list { display: grid; gap: 8px; }
.cp-list:empty { display: none; }
.field .cp-item { letter-spacing: 0; font-weight: 400; color: var(--text); }
.cp-item { position: relative; display: flex; align-items: stretch; min-height: 56px; border: 1px solid var(--line-bright); border-radius: 12px; background: var(--card); cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.cp-item input { position: absolute; opacity: 0; pointer-events: none; }
.cp-item.is-on { border-color: var(--seal); box-shadow: 0 0 0 1px var(--seal); }
.cp-item:focus-within { box-shadow: 0 0 0 3px var(--seal-soft); }
.cp-amt { flex: none; width: 76px; display: flex; align-items: center; justify-content: center; border-right: 2px dashed var(--line-bright); background: var(--seal-soft); color: var(--seal-ink); font-family: var(--font-num); font-size: 26px; white-space: nowrap; }
.cp-list .cp-amt small { display: inline; font-size: 14px; margin-right: 1px; color: inherit; }
.cp-item.is-on .cp-amt { background: var(--seal); color: #fff; border-right-color: rgba(255,255,255,.45); }
body.tokyo-dark .cp-item.is-on .cp-amt { color: #1E1D1B; }
.cp-info { flex: 1; min-width: 0; display: grid; align-content: center; gap: 2px; padding: 8px 40px 8px 14px; }
.cp-info b { font-size: 14px; color: var(--text); }
.cp-info small { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-item::after { content: ""; position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 1.5px solid var(--line-bright); border-radius: 50%; }
.cp-item.is-on::after { border-color: var(--seal); background: radial-gradient(circle, var(--seal) 0 4px, transparent 5px); }
.cp-none { min-height: 44px; }
.cp-none .cp-info b { font-weight: 500; color: var(--text-dim); }
.cp-code-toggle { align-self: flex-start; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--text-faint); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cp-code-toggle:hover { color: var(--text); }
.cp-code-toggle[hidden] { display: none; }
.cp-saved { margin: 8px 0 0; font-size: 13px; color: var(--seal-ink); text-align: right; }

/* ============ 充值余额：弹窗 / 余额不足提示 ============ */
.rc-online-soon[hidden] { display: none; }
.rc-online-soon > div { flex: 1; min-width: 0; }
.rc-online-soon .btn { flex: none; white-space: nowrap; }
.rc-panel { width: min(460px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; }
.rc-balance { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--sunk); font-size: 13px; color: var(--text-dim); }
.rc-balance b { font-family: var(--font-num); font-size: 22px; font-weight: 500; color: var(--text); }
.rc-balance em { margin-left: auto; font-style: normal; color: var(--seal-ink); font-weight: 600; white-space: nowrap; }
.rc-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--sunk); }
.rc-seg button { display: grid; gap: 1px; padding: 8px 0; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-dim); cursor: pointer; white-space: nowrap; }
.rc-seg button small { font-size: 12px; font-weight: 400; color: var(--text-faint); }
.rc-seg button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.rc-tip { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--text-dim); }
.rc-tip b { color: var(--text); }
.rc-tip--soft { margin: 10px 0; font-size: 12.5px; color: var(--text-faint); }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rc-chips button { padding: 5px 12px; border: 1px solid var(--line-bright); border-radius: 999px; background: var(--card); font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.rc-chips button:hover { border-color: var(--ink); }
.rc-panel .field { margin-bottom: 12px; }
.rc-sum { display: grid; gap: 6px; margin: 4px 0 0; padding: 12px 14px; border: 1px dashed var(--line-bright); border-radius: 12px; font-size: 13px; }
.rc-sum div { display: flex; justify-content: space-between; gap: 12px; }
.rc-sum dt { color: var(--text-dim); }
.rc-sum dd { margin: 0; font-family: var(--font-mono); color: var(--text); }
.rc-sum .is-total { padding-top: 6px; border-top: 1px solid var(--line); font-weight: 600; }
.rc-sum .is-total dd { font-size: 15px; }
.bal-alert { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--warn-line); border-radius: 12px; background: var(--warn-soft); }
.bal-alert[hidden] { display: none; }
.bal-alert > .material-symbols-rounded { color: var(--yellow); }
.bal-alert > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bal-alert b { font-size: 13.5px; color: var(--text); }
.bal-alert small { font-size: 12px; color: var(--text-dim); }
.bal-alert .btn { flex: none; white-space: nowrap; padding: 8px 16px; }
#feeTip a { color: var(--seal-ink); text-decoration: underline; text-underline-offset: 3px; }
.zs-callout--ok { background: var(--ok-soft); }

/* ============ 我的订单：筛选 + 主操作按钮 ============ */
.od-filter { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--sunk); width: fit-content; max-width: 100%; overflow-x: auto; }
.od-filter button { flex: none; padding: 7px 16px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-dim); cursor: pointer; white-space: nowrap; }
.od-filter button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.copy-btn.copy-btn--primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.copy-btn.copy-btn--primary:hover { opacity: .88; }

/* ============ 兑换页：凭证获取步骤 + 即时检查 ============ */
.rd-guide { margin: 0 0 10px; padding: 12px 14px 12px 34px; border-radius: 12px; background: var(--sunk); display: grid; gap: 6px; font-size: 13.5px; line-height: 1.7; color: var(--text-dim); }
.rd-guide b { color: var(--text); }
.rd-guide-btn { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.rd-guide-btn:hover { opacity: .88; }
.rd-check { margin: 8px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.rd-check.is-ok { background: var(--ok-soft); color: var(--green); }
.rd-check.is-warn { background: var(--warn-soft); color: var(--yellow); }
.rd-check.is-bad { background: var(--danger-soft); color: var(--red); }
#credInput { font-family: var(--font-mono); font-size: 12.5px; }

/* ============ 前台表格（我的订单 / 余额流水 / 邀请好友）一律不折行，放不下就横向滑动 ============ */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table th, .admin-table td { white-space: nowrap; }
.admin-table td.cell-product { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.admin-table td .copy-btn + .copy-btn { margin-left: 6px; }
#view-orders .admin-table td.cell-product, #view-overview .admin-table td.cell-product { max-width: 200px; }

/* ============ 注册三步流程 ============ */
.auth-brand-title .t-narrow { display: none; }
.auth-brand-sub:not([hidden]) { display: block; max-width: 20em; }
.reg-steps { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 12.5px; color: var(--text-faint); }
.reg-steps li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.reg-steps li[hidden] { display: none; }
.reg-steps li + li::before { content: ""; width: 36px; height: 1px; margin-right: 2px; background: var(--line); }
.reg-steps i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-bright); font-style: normal; font-size: 11.5px; }
.reg-steps li.is-now { color: var(--text); font-weight: 600; }
.reg-steps li.is-now i { border-color: var(--ink); color: var(--text); }
.reg-steps li.is-done i { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.reg-title { margin: 0 0 6px; font-family: var(--font-serif); font-size: 24px; color: var(--text); }
.reg-sub { margin: 0 0 18px; font-size: 13.5px; line-height: 1.7; color: var(--text-faint); }
.reg-sub b { color: var(--text); }
.reg-captcha { margin: -2px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 10px 28px rgba(31,30,27,.08); }
.reg-captcha[hidden] { display: none; }
.reg-captcha-title { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.reg-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.reg-otp input { width: 100%; height: 54px; padding: 0; text-align: center; border: 1px solid var(--line-bright); border-radius: 11px; background: var(--card); color: var(--text); font-family: var(--font-mono); font-size: 22px; outline: none; }
.reg-otp input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hover); }
.reg-resend { display: flex; justify-content: space-between; gap: 12px; }
.reg-resend button, .reg-back { padding: 2px 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reg-resend button:disabled { color: var(--text-faint); text-decoration: none; cursor: default; }
.reg-back { display: block; margin: 14px auto 0; }
.reg-ok:not([hidden]) { display: block; margin: 0 0 16px; padding: 9px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--green); font-size: 13px; }
.reg-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.reg-meter i { height: 4px; border-radius: 2px; background: var(--line); }
.reg-meter.is-1 i:nth-child(1) { background: var(--red); }
.reg-meter.is-2 i:nth-child(-n+2) { background: var(--yellow); }
.reg-meter.is-3 i { background: var(--green); }
#authRegisterPanel .auth-more { margin: 14px 0 0; }
@media (max-width: 760px) {
  .auth-brand-title .t-wide { display: none; }
  .auth-brand-title .t-narrow { display: inline; }
  .reg-otp input { height: 46px; font-size: 19px; }
  .reg-steps li + li::before { width: 18px; }
}
@media (max-width: 760px) { .auth-brand-sub:not([hidden]) { display: none; } }

/* ============ 套餐卡片（官网首页 / 商城共用） ============ */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.plan:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31,30,27,.08); }
.plan.is-out { opacity: .6; }
.plan-head { position: relative; overflow: hidden; height: 104px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.plan-head--0 { background: linear-gradient(135deg, #F1EEE6, #DEDACE); color: #1F1E1B; }
.plan-head--1 { background: linear-gradient(135deg, #3A3934, #23221F); color: #FAF9F5; }
.plan-head--2 { background: linear-gradient(135deg, #2A2C33, #17181C); color: #FAF9F5; }
.plan-head--3 { background: linear-gradient(135deg, #1F1E1B, #0E0E0C); color: #FAF9F5; box-shadow: inset 0 -3px 0 var(--seal); }
.plan-family { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.plan-short { font-family: var(--font-serif); font-size: 28px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.plan-flag { position: absolute; top: 12px; right: 12px; padding: 2px 9px; border-radius: 999px; background: var(--seal); color: #fff; font-size: 12px; font-weight: 600; }
.plan-mark { position: absolute; right: -14px; bottom: -22px; width: 96px; height: 96px; opacity: .1; transform: rotate(-8deg); }
.plan-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.plan-name { margin: 0; min-height: 3em; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plan-name.has-sub { min-height: 1.5em; -webkit-line-clamp: 1; }
.plan-sub { margin: -4px 0 0; min-height: 1.5em; font-size: 12px; line-height: 1.5; color: var(--text-dim); letter-spacing: .02em; }
.co-sum-name .plan-sub { margin: 0 0 0 4px; font-size: 12px; }
.plan-tagline { margin: 0; min-height: 3.3em; font-size: 13px; line-height: 1.65; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plan-price { display: flex; align-items: baseline; gap: 1px; margin-top: 8px; white-space: nowrap; }
.plan-price small { font-size: 15px; color: var(--text-dim); margin-right: 2px; }
.plan-price b { font-family: var(--font-num); font-size: 34px; font-weight: 500; line-height: 1; }
.plan-price span { font-family: var(--font-num); font-size: 16px; color: var(--text-dim); }
.plan-price em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--seal-ink); }
.plan-note { margin: 0; font-size: 12.5px; color: var(--text-faint); }
.plan-conds { margin: 6px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line-soft); list-style: none; display: grid; gap: 4px; font-size: 12.5px; color: var(--text-dim); }
.plan-conds li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-conds li::before { content: "·"; margin-right: 6px; color: var(--seal); }
.plan-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--line-bright); border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.plan-body .plan-cta { margin-top: auto; }
.plan-body > :nth-last-child(2) { margin-bottom: 14px; } /* 按钮正上方留白；按钮本身靠 margin-top:auto 贴底，同一排对齐 */
a.plan:hover .plan-cta { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.plan.is-out .plan-cta { color: var(--text-faint); }
body.tokyo-dark .plan-head--0 { background: linear-gradient(135deg, #DCD8CC, #C3BEB0); }

/* ============ 「已经购买？」快捷条 ============ */
.bought { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.bought-lead { display: grid; align-content: center; gap: 2px; padding: 14px 20px; background: var(--sunk); white-space: nowrap; }
.bought-lead b { font-size: 14px; color: var(--text); }
.bought-lead small { font-size: 12px; color: var(--text-faint); }
.bought a { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-left: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.bought a:hover { background: var(--hover); }
.bought a i { font-style: normal; font-family: var(--font-num); font-size: 13px; color: var(--seal); }
.bought a span { margin-left: auto; color: var(--text-faint); }
@media (max-width: 760px) {
  /* 手机：一行三格，不占首屏 */
  .bought { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bought-lead { display: none; }
  .bought a { flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; font-size: 12.5px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
  .bought a:first-of-type { border-left: 0; }
  .bought a span { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan-head { height: 86px; }
}
.plan-low { color: var(--seal-ink); font-weight: 600; }
.lp-bought { padding: 0 0 8px; }
.shop-bought { margin-bottom: 20px; }

/* ============ 邀请页 · 访客视图（示意卡 / 收益估算 / 常见问题 / 套餐） ============ */
.inv.is-guest .inv-body { grid-template-columns: 1fr; }
.inv.is-guest .inv-hero { align-items: center; }
.inv-sample { perspective: 1400px; display: grid; place-items: center; min-width: 0; }
.inv-sample[hidden] { display: none; }
.inv-sample-card { width: min(340px, 100%); padding: 20px 22px; border-radius: 18px; background: linear-gradient(145deg, #F4F1E9, #E2DED2); color: #1F1E1B; box-shadow: 0 2px 4px rgba(0,0,0,.2), 26px 36px 60px rgba(0,0,0,.45); transform: rotateY(-16deg) rotateX(8deg) rotateZ(2deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.inv-sample:hover .inv-sample-card { transform: none; }
.inv-sample-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .12em; color: #6A675E; }
.inv-sample-top em { font-style: normal; padding: 1px 8px; border-radius: 999px; border: 1px solid #C9C5BA; letter-spacing: 0; }
.inv-sample-code { margin: 10px 0 2px; font-family: var(--font-mono); font-size: 26px; letter-spacing: .16em; }
.inv-sample-link { font-family: var(--font-mono); font-size: 12px; color: #6A675E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-sample-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed #C9C5BA; }
.inv-sample-qr { flex: none; border-radius: 6px; }
.inv-sample-earn { display: grid; gap: 2px; }
.inv-sample-earn small { font-size: 12px; color: #6A675E; }
.inv-sample-earn b { font-family: var(--font-num); font-size: 28px; font-weight: 500; color: #A84F2E; white-space: nowrap; }
.inv-kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.inv-faq .faq-list { max-width: 820px; }
@media (max-width: 900px) {
  .inv-sample { margin-top: 8px; }
  .inv-sample-card { transform: rotateY(-8deg) rotateX(5deg) rotateZ(1deg); }
}
@media (max-width: 560px) {
}
.inv-sample-row[hidden] { display: none; }
.inv-faq { margin-top: 22px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.inv-faq h2 { margin: 6px 0 6px; font-family: var(--font-serif); font-size: 24px; color: var(--text); }
@media (max-width: 560px) { .inv-faq { padding: 18px 16px; } .inv-faq h2 { font-size: 21px; } }
/* 很窄的手机：表单标签右侧的灰色提示换到标签下面单独一行，不和标签挤在一起 */
@media (max-width: 420px) {
  .field > label:has(> small) { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .field > label > small { margin-left: 0; }
}
.plan-short { max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; }
.plan-short.is-long { font-size: 22px; }

/* ============ 确认订单（两栏：左边填写，右边订单摘要） ============ */
.co { max-width: 1120px; margin: 0 auto; }
.co-crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--text-faint); }
.co-crumb a { color: var(--text-dim); text-decoration: none; }
.co-crumb a:hover { color: var(--text); }
.co-crumb b { color: var(--text); font-weight: 600; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.co-main { display: grid; gap: 14px; min-width: 0; }
.co-box { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); min-width: 0; }
.co-box-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.co-box-h i { font-style: normal; font-family: var(--font-num); font-size: 15px; color: var(--seal); }
.co-box-h b { font-size: 15px; color: var(--text); }
.co-box-h small { margin-left: auto; font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
/* ① 套餐 */
.co-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.co-plan { position: relative; display: grid; padding: 0; border: 1px solid var(--line-bright); border-radius: 12px; background: var(--card); font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.co-plan:hover { border-color: var(--ink); }
.co-plan.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.co-plan.is-on::after { content: "✓"; position: absolute; top: 11px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--seal); color: #fff; font-size: 12px; display: grid; place-items: center; }
.co-plan.is-out { opacity: .5; }
.co-plan-hd { height: 46px; padding: 0 12px; display: flex; align-items: center; font-family: var(--font-serif); font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-plan-bd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 12px; }
.co-plan-bd small { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-plan.is-out .co-plan-bd small { color: var(--seal-ink); }
.co-plan-bd b { font-family: var(--font-num); font-size: 18px; font-weight: 500; color: var(--text); white-space: nowrap; }
.co-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-dim); }
.co-stepper { display: flex; align-items: center; border: 1px solid var(--line-bright); border-radius: 10px; overflow: hidden; }
.co-stepper button { width: 36px; height: 34px; border: 0; background: transparent; font-size: 16px; color: var(--text); cursor: pointer; }
.co-stepper button:hover { background: var(--hover); }
.co-stepper input { width: 46px; height: 34px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; background: transparent; text-align: center; font-family: var(--font-num); font-size: 16px; color: var(--text); -moz-appearance: textfield; }
.co-stepper input::-webkit-outer-spin-button, .co-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* ② 付款方式 */
.co-pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.co-pay { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line-bright); border-radius: 12px; background: var(--card); cursor: pointer; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.co-pay:hover { border-color: var(--ink); }
.co-pay input { position: absolute; opacity: 0; pointer-events: none; }
.co-pay:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.co-pay:focus-within { box-shadow: 0 0 0 3px var(--hover); }
.co-pay-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.co-pay-ic svg { width: 22px; height: 22px; }
.co-pay-ic--alipay { background: #E8F1FF; color: #1677FF; }
.co-pay-ic--alipay svg { width: 26px; height: 26px; }
.co-pay-ic--wechat { background: #07C160; color: #fff; }
.co-pay-ic--balance, .co-pay-ic--online { background: linear-gradient(135deg, #B85D3A, #8E3F25); color: #fff; }
.co-pay-copy { display: grid; gap: 2px; min-width: 0; }
.co-pay-copy b { font-size: 14px; color: var(--text); white-space: nowrap; }
.co-pay-copy small { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-pay-copy small.is-free { color: var(--green); }
.co-pay-copy small.is-short { color: var(--seal-ink); font-weight: 600; }
.co-tip { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--warn-line); border-radius: 10px; background: var(--warn-soft); font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
.co-tip[hidden] { display: none; }
.co-tip a { color: var(--seal-ink); text-decoration: underline; text-underline-offset: 3px; }
#coExtra .field { margin-bottom: 14px; }
#coExtra .field:last-child { margin-bottom: 0; }
/* 订单摘要 */
.co-sum { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.co-sum-hd { padding: 16px 20px; display: grid; gap: 2px; }
.co-sum-hd span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.co-sum-hd b { font-family: var(--font-serif); font-size: 26px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-sum-bd { padding: 16px 20px 20px; }
.co-sum-name { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--text-dim); }
.co-rows { display: grid; gap: 8px; margin: 0; font-size: 13.5px; }
.co-rows div { display: flex; justify-content: space-between; gap: 12px; }
.co-rows div[hidden] { display: none; }
.co-rows dt { color: var(--text-dim); }
.co-rows dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--text); white-space: nowrap; }
.co-rows .is-minus dd { color: var(--seal-ink); }
.co-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-bright); }
.co-total span { font-size: 13.5px; color: var(--text-dim); }
.co-total b { font-family: var(--font-num); font-size: 34px; font-weight: 500; color: var(--text); white-space: nowrap; }
.co-go { margin-top: 14px; padding: 14px; font-size: 15px; }
.co-assure { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 12.5px; color: var(--text-faint); }
.co-assure li::before { content: "✓"; margin-right: 8px; color: var(--green); }
.co-notice { margin-top: 14px; border-radius: 10px; background: var(--sunk); font-size: 12.5px; color: var(--text-dim); }
.co-notice summary { display: flex; justify-content: space-between; padding: 11px 14px; cursor: pointer; list-style: none; }
.co-notice summary::-webkit-details-marker { display: none; }
.co-notice summary span { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.co-notice ol { margin: 0; padding: 0 14px 12px 32px; line-height: 1.75; }
.co-bar { display: none; }
@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-sum { position: static; }
}
@media (max-width: 640px) {
  .co-box { padding: 16px; }
  .co-plans { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .co-plan-hd { height: 40px; padding: 0 10px; font-size: 15px; }
  .co-plan-bd { padding: 7px 10px; }
  .co-plan-bd small { display: none; }
  .co-plan-bd b { font-size: 15px; }
  .co-plan.is-on::after { top: 10px; right: 6px; width: 17px; height: 17px; font-size: 10px; }
  .co-pays { grid-template-columns: 1fr; gap: 8px; }
  .co-go { display: none; }
  /* 合计 + 提交固定在底部 */
  .co-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(31,30,27,.08); }
  .co-bar div { flex: 1; min-width: 0; }
  .co-bar small { display: block; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .co-bar b { font-family: var(--font-num); font-size: 24px; font-weight: 500; color: var(--text); white-space: nowrap; }
  .co-bar .btn { flex: none; padding: 12px 20px; white-space: nowrap; }
  body:has(.co-bar) .tokyo-main { padding-bottom: 96px; }
}

/* ============ 手机：底部标签栏 + 顶部菜单 ============ */
.zs-tabbar, .tokyo-nav-tools .zs-menu-btn, .zs-menu { display: none; }
@media (max-width: 760px) {
  /* 顶部只留品牌 + 主题 + 菜单 + 登录，文字导航收进「菜单」 */
  .tokyo-nav-main { display: none; }
  .tokyo-nav-wrap { flex-wrap: nowrap; padding-bottom: 8px; }
  .tokyo-nav-tools .zs-menu-btn { display: grid; }
  .zs-menu:not([hidden]) { display: grid; position: absolute; top: calc(100% + 6px); right: 12px; z-index: 90; min-width: 168px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 14px 38px rgba(31,30,27,.16); }
  .zs-menu a { padding: 10px 14px; border-radius: 9px; font-size: 14px; color: var(--text); text-decoration: none; white-space: nowrap; }
  .zs-menu a:hover { background: var(--hover); }
  .tokyo-nav-shell { position: sticky; }
  .tokyo-nav-wrap { position: relative; }
  /* 底部标签栏 */
  .zs-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .zs-tabbar a { display: grid; justify-items: center; gap: 1px; padding: 4px 0; border-radius: 10px; color: var(--text-faint); text-decoration: none; font-size: 11.5px; white-space: nowrap; }
  .zs-tabbar a .material-symbols-rounded { font-size: 23px; max-width: none; }
  .zs-tabbar a.is-on { color: var(--text); font-weight: 600; }
  .zs-tabbar a.is-on .material-symbols-rounded { color: var(--seal); }
  body:has(.zs-tabbar) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* 确认订单页有自己的「合计 + 去付款」固定条 */
  body:has(.co-bar) .zs-tabbar { display: none; }
  body:has(.co-bar) { padding-bottom: 0; }
}

/* ============ 「更多」· 学术 Prompt 模板库 ============ */
#prompts { margin-bottom: 20px; }
.pm-search { max-width: 280px; }
.pm-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pm-cats button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line-bright); border-radius: 999px; background: var(--card); font: inherit; font-size: 13.5px; color: var(--text-dim); cursor: pointer; white-space: nowrap; }
.pm-cats button small { font-family: var(--font-num); font-size: 12px; color: var(--text-faint); }
.pm-cats button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pm-cats button[aria-selected="true"] small { color: var(--on-ink); opacity: .7; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pm-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); min-width: 0; }
.pm-tag { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--seal-soft); color: var(--seal-ink); font-size: 12px; }
.pm-card h3 { margin: 4px 0 0; font-family: var(--font-serif); font-size: 18px; color: var(--text); }
.pm-use { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.pm-text { position: relative; margin: 6px 0 0; padding: 12px 14px; max-height: 8.6em; overflow: hidden; border-radius: 10px; background: var(--sunk); font-family: var(--font-display); font-size: 12.5px; line-height: 1.75; color: var(--text-dim); white-space: pre-wrap; word-break: break-word; }
.pm-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(transparent, var(--sunk)); }
.pm-card.is-open .pm-text { max-height: none; }
.pm-card.is-open .pm-text::after { display: none; }
.pm-text mark { padding: 0 2px; border-radius: 3px; background: var(--seal-soft); color: var(--seal-ink); }
.pm-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.pm-actions .btn { padding: 8px 14px; font-size: 13.5px; }
.pm-more { padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.pm-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--text-faint); }
@media (max-width: 640px) {
  .pm-search { max-width: none; width: 100%; }
  .pm-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .pm-cats::-webkit-scrollbar { display: none; }
  .pm-grid { grid-template-columns: 1fr; }
}

/* ============ 「更多」目录页 + 二级页 ============ */
.more-crumb { max-width: 1020px; margin-left: auto; margin-right: auto; }
.more-hub { max-width: 1020px; margin: 0 auto; }
.more-head { margin: 8px 0 26px; }
.more-head h1 { margin: 6px 0 8px; font-family: var(--font-serif); font-size: 32px; color: var(--text); }
.more-head p { margin: 0; font-size: 14.5px; color: var(--text-dim); }
.more-group { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--text-faint); }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 28px; }
.more-grid--small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.more-card { display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.more-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.more-ic { width: 40px; height: 40px; margin-bottom: 6px; border-radius: 11px; display: grid; place-items: center; background: var(--seal-soft); color: var(--seal-ink); }
.more-ic .material-symbols-rounded { font-size: 22px; max-width: none; }
.more-card b { font-size: 16px; }
.more-card span:not(.more-ic):not(.material-symbols-rounded) { font-size: 13px; line-height: 1.65; color: var(--text-dim); }
.more-card em { margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--seal-ink); }
.more-foot { margin: 0; font-size: 12.5px; color: var(--text-faint); }
.notify-ok:not([hidden]) { display: block; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--green); font-size: 13px; line-height: 1.6; }
@media (max-width: 640px) {
  .more-head h1 { font-size: 26px; }
  .more-grid, .more-grid--small { grid-template-columns: 1fr; gap: 10px; }
  .more-card { grid-template-columns: 40px 1fr; column-gap: 12px; padding: 14px 16px; }
  .more-card .more-ic { grid-row: span 3; margin: 0; }
}

/* ============ PWA 安装提示（手机底部弹出，电脑居中） ============ */
.pwa-sheet { position: fixed; inset: 0; z-index: 300; display: grid; align-items: end; justify-items: center; padding: 0; background: var(--backdrop); }
.pwa-sheet[hidden] { display: none; }
.pwa-card { width: 100%; max-width: 460px; padding: 20px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: var(--card); box-shadow: 0 -10px 40px rgba(0,0,0,.18); animation: pwa-up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes pwa-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pwa-card { animation: none; } }
.pwa-head { display: flex; align-items: center; gap: 12px; }
.pwa-head img { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); }
.pwa-head div { flex: 1; display: grid; gap: 2px; }
.pwa-head b { font-family: var(--font-serif); font-size: 19px; color: var(--text); }
.pwa-head small { font-size: 12px; color: var(--text-faint); }
.pwa-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--sunk); font-size: 20px; line-height: 1; color: var(--text-dim); cursor: pointer; }
.pwa-lead { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.pwa-steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: pwa; display: grid; gap: 10px; }
.pwa-steps li { counter-increment: pwa; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 12px; border-radius: 12px; background: var(--sunk); font-size: 14px; color: var(--text); line-height: 1.6; }
.pwa-steps li::before { content: counter(pwa); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-family: var(--font-num); font-size: 12.5px; }
.pwa-key { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 6px; border: 1px solid var(--line-bright); border-radius: 7px; background: var(--card); color: #1677FF; font-weight: 700; vertical-align: middle; }
.pwa-actions { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 761px) {
  .pwa-sheet { align-items: center; padding: 20px; }
  .pwa-card { border-radius: 20px; padding-bottom: 20px; }
}

/* ============ 专属返利标签 / 自定义邀请码 ============ */
.inv-rate-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--seal-soft); color: var(--seal-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; vertical-align: 2px; }
.inv-rate-tag--hero { margin-left: 10px; padding: 3px 10px; font-family: inherit; font-size: 13px; vertical-align: middle; }
.inv-code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.inv-code-edit { flex: none; padding: 5px 12px; border: 1px solid var(--panel-line); border-radius: 999px; background: none; color: var(--on-panel-dim); font: inherit; font-size: 12.5px; cursor: pointer; }
.inv-code-edit:hover { color: var(--on-panel); border-color: var(--on-panel-dim); }
.zs-code-input { width: 100%; padding: 14px 12px; border: 1.5px solid var(--line-bright); border-radius: 12px; background: var(--card); color: var(--text); font-family: var(--font-mono); font-size: 26px; letter-spacing: .22em; text-align: center; text-transform: uppercase; }
.zs-code-input:focus { outline: none; border-color: var(--text); }
.zs-code-preview { margin: 0; font-size: 12.5px; color: var(--text-faint); word-break: break-all; }
.zs-code-preview b { color: var(--text); font-family: var(--font-mono); }
.zs-code-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--text-faint); }
.zs-code-rules li::before { content: "○"; display: inline-block; width: 1.4em; }
.zs-code-rules li.is-ok { color: var(--green); }
.zs-code-rules li.is-ok::before { content: "✓"; }
.zs-code-note { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--text-dim); }
.zs-code-foot { display: flex; gap: 10px; justify-content: flex-end; }
.cp-code-row { display: flex; gap: 8px; }
.cp-code-row[hidden] { display: none; }
.cp-code-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.cp-code-row .btn { flex: none; padding: 0 16px; }
.cp-code-msg { margin: 6px 0 0; font-size: 12.5px; color: var(--text-dim); }
.cp-code-msg.is-ok { color: var(--green); }
.cp-code-msg.is-err { color: var(--red); }
.cp-item--static { cursor: default; }
.cp-item--static::after { display: none; }
.cp-item--static .cp-info { padding-right: 14px; }
.cp-list--mine { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pc-sec-head h3 small { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--text-faint); }

/* ============ App 下载页 app.html ============ */
.appdl { max-width: 1020px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.appdl-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: start; padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.appdl-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 6px 18px rgba(31,30,27,.14); }
.appdl-title { margin: 2px 0 8px; font-family: var(--font-serif); font-size: 30px; }
.appdl-lead { margin: 0; color: var(--text-dim); line-height: 1.75; }
.appdl-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; }
.appdl-meta div { display: flex; gap: 6px; font-size: 13px; }
.appdl-meta dt { color: var(--text-faint); }
.appdl-meta dd { margin: 0; font-weight: 600; }
.appdl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.appdl-cta .btn { padding: 12px 22px; }
.appdl-cta .btn.is-off { opacity: .45; pointer-events: none; }
.appdl-hint { font-size: 12.5px; color: var(--text-faint); }
.appdl-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; color: var(--text-faint); }
.appdl-qr img { width: 148px; height: 148px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.appdl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.appdl-card { padding: 22px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.appdl-card--wide { grid-column: 1 / -1; }
.appdl-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.appdl-card h2 .material-symbols-rounded { font-size: 20px; color: var(--seal); }
.appdl-card ol, .appdl-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.7; font-size: 14px; }
.appdl-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; }
.appdl-note { margin: 12px 0 0 !important; font-size: 12.5px !important; color: var(--text-faint); }
.appdl-card code { font-family: var(--font-mono); font-size: 12px; word-break: break-all; }
@media (max-width: 760px) {
  .appdl-hero { grid-template-columns: auto minmax(0, 1fr); padding: 20px; gap: 16px; }
  .appdl-icon { width: 64px; height: 64px; border-radius: 16px; }
  .appdl-title { font-size: 24px; }
  .appdl-qr { display: none; }
  .appdl-cta .btn { width: 100%; justify-content: center; }
  .appdl-meta { grid-column: 1 / -1; }
  .appdl-grid { grid-template-columns: 1fr; }
}
/* 官网首页「手机 App」 */
.lp-app-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.lp-app-copy { max-width: 560px; }
.lp-app-copy p:not(.lp-eyebrow) { color: var(--text-dim); line-height: 1.75; margin: 10px 0 18px; }
.lp-app-qr { margin: 0; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); }
.lp-app-qr img { width: 136px; height: 136px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 760px) { .lp-app-row { padding: 22px; } .lp-app-qr { display: none; } }
.lp-app-copy h2 { margin: 2px 0 0; font-family: var(--font-serif); font-size: 28px; line-height: 1.35; color: var(--text); }
@media (max-width: 760px) { .lp-app-copy h2 { font-size: 23px; } }
.reg-welcome { margin: -8px 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--seal-soft); color: var(--seal-ink); font-size: 13px; line-height: 1.6; }
.zs-lang-btn { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; min-width: 38px; }
