/* ============================================================
   安可信 Trustly · 设计系统
   国际化 SaaS 精致感 + 现代金融科技视觉
   ============================================================ */

:root {
  /* 品牌 */
  --navy: #142B4A;
  --navy-2: #1B3B63;
  --blue: #3478E5;
  --blue-hover: #2A67CC;
  --blue-deep: #2457B8;
  --blue-soft: #EAF2FF;
  --blue-line: #CFE0FC;

  /* 中性 */
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --ink: #16233A;
  --ink-2: #43536B;
  --muted: #6B7A90;
  --muted-2: #8B98AB;
  --line: #E3E8EF;
  --line-strong: #D2DAE5;

  /* 风险语义 */
  --risk-safe: #0E8F63;
  --risk-safe-bg: #E8F6EF;
  --risk-low: #147D8C;
  --risk-low-bg: #E6F4F6;
  --risk-mid: #B86A00;
  --risk-mid-bg: #FDF3E2;
  --risk-high: #C93636;
  --risk-high-bg: #FBECEC;
  --risk-unknown: #5F6E85;
  --risk-unknown-bg: #EEF1F5;

  /* 尺寸 */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-xs: 0 1px 2px rgba(16, 34, 64, .05);
  --shadow-sm: 0 1px 2px rgba(16, 34, 64, .05), 0 6px 18px -12px rgba(16, 34, 64, .18);
  --shadow-md: 0 2px 4px rgba(16, 34, 64, .04), 0 18px 40px -24px rgba(16, 34, 64, .28);
  --shadow-lg: 0 24px 60px -28px rgba(10, 28, 56, .42);

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 16px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-hero: clamp(32px, 4.2vw, 50px);

  --container: 1120px;
  --header-h: 66px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { font-size: var(--fs-base); scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: var(--fs-base); color: var(--ink); }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.35; letter-spacing: -.01em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.ic { display: inline-block; vertical-align: -.16em; flex-shrink: 0; }
.app-root { min-height: 100vh; display: flex; flex-direction: column; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 9px 18px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .16s;
  user-select: none; white-space: nowrap;
}
.btn .ic { margin-top: -1px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(36, 87, 184, .25); }
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 4px 14px -6px rgba(52, 120, 229, .6); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.btn-ghost { background: #EEF1F6; color: var(--ink-2); }
.btn-ghost:hover { background: #E4E9F1; color: var(--ink); }
.btn-soft { background: var(--blue-soft); color: var(--blue-deep); }
.btn-soft:hover { background: #DCEAFF; }
.btn-danger { background: var(--risk-high); color: #fff; }
.btn-danger:hover { background: #AE2C2C; }
.btn-danger-ghost { background: var(--risk-high-bg); color: var(--risk-high); }
.btn-danger-ghost:hover { background: #F7DEDE; }
.btn-lg { min-height: 50px; padding: 13px 26px; font-size: 16px; border-radius: var(--r-md); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { transform: none; }

.link-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--blue); padding: 2px 0;
}
.link-btn:hover { color: var(--blue-hover); }

.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm); display: inline-flex;
  align-items: center; justify-content: center; color: var(--ink-2);
  background: #F1F4F8; transition: background .16s, color .16s;
}
.icon-btn:hover { background: var(--blue-soft); color: var(--blue-deep); }
.icon-btn.danger:hover { background: var(--risk-high-bg); color: var(--risk-high); }
.icon-btn.fav-on { background: var(--risk-mid-bg); color: var(--risk-mid); }
.icon-btn.fav-on svg { fill: currentColor; }

/* ============ 顶部导航 ============ */
.topbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: var(--header-h); display: flex; align-items: center; gap: 26px;
}
.brand {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  user-select: none; flex-shrink: 0;
}
.brand-svg { display: block; filter: drop-shadow(0 4px 10px rgba(52, 120, 229, .28)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .06em; color: var(--navy); }
.brand-en { font-size: 9.5px; font-weight: 600; letter-spacing: .26em; color: var(--muted-2); margin-top: 3px; }
.brand--light .brand-name { color: #fff; }
.brand--light .brand-en { color: rgba(255, 255, 255, .62); }

.topnav { display: flex; align-items: center; gap: 2px; flex: 1; }
.topnav a {
  position: relative; padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .16s, background .16s;
}
.topnav a:hover { color: var(--ink); background: #F2F5F9; }
.topnav a.active { color: var(--blue-deep); font-weight: 600; background: var(--blue-soft); }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.account-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .16s, background .16s;
}
.account-btn:hover { border-color: var(--blue-line); background: var(--blue-soft); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4C8BF0, #2457B8); color: #fff;
  font-size: 13px; font-weight: 700;
}
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; color: var(--ink); background: #F1F4F8;
}
.mobile-menu {
  display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 40px -24px rgba(10, 28, 56, .35);
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
}
.mobile-menu.open { display: block; }
.mm-link {
  display: flex; align-items: center; gap: 10px; padding: 13px 10px;
  border-radius: var(--r-sm); font-size: 16px; font-weight: 500; color: var(--ink-2);
}
.mm-link:hover { background: #F5F7FA; color: var(--ink); }
.mm-link.active { background: var(--blue-soft); color: var(--blue-deep); font-weight: 600; }
.mm-auth { display: flex; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.mm-auth .btn { flex: 1; }

/* ============ 页面骨架 ============ */
.page {
  flex: 1; width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 32px 24px 88px;
}
.page-report { max-width: 940px; }
.page-narrow { max-width: 820px; }

.page-head { margin-bottom: 24px; }
.page-head-row { display: flex; align-items: flex-start; gap: 14px; }
.page-head h1 { font-size: var(--fs-xl); font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.back-btn {
  width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color .16s, color .16s, background .16s;
}
.back-btn:hover { border-color: var(--blue-line); color: var(--blue); background: var(--blue-soft); }

.section-head { display: flex; align-items: baseline; gap: 12px; margin: 42px 0 16px; }
.section-head h2 { font-size: 20px; font-weight: 700; color: var(--navy); }
.section-head p { font-size: 13px; color: var(--muted); }
.section-head .more-link { margin-left: auto; }

.footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 36px 24px 44px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand { cursor: default; }
.footer-desc { font-size: 13px; color: var(--muted); max-width: 320px; line-height: 1.7; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 10px; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; }
.footer-col a:hover { color: var(--blue); }
.footer-hotline { color: var(--risk-high) !important; font-weight: 700; }
.footer-note {
  max-width: var(--container); margin: 26px auto 0; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); line-height: 1.8;
}

/* ============ 首页 Hero ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 150% at 88% 8%, rgba(76, 139, 240, .42) 0%, rgba(20, 43, 74, 0) 52%),
    radial-gradient(80% 120% at 8% 100%, rgba(36, 87, 184, .35) 0%, rgba(20, 43, 74, 0) 60%),
    linear-gradient(135deg, #0F2340 0%, #142B4A 55%, #1A3A63 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(80% 90% at 50% 40%, #000 0%, transparent 78%);
}
.hero-inner {
  position: relative; max-width: var(--container); margin: 0 auto;
  padding: 64px 24px 120px; display: grid; grid-template-columns: 1.35fr .65fr;
  gap: 40px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: #D7E5FA;
}
.hero h1 {
  font-size: var(--fs-hero); font-weight: 700; letter-spacing: -.02em;
  margin: 18px 0 10px; line-height: 1.18;
}
.hero-sub { font-size: 17px; font-weight: 500; color: #DCE7F7; }
.hero-desc { margin-top: 12px; font-size: 14.5px; color: rgba(226, 236, 250, .72); max-width: 540px; line-height: 1.75; }
.hero-points { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: rgba(230, 239, 252, .9); }
.hero-points .ic { color: #7FD3AE; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.hero-art svg { width: 100%; max-width: 300px; height: auto; overflow: visible; }

/* ============ 检测输入区 ============ */
.detect-panel {
  position: relative; z-index: 3; margin: -78px auto 0;
  max-width: calc(var(--container) - 48px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.detect-panel-head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px 0;
}
.detect-panel-head h2 { font-size: 18px; font-weight: 700; color: var(--navy); }
.detect-panel-head p { font-size: 13px; color: var(--muted); }
.detect-panel-head .dp-ico {
  width: 40px; height: 40px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-deep);
}
.panel-tabbar {
  display: flex; gap: 6px; padding: 16px 24px 0; border-bottom: 1px solid var(--line);
}
.pt-tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 14px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .16s, border-color .16s;
}
.pt-tab:hover { color: var(--ink); }
.pt-tab.active { color: var(--blue-deep); border-bottom-color: var(--blue); }
.pt-pane { display: none; padding: 20px 24px 24px; }
.pt-pane.active { display: block; }

.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.form-hint { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
textarea.input-area, input.input-area, select.input-area {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 13px 15px; font-size: 15px; line-height: 1.75; background: #FBFCFE;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
textarea.input-area { min-height: 148px; resize: vertical; }
textarea.input-area:focus, input.input-area:focus, select.input-area:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(52, 120, 229, .12);
}
textarea.input-area::placeholder, input.input-area::placeholder { color: var(--muted-2); }

.panel-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.panel-foot .btn { flex-shrink: 0; }
.panel-foot .privacy-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }

.demo-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; align-items: center; }
.demo-chips .label { font-size: 12.5px; color: var(--muted-2); }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px; background: #F1F4F8;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  border: 1px solid transparent; transition: .16s;
}
.chip:hover { background: var(--blue-soft); color: var(--blue-deep); border-color: var(--blue-line); }

.dropzone {
  border: 1.5px dashed var(--blue-line); border-radius: var(--r-lg); background: #F8FAFE;
  padding: 32px 20px; text-align: center; cursor: pointer; transition: .18s;
}
.dropzone:hover { border-color: var(--blue); background: var(--blue-soft); }
.dz-icon {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--blue); border: 1px solid var(--blue-line);
}
.dz-title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.dz-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ============ 场景入口 ============ */
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scenario-card {
  display: flex; align-items: flex-start; gap: 13px; text-align: left;
  padding: 18px; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); transition: border-color .18s, box-shadow .18s, transform .18s;
}
.scenario-card:hover { border-color: var(--blue-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sc-icon {
  width: 40px; height: 40px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-deep);
}
.sc-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.sc-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.sc-arrow { margin-left: auto; color: var(--muted-2); align-self: center; }
.scenario-card:hover .sc-arrow { color: var(--blue); }

/* ============ 首页辅助入口 ============ */
.aux-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aux-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); transition: .18s;
}
.aux-card:hover { border-color: var(--blue-line); box-shadow: var(--shadow-sm); }
.aux-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #F1F5FA; color: var(--ink-2);
}
.aux-card:hover .aux-icon { background: var(--blue-soft); color: var(--blue-deep); }
.aux-num { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.aux-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.aux-desc { font-size: 12px; color: var(--muted); margin-top: 1px; }

.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 18px; border-radius: var(--r-md); background: #fff;
  border: 1px solid var(--line); transition: .16s;
}
.recent-item:hover { border-color: var(--blue-line); background: #FCFDFF; }
.recent-main { flex: 1; min-width: 0; }
.recent-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.recent-arrow { color: var(--muted-2); flex-shrink: 0; }

/* ============ 风险徽标 ============ */
.risk-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  border: 1px solid transparent;
}
.rb-safe { background: var(--risk-safe-bg); color: var(--risk-safe); border-color: #C9E8DA; }
.rb-low { background: var(--risk-low-bg); color: var(--risk-low); border-color: #C6E4E8; }
.rb-mid { background: var(--risk-mid-bg); color: var(--risk-mid); border-color: #F0DDB8; }
.rb-high { background: var(--risk-high-bg); color: var(--risk-high); border-color: #F1C9C9; }
.rb-unknown { background: var(--risk-unknown-bg); color: var(--risk-unknown); border-color: #DCE2EA; }

.tag-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  background: #F1F4F8; color: var(--ink-2); font-weight: 500;
}
.status-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #F1F4F8; color: var(--ink-2);
}
.status-chip b { font-weight: 700; color: var(--ink); }
.vtag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.vtag.ok { background: var(--risk-safe-bg); color: var(--risk-safe); }
.vtag.warn { background: var(--risk-mid-bg); color: var(--risk-mid); }
.vtag.bad { background: var(--risk-high-bg); color: var(--risk-high); }
.vtag.na { background: #EEF1F5; color: var(--muted); }

/* ============ 面板 / 卡片 ============ */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: 18px; overflow: hidden;
}
.panel-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 24px 0;
}
.panel-head h3 { font-size: 16.5px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.panel-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.panel-head .ph-extra { margin-left: auto; flex-shrink: 0; }
.panel-body { padding: 18px 24px 22px; }
.panel-body.tight { padding-top: 14px; }
.panel-divider { height: 1px; background: var(--line); margin: 0 24px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 18px;
}
.card-title { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

.empty-state {
  text-align: center; padding: 52px 24px; background: #fff;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
}
.empty-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: #F1F4F8; color: var(--muted);
}
.empty-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.empty-desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.empty-state .btn { margin-top: 16px; }

/* ============ 检测页 ============ */
.detect-card { padding: 26px; }
.detect-card .demo-chips { margin-top: 12px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 8px; }
.check-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  cursor: pointer; font-size: 13.5px; font-weight: 500; transition: .16s; background: #fff;
  color: var(--ink-2);
}
.check-item::before {
  content: ""; width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  border: 1.5px solid var(--line-strong); background: #fff; transition: .16s;
}
.check-item.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
.check-item.on::before {
  background: var(--blue); border-color: var(--blue);
  box-shadow: inset 0 0 0 3px var(--blue-soft);
}
.notice-tip {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--risk-mid-bg); color: #7A4A08; border-radius: var(--r-md);
  padding: 12px 14px; font-size: 12.5px; line-height: 1.7;
}
.notice-tip.safe { background: var(--blue-soft); color: #24456F; }
.notice-tip .ic { margin-top: 2px; }

.preview-box { position: relative; border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; max-width: 420px; }
.preview-box img { display: block; width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); }
.preview-box .remove {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(15, 26, 44, .65); color: #fff; display: flex; align-items: center; justify-content: center;
}
.audio-preview {
  display: flex; align-items: center; gap: 14px; background: #F8FAFE;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 14px;
}
.audio-preview .ap-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-deep);
}
.audio-preview audio { flex: 1; height: 38px; min-width: 0; }
.sub-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }

/* ============ 隐私脱敏 ============ */
.privacy-summary {
  display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px;
  background: var(--blue-soft); border-radius: var(--r-md); font-size: 13px;
  color: #24456F; line-height: 1.7; margin-bottom: 16px;
}
.privacy-list { display: flex; flex-direction: column; gap: 8px; }
.priv-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #FBFCFE; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px; font-size: 13px;
}
.pv-type {
  flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep);
}
.pv-val { flex: 1; font-family: ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; color: var(--ink-2); font-size: 12.5px; }
.pv-val.masked { color: var(--risk-mid); }
.priv-toggle { display: flex; gap: 2px; background: #EEF1F6; border-radius: var(--r-sm); padding: 2px; flex-shrink: 0; }
.priv-toggle button { padding: 4px 9px; border-radius: 5px; font-size: 11px; font-weight: 600; color: var(--muted); }
.priv-toggle button.on { background: #fff; color: var(--blue-deep); box-shadow: var(--shadow-xs); }
.priv-preview {
  margin-top: 14px; background: #FBFCFE; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 14px; font-size: 13px; line-height: 1.8; word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2);
  max-height: 200px; overflow-y: auto;
}

/* ============ 分析进度 ============ */
.progress-card { max-width: 560px; margin: 40px auto; text-align: center; padding: 48px 32px; }
.progress-mark {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-deep);
  animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 120, 229, .18); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(52, 120, 229, 0); }
}
.progress-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); }
.progress-card .progress-sub { font-size: 13px; color: var(--muted); margin: 6px 0 26px; }
.step-list { max-width: 400px; margin: 0 auto; text-align: left; }
.step-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  color: var(--muted-2); font-size: 14.5px; font-weight: 500; transition: color .3s;
}
.step-row.active, .step-row.done { color: var(--ink); }
.st-dot {
  width: 24px; height: 24px; border-radius: 50%; background: #EDF0F5; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.step-row.done .st-dot { background: var(--risk-safe); color: #fff; }
.step-row.active .st-dot { background: var(--blue); color: #fff; animation: breathe 1.4s infinite; }

/* ============ 结果页：第一层结论 ============ */
.back-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.back-row .back-btn { flex-shrink: 0; }
.back-row .br-text { font-size: 13.5px; color: var(--muted); }

.conclusion {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #142B4A 0%, #1B3B63 100%);
  color: #fff; padding: 30px 32px; margin-bottom: 16px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .06);
}
.conclusion::after {
  content: ""; position: absolute; right: -90px; top: -110px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(76, 139, 240, .38) 0%, transparent 68%);
  pointer-events: none;
}
.conclusion.lv-high { background: linear-gradient(135deg, #3A1720 0%, #1D2B40 72%); }
.conclusion.lv-high::after { background: radial-gradient(circle, rgba(201, 54, 54, .42) 0%, transparent 68%); }
.conclusion.lv-mid { background: linear-gradient(135deg, #33260F 0%, #1D2B40 72%); }
.conclusion.lv-mid::after { background: radial-gradient(circle, rgba(216, 138, 20, .4) 0%, transparent 68%); }
.conclusion.lv-safe { background: linear-gradient(135deg, #0F2C24 0%, #16283C 72%); }
.conclusion.lv-safe::after { background: radial-gradient(circle, rgba(20, 160, 112, .38) 0%, transparent 68%); }

.conclusion-main { position: relative; z-index: 1; display: flex; gap: 28px; align-items: flex-start; }
.conc-body { flex: 1; min-width: 0; }
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em;
  color: rgba(214, 228, 249, .62); text-transform: uppercase;
}
.conc-risk { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.conc-risk .risk-badge { font-size: 13px; padding: 5px 12px; border-color: transparent; }
.conc-score { font-size: 13px; color: rgba(222, 234, 250, .7); }
.conc-headline { font-size: clamp(23px, 3vw, 31px); font-weight: 700; margin-top: 12px; letter-spacing: -.01em; }
.conc-sub { font-size: 13.5px; color: rgba(214, 228, 249, .72); margin-top: 8px; line-height: 1.7; }
.conc-action {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 20px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md); padding: 12px 14px;
}
.conc-action .ca-ico {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); color: #fff;
}
.conc-action .ca-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: rgba(214, 228, 249, .6); }
.conc-action b { display: block; font-size: 15px; font-weight: 600; margin-top: 1px; }
.conc-action .link-btn { color: #A8CBFF; margin-top: 4px; }
.emergency-strip {
  display: flex; align-items: center; gap: 9px; margin-top: 14px;
  background: rgba(201, 54, 54, .22); border: 1px solid rgba(255, 140, 140, .42);
  border-radius: var(--r-md); padding: 10px 14px; font-size: 13.5px; font-weight: 600;
}
.conclusion-side { position: relative; z-index: 1; flex-shrink: 0; text-align: center; }
.score-ring { position: relative; width: 104px; height: 104px; }
.score-ring svg { transform: rotate(-90deg); display: block; }
.score-ring .ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.1;
}
.ring-num { font-size: 27px; font-weight: 700; }
.ring-num span { font-size: 11px; opacity: .6; font-weight: 500; }
.ring-cap { font-size: 10.5px; color: rgba(214, 228, 249, .65); margin-top: 2px; }

/* 操作条 */
.ops-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ops-bar .btn { flex-shrink: 0; }
.ops-bar .ops-end { margin-left: auto; }

/* ============ 第二层：关键依据 ============ */
.score-block { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.score-line { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.score-big { font-size: 36px; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.score-big span { font-size: 14px; color: var(--muted); font-weight: 500; }
.score-cap { font-size: 13px; color: var(--muted); padding-bottom: 3px; }
.score-bar { height: 8px; border-radius: 99px; background: #EDF0F5; overflow: hidden; margin-top: 14px; }
.score-bar i { display: block; height: 100%; border-radius: 99px; transition: width .7s cubic-bezier(.2, .7, .3, 1); }
.score-note { font-size: 12px; color: var(--muted); margin-top: 9px; line-height: 1.75; display: flex; gap: 6px; align-items: flex-start; }
.score-note .ic { margin-top: 2px; flex-shrink: 0; }

.dim-list { display: flex; flex-direction: column; gap: 12px; }
.dim-row { display: grid; grid-template-columns: 96px 1fr 38px; gap: 12px; align-items: center; }
.dim-label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.dim-bar { height: 6px; border-radius: 99px; background: #EDF0F5; overflow: hidden; }
.dim-bar i { display: block; height: 100%; border-radius: 99px; transition: width .6s; }
.dim-val { font-size: 13.5px; font-weight: 700; text-align: right; }

.factor-list { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.factor-item { display: flex; align-items: flex-start; gap: 10px; }
.factor-tag {
  flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px;
  background: #F1F4F8; color: var(--muted); margin-top: 1px; white-space: nowrap;
}
.factor-text { font-size: 14px; color: var(--ink); line-height: 1.6; }
.factor-more { margin-top: 4px; }

.verify-mini { display: flex; flex-direction: column; gap: 8px; }
.verify-mini-head { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.verify-card {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; background: #FCFDFF;
}
.verify-card .vc-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; flex-wrap: wrap; }
.verify-card .vc-head .ic { color: var(--muted); }
.verify-card p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.vc-head .vtag { margin-left: auto; }

.status-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 15px; background: #F8FAFC; border: 1px solid var(--line);
  border-radius: var(--r-md); margin-top: 19px;
}
.status-bar .sb-label { font-size: 12px; color: var(--muted); }
.status-bar .btn { margin-left: auto; }

/* ============ 主动追问 ============ */
.probe-card {
  border: 1px solid var(--blue-line); background: linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 100%);
  border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 18px;
}
.probe-head { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; color: var(--navy); }
.probe-head .probe-ico {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-deep);
}
.probe-q { font-size: 14px; color: var(--ink-2); margin: 10px 0 14px; }
.probe-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.probe-opt {
  padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  font-weight: 500; font-size: 14px; background: #fff; transition: .16s; text-align: center;
}
.probe-opt:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-soft); }
.probe-opt.danger:hover { border-color: var(--risk-high); color: var(--risk-high); background: var(--risk-high-bg); }
.probe-free-row { display: flex; gap: 9px; margin-top: 12px; }
.probe-free-row input { flex: 1; min-width: 0; }

/* ============ 第三层：详细报告折叠 ============ */
.acc-group { display: flex; flex-direction: column; gap: 0; }
.acc { border-bottom: 1px solid var(--line); }
.acc:last-child { border-bottom: none; }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 16px 24px;
  font-size: 14.5px; font-weight: 600; text-align: left; color: var(--ink);
  transition: background .16s;
}
.acc-head:hover { background: #FAFBFD; }
.acc-head .acc-ico { color: var(--muted); }
.acc-head .acc-count { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.acc-head .arrow { margin-left: auto; color: var(--muted-2); transition: transform .2s; }
.acc.open .acc-head .arrow { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 24px 20px; }
.acc.open .acc-body { display: block; }

.detail-block { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.detail-block:last-child { border-bottom: none; }
.detail-block h4 { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.evidence-row { display: flex; flex-direction: column; gap: 4px; padding: 9px 0; }
.evidence-row + .evidence-row { border-top: 1px dashed var(--line); }
.ev-quote {
  align-self: flex-start; max-width: 100%; background: #FDF6E9; color: #7A4A08;
  padding: 4px 10px; border-radius: var(--r-xs); font-weight: 500; font-size: 12.5px;
  word-break: break-all; line-height: 1.6;
}
.ev-why { font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.dim-summary { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.75; }
.howto-list { padding-left: 18px; list-style: disc; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.howto-list li { margin: 3px 0; }
.disclaimer-line { font-size: 12px; color: var(--muted); line-height: 1.75; display: flex; gap: 6px; margin-top: 12px; }
.disclaimer-line .ic { flex-shrink: 0; margin-top: 2px; }

/* ============ 行动清单 ============ */
.action-list { display: flex; flex-direction: column; gap: 9px; }
.action-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #F8FAFC; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
}
.action-item.urgent { background: #FDF6F6; border-color: #F1D2D2; }
.ai-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  background: #E8EDF5; color: var(--ink-2);
}
.action-item.urgent .ai-num { background: var(--risk-high); color: #fff; }
.action-item b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.action-item p { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.7; }

/* ============ AI 追问 ============ */
.preset-qs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.chat-box { display: flex; flex-direction: column; gap: 12px; }
.chat-msgs {
  display: flex; flex-direction: column; gap: 14px; padding: 4px 2px;
  max-height: 440px; overflow-y: auto;
}
.chat-row { display: flex; gap: 9px; align-items: flex-start; }
.chat-row.me { flex-direction: row-reverse; }
.chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; background: var(--blue-soft); color: var(--blue-deep);
}
.chat-row.me .chat-avatar { background: #E9EDF3; color: var(--ink-2); }
.chat-bubble {
  max-width: 80%; background: #F5F7FA; border-radius: 3px 12px 12px 12px;
  padding: 11px 14px; font-size: 14px; line-height: 1.75; color: var(--ink);
  overflow-wrap: anywhere;
}
.chat-row.me .chat-bubble { background: var(--blue); color: #fff; border-radius: 12px 3px 12px 12px; }
.chat-bubble b { font-weight: 700; }
.chat-bubble ul { padding-left: 18px; list-style: disc; margin: 5px 0; }
.chat-bubble li { margin: 3px 0; }
.chat-bubble span[style] { color: inherit !important; opacity: .7; }
.chat-input-row { display: flex; gap: 9px; margin-top: 12px; }
.chat-input-row input {
  flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 11px 14px; font-size: 14px; background: #FBFCFE;
}
.chat-input-row input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(52, 120, 229, .12); }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); animation: bounce 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.kb-rec-list { display: flex; flex-direction: column; gap: 8px; }
.kb-rec-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #FCFDFF;
  cursor: pointer; font-size: 13.5px; font-weight: 500; transition: .16s; color: var(--ink);
  text-align: left; width: 100%;
}
.kb-rec-item:hover { border-color: var(--blue-line); color: var(--blue-deep); background: var(--blue-soft); }
.kb-rec-item .kc-icon { color: var(--blue-deep); display: flex; }
.kb-rec-item .arrow { margin-left: auto; color: var(--muted-2); }

/* ============ 反馈 ============ */
.feedback { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 18px; }
.feedback-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feedback-head b { font-size: 15px; font-weight: 700; color: var(--navy); }
.feedback-head span { font-size: 12.5px; color: var(--muted); }
.fb-btns { display: flex; gap: 8px; margin-left: auto; }
.fb-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: #fff; transition: .16s;
}
.fb-btn:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-soft); }
.fb-btn.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
.fb-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: none; }
.fb-panel.open { display: block; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.reason-chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: #fff;
}
.reason-chip.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
.fb-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fb-done {
  display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--risk-safe);
  background: var(--risk-safe-bg); border-radius: var(--r-md); padding: 12px 14px; font-weight: 500;
}
.fb-done .ic { flex-shrink: 0; }

/* ============ 历史记录 ============ */
.history-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.history-head .hh-main { flex: 1; min-width: 220px; }
.history-head h1 { font-size: var(--fs-xl); font-weight: 700; color: var(--navy); }
.history-head p { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.7; }
.history-tools {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 18px;
}
.search-box { position: relative; }
.search-box .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.search-box input {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 11px 14px 11px 40px; font-size: 14px; background: #FBFCFE;
}
.search-box input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(52, 120, 229, .12); }
.filter-row { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; margin-top: 10px; align-items: center; }
.filter-select-wrap { position: relative; }
.filter-select-wrap .ic { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
select.filter-select {
  width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--line-strong);
  border-radius: var(--r-md); padding: 10px 32px 10px 12px; font-size: 13.5px; background: #fff; color: var(--ink-2);
  cursor: pointer;
}
select.filter-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52, 120, 229, .12); }
.filter-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.filter-summary b { color: var(--ink); }
.reset-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--blue); }

.record-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; margin-bottom: 10px; transition: .16s;
}
.record-card:hover { border-color: var(--blue-line); box-shadow: var(--shadow-sm); }
.record-main { flex: 1; min-width: 0; }
.record-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.record-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.record-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.record-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.record-ops { display: flex; gap: 5px; flex-shrink: 0; }
.record-arrow { color: var(--muted-2); flex-shrink: 0; }

/* ============ 收藏 ============ */
.fav-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.fav-chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: .16s;
}
.fav-chip:hover { border-color: var(--blue-line); color: var(--blue-deep); }
.fav-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ============ 知识库 ============ */
.kb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kb-card {
  display: flex; gap: 15px; align-items: flex-start; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; transition: .18s;
}
.kb-card:hover { border-color: var(--blue-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kb-card .kc-icon {
  width: 42px; height: 42px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-deep);
}
.kb-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.kb-card p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.kb-detail-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.kb-detail-head .kc-icon {
  width: 56px; height: 56px; border-radius: var(--r-lg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-deep);
}
.kb-detail-head h1 { font-size: 24px; font-weight: 700; color: var(--navy); }
.kb-detail-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.kb-section { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 14px; }
.kb-section h4 {
  font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; padding-left: 11px; border-left: 3px solid var(--blue);
}
.kb-case {
  background: #F8FAFC; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 16px; font-size: 14px; line-height: 1.85; color: var(--ink-2);
}
.kb-body { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.kb-body ul { padding-left: 20px; list-style: disc; }
.kb-body li { margin: 6px 0; }

/* ============ 我的 ============ */
.profile-head {
  display: flex; align-items: center; gap: 18px; margin-bottom: 20px;
  background: linear-gradient(135deg, #142B4A 0%, #1B3B63 100%);
  border-radius: var(--r-xl); padding: 26px 28px; color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.profile-head::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(76, 139, 240, .35), transparent 68%);
}
.profile-head > * { position: relative; z-index: 1; }
.profile-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 22px; font-weight: 700;
}
.profile-name { font-size: 21px; font-weight: 700; }
.profile-sub { font-size: 13px; color: rgba(220, 232, 249, .74); margin-top: 3px; line-height: 1.7; }
.profile-head .btn { margin-left: auto; flex-shrink: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-cell { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 17px 18px; }
.stat-cell .sc-num { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-cell .sc-num.risk { color: var(--risk-high); }
.stat-cell .sc-num.mid { color: var(--risk-mid); }
.stat-cell .sc-cap { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.menu-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.menu-item {
  width: 100%; display: flex; align-items: center; gap: 13px; padding: 15px 20px;
  font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: left;
  border-bottom: 1px solid var(--line); transition: background .16s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: #FAFBFD; }
.mi-icon {
  width: 32px; height: 32px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #F1F4F8; color: var(--ink-2);
}
.mi-arrow { margin-left: auto; color: var(--muted-2); }
.menu-item.danger { color: var(--risk-high); }
.menu-item.danger .mi-icon { background: var(--risk-high-bg); color: var(--risk-high); }
.switch { position: relative; width: 44px; height: 25px; border-radius: 999px; background: #D5DBE5; transition: .2s; flex-shrink: 0; margin-left: auto; }
.switch.on { background: var(--blue); }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.switch.on::after { left: 22px; }
.storage-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #F8FAFC; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; font-size: 12.5px; color: var(--muted); line-height: 1.75; margin-bottom: 14px;
}
.storage-note .ic { flex-shrink: 0; margin-top: 2px; color: var(--muted-2); }
.storage-note b { color: var(--ink-2); font-weight: 600; }
.profile-foot { text-align: center; font-size: 12px; color: var(--muted-2); margin-top: 24px; line-height: 1.8; }

/* ============ 深度对话页 ============ */
.chat-page { max-width: 820px; margin: 0 auto; }
.chat-context {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 15px 18px; margin-bottom: 14px;
}
.chat-context .cc-main { flex: 1; min-width: 200px; }
.chat-context .cc-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.chat-context .cc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chat-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px; display: flex; flex-direction: column;
}
.chat-panel .chat-msgs { min-height: 300px; max-height: min(52vh, 520px); }
.chat-panel .chat-input-row { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.chat-note { font-size: 11.5px; color: var(--muted-2); text-align: center; margin-top: 10px; line-height: 1.7; }

/* ============ 分享 ============ */
.share-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.share-step { display: flex; align-items: center; gap: 5px; }
.share-step .ss-num {
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-deep); font-size: 10.5px; font-weight: 700;
}
.share-step.done .ss-num { background: var(--blue); color: #fff; }
.share-card-wrap { display: flex; justify-content: center; margin: 0 0 16px; }
.share-card-wrap canvas { border-radius: var(--r-md); box-shadow: var(--shadow-md); max-width: 100%; height: auto; }
.share-summary {
  background: #F8FAFC; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 15px; margin-bottom: 12px;
}
.share-summary h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.share-summary p { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
.privacy-check { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.check-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.check-row .ic { color: var(--risk-safe); flex-shrink: 0; }
.check-row.warn { color: var(--risk-mid); }
.check-row.warn .ic { color: var(--risk-mid); }
.link-box { display: flex; gap: 8px; margin-top: 6px; }
.link-box input {
  flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 9px 12px; font-size: 12px; background: #F8FAFC; color: var(--muted);
}
.share-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.7; margin-top: 8px; }
.share-landing-note {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted);
  margin-bottom: 14px; line-height: 1.7;
}

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(11, 23, 41, .52);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 460px;
  max-height: 88vh; overflow-y: auto; padding: 26px 26px 24px;
  box-shadow: 0 30px 80px -24px rgba(6, 18, 38, .55);
  animation: pop .2s ease-out;
}
.modal.modal-wide { max-width: 540px; }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.modal-title { font-size: 18px; font-weight: 700; color: var(--navy); flex: 1; }
.modal-x {
  width: 32px; height: 32px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  background: #F2F5F9; margin: -4px -4px 0 0;
}
.modal-x:hover { background: #E8ECF2; color: var(--ink); }
.modal .m-sub { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; }
.modal .m-ops { display: flex; gap: 9px; margin-top: 20px; }
.modal .m-ops .btn { flex: 1; }
.modal .field { margin-bottom: 14px; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field-hint { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 6px; }

.auth-tabs { display: flex; gap: 5px; background: #F1F4F8; border-radius: var(--r-sm); padding: 4px; margin-bottom: 18px; }
.auth-tab { flex: 1; padding: 7px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.auth-tab.on { background: #fff; color: var(--blue-deep); box-shadow: var(--shadow-xs); }
.auth-note {
  display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: var(--muted);
  line-height: 1.7; background: #F8FAFC; border-radius: var(--r-sm); padding: 10px 12px; margin-top: 12px;
}
.auth-note .ic { flex-shrink: 0; margin-top: 2px; }

.tag-select { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.tag-select .tp {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-weight: 500; font-size: 12.5px; background: #fff; color: var(--ink-2);
}
.tag-select .tp.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
.tag-new-row { display: flex; gap: 8px; }
.tag-new-row input { flex: 1; min-width: 0; }

/* ============ Toast ============ */
.toast-root {
  position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 300;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  background: rgba(19, 33, 55, .94); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg);
  max-width: 86vw; text-align: center; animation: toastIn .22s ease-out;
}
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero-inner { padding: 52px 24px 110px; grid-template-columns: 1.5fr .5fr; }
  .hero-art svg { max-width: 230px; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .topnav { display: none; }
  .topbar-actions .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .topbar-inner { gap: 14px; }
  .topbar-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 44px 22px 104px; }
  .hero-art { display: none; }
  .detect-panel { margin-left: 16px; margin-right: 16px; max-width: none; }
  .filter-row { grid-template-columns: repeat(2, 1fr); }
  .filter-row .reset-btn { grid-column: 1 / -1; justify-self: start; }
  .aux-grid { grid-template-columns: 1fr; }
  .kb-grid { grid-template-columns: 1fr; }
  .page { padding: 24px 18px 72px; }
  .footer-cols { gap: 36px; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .brand-name { font-size: 16.5px; }
  .brand-en { font-size: 8.5px; }
  .page { padding: 20px 14px 64px; }
  .hero-inner { padding: 36px 18px 96px; }
  .hero h1 { margin-top: 14px; }
  .hero-sub { font-size: 15.5px; }
  .hero-desc { font-size: 13.5px; }
  .detect-panel { margin-left: 10px; margin-right: 10px; border-radius: var(--r-lg); }
  .detect-panel-head { padding: 16px 16px 0; gap: 11px; }
  .detect-panel-head h2 { font-size: 16px; }
  .detect-panel-head p { font-size: 12px; }
  .panel-tabbar { padding: 12px 16px 0; gap: 2px; overflow-x: auto; }
  .pt-tab { padding: 10px 10px; font-size: 13.5px; white-space: nowrap; }
  .pt-pane { padding: 16px 16px 20px; }
  .panel-foot .btn { width: 100%; }
  .panel-foot .privacy-note { justify-content: center; width: 100%; }
  .scenario-grid { gap: 10px; }
  .scenario-card { padding: 14px; gap: 10px; }
  .sc-icon { width: 34px; height: 34px; }
  .sc-name { font-size: 14px; }
  .sc-desc { font-size: 11.5px; }
  .section-head { margin: 32px 0 13px; }
  .section-head h2 { font-size: 18px; }
  .section-head p { display: none; }
  .panel-head, .panel-body, .acc-head, .acc-body { padding-left: 16px; padding-right: 16px; }
  .panel-head { padding-top: 17px; }
  .panel-body { padding-bottom: 18px; }
  .card, .detect-card { padding: 18px 16px; }
  .check-grid { grid-template-columns: 1fr; }
  .conclusion { padding: 22px 18px; border-radius: var(--r-lg); }
  .conclusion-main { flex-direction: column; gap: 18px; }
  .conclusion-side { width: 100%; display: flex; justify-content: flex-start; }
  .score-ring { width: 88px; height: 88px; }
  .ring-num { font-size: 23px; }
  .conc-headline { font-size: 22px; }
  .ops-bar .ops-end { margin-left: 0; }
  .dim-row { grid-template-columns: 84px 1fr 34px; gap: 9px; }
  .probe-options { grid-template-columns: 1fr; }
  .probe-free-row { flex-direction: column; }
  .probe-free-row .btn { width: 100%; }
  .action-item { padding: 12px 13px; }
  .history-tools { padding: 12px; }
  .filter-row { grid-template-columns: 1fr; }
  .record-card { padding: 14px; flex-wrap: wrap; }
  .record-ops { width: 100%; justify-content: flex-end; border-top: 1px dashed var(--line); padding-top: 9px; margin-top: 2px; }
  .record-arrow { display: none; }
  .stat-grid { gap: 9px; }
  .stat-cell { padding: 14px 13px; }
  .stat-cell .sc-num { font-size: 22px; }
  .profile-head { padding: 20px; gap: 13px; flex-wrap: wrap; }
  .profile-head .btn { margin-left: 0; }
  .chat-msgs { max-height: none; }
  .chat-panel .chat-msgs { min-height: 260px; }
  .chat-bubble { max-width: 86%; font-size: 13.5px; }
  .preset-qs .chip { font-size: 12px; }
  .modal { padding: 22px 18px 20px; border-radius: var(--r-lg); }
  .modal-mask { padding: 12px; }
  .footer { padding: 28px 18px 32px; }
  .footer-inner { gap: 24px; }
  .footer-cols { gap: 32px; }
  .feedback { padding: 18px 16px; }
  .fb-btns { margin-left: 0; width: 100%; }
  .fb-btn { flex: 1; justify-content: center; }
  .kb-detail-head { gap: 12px; }
  .kb-detail-head .kc-icon { width: 46px; height: 46px; }
  .kb-detail-head h1 { font-size: 20px; }
  .kb-section { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
