:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --paper-deep: #ede4d4;
  --card: #fffdf9;
  --espresso: #241913;
  --espresso-dark: #19110d;
  --ink: #2a1d16;
  --ink-muted: #6c5b4c;
  --border: rgba(48, 34, 24, 0.11);
  --border-strong: rgba(48, 34, 24, 0.22);
  --gold: #c98f32;
  --gold-deep: #9d6919;
  --gold-soft: rgba(201, 143, 50, 0.13);
  --accent: #8c5325;
  --green: #2d7a4d;
  --green-soft: rgba(45, 122, 77, 0.11);
  --amber: #c96f16;
  --amber-soft: rgba(201, 111, 22, 0.12);
  --blue: #2f6690;
  --blue-soft: rgba(47, 102, 144, 0.11);
  --red: #b24034;
  --red-soft: rgba(178, 64, 52, 0.1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(36, 25, 19, 0.055);
  --shadow-md: 0 18px 42px rgba(36, 25, 19, 0.085);
  --shadow-lg: 0 24px 60px rgba(25, 17, 13, 0.2);
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse 80% 40% at 85% -10%, rgba(215, 165, 86, 0.16), transparent 60%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 4px; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ==================== Nav ==================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--espresso);
  flex-shrink: 0;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(36, 25, 19, 0.15);
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  transition: color 0.16s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--espresso); font-weight: 600; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--espresso);
  color: #fffaf0 !important;
  font-weight: 600 !important;
  font-size: 13px;
  transition: transform 0.16s ease, background 0.16s ease !important;
}
.nav-cta:hover { background: #3a291f; transform: translateY(-1px); }
.apple-svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; margin-top: -1px; }

/* Sub-nav pill bar for quick switching between tools on mobile & desktop */
.tool-subnav {
  background: rgba(255, 253, 249, 0.72);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tool-subnav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  white-space: nowrap;
}
.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}
.subnav-pill:hover { color: var(--espresso); background: rgba(48, 34, 24, 0.05); }
.subnav-pill.active {
  background: var(--espresso);
  color: #fffaf0;
  border-color: var(--espresso);
}
@media (max-width: 780px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ==================== Breadcrumb & Hero ==================== */
.tool-hero {
  padding: 34px 0 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--espresso); text-decoration: underline; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(201, 143, 50, 0.36);
  color: #7c5210;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #a6691b 0%, #cf9232 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 15.5px;
  color: var(--ink-muted);
  margin: 0;
  max-width: 700px;
}

/* ==================== Layout & Cards ==================== */
.workspace-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}
@media (max-width: 880px) {
  .workspace-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-dark {
  background:
    radial-gradient(ellipse 75% 75% at 100% 0%, rgba(226, 178, 88, 0.16), transparent 60%),
    linear-gradient(160deg, #2b1e17 0%, #1a110d 100%);
  color: #f7f0e4;
  border: 1px solid rgba(255, 240, 215, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 600px) {
  .card, .card-dark { padding: 18px; border-radius: 20px; }
}
.card-title {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--espresso);
}
.card-dark .card-title { color: #fffaf0; }
.card-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0 0 18px;
}
.card-dark .card-desc { color: #cbbba6; }

/* ==================== Form Controls ==================== */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--espresso);
}
.field-hint {
  font-size: 12px;
  color: var(--ink-muted);
}
.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.input-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.input-box input, .select-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--espresso);
  font-size: 15.5px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-box input:focus, .select-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 143, 50, 0.18);
}
.input-box.has-suffix input { padding-right: 46px; }
.input-suffix {
  position: absolute;
  right: 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.chip {
  border: 1px solid var(--border-strong);
  background: #faf6ee;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--gold); color: var(--espresso); }
.chip.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fffaf0;
}

.seg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(48, 34, 24, 0.06);
  margin-bottom: 18px;
}
.seg-btn {
  flex: 1;
  min-width: 82px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.seg-btn:hover { color: var(--espresso); }
.seg-btn.active {
  background: var(--card);
  color: var(--espresso);
  box-shadow: 0 3px 10px rgba(36, 25, 19, 0.08);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold-deep);
  cursor: pointer;
  margin: 6px 0 2px;
}

/* ==================== Metrics & Results ==================== */
.kpi-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-hero.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .kpi-hero.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.kpi-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.13);
}
.kpi-box.light {
  background: #faf6ee;
  border-color: var(--border);
}
.kpi-box.highlight {
  background: linear-gradient(145deg, rgba(226, 178, 88, 0.24), rgba(193, 134, 37, 0.14));
  border-color: rgba(226, 178, 88, 0.45);
}
.kpi-label {
  font-size: 12px;
  color: #cbbba6;
  margin-bottom: 4px;
}
.kpi-box.light .kpi-label { color: var(--ink-muted); }
.kpi-val {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #fffaf0;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.kpi-box.light .kpi-val { color: var(--espresso); }
.kpi-sub {
  font-size: 11.5px;
  color: #d6c5ae;
  margin-top: 3px;
}
.kpi-box.light .kpi-sub { color: var(--ink-muted); }

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #2b1d16 0%, #1c130e 100%);
  color: #fff9ee;
  box-shadow: 0 8px 20px rgba(28, 19, 14, 0.2);
}
.btn-gold {
  background: linear-gradient(135deg, #e2b258 0%, #c18625 100%);
  color: #21140b;
  box-shadow: 0 8px 20px rgba(193, 134, 37, 0.28);
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-secondary {
  background: var(--card);
  color: var(--espresso);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--gold); }
.btn-ghost-dark {
  background: rgba(255, 250, 240, 0.1);
  color: #f9f2e6;
  border-color: rgba(255, 250, 240, 0.22);
}
.btn-ghost-dark:hover { background: rgba(255, 250, 240, 0.18); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }

/* ==================== Pour Steps Timeline ==================== */
.step-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.step-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(255, 250, 240, 0.07);
  border: 1px solid rgba(255, 250, 240, 0.11);
}
.step-time {
  font-size: 12.5px;
  font-weight: 700;
  color: #e8be6c;
  font-variant-numeric: tabular-nums;
}
.step-title { font-size: 13.5px; font-weight: 700; color: #fffaf0; }
.step-desc { font-size: 12px; color: #cbbba6; }
.step-weight {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.step-weight strong { display: block; font-size: 15px; color: #fffaf0; }
.step-weight span { font-size: 11.5px; color: #cbbba6; }

/* ==================== Status Badges & Timeline ==================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
}
.status-resting { background: rgba(91, 164, 214, 0.18); color: #9ad0f5; border: 1px solid rgba(154, 208, 245, 0.35); }
.status-peak { background: rgba(82, 196, 128, 0.18); color: #8ee5ad; border: 1px solid rgba(142, 229, 173, 0.38); }
.status-expiring { background: rgba(240, 152, 54, 0.22); color: #ffc57a; border: 1px solid rgba(255, 197, 122, 0.42); }
.status-past { background: rgba(214, 102, 92, 0.2); color: #f5aba4; border: 1px solid rgba(245, 171, 164, 0.38); }

.degas-bar-wrap {
  margin: 18px 0 14px;
}
.degas-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.12);
  overflow: visible;
  display: flex;
}
.degas-seg-rest { background: #5a9bc4; border-radius: 999px 0 0 999px; }
.degas-seg-peak { background: #4bb574; }
.degas-seg-end { background: #e39134; }
.degas-seg-past { background: rgba(255, 250, 240, 0.22); border-radius: 0 999px 999px 0; }
.degas-marker {
  position: absolute;
  top: -6px;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  background: #fffaf0;
  border: 4px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: left 0.25s ease;
}
.degas-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #cbbba6;
  margin-top: 8px;
}

/* ==================== Grinder Cards & Table ==================== */
.search-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 640px) { .search-toolbar { grid-template-columns: 1fr; } }

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

.grinder-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.grinder-card:hover { border-color: rgba(201, 143, 50, 0.55); transform: translateY(-1px); }
.grinder-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.grinder-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--espresso);
  margin: 0 0 3px;
}
.grinder-adj {
  font-size: 12px;
  color: var(--ink-muted);
}
.badge-type {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  white-space: nowrap;
}
.badge-type.electric {
  background: rgba(48, 34, 24, 0.08);
  color: var(--espresso);
}
.zone-rows {
  display: grid;
  gap: 6px;
}
.zone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 10px;
  background: #faf6ee;
  font-size: 13px;
}
.zone-row.zone-focus {
  background: rgba(201, 143, 50, 0.15);
  border: 1px solid rgba(201, 143, 50, 0.35);
}
.zone-row span:first-child { color: var(--ink-muted); }
.zone-row strong { color: var(--espresso); font-variant-numeric: tabular-nums; text-align: right; }
.zone-row.zone-na strong { color: #9c8c7d; font-weight: 500; font-size: 12px; }
.grinder-tip {
  font-size: 12.5px;
  color: var(--ink-muted);
  background: rgba(48, 34, 24, 0.035);
  border-left: 3px solid var(--gold);
  padding: 8px 11px;
  border-radius: 0 10px 10px 0;
  margin: 0;
}
.grinder-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

/* ==================== App CTA Banner ==================== */
.cta-banner {
  margin: 34px 0;
  background:
    radial-gradient(ellipse 65% 80% at 100% 0%, rgba(226, 178, 88, 0.2), transparent 60%),
    linear-gradient(155deg, #2b1e17 0%, #1a110d 100%);
  color: #f7f0e4;
  border-radius: 26px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 820px) {
  .cta-banner { grid-template-columns: 1fr; padding: 22px 20px; }
}
.cta-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(226, 178, 88, 0.18);
  color: #f0c775;
  margin-bottom: 10px;
}
.cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(21px, 2.8vw, 28px);
  margin: 0 0 8px;
  color: #fffaf0;
  line-height: 1.28;
}
.cta-banner p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #d3c3af;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cta-qr {
  background: #fffdf9;
  color: var(--espresso);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.cta-qr img {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cta-qr strong { display: block; font-size: 14px; margin-bottom: 3px; }
.cta-qr span { font-size: 12px; color: var(--ink-muted); line-height: 1.45; display: block; }

/* ==================== Hub Cards ==================== */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 34px;
}
@media (max-width: 860px) { .tools-hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 143, 50, 0.55);
  box-shadow: var(--shadow-md);
}
.hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 700;
}
.hub-card h2 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 4px 0 0;
  color: var(--espresso);
}
.hub-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.62;
}
.hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.hub-tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #faf6ee;
  border: 1px solid var(--border);
  color: var(--ink-muted);
}
.hub-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-deep);
}

/* ==================== SEO Knowledge & FAQ ==================== */
.seo-section {
  padding: 28px 0 18px;
  border-top: 1px solid var(--border);
}
.seo-section h2 {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 27px);
  margin: 0 0 14px;
  color: var(--espresso);
}
.ref-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 600px;
}
.ref-table th, .ref-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.ref-table th {
  background: #faf5eb;
  color: var(--espresso);
  font-weight: 700;
  font-size: 12.5px;
}
.ref-table tr:last-child td { border-bottom: none; }
.ref-table tbody tr:hover { background: rgba(201, 143, 50, 0.05); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 780px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}
.faq-item h3 {
  font-size: 15px;
  margin: 0 0 7px;
  color: var(--espresso);
}
.faq-item p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.65;
}

/* ==================== Toast & Footer ==================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  background: var(--espresso);
  color: #fffaf0;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 150;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 64px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.beian-row { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.beian-badge {
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(48, 37, 30, 0.055);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--espresso);
}
.beian-badge a { color: var(--espresso); font-weight: 600; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 11px 9px 13px; border-radius: 16px;
    background: rgba(31, 21, 16, 0.94); backdrop-filter: blur(12px);
    color: #fffaf0; box-shadow: 0 12px 30px rgba(20, 13, 9, 0.34);
  }
  .mobile-bar-left { display: flex; align-items: center; gap: 9px; }
  .mobile-bar-left img { width: 32px; height: 32px; border-radius: 8px; }
  .mobile-bar-left strong { display: block; font-size: 13px; line-height: 1.2; }
  .mobile-bar-left span { font-size: 11px; color: #cfc0ae; }
  .mobile-bar-btn {
    padding: 8px 13px; border-radius: 10px;
    background: linear-gradient(135deg, #e2b258, #c18625);
    color: #21140b; font-weight: 700; font-size: 12.5px; text-decoration: none;
    white-space: nowrap;
  }
}
