/* =====================================================================
   KeleD base.css —— 全站基础样式（手机优先）
   维护：A 基础。B、C 直接复用下面的类；页面专属样式写到各自的 shop.css / chat.css
   （在模板的 {% block extra_head %} 里引入），不要修改本文件，需要新的通用类请在报告里提出。

   【颜色与尺寸变量】:root
     --c-bg #f5f5f7 页面底色 | --c-card #fff 卡片 | --c-text 正文 | --c-text-2 次要文字 | --c-text-3 弱提示
     --c-border 分隔线 | --c-border-strong 输入框边框
     --c-primary #c62828 主色红 | --c-primary-dark 悬停/按下 | --c-primary-soft 浅红底
     --c-gold #c9a227 金色点缀（底色、边框）| --c-gold-dark 金色文字（白底上对比度够）| --c-gold-soft 浅金底
     --c-success / --c-warning / --c-info / --c-danger，及对应 *-soft 浅底色
     --radius 14px 卡片 | --radius-sm 10px 按钮/输入框 | --control-h 44px 控件最小高度
     --font 系统中文字体栈 | --font-mono 等宽字体栈 | --shadow 卡片阴影

   【页面骨架】（base.html / merchant/base.html 已用好）
     .site-header .header-bar .brand .site-nav .nav-link(.active) .site-footer
     body 上有 .site-user 或 .site-merchant，另可用 {% block body_class %} 加页面类名

   【布局】
     .container        用户页内容宽度，最大 480px 居中，左右 16px
     .container-wide   商家页内容宽度，最大 960px
     .page             主内容区上下留白
     .stack / .stack-sm / .stack-lg   子元素纵向间距 12 / 8 / 20px
     .row（横向 flex、垂直居中、间距 8px） .row-between（两端对齐） .row-wrap（可换行） .row-top（顶部对齐） .grow（占满剩余）
     .grid-2           两列网格，窄屏（<600px）变一列
     .mt-0 ~ .mt-5 / .mb-0 ~ .mb-5   上 / 下外边距 0 4 8 12 16 24px
     .text-center .text-right .only-mobile（<768px 才显示） .only-desktop（≥768px 才显示） .hidden

   【文字】
     .page-title（页标题） .section-title（区块标题） .muted（灰字） .small（13px） .tiny（12px） .strong
     .mono（等宽） .nowrap .break-all（长串强制换行）
     .text-primary .text-gold .text-success .text-danger
     .price（价格大字，红色，如 ¥100） .prose（长文排版：协议、说明）

   【卡片】
     .card  .card-title  .card-subtitle  .card-footer（卡片底部操作区，上方有分隔线）
     .card-flat（无阴影）  .card-red / .card-gold（卡片顶部 4px 红 / 金色条）

   【按钮】 <a> 和 <button> 都可以
     .btn + .btn-primary（红） / .btn-gold（金） / .btn-outline（白底描边） / .btn-ghost（无底色红字）
          / .btn-danger（红色描边，危险操作，如「标记已退款」）
     .btn-block（占满一行） .btn-lg（52px 高）；:disabled 或 .is-disabled 自动变灰
     .link-button（<button> 外观像链接，如「退出」） .inline-form（行内 <form>）

   【表单】
     .form  .field（一组：label + 输入 + 提示 + 错误）  .label
     .input（input / select / textarea 都可用；未加类名的输入控件也有同样的基础样式，零优先级，随便覆盖）
     .input-row（输入框 + 按钮同一行，如验证码 / 兑换码 + 发放）
     .help（灰色提示） .help-success（绿色提示） .field-error（单条红字错误） .errorlist（Django 默认错误列表）
     .checkbox（勾选框 + 文字） .form-actions（表单底部按钮区）

   【徽标】
     .badge + 订单状态（按 DESIGN §4 的取值，可直接写 class="badge badge-{{ order.status }}"）：
       .badge-pending 待付款 | .badge-paid 已付款，等待发码 | .badge-issued 已发码 | .badge-closed 已关闭 | .badge-refunded 已退款
     通用色：.badge-red .badge-gold .badge-green .badge-blue .badge-gray .badge-amber
     .count（红色圆形数字，导航未读数等）

   【提示条】 .alert + .alert-info / .alert-success / .alert-warning / .alert-error
     Django messages 的 tags 直接对应：class="alert alert-{{ message.tags }}"

   【列表】
     .list（白色卡片列表容器） .list-item（一行；用 <a class="list-item"> 可点击，自带右箭头可加 .list-arrow）
     .kv（键值对：<dl class="kv"><dt>订单号</dt><dd>KD…</dd></dl>）
     .empty（空状态：居中灰字，可放在 .card 上） .empty-code（空状态里的大号灰字，如 404）

   【表格】
     .table（基础表格） .table-cards（窄屏 ≤640px 自动变卡片列表）
     用法：<table class="table table-cards"> … <td data-label="订单号">KD…</td>
       窄屏时每行变成一张卡片，data-label 显示在左侧；
       操作列（如粘贴兑换码 + 发放）给 td 加 .td-full：占满整行、不显示标签
       宽屏下：不希望换行的短列（商品名、金额）给 td 加 .nowrap；邮箱等可能很长的列给 td 加 .break-all，
       否则超长邮箱会把表格撑出容器
     .table-wrap（宽表格外层，允许横向滚动，可选）

   【其他】
     .code-box（等宽大字框，如兑换码） .divider（分隔线） .dot（小圆点）
   ===================================================================== */

:root {
  --c-bg: #f5f5f7;
  --c-card: #ffffff;
  --c-text: #1d1d1f;
  --c-text-2: #6e6e73;
  --c-text-3: #8e8e93;
  --c-border: #e5e5ea;
  --c-border-strong: #d2d2d7;

  --c-primary: #c62828;
  --c-primary-dark: #a91f1f;
  --c-primary-soft: #fdecea;

  --c-gold: #c9a227;
  --c-gold-dark: #8a6d0b;
  --c-gold-soft: #f8f1dc;

  --c-success: #2e7d32;
  --c-success-soft: #e8f5e9;
  --c-warning: #8a5300;
  --c-warning-soft: #fff4e0;
  --c-info: #1565c0;
  --c-info-soft: #e8f0fb;
  --c-danger: #b3261e;
  --c-danger-soft: #fdecea;

  --radius: 14px;
  --radius-sm: 10px;
  --control-h: 44px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
}

/* ---------------------------------------------------------------- 基础 */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0 0 8px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 8px; padding-left: 1.4em; }
hr { border: 0; height: 1px; background: var(--c-border); margin: 16px 0; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* ---------------------------------------------------------------- 布局 */
.container { width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.container-wide { width: 100%; max-width: 960px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.page { flex: 1 0 auto; padding-top: 16px; padding-bottom: 32px; }

.stack > * + * { margin-top: 12px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 20px; }

.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-between { justify-content: space-between; }
.row-wrap { flex-wrap: wrap; }
.row-top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 599.98px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.mt-0 { margin-top: 0 !important; }  .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 4px !important; }  .mb-1 { margin-bottom: 4px !important; }
.mt-2 { margin-top: 8px !important; }  .mb-2 { margin-bottom: 8px !important; }
.mt-3 { margin-top: 12px !important; } .mb-3 { margin-bottom: 12px !important; }
.mt-4 { margin-top: 16px !important; } .mb-4 { margin-bottom: 16px !important; }
.mt-5 { margin-top: 24px !important; } .mb-5 { margin-bottom: 24px !important; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
@media (max-width: 767.98px) { .only-desktop { display: none !important; } }
@media (min-width: 768px) { .only-mobile { display: none !important; } }

/* ---------------------------------------------------------------- 文字 */
.page-title { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.section-title { font-size: 16px; font-weight: 600; margin: 24px 0 10px; }
.muted { color: var(--c-text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.text-primary { color: var(--c-primary); }
.text-gold { color: var(--c-gold-dark); }
.text-success { color: var(--c-success); }
.text-danger { color: var(--c-danger); }
.price { color: var(--c-primary); font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }

.prose { line-height: 1.8; }
.prose h2 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; }
.prose p, .prose li { color: #3a3a3c; }
.prose ol, .prose ul { margin-bottom: 10px; }
.prose li + li { margin-top: 4px; }
/* 锚点跳转（如 /terms/#refund）时不被吸顶的 .site-header（约 100px 高）挡住 */
.prose [id] { scroll-margin-top: 112px; }

/* ---------------------------------------------------------------- 页面骨架 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-card);
  border-top: 3px solid var(--c-gold);
  border-bottom: 1px solid var(--c-border);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text); font-weight: 700; font-size: 18px; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--c-primary); color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(201, 162, 39, .55);
}
.brand-name { letter-spacing: .3px; }
.brand-tag {
  font-size: 12px; font-weight: 600; color: var(--c-gold-dark); background: var(--c-gold-soft);
  border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.header-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  color: var(--c-text-2); font-size: 14px; white-space: nowrap;
}
.header-link:hover { color: var(--c-primary); text-decoration: none; }
.header-sep { color: var(--c-text-3); margin: 0 2px; }
.header-user { color: var(--c-text-2); font-size: 13px; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 用户页顶栏右侧是 [商家后台] + 邮箱 + 退出：放不下时由右侧收缩、品牌不缩（否则「KeleD」会被折行）；
   右侧里只有 .header-user（overflow: hidden，最小宽度为 0）能缩，于是只截断邮箱、显示省略号，375px 手机也不撑破顶栏 */
.site-user .brand { flex: none; }
.site-user .header-actions { flex: 0 1 auto; min-width: 0; }

.site-nav { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav > form { display: flex; flex: 1 1 auto; margin: 0; }
.nav-link {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; padding: 0 10px;
  color: var(--c-text-2); font-size: 15px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--c-text); text-decoration: none; }
.nav-link.active { color: var(--c-primary); font-weight: 600; border-bottom-color: var(--c-primary); }
/* 导航 / 顶栏里的「退出」是 <button class="… link-button">，保持与链接一致 */
.nav-link.link-button { padding: 0 10px; color: var(--c-text-2); font-size: 15px; border-bottom: 2px solid transparent; }
.header-link.link-button { padding: 0 6px; color: var(--c-text-2); font-size: 14px; }
.nav-link.link-button:hover, .header-link.link-button:hover { color: var(--c-primary); }
.site-nav > form .nav-link { width: 100%; }
@media (min-width: 768px) {
  .merchant-nav { gap: 4px; }
  .merchant-nav > form { flex: 0 0 auto; }
  .merchant-nav .nav-link { flex: 0 0 auto; padding: 0 14px; }
}

.site-footer { padding-top: 8px; padding-bottom: 24px; text-align: center; font-size: 12px; color: var(--c-text-3); }
.site-footer a { color: var(--c-text-2); }

.messages { margin-bottom: 12px; }
.messages .alert + .alert { margin-top: 8px; }

/* ---------------------------------------------------------------- 卡片 */
.card {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
}
@media (min-width: 480px) { .card { padding: 20px; } }
.card + .card { margin-top: 12px; }
.card-flat { box-shadow: none; border: 1px solid var(--c-border); }
.card-title { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.card-subtitle { font-size: 13px; color: var(--c-text-2); margin: 0 0 12px; }
.card-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; gap: 8px; }
.card-red, .card-gold { border-top: 4px solid var(--c-primary); }
.card-gold { border-top-color: var(--c-gold); }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--control-h); padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--c-card); color: var(--c-text);
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-align: center; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover, .btn-primary:active { background: var(--c-primary-dark); color: #fff; }
.btn-gold { background: var(--c-gold); color: #2b2100; }
.btn-gold:hover, .btn-gold:active { background: #b8931f; color: #2b2100; }
.btn-outline { background: var(--c-card); border-color: var(--c-border-strong); color: var(--c-text); }
.btn-outline:hover, .btn-outline:active { border-color: var(--c-primary); color: var(--c-primary); }
.btn-ghost { background: transparent; color: var(--c-primary); }
.btn-ghost:hover, .btn-ghost:active { background: var(--c-primary-soft); }
.btn-danger { background: var(--c-card); border-color: var(--c-danger); color: var(--c-danger); }
.btn-danger:hover, .btn-danger:active { background: var(--c-danger-soft); }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 52px; font-size: 17px; }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.link-button {
  background: none; border: 0; margin: 0; padding: 0;
  font: inherit; color: var(--c-primary); cursor: pointer;
}
.inline-form { display: inline; margin: 0; }

/* ---------------------------------------------------------------- 表单 */
.form > * + * { margin-top: 16px; }
.field { min-width: 0; }
.label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--c-text); }

.input,
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="file"]), select, textarea) {
  display: block; width: 100%;
  min-height: var(--control-h); padding: 10px 12px;
  border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
  background: var(--c-card); color: var(--c-text);
  font: inherit; font-size: 16px; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
:where(textarea).input, :where(textarea) { min-height: 96px; resize: vertical; }
:where(select).input, :where(select) {
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-text-2) 50%), linear-gradient(135deg, var(--c-text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.input:focus,
:where(input, select, textarea):focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.input::placeholder, :where(input, textarea)::placeholder { color: var(--c-text-3); }
.input:disabled, :where(input, select, textarea):disabled { background: #f2f2f4; color: var(--c-text-3); }

.input-row { display: flex; gap: 8px; align-items: stretch; }
.input-row > .input, .input-row > input { flex: 1 1 auto; min-width: 0; }
.input-row > .btn { flex: none; }

.help { margin-top: 6px; font-size: 13px; color: var(--c-text-2); }
.help:empty { display: none; }
.help-success { color: var(--c-success); }
.field-error { margin-top: 6px; font-size: 13px; color: var(--c-danger); }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--c-danger); }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--c-text-2); cursor: pointer; min-height: var(--control-h); padding: 10px 0; }
.checkbox input[type="checkbox"], .checkbox input[type="radio"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-primary); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- 徽标 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap;
  background: #efeff4; color: var(--c-text-2);
}
.badge-red { background: var(--c-primary-soft); color: var(--c-primary); }
.badge-gold { background: var(--c-gold-soft); color: var(--c-gold-dark); }
.badge-green { background: var(--c-success-soft); color: var(--c-success); }
.badge-blue { background: var(--c-info-soft); color: var(--c-info); }
.badge-amber { background: var(--c-warning-soft); color: var(--c-warning); }
.badge-gray { background: #efeff4; color: var(--c-text-2); }

.badge-pending { background: var(--c-warning-soft); color: var(--c-warning); }
.badge-paid { background: var(--c-info-soft); color: var(--c-info); }
.badge-issued { background: var(--c-success-soft); color: var(--c-success); }
.badge-closed { background: #efeff4; color: var(--c-text-2); }
.badge-refunded { background: #f3e8f7; color: #6a2c84; }

.count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--c-primary); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 提示条 */
.alert {
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-size: 14px; line-height: 1.6;
  background: var(--c-info-soft); color: var(--c-info); border-color: #cfe0f6;
}
.alert-info { background: var(--c-info-soft); color: var(--c-info); border-color: #cfe0f6; }
.alert-success { background: var(--c-success-soft); color: var(--c-success); border-color: #c8e6c9; }
.alert-warning { background: var(--c-warning-soft); color: var(--c-warning); border-color: #f5dcae; }
.alert-error, .alert-danger { background: var(--c-danger-soft); color: var(--c-danger); border-color: #f5c6c2; }

/* ---------------------------------------------------------------- 列表 */
.list { background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 16px;
  color: var(--c-text); border-bottom: 1px solid var(--c-border);
}
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: #fafafc; text-decoration: none; }
.list-arrow::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: auto; border-top: 2px solid var(--c-text-3); border-right: 2px solid var(--c-text-3); transform: rotate(45deg); }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--c-text-2); }
.kv dd { margin: 0; min-width: 0; }

.empty { text-align: center; color: var(--c-text-2); padding: 32px 16px; }
.empty .page-title { color: var(--c-text); }
.empty-code { font-size: 44px; font-weight: 700; color: var(--c-border-strong); line-height: 1; margin-bottom: 12px; }

/* ---------------------------------------------------------------- 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  font-size: 14px;
}
/* 表格里不用 anywhere 断词，否则自动列宽会把「¥100」、订单号从中间折断 */
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--c-border); overflow-wrap: break-word; }
.table th { background: #fafafc; color: var(--c-text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfcfd; }
/* 表格里的「输入框 + 按钮」（如粘贴兑换码 + 发放）保持可用宽度 */
.table td .input-row { min-width: 220px; }

@media (max-width: 640px) {
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
  .table-cards thead { display: none; }
  .table-cards tr {
    background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 6px 16px; margin-bottom: 12px;
  }
  .table-cards td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 0; text-align: right; border-bottom: 1px solid var(--c-border);
    overflow-wrap: anywhere;
  }
  .table-cards tbody tr:last-child td { border-bottom: 1px solid var(--c-border); }
  .table-cards tbody tr td:last-child { border-bottom: 0; }
  .table-cards tbody tr:hover td { background: transparent; }
  .table-cards td[data-label]::before { content: attr(data-label); flex: none; color: var(--c-text-2); text-align: left; font-size: 13px; }
  .table-cards td.td-full { display: block; text-align: left; }
  .table-cards td.td-full::before { content: none; }
}

/* ---------------------------------------------------------------- 其他 */
.code-box {
  font-family: var(--font-mono); font-size: 24px; font-weight: 600; line-height: 1.4;
  letter-spacing: .5px; text-align: center; word-break: break-all;
  padding: 16px; border-radius: var(--radius-sm);
  background: #fbfaf5; border: 1px dashed var(--c-gold); color: var(--c-text);
  user-select: all; -webkit-user-select: all;
}
.divider { height: 1px; background: var(--c-border); margin: 16px 0; border: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); vertical-align: middle; }

/* =====================================================================
   以下为 A 自用页面（账号 / 开发邮件），B、C 不需要关心
   ===================================================================== */
.auth-card { margin-top: 8px; }
.auth-intro { margin: -6px 0 16px; font-size: 14px; }
.auth-card .alert { margin-bottom: 14px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 14px; }
.auth-links a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-links-center { justify-content: center; }
.dev-hint { margin: 8px 0 0; text-align: center; font-size: 13px; }
.dev-hint a { color: var(--c-gold-dark); border-bottom: 1px dashed var(--c-gold); }
.dev-hint a:hover { text-decoration: none; }

.mail-item { padding: 16px; }
.mail-subject { font-size: 15px; }
.mail-body { white-space: pre-wrap; font-size: 14px; line-height: 1.7; background: #fafafc; border-radius: var(--radius-sm); padding: 12px; }
