/* ============================================================
   AI 鉴定系统 · 全局样式
   视觉基准：01-首页-文字鉴定.png
   明亮浅灰蓝背景 / 白色卡片 / 深蓝主文字 / 蓝色主按钮
   ============================================================ */

:root {
  --primary: #1f6bff;
  --primary-dark: #0f54e0;
  --primary-light: #e8f0fe;
  --navy: #17295c;
  --text: #2b3a67;
  --muted: #7c88ad;
  --faint: #a5aec9;
  --bg: #eef3fb;
  --card: #ffffff;
  --border: #e3eaf6;
  --border-strong: #d3def0;
  --green: #22b07d;
  --green-bg: #e6f7f0;
  --red: #f14d5d;
  --red-bg: #fdeaec;
  --orange: #f79009;
  --orange-bg: #fef3e4;
  --blue-bg: #eaf1fe;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 12px rgba(31, 79, 168, 0.06);
  --shadow-pop: 0 8px 30px rgba(31, 79, 168, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

button { font-family: var(--font); cursor: pointer; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.brand:hover { color: var(--navy); }
.brand .logo {
  width: 32px;
  height: 32px;
  display: inline-flex;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  position: relative;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  padding: 20px 2px;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--navy);
}
.mobile-nav { display: none; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 22px;
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 107, 255, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-lg { padding: 13px 34px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- 页面主体 ---------------- */
.page { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; }

/* Hero 横幅 */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% 10%, rgba(96, 150, 255, 0.20), transparent 60%),
    radial-gradient(700px 380px at 20% 100%, rgba(140, 180, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #eef4fd 0%, #f4f8fe 100%);
  border-bottom: 1px solid var(--border);
}
.hero .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 6px;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.hero-title .hl { color: var(--primary); }
.hero-sub {
  font-size: 17px;
  color: #4c5c8f;
  margin-bottom: 20px;
}
.hero-badges {
  display: flex;
  gap: 28px;
  color: #40508a;
  font-size: 14px;
  flex-wrap: wrap;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges svg { color: var(--primary); }
.hero-art {
  position: absolute;
  right: 40px;
  top: 0;
  height: 100%;
  width: 460px;
  pointer-events: none;
  z-index: 1;
}
.hero-chips {
  position: absolute;
  right: 96px;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  color: #40508a;
}
.hero-chip svg { color: var(--primary); }

/* 小号 hero（结果页/历史等） */
.hero-sm .inner { padding: 36px 24px 34px; }
.hero-sm .hero-title { font-size: 34px; margin-bottom: 8px; }
.hero-sm .hero-sub { font-size: 15px; margin-bottom: 0; }

/* 页面标题区（非 hero 页） */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: 30px; font-weight: 800; color: var(--navy); }
.page-head p { color: var(--muted); margin-top: 6px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 28px 32px; }
.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.card-title .icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-sub { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------------- 工作台 ---------------- */
.workbench-wrap { max-width: 1000px; margin: -6px auto 0; position: relative; z-index: 3; }

.tabs-pill {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  border-radius: 999px;
  padding: 6px;
  width: max-content;
  margin: 0 auto 22px;
}
.tabs-pill button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 30px;
  border-radius: 999px;
  transition: all .18s ease;
}
.tabs-pill button:hover { color: var(--primary); }
.tabs-pill button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 107, 255, 0.35);
}

.panel { display: none; }
.panel.active { display: block; }

.panel-head { padding: 24px 32px 0; }
.panel-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}
.panel-head h2 .icon-box {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.panel-head p { color: var(--muted); font-size: 13px; margin: 10px 0 0 42px; }
.panel-body { padding: 20px 32px 28px; }

/* 文本输入 */
.textarea-box {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fbfdff;
}
.textarea-box textarea {
  width: 100%;
  min-height: 170px;
  border: none;
  outline: none;
  resize: vertical;
  background: transparent;
  padding: 16px 18px 34px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
}
.textarea-box .counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 12px;
  color: var(--faint);
}

/* 检测选项 */
.check-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
}
.check-item input { display: none; }
.check-item .box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .15s ease;
}
.check-item input:checked + .box { background: var(--primary); border-color: var(--primary); }
.check-item .help { color: var(--faint); display: inline-flex; }
.check-item .help:hover { color: var(--primary); }

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.privacy-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  max-width: 520px;
}
.privacy-note svg { flex-shrink: 0; margin-top: 2px; }

/* 上传区 */
.upload-area {
  border: 1.5px dashed #b9c8e8;
  border-radius: 14px;
  background: #f8fbff;
  padding: 48px 24px;
  text-align: center;
  transition: all .18s ease;
  cursor: pointer;
}
.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: #f2f7ff; }
.upload-area .up-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  color: var(--primary);
}
.upload-area .up-title { font-size: 16px; font-weight: 700; color: var(--navy); }
.upload-area .up-desc { color: var(--muted); font-size: 12.5px; margin-top: 8px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}
.feat-item { display: flex; gap: 12px; align-items: flex-start; }
.feat-item .icon-box {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.feat-item h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feat-item p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 视频面板右侧预览 */
.video-side {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fbfdff;
}
.video-side .vs-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 12px;
}
.video-side .vs-head .muted { color: var(--muted); font-weight: 400; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.frame-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #9db9e8, #d3e2f7);
}
.frame .t {
  position: absolute; right: 4px; bottom: 4px;
  background: rgba(15, 30, 70, .72); color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
}

/* ---------------- 使用步骤 ---------------- */
.steps {
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: flex-start;
  gap: 0 12px;
}
.step { text-align: center; position: relative; }
.step .num {
  width: 26px; height: 26px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.step .icon-circle {
  width: 52px; height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 12.5px; color: var(--muted); max-width: 220px; margin: 0 auto; }
.step-line {
  margin-top: 64px;
  flex: 1;
  min-width: 60px;
  border-top: 2px dashed #c3d2ee;
}

/* 底部提示条 */
.notice-bar {
  max-width: 1000px;
  margin: 34px auto 0;
  background: #eaf1fd;
  border: 1px solid #d8e5fa;
  color: #54648f;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice-bar svg { color: var(--primary); flex-shrink: 0; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}
.site-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .links { display: flex; gap: 28px; font-size: 13px; }
.site-footer .links a { color: var(--muted); }
.site-footer .links a:hover { color: var(--primary); }
.site-footer .tip { color: var(--faint); font-size: 12px; width: 100%; text-align: center; margin-top: 4px; }

/* ---------------- 状态徽章 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-blue { background: var(--blue-bg); color: var(--primary); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-gray { background: #eef1f7; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); }
.dot-red { background: var(--red); }
.dot-blue { background: var(--primary); }
.dot-gray { background: #b9c2d8; }

.tag-demo {
  font-size: 11px;
  color: var(--muted);
  background: #eef1f7;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 400;
}

/* ---------------- 表单 ---------------- */
.form-item { margin-bottom: 18px; }
.form-item label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.input-wrap { position: relative; }
.input-wrap .lead {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  display: inline-flex;
}
.input-wrap .trail {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  background: none; border: none;
  display: inline-flex;
  padding: 0;
}
.input-wrap .trail:hover { color: var(--primary); }
.input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fbfdff;
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,107,255,.12); background: #fff; }
.input.no-lead { padding-left: 14px; }
.input::placeholder { color: var(--faint); }
textarea.input { padding-left: 14px; resize: vertical; }
.char-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--faint); }
textarea ~ .char-count, .ta-wrap .char-count { top: auto; bottom: 10px; transform: none; }
.ta-wrap { position: relative; }

/* ---------------- 表格 ---------------- */
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.data th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 12.5px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: #fbfcff;
}
table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f9;
  color: var(--text);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #f8faff; }
.cell-main { font-weight: 600; color: var(--navy); }
.cell-sub { font-size: 12px; color: var(--faint); }
.type-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 500; }
.type-tag .icon-box {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.thumb {
  width: 46px; height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, #9db9e8, #d3e2f7);
  display: inline-block;
  vertical-align: middle;
}
.link-op { color: var(--primary); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; }
.link-op:last-child { margin-right: 0; }
.link-op.danger { color: var(--red); }

/* 筛选行 */
.filter-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.filter-item { min-width: 180px; flex: 1; max-width: 260px; }
.filter-item label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fbfdff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c88ad' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: 10px 36px 10px 14px;
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
}
.select:focus { border-color: var(--primary); }
.search-input { position: relative; flex: 2; max-width: 340px; min-width: 220px; }
.search-input .input { padding-left: 38px; }
.search-input svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--muted);
}
.pager { display: flex; gap: 6px; align-items: center; }
.pager a, .pager span {
  min-width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 0 6px;
}
.pager a:hover { background: var(--primary-light); color: var(--primary); }
.pager .cur { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------------- 结果页 ---------------- */
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.score-ring { display: flex; align-items: center; gap: 28px; }
.ring { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-val {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring .ring-val b { font-size: 34px; color: var(--navy); line-height: 1; }
.ring .ring-val b small { font-size: 15px; color: var(--faint); font-weight: 500; }
.ring .ring-val span { font-size: 12px; color: var(--muted); margin-top: 4px; }

.info-banner {
  display: flex; gap: 8px; align-items: flex-start;
  background: #eef4fe;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #54648f;
  margin-top: 14px;
}
.info-banner svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.warn-banner {
  display: flex; gap: 8px; align-items: flex-start;
  background: #fff8ec;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #8a6d3b;
  margin-top: 14px;
}
.warn-banner svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }

.kv { display: grid; grid-template-columns: auto 1fr; row-gap: 10px; column-gap: 24px; font-size: 13px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { color: var(--text); word-break: break-all; }

.zw-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 14px; }
.zw-table-wrap { background: #f8faff; border: 1px solid var(--border); border-radius: 12px; padding: 6px 14px; margin-top: 14px; }
.zw-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.zw-table-wrap th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.zw-table-wrap td { padding: 10px 8px; border-bottom: 1px solid #eef2f9; color: var(--text); }
.zw-table-wrap tr:last-child td { border-bottom: none; }

.bar-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; margin-top: 12px; font-size: 12.5px; }
.bar-row .name { color: #54648f; }
.bar { height: 7px; border-radius: 4px; background: #eef2f9; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--red); }
.bar.blue i { background: var(--primary); }
.bar-row .val { color: var(--muted); text-align: right; }

.check-list { list-style: none; font-size: 12.5px; color: #54648f; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.check-list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ---------------- 进度页 ---------------- */
.progress-card { max-width: 900px; margin: 36px auto 0; }
.file-row { display: flex; align-items: center; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.file-row .file-icon {
  width: 62px; height: 62px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.file-row h3 { font-size: 18px; color: var(--navy); font-weight: 700; }
.file-row .meta { color: var(--muted); font-size: 12.5px; margin-top: 6px; display: flex; gap: 18px; flex-wrap: wrap; }
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 36px 0 8px;
  position: relative;
}
.stepper::before {
  content: "";
  position: absolute;
  left: 12.5%; right: 12.5%;
  top: 22px;
  border-top: 2.5px solid #dbe5f5;
}
.stepper .fill {
  position: absolute;
  left: 12.5%;
  top: 22px;
  border-top: 2.5px solid var(--primary);
  transition: width .3s ease;
}
.stp { text-align: center; position: relative; z-index: 2; }
.stp .ic {
  width: 44px; height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #dbe5f5;
  color: #b9c2d8;
  display: flex; align-items: center; justify-content: center;
}
.stp.done .ic { background: var(--primary); border-color: var(--primary); color: #fff; }
.stp.doing .ic { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 6px rgba(31,107,255,.15); }
.stp h5 { font-size: 14px; color: var(--navy); margin-top: 10px; font-weight: 600; }
.stp p { font-size: 12px; color: var(--faint); margin-top: 2px; }
.stp.doing p { color: var(--primary); }
.stage-box {
  background: #eef4fe;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  margin-top: 28px;
}
.stage-box .spin { color: var(--primary); flex-shrink: 0; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-box h4 { color: var(--navy); font-size: 14.5px; }
.stage-box p { color: #54648f; font-size: 12.5px; margin-top: 4px; }
.progress-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 28px; flex-wrap: wrap;
}
.progress-foot .tip { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12px; max-width: 520px; }
.progress-foot .tip svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.progress-foot .ops { display: flex; gap: 12px; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-hero { position: relative; overflow: hidden; }
.auth-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 1.1fr 460px;
  gap: 60px;
  align-items: start;
}
.auth-left { padding-top: 30px; position: relative; }
.auth-left .feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  max-width: 620px;
}
.mini-feat {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.mini-feat .icon-box {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.mini-feat h4 { font-size: 13.5px; color: var(--navy); }
.mini-feat p { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.auth-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(31, 79, 168, 0.14);
  padding: 36px 38px;
}
.auth-card h2 { font-size: 24px; color: var(--navy); font-weight: 800; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin: 8px 0 26px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 20px; }
.divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--faint); font-size: 12.5px;
  margin: 22px 0;
}
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.oauth-row { display: flex; justify-content: center; gap: 48px; margin-bottom: 20px; }
.oauth { text-align: center; background: none; border: none; color: var(--muted); font-size: 12px; }
.oauth .ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
  background: #fff;
  transition: all .15s ease;
}
.oauth:hover .ic { border-color: var(--primary); }
.auth-switch { text-align: center; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---------------- 个人中心 ---------------- */
.ucenter { display: grid; grid-template-columns: 230px 1fr; gap: 24px; margin-top: 32px; align-items: start; }
.side-menu { padding: 14px; }
.side-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.side-menu a:hover { background: #f4f8ff; color: var(--primary); }
.side-menu a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.avatar-row { display: flex; gap: 22px; align-items: center; margin: 22px 0 28px; }
.avatar {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(160deg, #dbe7fb, #b9cff5);
  display: flex; align-items: center; justify-content: center;
  color: #7f9bd8;
  flex-shrink: 0;
}
.avatar .cam {
  position: absolute;
  right: 0; bottom: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.link-card {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  transition: all .15s ease;
}
.link-card:hover { border-color: var(--primary); box-shadow: var(--shadow-card); }
.link-card .icon-box {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.link-card h4 { color: var(--navy); font-size: 14.5px; }
.link-card p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.link-card > svg { margin-left: auto; color: var(--faint); flex-shrink: 0; }

/* ---------------- 使用说明 / 协议页 ---------------- */
.doc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; margin-top: 28px; align-items: start; }
.doc-toc { padding: 16px; position: sticky; top: 84px; }
.doc-toc h3 { font-size: 15px; color: var(--navy); padding: 4px 12px 12px; }
.doc-toc a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  position: relative;
}
.doc-toc a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.doc-toc a.active::before {
  content: "";
  position: absolute;
  left: -16px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.doc-toc a .no { color: var(--faint); font-size: 12px; width: 22px; }
.doc-toc a.active .no { color: var(--primary); }
.doc-toc a > svg:last-child { margin-left: auto; color: var(--faint); }
.doc-sec { padding: 26px 30px; border-bottom: 1px solid var(--border); display: flex; gap: 18px; }
.doc-sec:last-child { border-bottom: none; }
.doc-sec .icon-box {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-sec .no-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.doc-sec h3 { color: var(--navy); font-size: 16px; margin-bottom: 8px; }
.doc-sec p { color: #54648f; font-size: 13px; }

.guide-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.note-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; }
.note-card .icon-box {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.note-card.blue .icon-box { background: var(--primary-light); color: var(--primary); }
.note-card.orange { background: #fffaf2; border-color: #f6e5c8; }
.note-card.orange .icon-box { background: var(--orange-bg); color: var(--orange); }
.note-card h4 { color: var(--navy); font-size: 14px; }
.note-card p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 4px; }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--navy); font-size: 13.5px; cursor: pointer; }
.faq-q svg { color: var(--faint); flex-shrink: 0; }
.faq-a { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.three-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0 14px; align-items: center; margin-top: 20px; }
.ts { display: flex; gap: 14px; align-items: center; }
.ts .no-badge {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ts .icon-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card);
  color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ts h4 { color: var(--navy); font-size: 13.5px; }
.ts p { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.ts-arrow { color: var(--faint); }

/* ---------------- 管理后台 ---------------- */
.admin-shell { display: grid; grid-template-columns: 210px 1fr; min-height: calc(100vh - 64px); }
.admin-side {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px 12px;
}
.admin-side a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.admin-side a:hover { background: #f4f8ff; color: var(--primary); }
.admin-side a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
.admin-main { padding: 32px 36px 56px; min-width: 0; }
.admin-head h1 { font-size: 26px; color: var(--navy); font-weight: 800; }
.admin-head p { color: var(--muted); margin-top: 6px; font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 26px; }
.stat-card { padding: 20px 22px; position: relative; overflow: hidden; }
.stat-card .sc-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.stat-card .icon-box {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.stat-card.warn .icon-box { background: var(--red-bg); color: var(--red); }
.stat-card.ok .icon-box { background: var(--green-bg); color: var(--green); }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--navy); margin-top: 10px; line-height: 1.1; }
.stat-card .trend { font-size: 12px; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.trend .up { color: var(--green); font-weight: 600; }
.trend .down { color: var(--red); font-weight: 600; }
.trend .vs { color: var(--faint); }
.stat-card .spark { position: absolute; right: 14px; bottom: 14px; opacity: .9; }
.admin-2col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 22px; }
.panel-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; flex-direction: column; gap: 14px; }
.legend .li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); white-space: nowrap; }
.legend .li b { margin-left: auto; color: var(--navy); font-size: 14px; }
.legend .li .pct { color: var(--faint); font-size: 12px; width: 48px; text-align: right; }
.donut-wrap { display: flex; align-items: center; gap: 30px; padding: 10px 6px; }
.donut { position: relative; width: 190px; height: 190px; flex-shrink: 0; }
.donut .c {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut .c b { font-size: 26px; color: var(--navy); }
.donut .c span { font-size: 12px; color: var(--muted); }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.channel-card { padding: 24px 24px 20px; }
.channel-card .ch-head { display: flex; align-items: center; gap: 12px; }
.channel-card .icon-box {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.channel-card h3 { color: var(--navy); font-size: 16px; }
.channel-card .ch-desc { color: var(--muted); font-size: 12.5px; margin: 14px 0 18px; min-height: 40px; }
.channel-card .ch-kv { border-top: 1px solid var(--border); padding: 14px 0; display: grid; row-gap: 10px; font-size: 12.5px; }
.channel-card .ch-kv .r { display: flex; justify-content: space-between; }
.channel-card .ch-kv .k { color: var(--muted); }
.channel-card .ch-kv .v { color: var(--text); }
.cfg-list { display: flex; flex-direction: column; }
.cfg-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.cfg-list a:last-child { border-bottom: none; }
.cfg-list a:hover { color: var(--primary); }
.cfg-list .icon-box {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cfg-list h4 { font-size: 13.5px; color: var(--navy); }
.cfg-list p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cfg-list a > svg:last-child { margin-left: auto; color: var(--faint); }
.range-tabs { display: inline-flex; background: #eef2f9; border-radius: 9px; padding: 3px; }
.range-tabs button {
  border: none; background: transparent;
  padding: 6px 16px; border-radius: 7px;
  font-size: 12.5px; color: var(--muted);
}
.range-tabs button.active { background: var(--primary); color: #fff; }

/* 时间轴抽样条（视频结果页） */
.timeline { margin-top: 18px; }
.timeline .tl-track { position: relative; height: 30px; }
.timeline .tl-line {
  position: absolute; left: 0; right: 0; top: 12px;
  border-top: 2px dashed #c3d2ee;
}
.timeline .tl-dots { display: flex; justify-content: space-between; position: relative; }
.timeline .tl-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary);
  margin-top: 8px;
}
.timeline .tl-dots i.off { background: #d4deef; }
.timeline .tl-labels { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; }
.frame-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 14px; }
.frame-strip .fr { text-align: center; }
.frame-strip .fr .img {
  aspect-ratio: 16/10;
  border-radius: 8px;
  background: linear-gradient(135deg, #9db9e8, #d3e2f7);
  border: 1px solid var(--border);
}
.frame-strip .fr .cap { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.frame-strip .fr .cap i {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 10px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}
.status-ok { color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.status-ok svg { flex-shrink: 0; }

/* 返回链接 */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-size: 13.5px; font-weight: 500;
}
.back-link:hover { color: var(--primary); }

/* 标题行右侧信息 */
.result-meta {
  display: flex; align-items: center; gap: 26px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
}
.result-meta .item { display: flex; align-items: center; gap: 10px; }
.result-meta .icon-box {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary-light); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.result-meta .k { font-size: 11.5px; color: var(--faint); }
.result-meta .v { font-size: 12.5px; color: var(--navy); font-weight: 600; }

/* 视频信息头（视频结果页） */
.video-head { display: grid; grid-template-columns: 380px 1fr; gap: 26px; }
.video-cover {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, #2b3f6e, #54749f);
}
.video-cover .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.92);
}
.video-cover .ctrl {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(10, 22, 48, .55);
  color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  font-size: 11px;
}
.video-cover .ctrl .bar-mini { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); position: relative; }
.video-cover .ctrl .bar-mini i { position: absolute; left: 0; top: 0; bottom: 0; width: 12%; background: #fff; border-radius: 2px; }
.hash-row {
  margin-top: 18px;
  background: #f6f9fe;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.hash-row code { color: #54648f; word-break: break-all; flex: 1; font-family: Consolas, monospace; }
.hash-row button { background: none; border: none; color: var(--faint); display: inline-flex; }
.hash-row button:hover { color: var(--primary); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-art { opacity: .45; }
  .result-grid, .guide-grid2, .admin-2col { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .channel-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; gap: 30px; }
  .auth-left { display: none; }
  .frame-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-header .inner { gap: 12px; }
  .mobile-nav {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 16px;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 12px 4px; color: var(--navy); font-size: 15px; border-bottom: 1px solid #f0f4fa; }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav .actions { display: flex; gap: 12px; margin-top: 12px; }
  .hero .inner { padding: 36px 20px 32px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-art { display: none; }
  .hero-chips { display: none; }
  .page { padding: 0 16px 48px; }
  .panel-head, .panel-body { padding-left: 20px; padding-right: 20px; }
  .panel-head p { margin-left: 0; }
  .tabs-pill { width: 100%; }
  .tabs-pill button { flex: 1; padding: 11px 8px; font-size: 13.5px; justify-content: center; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step-line { display: none; }
  .feat-grid, .form-grid, .link-cards { grid-template-columns: 1fr; }
  .panel-foot { flex-direction: column; align-items: stretch; }
  .panel-foot .btn { width: 100%; }
  .ucenter, .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-side a { white-space: nowrap; margin-bottom: 0; }
  .admin-main { padding: 22px 16px 40px; }
  .stat-grid { grid-template-columns: 1fr; }
  .video-head { grid-template-columns: 1fr; }
  .check-row { gap: 18px; }
  .score-ring { flex-direction: column; align-items: flex-start; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-item, .search-input { max-width: none; }
  .result-meta { flex-wrap: wrap; gap: 14px; }
  .frame-strip { grid-template-columns: repeat(2, 1fr); }
  .three-steps { grid-template-columns: 1fr; gap: 18px; }
  .ts-arrow { display: none; }
}

/* 打印样式：隐藏导航与操作按钮 */
@media print {
  .site-header, .site-footer, .btn, .link-op, .back-link, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
