/* ============ TYB 一次性邮箱 · 设计系统 ============ */
:root {
  --bg: #0a0e1a;
  --bg-alt: #0d1322;
  --surface: #121a2b;
  --surface-2: #182136;
  --surface-3: #1e2942;
  --border: rgba(148, 163, 184, .14);
  --border-strong: rgba(148, 163, 184, .28);
  --text: #e8edf7;
  --text-soft: #b6c2d9;
  --muted: #7f8da6;
  --primary: #6366f1;
  --primary-2: #22d3ee;
  --accent: #8b5cf6;
  --danger: #f87171;
  --success: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --container: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== 背景装饰 ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 70%);
}
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(99, 102, 241, .20), transparent 60%),
    radial-gradient(700px 420px at 90% 4%, rgba(34, 211, 238, .13), transparent 60%),
    radial-gradient(600px 400px at 50% 60%, rgba(139, 92, 246, .06), transparent 70%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 26px rgba(99, 102, 241, .35);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(99, 102, 241, .5); filter: brightness(1.06); }
.btn-ghost {
  color: var(--text-soft);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ===== 导航栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: rgba(10, 14, 26, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(99, 102, 241, .4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; letter-spacing: .3px; }
.brand-text small { font-size: 10px; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 auto 0 24px; padding: 0; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.live-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.live-stat::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .15);
}
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
  padding-top: 84px;
  padding-bottom: 84px;
  min-height: 560px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .6px;
  color: var(--text-soft);
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(255, 255, 255, .03);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.14;
  letter-spacing: -1.5px;
  font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, #818cf8, #22d3ee 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { max-width: 540px; color: var(--text-soft); font-size: 16px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.hero-points .tick { color: var(--success); font-weight: 700; margin-right: 5px; }

/* Hero 视觉稿 */
.hero-visual { display: flex; justify-content: center; }
.mail-mock {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(160deg, var(--surface), #0f1626);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow), 0 0 80px rgba(99, 102, 241, .12);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-6deg) rotateX(3deg);
  transition: transform .4s ease;
}
.mail-mock:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.mock-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--border);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a4760; }
.mock-dots i:first-child { background: #f87171; }
.mock-dots i:nth-child(2) { background: #fbbf24; }
.mock-dots i:last-child { background: #34d399; }
.mock-title { font-size: 12px; color: var(--muted); }
.mock-body { padding: 18px; }
.mock-addr {
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--primary-2);
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: 8px;
}
.mock-addr span { color: var(--text); }
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.mock-row:last-child { border-bottom: 0; }
.mock-avatar { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.m1 { background: linear-gradient(135deg, #6366f1, #818cf8); }
.m2 { background: linear-gradient(135deg, #22d3ee, #38bdf8); }
.m3 { background: linear-gradient(135deg, #8b5cf6, #c084fc); }
.mock-lines { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.mock-lines b { font-size: 13px; font-weight: 600; }
.mock-lines i { font-style: normal; font-size: 11px; color: var(--muted); }
.mock-row em { font-style: normal; font-size: 11px; color: var(--muted); }
.mock-badge {
  margin: 4px 18px 18px;
  text-align: center;
  padding: 9px;
  font-size: 12px;
  color: var(--text-soft);
  background: rgba(99, 102, 241, .1);
  border: 1px dashed rgba(99, 102, 241, .35);
  border-radius: 8px;
}

/* ===== 通用 section ===== */
.section { padding: 86px 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(13, 19, 34, .7) 12%, rgba(13, 19, 34, .7) 88%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--primary-2);
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -.8px;
  font-weight: 800;
}
.section-head p { margin: 0; color: var(--text-soft); font-size: 15px; max-width: 640px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ===== 应用核心区 ===== */
.app-shell {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 18px;
  height: 620px;
}
.panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mailbox-card {
  padding: 20px;
  background: linear-gradient(150deg, rgba(99, 102, 241, .14), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.card-label { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.address-row { display: flex; align-items: center; gap: 8px; }
.address-row code {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--primary-2);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.icon-btn {
  min-width: 38px;
  height: 38px;
  flex: none;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  transition: border-color .18s, color .18s, background .18s;
}
.icon-btn:hover { border-color: var(--primary); background: var(--surface-3); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.meta-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.countdown { font-size: 12px; color: var(--primary-2); font-variant-numeric: tabular-nums; }
.meta-actions { display: flex; gap: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-2); cursor: pointer; font-size: 12px; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .015);
}
.list-header h2 { margin: 0; font-size: 14px; font-weight: 600; }
.badge {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  padding: 1px 8px;
  margin-left: 4px;
  background: var(--surface-3);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-soft);
}
.message-list { flex: 1; overflow-y: auto; }
.message-list::-webkit-scrollbar { width: 8px; }
.message-list::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
.message-item {
  display: block;
  width: 100%;
  padding: 14px 20px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.message-item:hover { background: rgba(99, 102, 241, .07); }
.message-item.active { background: rgba(99, 102, 241, .14); box-shadow: inset 3px 0 var(--primary); }
.mi-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.mi-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-subject { margin-top: 6px; font-size: 14px; font-weight: 600; }
.mi-size { margin-top: 4px; font-size: 11px; color: var(--muted); }
.clip { font-size: 12px; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px; }
/* 空状态：CSS 信封插画 */
.detail-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px; }
.empty-illustration {
  width: 108px; height: 88px;
  display: grid; place-items: center;
  margin-bottom: 8px;
  background: radial-gradient(circle at 50% 40%, rgba(99, 102, 241, .16), transparent 70%);
}
.mail-envelope { position: relative; width: 68px; height: 48px; }
.env-flap {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, .35), rgba(34, 211, 238, .2));
  border: 1.5px solid rgba(129, 140, 248, .55);
  border-radius: 8px;
}
.env-flap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 60%;
  background: linear-gradient(160deg, rgba(99, 102, 241, .22), transparent);
  border-bottom: 1.5px solid rgba(129, 140, 248, .5);
  transform-origin: top;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.env-letter {
  position: absolute; left: 14px; right: 14px; bottom: 9px;
  display: flex; flex-direction: column; gap: 4px;
  animation: letterFloat 3.4s ease-in-out infinite;
}
.env-letter i { display: block; height: 3px; border-radius: 3px; background: rgba(34, 211, 238, .55); }
.env-letter i:nth-child(2) { width: 78%; background: rgba(129, 140, 248, .5); }
.env-letter i:nth-child(3) { width: 55%; }
@keyframes letterFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.detail-empty p { margin: 4px 0 0; font-size: 15px; color: var(--text-soft); font-weight: 600; }
.detail-empty span { font-size: 12px; }
.detail { display: flex; flex-direction: column; height: 100%; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.detail-head h2 { margin: 0 0 6px; font-size: 19px; }
.detail-meta { font-size: 12px; color: var(--muted); }

/* 附件缩略图：尺寸统一、比例协调、加载占位 */
.attachments { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--border); }
.attachments:empty { display: none; }
.attach {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  transition: border-color .18s, transform .18s;
  max-width: 100%;
}
.attach:hover { border-color: var(--primary); transform: translateY(-2px); }
.attach-thumb {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(34, 211, 238, .12));
  color: var(--primary-2);
  font-size: 18px;
  position: relative;
  overflow: hidden;
}
.attach-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
}
.attach-thumb img.loaded { opacity: 1; }
.attach-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .12) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.attach-thumb:has(img.loaded)::after { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.attach-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.attach-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.attach-size { color: var(--muted); font-size: 11px; }

.body-tabs { display: flex; gap: 6px; padding: 12px 24px 0; }
.tab {
  padding: 8px 14px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
.tab.active { color: var(--primary-2); border-color: var(--primary-2); }

.body-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 12px 24px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.body-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.body-frame.ready { opacity: 1; }
.body-text {
  position: absolute; inset: 0;
  padding: 18px;
  overflow: auto;
  color: #1f2430;
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  font: 13px/1.7 ui-monospace, Consolas, monospace;
}
/* 骨架屏加载态 */
.body-loading {
  position: absolute; inset: 0;
  padding: 22px;
  background: #f7f8fc;
  z-index: 2;
  transition: opacity .25s ease, visibility .25s;
}
.body-loading.hide { opacity: 0; visibility: hidden; }
.skeleton {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  background: linear-gradient(100deg, #e8ebf2 20%, #f4f6fa 50%, #e8ebf2 80%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton.s1 { width: 62%; height: 18px; }
.skeleton.s2 { width: 90%; }
.skeleton.s3.img { width: 100%; height: 160px; border-radius: 10px; margin: 18px 0; }
.skeleton.s4 { width: 74%; }

/* ===== 功能特性 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 24px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.fi-1 { background: rgba(99, 102, 241, .15); }
.fi-2 { background: rgba(52, 211, 153, .13); }
.fi-3 { background: rgba(34, 211, 238, .13); }
.fi-4 { background: rgba(248, 113, 113, .13); }
.fi-5 { background: rgba(251, 191, 36, .13); }
.fi-6 { background: rgba(139, 92, 246, .15); }
.feature-card h3 { margin: 0 0 10px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: 14px; }

/* ===== 使用步骤 ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 34px; left: 16%; right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), var(--border-strong), transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 16px; }
.step-num {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--primary-2);
  box-shadow: 0 0 0 8px var(--bg);
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--text-soft); font-size: 14px; }

/* ===== 友情链接 ===== */
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, border-color .2s, background .2s;
}
.link-card:hover { transform: translateY(-3px); border-color: var(--primary); background: var(--surface-2); }
.link-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; font-size: 22px; border-radius: 12px; }
.li-1 { background: rgba(99, 102, 241, .16); }
.li-2 { background: rgba(34, 211, 238, .14); }
.li-3 { background: rgba(248, 113, 113, .13); }
.li-4 { background: rgba(139, 92, 246, .16); }
.link-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.link-info strong { font-size: 15px; }
.link-info span { font-size: 12px; color: var(--muted); }
.link-arrow { color: var(--muted); font-size: 18px; transition: transform .2s, color .2s; }
.link-card:hover .link-arrow { transform: translate(3px, -3px); color: var(--primary-2); }
.admin-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 34px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, .02);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.admin-links > span { color: var(--muted); }
.admin-links a { color: var(--text-soft); text-decoration: none; }
.admin-links a:hover { color: var(--primary-2); }

/* ===== 页脚 ===== */
.site-footer { border-top: 1px solid var(--border); background: rgba(8, 11, 20, .8); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-size: 15px; }
.footer-brand p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.footer-meta { text-align: right; }
.footer-meta p { margin: 2px 0; font-size: 12px; color: var(--muted); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 13px;
  z-index: 100;
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warn { border-color: var(--warn); }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 60px; padding-bottom: 60px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 1fr; height: auto; }
  .inbox-panel { min-height: 440px; }
  .detail-panel { min-height: 480px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 24px 18px;
    background: rgba(10, 14, 26, .97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-actions .live-stat { display: none; }
  .container { width: min(var(--container), calc(100% - 32px)); }
  .section { padding: 60px 0; }
  .feature-grid, .steps, .link-grid { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { letter-spacing: -1px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .mail-mock { transform: none; }
  .body-viewport { margin: 12px 16px 16px; }
  .attach-name { max-width: 130px; }
}
