/* ==========================================================================
   全国彩票购彩辅助工具 · 全站样式
   风格：清爽专业 / 蓝绿渐变 / 充足留白 / 轻微玻璃质感
   纯 CSS：不引用任何外部字体、图片或资源
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef4f6;
  --surface-3: #f8fbfd;
  --text: #0f172a;
  --muted: #5b6b7c;
  --border: #dde5ec;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --accent: #2563eb;
  --primary-soft: #e6f4f1;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --warning: #93370d;
  --warning-soft: #fffaeb;
  --warning-border: #f2d08a;
  --success: #067647;
  --success-soft: #ecfdf3;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 2px 6px rgba(15, 23, 42, 0.05), 0 22px 46px rgba(15, 23, 42, 0.12);
  /* 兼容旧页面内联样式使用的令牌 */
  --shadow: var(--shadow-soft);
  --primary-dark: var(--primary-strong);
  --gradient: linear-gradient(135deg, #0f766e, #2563eb);
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   2. 基础排版
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.012em;
}

p {
  overflow-wrap: anywhere;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

::selection {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. 顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
  color: var(--text);
  flex: 0 1 auto;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--primary-strong);
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 2px;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: var(--surface-2);
  color: var(--primary-strong);
  text-decoration: none;
}

.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   4. 页面骨架
   -------------------------------------------------------------------------- */
.page {
  flex: 1 0 auto;
  width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 20px 56px;
}

.container.narrow {
  max-width: 460px;
}

.page-title {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 68ch;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.grid > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   5. 卡片 / 磁贴
   -------------------------------------------------------------------------- */
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.card + .card {
  margin-top: 18px;
}

.auth-card {
  margin-top: 24px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: var(--shadow-lift);
  color: var(--text);
  text-decoration: none;
}

.tile-title {
  margin: 0 0 2px;
  font-size: 16.5px;
  font-weight: 700;
}

.tile-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.tile-tag {
  align-self: flex-start;
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 600;
}

/* 账号概览 */
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.account-name {
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   6. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--primary);
  background-image: var(--gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover {
  background-image: linear-gradient(135deg, #0d6a63, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: rgba(15, 118, 110, 0.28);
  color: var(--primary-strong);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 24px;
  border-radius: 14px;
  font-size: 16px;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.18);
}

.btn-danger:hover {
  background: #912018;
  border-color: #912018;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. 表单
   -------------------------------------------------------------------------- */
.field {
  margin-bottom: 16px;
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7b8896;
}

.field input:not([type="checkbox"]):not([type="radio"]):hover,
.field select:hover,
.field textarea:hover {
  border-color: #c6d3de;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

.field select {
  cursor: pointer;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
  cursor: pointer;
}

.checkbox-row:hover {
  border-color: #c6d3de;
}

/* 覆盖 .field label 的块级/加粗声明，保持勾选项横向排列 */
.field .checkbox-row {
  display: flex;
  margin-bottom: 0;
  font-weight: 400;
}

.checkbox-row input {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 14px;
}

.hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   8. 提示条 / 状态消息
   -------------------------------------------------------------------------- */
.form-error,
.form-warning,
.form-success,
.notice {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
}

.form-error {
  margin: 0 0 16px;
  border: 1px solid #f7c9c4;
  background: var(--danger-soft);
  color: var(--danger);
}

.form-warning {
  margin: 0 0 16px;
  border: 1px solid var(--warning-border);
  background: var(--warning-soft);
  color: var(--warning);
  overflow-wrap: anywhere;
}

.form-success {
  margin: 0 0 16px;
  border: 1px solid #b7ecd0;
  background: var(--success-soft);
  color: var(--success);
}

.notice {
  margin: 0 0 18px;
  border: 1px solid var(--warning-border);
  background: var(--warning-soft);
  color: var(--warning);
  border-left-width: 4px;
  border-left-color: #e0a63c;
}

.notice-info {
  background: #eff6ff;
  border-color: #c3daf9;
  border-left-color: var(--accent);
  color: #1d4ed8;
}

.notice-danger {
  background: var(--danger-soft);
  border-color: #f7c9c4;
  border-left-color: var(--danger);
  color: var(--danger);
}

.banner-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.banner-stack:empty {
  display: none;
}

.banner {
  margin: 0;
}

.banner-link {
  font-weight: 600;
  white-space: nowrap;
}

.danger-zone {
  border-color: #f5c9c4;
  background: linear-gradient(180deg, #ffffff, #fffafa);
}

.meta-line {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   9. 列表 / 条目
   -------------------------------------------------------------------------- */
.section-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-item {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-3);
}

.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.item-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.item-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.item-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.payload {
  margin: 10px 0 0;
  padding: 11px 13px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.empty {
  padding: 24px 14px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.container > .row-actions {
  margin-top: 16px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.toolbar .field {
  margin-bottom: 0;
  min-width: 0;
}

.toolbar .row-actions {
  align-items: center;
}

/* --------------------------------------------------------------------------
   10. 统计 / 进度
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.stat {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-3);
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.stat-value.danger {
  color: var(--danger);
}

.stat-value.tiny {
  font-size: 15px;
}

.progress-track {
  height: 8px;
  margin: 6px 0 0;
  border-radius: 999px;
  background: #e6edf3;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background-color: var(--primary);
  background-image: var(--gradient);
  transition: width 0.2s ease;
}

.progress-bar.danger {
  background-color: var(--danger);
  background-image: none;
}

/* --------------------------------------------------------------------------
   11. 开奖号码 / 号码球 / 表格
   -------------------------------------------------------------------------- */
.number-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.number-label {
  flex: 0 0 auto;
  min-width: 44px;
  color: var(--muted);
  font-size: 12px;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ball-front,
.ball-red {
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.12);
}

.ball-back,
.ball-blue {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.ball-special {
  background: #f4f3ff;
  color: #5b21b6;
  box-shadow: inset 0 0 0 1px rgba(91, 33, 182, 0.14);
}

.digits-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ball-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 6px;
  max-width: 100%;
}

.ball-grid .ball {
  width: 100%;
  height: 34px;
  border-radius: 8px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.match-table,
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.match-table {
  min-width: 420px;
}

.match-table th,
.match-table td,
.table th,
.table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.match-table th,
.table th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.table {
  min-width: 560px;
}

.table thead th {
  background: var(--surface-2);
  color: var(--muted);
}

.table tbody tr:hover {
  background: var(--surface-3);
}

.result-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 700;
  white-space: nowrap;
}

.result-prize {
  margin: 0 0 8px;
  font-size: 14px;
}

.kv-list {
  display: grid;
  grid-template-columns: minmax(80px, auto) minmax(0, 1fr);
  gap: 6px 12px;
  margin: 12px 0 0;
  font-size: 14px;
}

.kv-list dt {
  color: var(--muted);
}

.kv-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-label {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* 开奖记录 */
.draw-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.draw-item {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-3);
}

.draw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.draw-issue {
  font-weight: 700;
  margin-right: 8px;
}

.draw-date {
  color: var(--muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   12. 提醒
   -------------------------------------------------------------------------- */
.upcoming-list {
  margin: 6px 0 0;
  padding-left: 20px;
}

.upcoming-list li {
  margin: 2px 0;
  overflow-wrap: anywhere;
}

.upcoming-list li::marker {
  color: var(--primary);
}

.reminder-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reminder-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-3);
}

.reminder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.reminder-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.check-inline input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.lead-input {
  width: 84px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.lead-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.reminder-meta {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 10px;
  margin: 0;
  font-size: 13px;
}

.reminder-meta dt {
  color: var(--muted);
  white-space: nowrap;
}

.reminder-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   13. 徽标 / 标签
   -------------------------------------------------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.badge,
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.pill {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: transparent;
}

.badge-muted {
  background: #f2f4f7;
  color: #475467;
}

.badge-ok {
  background: var(--success-soft);
  color: var(--success);
}

.badge-catalog {
  background: #f2f4f7;
  color: #475467;
}

/* --------------------------------------------------------------------------
   14. 兑奖核对控件
   -------------------------------------------------------------------------- */
.pick-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 0;
}

.pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-3);
}

.pick-index {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pick-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pick-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.pick-option:hover {
  border-color: rgba(15, 118, 110, 0.3);
  background: var(--primary-soft);
}

.pick-option input {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
}

.pick-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pick-select select {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}

.pick-enable-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.pick-enable-wrap input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

/* --------------------------------------------------------------------------
   15. 合规 / 隐私长文
   -------------------------------------------------------------------------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.75;
}

.legal h2 {
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--primary-strong);
  font-size: 16.5px;
  font-weight: 700;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  margin: 0 0 10px;
}

.legal ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal li {
  margin: 3px 0;
}

.legal li::marker {
  color: var(--primary);
}

.legal .hint {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   16. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-inner strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.footer-links a {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-age {
  font-weight: 700;
  color: #b54708;
}

/* --------------------------------------------------------------------------
   17. 落地页
   -------------------------------------------------------------------------- */
body.landing-page {
  background: var(--bg);
}

.landing-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: #ffffff;
  background-image: radial-gradient(900px 420px at 10% -12%, rgba(15, 118, 110, 0.15), transparent 70%),
    radial-gradient(760px 380px at 94% 4%, rgba(37, 99, 235, 0.14), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 78%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-strong);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-title {
  margin: 18px 0 0;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--text);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-title {
    background-image: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.hero-stats .stat-value {
  display: block;
  margin: 0;
  font-size: 21px;
  color: var(--primary-strong);
}

.hero-stats .stat-label {
  display: block;
  font-size: 12px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.draw-preview-card {
  width: 100%;
  max-width: 380px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.draw-preview-card::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background-image: var(--gradient);
}

.draw-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.draw-card-head strong {
  color: var(--text);
  font-size: 14.5px;
}

.draw-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.draw-numbers .ball {
  width: 40px;
  height: 40px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

/* 第二排示意为后区号码 */
.draw-numbers + .draw-numbers .ball {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.section {
  padding: 56px 20px;
}

.section-head {
  max-width: var(--max-width);
  margin: 0 auto 28px;
}

.section .section-title {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15.5px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow-lift);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 19px;
  font-weight: 700;
}

.feature-title {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
}

.feature-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.preview-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12.5px;
}

.preview-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.preview-numbers .ball {
  width: 34px;
  height: 34px;
  font-size: 12.5px;
}

.preview-empty {
  display: block;
  margin-top: 14px;
  padding: 18px 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.preview-grid > .preview-empty {
  margin-top: 0;
}

.preview-meta strong {
  color: var(--text);
  font-size: 14.5px;
}

.preview-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.compliance-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.compliance-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 20px;
}

.compliance-item {
  position: relative;
  min-width: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.compliance-item strong {
  margin-right: 6px;
  color: var(--text);
}

.compliance-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-image: var(--gradient);
}

.cta-band {
  background-color: var(--primary);
  background-image: var(--gradient);
  color: #ffffff;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 20px;
}

.cta-inner h2,
.cta-inner h3,
.cta-inner p {
  margin: 0;
  color: #ffffff;
}

.cta-inner .section-title {
  grid-column: 1;
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.cta-inner .section-lead {
  grid-column: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
}

.cta-inner .hero-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
}

.cta-inner .btn-primary {
  background-color: #ffffff;
  background-image: none;
  color: var(--primary-strong);
  box-shadow: 0 10px 24px rgba(3, 24, 22, 0.24);
}

.cta-inner .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.cta-inner .btn:focus-visible {
  outline-color: #ffffff;
}

/* --------------------------------------------------------------------------
   18. 登录 / 注册分栏
   -------------------------------------------------------------------------- */
.auth-page {
  padding: 40px 20px 56px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 44px;
  background-color: var(--primary);
  background-image: var(--gradient);
  color: #ffffff;
  overflow: hidden;
}

.auth-aside::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.auth-aside-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.32;
}

.auth-aside-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  line-height: 1.7;
}

.auth-aside-list li {
  position: relative;
  padding-left: 22px;
}

.auth-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.auth-main {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 44px;
}

.auth-main .auth-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-image: var(--gradient);
}

.auth-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.auth-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   19. 响应式 · 900px
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .container {
    padding: 24px 18px 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 18px 44px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .draw-preview-card {
    max-width: 460px;
  }

  .section {
    padding: 44px 18px;
  }

  .feature-grid,
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compliance-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 18px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 36px 18px;
  }

  .cta-inner .section-title,
  .cta-inner .section-lead,
  .cta-inner .hero-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .auth-page {
    padding: 28px 18px 44px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    gap: 12px;
    padding: 26px;
  }

  .auth-aside-title {
    font-size: 21px;
  }

  .auth-aside-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    font-size: 13.5px;
  }

  .auth-main {
    padding: 28px;
  }
}

/* --------------------------------------------------------------------------
   20. 响应式 · 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .nav-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-name {
    font-size: 15px;
  }

  .nav-links {
    order: 3;
    flex: 0 0 100%;
    padding: 2px 0 0;
  }

  .nav-actions {
    margin-left: auto;
  }

  .container {
    padding: 20px 16px 40px;
  }

  .container.narrow {
    max-width: 100%;
  }

  .page-title {
    font-size: 21px;
  }

  .page-lead {
    font-size: 14px;
  }

  .card {
    padding: 16px;
    border-radius: 14px;
  }

  .tile {
    padding: 17px;
  }

  .hero-inner {
    padding: 32px 16px 36px;
    gap: 28px;
  }

  .hero-title {
    font-size: 29px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-stats {
    gap: 8px;
    margin-top: 24px;
  }

  .hero-stats .stat {
    padding: 11px 10px;
  }

  .hero-stats .stat-value {
    font-size: 17px;
  }

  .hero-stats .stat-label {
    font-size: 11px;
  }

  .draw-numbers .ball {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .section {
    padding: 34px 16px;
  }

  .section .section-title {
    font-size: 22px;
  }

  .section-lead {
    font-size: 14.5px;
  }

  .feature-grid,
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .compliance-inner {
    padding: 26px 16px;
  }

  .cta-inner {
    padding: 30px 16px;
  }

  .auth-page {
    padding: 22px 16px 36px;
  }

  .auth-aside {
    padding: 22px;
  }

  .auth-aside-title {
    font-size: 19px;
  }

  .auth-aside-list {
    grid-template-columns: 1fr;
  }

  .auth-main {
    padding: 22px;
  }

  .auth-title {
    font-size: 21px;
  }

  .footer-inner {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  }

  .field input:not([type="checkbox"]):not([type="radio"]),
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .table-wrap {
    margin: 0 -2px;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat {
    padding: 11px 12px;
  }
}

/* --------------------------------------------------------------------------
   21. 渐进增强 · 多列布局
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (min-width: 900px) {
  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .container {
    padding: 30px 24px 64px;
  }

  .page-title {
    font-size: 26px;
  }
}

/* --------------------------------------------------------------------------
   22. 可访问性 · 减少动态效果
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .tile:hover,
  .feature-card:hover,
  .btn:active {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   23. 登录 / 注册 · 侧栏文案
   -------------------------------------------------------------------------- */
.auth-aside p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.auth-aside p strong {
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: #ffffff;
}
