/* ==========================================================================
   瞬码盒 · 全局样式
   风格：瞬码·舱台 —— 深色开发者控制台 / 瞬时分发舱
   设计语言：终端命令行（等宽数据 / 光标脉冲）+ 包裹分拣（状态标签 / 左上色轨）
   强调色：电路橙 —— 代表“瞬时火花”，即上传即发光；深色衬底呼应“应用即用即弃”的临时性。
   ========================================================================== */

:root {
  /* 强调色（电路橙） */
  --c-primary: #f2701a;
  --c-primary-strong: #ff8a2a;
  --c-primary-deep: #e0550a;
  --c-primary-soft: rgba(242, 112, 26, 0.16);
  --c-primary-tint: rgba(242, 112, 26, 0.08);

  /* 状态色（浅底配深色语义） */
  --c-teal: #0d9488;
  --c-teal-soft: rgba(13, 148, 136, 0.12);
  --c-success: #16a34a;
  --c-danger: #dc2626;
  --c-danger-soft: rgba(220, 38, 38, 0.12);

  /* 衬底（暖白舱体） */
  --c-bg: #faf6ef;
  --c-bg-grad-a: #fff3e5;
  --c-bg-grad-b: #f3f5f2;

  /* 面板 */
  --c-surface: #ffffff;
  --c-surface-2: #fcf8f1;
  --c-surface-3: #f2eae0;

  /* 文字 */
  --c-ink: #241a10;
  --c-ink-soft: #5e5142;
  --c-muted: #8b7c68;

  /* 边框 */
  --c-border: #ede3d4;
  --c-border-strong: #d3c5ac;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(120, 90, 50, 0.10);
  --shadow: 0 16px 40px rgba(120, 90, 50, 0.16);
  --shadow-lg: 0 28px 70px rgba(120, 90, 50, 0.24);
  --glow: 0 0 0 4px var(--c-primary-soft), 0 12px 34px rgba(242, 112, 26, 0.22);

  --container: 1040px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono",
    Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

/* 强制 hidden 属性生效 */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--c-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1100px 560px at 110% -8%, rgba(255, 138, 42, 0.18), transparent 60%),
    radial-gradient(860px 520px at -8% 6%, rgba(13, 148, 136, 0.08), transparent 55%),
    linear-gradient(180deg, var(--c-bg-grad-a), var(--c-bg) 42%, var(--c-bg-grad-b));
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 舱体网格 + 柔光（氛围层，位于内容之下） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 52%, rgba(255, 255, 255, 0.55) 100%),
    repeating-linear-gradient(0deg, rgba(242, 112, 26, 0.05) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(242, 112, 26, 0.05) 0 1px, transparent 1px 42px);
}

main { flex: 1 0 auto; }

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

::selection { background: rgba(255, 122, 30, 0.35); color: #fff; }

/* ---------- 无障碍工具类 ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--c-primary);
  color: #1a0d00;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden;
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--c-primary-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   顶部导航 —— 舱体顶梁（玻璃 + 橙色动力线）
   ========================================================================== */
.site-header {
  background: rgba(255, 252, 246, 0.80);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60);
}
.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), var(--c-teal), transparent);
  opacity: 0.6;
  position: absolute;
  left: 0; right: 0; bottom: -1px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-strong);
  box-shadow: 0 0 18px rgba(255, 122, 30, 0.35);
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(120deg, var(--c-primary-strong), var(--c-primary-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-slogan {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-muted);
  border-left: 1px solid var(--c-border-strong);
  padding-left: 12px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--c-ink-soft);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-link:hover { background: var(--c-surface-3); color: var(--c-primary-strong); }
.nav-link.active {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  color: #1a0d00;
  box-shadow: 0 6px 16px rgba(255, 122, 30, 0.30);
}

/* ==========================================================================
   首页 Hero —— 命令台（终端提示符 + 光标脉冲）
   ========================================================================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 46px 0 32px;
}
.hero-text {
  flex: 1;
  min-width: 0;
  max-width: 600px;
}
.hero-title {
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: 0.5px;
  text-wrap: balance;
}
.hero-title .accent {
  color: var(--c-primary-deep);
  position: relative;
}
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 8px;
  background: linear-gradient(90deg, rgba(242, 112, 26, 0.30), rgba(242, 112, 26, 0.04));
  z-index: -1;
  border-radius: 6px;
}
.hero-title::after {
  content: "▍";
  display: inline-block;
  margin-left: 4px;
  color: var(--c-primary);
  font-family: var(--font-mono);
  animation: blink 1.05s steps(2, start) infinite;
}
.hero-sub {
  color: var(--c-ink-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
  margin: 0;
}
.hero-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  justify-items: start;
}
.hero-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero-steps li:hover {
  border-color: var(--c-border-strong);
  transform: translateX(2px);
  box-shadow: var(--shadow);
}
.step-num {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  color: #1a0d00;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 122, 30, 0.45);
}

/* 时间/次数等核心数据用等宽，突出“即时”感 */
.key-mono, .mono { font-family: var(--font-mono); }

/* ==========================================================================
   卡片通用 —— 舱体面板（顶部高光 + 层级投影）
   ========================================================================== */
.card {
  background: linear-gradient(180deg, var(--c-surface), var(--c-surface-2));
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, rgba(120, 90, 50, 0.12), transparent);
}
.card-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
}
.card-title .dot {
  width: 12px; height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  box-shadow: 0 0 0 4px var(--c-primary-soft), 0 0 12px rgba(255, 122, 30, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.upload-card { margin-bottom: 26px; }

/* ==========================================================================
   表单 —— 终端输入
   ========================================================================== */
.field { margin-bottom: 26px; }
.field-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 9px;
  color: var(--c-ink);
  border: 0;
  padding: 0;
}
.fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.req { color: var(--c-danger); }

input[type="text"],
input[type="number"] {
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  color: var(--c-ink);
  background: var(--c-surface-2);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input[type="text"]::placeholder,
input[type="number"]::placeholder { color: var(--c-muted); }
input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--c-primary);
  background: var(--c-surface-3);
  box-shadow: 0 0 0 4px var(--c-primary-soft);
  outline: none;
}
input.invalid { border-color: var(--c-danger); box-shadow: 0 0 0 4px var(--c-danger-soft); }

.hint { font-size: 14px; color: var(--c-muted); margin: 8px 0 0; }
.field-error {
  font-size: 13px;
  color: var(--c-danger);
  margin: 6px 0 0;
  min-height: 0;
}
.field-error:empty { display: none; }

/* 时效选择 chips —— 控制台选项卡 */
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  inset: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-soft);
  transition: all 0.2s;
  background: var(--c-surface-2);
  font-family: var(--font-mono);
}
.chip:hover span { border-color: var(--c-primary); color: var(--c-primary-strong); }
.chip input:checked + span {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  color: #1a0d00;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(255, 122, 30, 0.30);
}
.chip input:focus-visible + span { outline: 3px solid var(--c-primary-strong); outline-offset: 2px; }

.custom-expire {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--c-primary-tint);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius);
}
.custom-expire .row { display: flex; gap: 16px; flex-wrap: wrap; }
.mini-field { flex: 1; min-width: 130px; }
.mini-label { display: block; font-size: 14px; color: var(--c-ink-soft); margin-bottom: 6px; }

/* 文件夹选择 —— 接入舱口 */
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 34px 20px;
  border: 2px dashed var(--c-border-strong);
  border-radius: var(--radius);
  background: var(--c-surface-2);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.drop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255, 122, 30, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.drop:hover::after, .drop.dragover::after { opacity: 1; }
.drop:hover, .drop.dragover {
  border-color: var(--c-primary);
  background: var(--c-surface-3);
}
.drop-icon {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255, 122, 30, 0.4));
}
.drop-main { font-size: 15px; font-weight: 700; color: var(--c-primary-strong); }
.drop-sub { font-size: 14px; color: var(--c-muted); }

/* 提交 & 进度 */
.submit-area { margin-top: 6px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1a0d00;
  border: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--c-primary-strong), var(--c-primary), var(--c-primary-deep));
  padding: 14px 30px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 122, 30, 0.30);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.progress {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar {
  flex: 1;
  height: 12px;
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-deep));
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
  box-shadow: 0 0 12px rgba(255, 122, 30, 0.6);
}
.progress-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary-strong);
  min-width: 40px;
  text-align: right;
}

/* ==========================================================================
   上传结果 —— 发射成功面板
   ========================================================================== */
.result-card { margin-bottom: 26px; }
.result-card::before {
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.40), transparent);
}
.result-head { display: flex; align-items: center; gap: 12px; }
.result-badge { font-size: 26px; filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.5)); }
.result-meta { color: var(--c-ink-soft); font-size: 14px; margin: 4px 0 16px; }
.link-row { display: flex; gap: 10px; flex-wrap: wrap; }
.link-input {
  flex: 1;
  min-width: 200px;
  background: var(--c-primary-tint);
  color: var(--c-primary-strong);
  border: 1px solid var(--c-primary-soft);
  font-family: var(--font-mono);
  font-size: 14px;
}
.btn-copy {
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  color: #1a0d00;
  font-weight: 700;
  padding: 0 20px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}
.btn-copy:hover { filter: brightness(1.06); }
.btn-copy:active { transform: scale(0.97); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  color: var(--c-ink-soft);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary-strong); background: var(--c-surface-3); }

.button { border: 0; background: none; font: inherit; cursor: pointer; }

/* ==========================================================================
   管理页 —— 分拣舱（包裹列表）
   ========================================================================== */
.page-head { padding: 40px 0 24px; }
.page-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 6px;
}
.page-sub { color: var(--c-ink-soft); margin: 0; }

.search-card { margin-bottom: 22px; }
.search-row { display: flex; gap: 12px; }
.search-row input { flex: 1; }
.search-row .btn-primary { padding: 0 26px; flex-shrink: 0; }
.controls-hint { color: var(--c-muted); font-size: 13px; margin: 10px 0 0; font-family: var(--font-mono); }

.list-section { min-height: 120px; }
.empty-state {
  text-align: center;
  padding: 46px 20px;
  color: var(--c-muted);
}
.empty-icon { font-size: 40px; margin-bottom: 10px; opacity: 0.8; }
.empty-state p { margin: 0; font-size: 16px; }

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 46px 20px;
  color: var(--c-muted);
}
.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--c-border-strong);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 包裹列表 */
.project-list { display: grid; gap: 14px; }
.project-item {
  background: linear-gradient(180deg, var(--c-surface), var(--c-surface-2));
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 20px 18px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  animation: rise 0.4s ease both;
}
/* 左上色轨 = 包裹状态灯 */
.project-item::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--c-primary), var(--c-primary-deep));
  box-shadow: 0 0 12px rgba(255, 122, 30, 0.5);
}
.project-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--c-border-strong); }
.project-item.dim { opacity: 0.66; }

.item-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.item-name { font-size: 17px; font-weight: 800; letter-spacing: 0.5px; }
.status-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}
.status-active { background: var(--c-teal-soft); color: var(--c-teal); border-color: rgba(45, 212, 191, 0.3); }
.status-expired, .status-disabled { background: var(--c-danger-soft); color: var(--c-danger); border-color: rgba(255, 92, 92, 0.3); }

.item-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 18px;
  color: var(--c-ink-soft);
  font-size: 14px;
  margin: 12px 0;
}
.item-meta span b {
  color: var(--c-ink);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 13px;
}

.item-link-row { display: flex; gap: 8px; align-items: center; }
.item-link {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--c-primary-deep);
  background: var(--c-primary-tint);
  border: 1px solid var(--c-primary-soft);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-mini {
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  color: var(--c-ink-soft);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-mini:hover { border-color: var(--c-primary); color: var(--c-primary-strong); background: var(--c-surface-3); }
.btn-mini.danger { color: var(--c-danger); }
.btn-mini.danger:hover { border-color: var(--c-danger); background: var(--c-danger-soft); color: #b91010; }

.item-check {
  width: 18px; height: 18px;
  accent-color: var(--c-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.batch-bar {
  position: sticky;
  bottom: 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 252, 246, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
}
.batch-bar > span { font-family: var(--font-mono); font-size: 14px; color: var(--c-ink-soft); }
.batch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-danger-ghost {
  border: 2px solid var(--c-danger);
  background: transparent;
  color: var(--c-danger);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger-ghost:hover { background: var(--c-danger); color: #1a0d00; }

/* ==========================================================================
   错误页 —— 链接失效舱
   ========================================================================== */
.error-wrap {
  text-align: center;
  padding: 56px 20px 40px;
  max-width: 560px;
  margin: 0 auto;
}
.error-logo {
  width: 68px; height: 68px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-strong);
  box-shadow: 0 0 26px rgba(255, 122, 30, 0.35);
  margin-bottom: 16px;
}
.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--c-primary-strong), var(--c-primary-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-title { font-size: 24px; font-weight: 800; margin: 10px 0 12px; }
.error-desc { color: var(--c-ink-soft); font-size: 16px; margin: 0 0 24px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-note { color: var(--c-muted); font-size: 13px; margin-top: 26px; font-family: var(--font-mono); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-surface-3);
  color: var(--c-ink);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
  max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--c-teal); color: var(--c-teal); }
.toast.error { border-color: var(--c-danger); color: var(--c-danger); }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--c-border);
  background: rgba(255, 252, 246, 0.72);
}
.site-footer p {
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
  padding: 20px 0;
  margin: 0;
  font-family: var(--font-mono);
}

/* ==========================================================================
   动效
   ========================================================================== */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--c-primary-soft), 0 0 12px rgba(255, 122, 30, 0.5); }
  50% { box-shadow: 0 0 0 4px var(--c-primary-soft), 0 0 22px rgba(255, 122, 30, 0.8); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 首屏依次浮现（终端“逐行启动”） */
.hero-text { animation: rise 0.55s ease both; }
.hero-steps li { animation: rise 0.5s ease both; }
.hero-steps li:nth-child(1) { animation-delay: 0.10s; }
.hero-steps li:nth-child(2) { animation-delay: 0.18s; }
.hero-steps li:nth-child(3) { animation-delay: 0.26s; }
.hero-steps li:nth-child(4) { animation-delay: 0.34s; }
.upload-card { animation: rise 0.55s ease both; animation-delay: 0.22s; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 720px) {
  .nav { flex-direction: column; align-items: stretch; gap: 10px; }
  .brand { justify-content: center; }
  .brand-slogan { display: none; }
  .nav-links { justify-content: center; }
  .hero { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 32px; }
  .hero-steps { display: flex; flex-wrap: wrap; justify-content: flex-start; width: 100%; }
  .card { padding: 20px 22px; }
  .search-row { flex-direction: column; }
  .btn-primary { width: 100%; justify-content: center; }
  .search-row .btn-primary { width: auto; padding: 0 20px; }
  .batch-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .batch-actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
