/* 品牌 GEO 监测台 · 设计系统 v3
   基调：深海墨蓝 × 靛蓝 × 雾白——克制、有层次、商务感。
   相对 v2 的变化：
   · 边框一律改半透明墨线（从墨蓝黑衍生），去掉实色灰描边的模板感
   · 暗面（顶栏 / Hero / 登录侧栏 / 深色卡）统一「光晕 + 细网格 + 噪点」纹理
   · 落地页改不对称 bento 网格，Hero 增加玻璃拟态报告卡（标注「示意」）
   · 间距按 8px 规模校准；圆角外层大、内层小；按钮渐变 + 物理按压反馈
   · 数字一律等宽 + 表格数字列右对齐；单一强调色（靛蓝）+ 语义色 */

:root {
  /* ---- 色彩令牌（单一冷色族：中性色全部从墨蓝黑 hsl(222) 衍生） ---- */
  --bg: #f1f3f9;          /* 页面底色：雾白 */
  --surface: #ffffff;     /* 卡片面 */
  --surface-2: #f7f9fd;   /* 次级面：行悬浮、输入底 */
  --ink: #0d1731;         /* 主文字：墨蓝黑 */
  --ink-2: #3f4c6b;       /* 次级文字 */
  --muted: #76829f;       /* 弱化文字 / 提示 */
  --line: rgba(18, 31, 64, 0.10);    /* 描边：半透明墨线 */
  --line-2: rgba(18, 31, 64, 0.06);  /* 分隔线（更浅） */
  --navy: #080f22;        /* 深海墨蓝：顶栏 / Hero / 深色卡 */
  --navy-2: #131f45;      /* 深色渐变搭档 */
  --brand: #2d5cf5;       /* 靛蓝：唯一强调色 */
  --brand-deep: #1d43d8;  /* 强调色按压态 */
  --brand-bright: #5070ff; /* 主按钮渐变亮端 */
  --brand-2: #8fabff;     /* 暗色面上的亮蓝 */
  --brand-soft: #e9eeff;  /* 强调色浅底 */
  --good: #0e9d63;        /* 语义：成功 */
  --good-soft: #e1f5eb;
  --warn: #a96f0d;        /* 语义：警示 */
  --warn-soft: #fbf1dc;
  --bad: #d64545;         /* 语义：失败 */
  --bad-soft: #fdeaea;
  /* ---- 暗色面文字阶梯（白 → 雾蓝的透明度三档） ---- */
  --dw-1: rgba(255, 255, 255, 0.94);
  --dw-2: rgba(230, 237, 252, 0.74);
  --dw-3: rgba(230, 237, 252, 0.48);
  /* ---- 圆角规模：外层大、内层小 ---- */
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  /* ---- 投影：统一带墨蓝色温，不用纯黑 ---- */
  --shadow-1: 0 1px 2px rgba(13, 23, 49, 0.05), 0 10px 28px -14px rgba(13, 23, 49, 0.14);
  --shadow-2: 0 2px 6px rgba(13, 23, 49, 0.06), 0 24px 56px -20px rgba(13, 23, 49, 0.26);
  --shadow-brand: 0 8px 22px rgba(45, 92, 245, 0.32);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  /* ---- 暗面纹理：细网格 + 噪点（Hero / 登录侧栏共用） ---- */
  --grid-line: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  --noise: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.13'/></svg>");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(45, 92, 245, 0.18); }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.topbar :focus-visible { outline-color: #fff; }

h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
h1 { font-size: clamp(25px, 3vw, 31px); font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 19px; font-weight: 750; margin: 44px 0 16px; letter-spacing: -0.005em; }
h2:first-child { margin-top: 0; }
h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
p { text-wrap: pretty; }
.lede { color: var(--ink-2); font-size: 15px; max-width: 660px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.94em; }
.note { color: var(--muted); font-size: 13px; font-weight: 400; }

/* 小标签（kicker）：深色面用白字版本，浅色面用蓝字版本 */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--brand-deep); background: var(--brand-soft);
  border: 1px solid rgba(45, 92, 245, 0.18); border-radius: 999px; padding: 4px 14px;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.kicker.on-dark { color: #cdd9ff; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); }
.kicker.on-dark::before { background: var(--brand-2); }

/* ---- 顶栏：深海墨蓝 + 毛玻璃 ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 15, 34, 0.88);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 26px;
}
.brandmark { display: flex; align-items: baseline; gap: 9px; color: #fff; }
.brandmark .logo { font-weight: 800; font-size: 17px; letter-spacing: 0.02em; }
.brandmark .logo em { font-style: normal; color: var(--brand-2); }
.brandmark .sub { font-size: 11px; color: var(--dw-3); letter-spacing: 0.18em; font-family: var(--mono); }
.topnav { display: flex; gap: 4px; margin-left: auto; font-size: 14px; }
.topnav a {
  color: var(--dw-2); padding: 7px 14px; border-radius: 9px;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.topnav a.on { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.14); }

/* 顶栏用户区 */
.userbox { display: flex; align-items: center; gap: 12px; margin-left: 14px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.uname { color: var(--dw-2); font-size: 13.5px; }
/* 头像+昵称整体链到账户中心；移动端 .uname 隐藏时头像仍可点 */
.userbox .who { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.userbox .who:hover .uname { color: #fff; }
.bell {
  /* 固定 30px 圆盒与头像同节奏，emoji 居中；角标贴盒缘，不再压到相邻元素 */
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; text-decoration: none; line-height: 1;
  transition: background-color 0.18s ease;
}
.bell:hover { background: rgba(255, 255, 255, 0.08); }
.bell.has-unread { filter: drop-shadow(0 0 4px var(--brand-2)); }
.nbadge {
  position: absolute; top: -4px; right: -4px;
  background: var(--bad); color: #fff; font-size: 10.5px; line-height: 1;
  border-radius: 9px; padding: 2.5px 5.5px; font-weight: 700;
  box-shadow: 0 0 0 2px #080f22; /* 与顶栏底色同色的描边环，盖住底层图案 */
}
.logoutform { display: inline; }
.linkbtn {
  background: none; border: none; color: var(--dw-3);
  font-size: 13px; cursor: pointer; padding: 4px 2px;
  transition: color 0.18s ease;
}
.linkbtn:hover { color: #fff; }

/* ---- 版式 ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 34px 24px 88px; }
.container.narrow { max-width: 760px; }
.pagehead { margin-bottom: 30px; }
.pagehead .crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pagehead .crumb a { color: var(--muted); }
.pagehead .crumb a:hover { color: var(--brand); }

/* ---- 按钮：靛蓝渐变 + 物理反馈 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--r-sm);
  padding: 10px 20px; font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; line-height: 1.4;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand) 55%, #2450e4);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(13, 23, 49, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-brand);
  color: #fff;
}
.btn:active { transform: translateY(0) scale(0.98); box-shadow: 0 1px 2px rgba(13, 23, 49, 0.18); }
.btn.big { padding: 12px 26px; font-size: 15px; }
.btn.navy { background: linear-gradient(180deg, #1a2c62, var(--navy-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 1px 2px rgba(13, 23, 49, 0.3); }
.btn.navy:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 22px rgba(10, 18, 38, 0.32); }
.btn.light { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(8, 15, 34, 0.24); }
.btn.light:hover { background: #eef2fc; box-shadow: 0 8px 22px rgba(8, 15, 34, 0.28); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(45, 92, 245, 0.4); color: var(--brand-deep); background: var(--brand-soft); box-shadow: none; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btnrow.spaced { margin-bottom: 22px; }

/* ---- 卡片：半透明墨线 + 双层柔影 ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  padding: 26px 28px;
  margin-bottom: 18px;
}
.card.flat { padding: 0; overflow: hidden; }
.card .cardhead {
  padding: 16px 28px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px; font-weight: 700;
}
.card .cardbody { padding: 18px 28px 24px; }

/* ---- 徽标：方圆形（7px），不用全圆胶囊 ---- */
.pill {
  display: inline-block; border-radius: 7px;
  font-size: 12px; font-weight: 600; line-height: 1.7;
  padding: 2.5px 9px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pill.ok { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--bad-soft); color: var(--bad); }
.pill.dim { background: rgba(18, 31, 64, 0.07); color: var(--ink-2); }
.pill.accent { background: var(--brand-soft); color: var(--brand-deep); }

/* ---- 横幅 ---- */
.banner {
  border-radius: 11px; padding: 13px 17px; font-size: 14px;
  margin: 0 0 18px; border: 1px solid transparent;
}
.banner.info { background: var(--brand-soft); border-color: rgba(45, 92, 245, 0.22); color: #27408f; }
.banner.warn { background: var(--warn-soft); border-color: rgba(169, 111, 13, 0.24); color: #7a5514; }
.banner.err { background: var(--bad-soft); border-color: rgba(214, 69, 69, 0.26); color: var(--bad); }
.banner .x {
  float: right; background: none; border: none; cursor: pointer;
  color: inherit; opacity: 0.55; font-size: 17px; line-height: 1.2; padding: 0 2px 0 12px;
}
.banner .x:hover { opacity: 1; }

/* ---- 表单 ---- */
form.stack { display: grid; gap: 22px; }
fieldset { border: none; padding: 0; margin: 0; }
legend {
  font-weight: 700; font-size: 13.5px; color: var(--ink);
  padding: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
legend::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }
.field label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.field label .req { color: var(--brand); margin-left: 2px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
input[type="text"], input[type="url"], textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-sm); padding: 10px 13px; font: inherit; color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input::placeholder, textarea::placeholder { color: #a4aec6; }
input:focus, textarea:focus {
  outline: none; border-color: rgba(45, 92, 245, 0.7);
  box-shadow: 0 0 0 3px rgba(45, 92, 245, 0.14);
}
textarea { min-height: 92px; resize: vertical; }

/* ---- 表格 ---- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th {
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.04em; white-space: nowrap;
}
tbody tr { transition: background-color 0.15s ease; }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: none; }
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.tablewrap { overflow-x: auto; }
.tablewrap::-webkit-scrollbar { height: 8px; }
.tablewrap::-webkit-scrollbar-thumb { background: rgba(18, 31, 64, 0.16); border-radius: 4px; }

/* ---- Hero：深海墨蓝 + 光晕 + 网格噪点纹理 ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(52% 92% at 88% -12%, rgba(64, 106, 255, 0.35), transparent 62%),
    radial-gradient(38% 64% at -6% 110%, rgba(45, 92, 245, 0.22), transparent 60%),
    linear-gradient(148deg, #0b1430 0%, var(--navy) 46%, #101c43 100%);
  color: var(--dw-2);
  border-radius: var(--r-lg);
  padding: 54px 52px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.72fr);
  gap: 18px 46px;
  align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grid-line), var(--noise);
  background-size: 46px 46px, 140px 140px;
  -webkit-mask-image: radial-gradient(ellipse 92% 82% at 68% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 92% 82% at 68% 0%, #000 30%, transparent 80%);
}
.hero > * { position: relative; z-index: 1; }
.hero .herocopy { min-width: 0; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 44px); max-width: 640px; letter-spacing: -0.005em; margin: 18px 0 0; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero .herop { max-width: 600px; color: var(--dw-2); font-size: 15.5px; margin: 16px 0 30px; }
.hero .btnrow { margin-bottom: 0; }
.hero .steps {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 42px; padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.hero .step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dw-2); }
.hero .step b {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--brand-2); font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Hero 玻璃拟态报告卡（纯装饰，内容标注「示意」） */
.herovis { justify-self: end; width: min(100%, 368px); transform: rotate(1.2deg); }
.hv-card {
  background: rgba(19, 31, 69, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 30px 60px -24px rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hv-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dw-3); }
.hv-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--good); box-shadow: 0 0 0 3px rgba(14, 157, 99, 0.22); }
.hv-tag { margin-left: auto; font-size: 10.5px; color: var(--dw-3); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; padding: 1px 7px; }
.hv-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 18px; }
.hv-m { padding: 0 14px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hv-m:first-child { border-left: none; padding-left: 0; }
.hv-m small { display: block; font-size: 11.5px; color: var(--dw-3); margin-bottom: 3px; }
.hv-m b {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 21px; font-weight: 700; color: #fff; letter-spacing: -0.01em;
}
.hv-funnel { display: grid; gap: 9px; }
.hv-f { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: center; font-size: 11.5px; color: var(--dw-3); }
.hv-f span { white-space: nowrap; }
.hv-track { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.10); overflow: hidden; }
.hv-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2d54e0, #6f8dff); }

/* ---- 品牌列表行 ---- */
.brands .brow {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--line-2);
  transition: background-color 0.15s ease;
}
.brands .brow:hover { background: var(--surface-2); }
.brands .brow:last-child { border-bottom: none; }
.brands .bname { font-weight: 700; font-size: 15.5px; }
.brands .bname a { color: var(--ink); }
.brands .bname a:hover { color: var(--brand); }
.brands .bmeta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.brands .brow .go { margin-left: auto; font-size: 13px; white-space: nowrap; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }

/* 品牌首字徽标 */
.glyph {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(150deg, var(--navy-2), var(--navy));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 8px rgba(13, 23, 49, 0.2);
  color: #fff; font-size: 17px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---- 漏斗条 ---- */
.funnel { display: grid; gap: 14px; }
.funnel .frow { display: grid; grid-template-columns: 148px 1fr 84px; gap: 14px; align-items: center; }
.funnel .flabel { font-size: 13.5px; font-weight: 600; }
.funnel .flabel small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.funnel .ftrack { background: rgba(18, 31, 64, 0.08); border-radius: 7px; height: 26px; position: relative; overflow: hidden; }
.funnel .ffill {
  position: absolute; inset: 0 auto 0 0; border-radius: 7px;
  background: linear-gradient(90deg, #22409c, #3d63f2);
  transform-origin: left center;
  animation: fillIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.funnel .frow.hot .ffill {
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  box-shadow: 0 2px 12px rgba(45, 92, 245, 0.38);
}
.funnel .fnum { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 700; text-align: right; }
.funnel .fnum small { color: var(--muted); font-weight: 400; }
@keyframes fillIn { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .funnel .ffill { animation: none; }
}

/* ---- 任务进行中 ---- */
.jobbar {
  display: none; align-items: center; gap: 12px;
  background: var(--navy); color: #e6edfc;
  border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-size: 14px;
  box-shadow: var(--shadow-1);
}
.jobbar.show { display: flex; }
.jobbar .dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--brand-2);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.72); } }

/* ---- 报告正文（markdown 渲染） ---- */
.report { font-size: 15px; }
.report h1 { font-size: 26px; margin: 0 0 4px; }
.report h2 { margin-top: 36px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.report p, .report ul, .report ol { max-width: 46em; }
.report blockquote {
  margin: 14px 0; padding: 10px 16px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft); color: var(--ink-2); font-size: 13.5px;
  border-radius: 0 8px 8px 0;
}
.report code { font-family: var(--mono); font-size: 0.88em; background: rgba(18, 31, 64, 0.06); padding: 1px 6px; border-radius: 5px; }
.report pre { background: var(--navy); color: #e6eaf8; padding: 16px 18px; border-radius: 12px; overflow-x: auto; }
.report pre code { background: none; padding: 0; }
.report table { border: 1px solid var(--line); }
.report img { max-width: 100%; }
.profile-doc { white-space: pre-wrap; font-family: inherit; margin: 0; font-size: 14px; color: var(--ink); }

/* ---- 登录页：分屏（左侧品牌叙事 / 右侧扫码） ---- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.08fr 1fr; }
.authside {
  position: relative; overflow: hidden; padding: 44px 52px;
  background:
    radial-gradient(56% 70% at -10% 108%, rgba(64, 106, 255, 0.32), transparent 62%),
    linear-gradient(152deg, #0b1430 0%, var(--navy) 52%, #101c43 100%);
  color: var(--dw-2); display: flex; flex-direction: column;
}
.authside::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grid-line), var(--noise);
  background-size: 46px 46px, 140px 140px;
  -webkit-mask-image: radial-gradient(ellipse 90% 72% at 20% 100%, #000 28%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 72% at 20% 100%, #000 28%, transparent 78%);
}
.authside > * { position: relative; z-index: 1; }
.authside h2 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; margin: 44px 0 0; max-width: 440px; letter-spacing: -0.005em; }
.authside h2 em { font-style: normal; color: var(--brand-2); }
.authside .sidepts { margin: 34px 0 0; display: grid; gap: 18px; max-width: 460px; }
.authside .sidept { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--dw-2); }
.authside .sidept b {
  width: 24px; height: 24px; border-radius: 8px; flex: none; margin-top: 2px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--brand-2); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.authside .sidept strong { display: block; color: #fff; font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.authside .sidefoot { margin-top: auto; padding-top: 28px; font-size: 12.5px; color: var(--dw-3); }
.authmain {
  background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 44px 28px; gap: 18px;
}
.authcard {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); padding: 36px 34px 32px; text-align: center;
}
.authcard h1 { font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.authcard .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.authfoot { font-size: 12.5px; color: var(--muted); text-align: center; }
.authfoot a { color: var(--ink-2); font-weight: 600; }

/* 二维码区 */
.qrbox { text-align: center; }
.qr-imgwrap {
  position: relative; /* 票据过期刷新遮罩（.qr-refresh）的定位锚点 */
  width: 232px; margin: 0 auto; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-1);
}
.qr-imgwrap img { width: 100%; height: auto; border-radius: 6px; display: block; }
.qr-placeholder {
  width: 200px; height: 200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(18, 31, 64, 0.18); border-radius: 12px;
  color: var(--muted); font-size: 13.5px; background: var(--surface-2);
}
.qr-hint { color: var(--muted); font-size: 13.5px; margin: 16px 0 10px; }
.qrbox.demo .btn { margin-top: 4px; }
/* 票据过期遮罩：盖住二维码，大刷新图标 + 一句话，点击原地换新码（login.js 动态生成） */
.qr-refresh {
  position: absolute; inset: 0; z-index: 1; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, 0.94); font: inherit; color: var(--ink-2);
}
.qr-refresh svg {
  width: 70px; height: 70px; padding: 13px;
  border-radius: 50%; background: var(--brand); color: #fff;
  box-shadow: var(--shadow-brand); transition: transform 0.25s;
}
.qr-refresh:hover svg { transform: rotate(120deg); }
.qr-refresh span { font-size: 13px; color: var(--muted); }

/* ---- 定价页 ---- */
.plans { display: grid; grid-template-columns: 1fr 1fr 1.12fr 1fr; gap: 22px; align-items: stretch; margin-top: 8px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); padding: 28px 26px 26px;
}
.plan .plan-name { font-size: 16.5px; font-weight: 750; }
.plan .plan-for { font-size: 13px; color: var(--muted); margin: 2px 0 16px; min-height: 40px; }
.plan .plan-price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.plan .plan-price small { font-size: 13px; font-weight: 500; color: var(--muted); font-family: inherit; }
.plan .plan-bill { font-size: 12.5px; color: var(--muted); margin: 4px 0 18px; min-height: 20px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.plan ul li { display: flex; gap: 9px; align-items: baseline; }
.plan ul li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); flex: none; transform: translateY(-1px); }
.plan .btn { margin-top: auto; width: 100%; }
.plan .plan-note { display: none; margin-top: 12px; font-size: 12.5px; color: var(--warn); line-height: 1.6; }
.plan .plan-note.show { display: block; }
.plan.hot {
  background:
    radial-gradient(72% 56% at 82% -8%, rgba(64, 106, 255, 0.4), transparent 62%),
    linear-gradient(160deg, #0b1430 0%, var(--navy-2) 100%);
  border-color: rgba(255, 255, 255, 0.08); color: var(--dw-2);
  box-shadow: var(--shadow-2);
  transform: translateY(-8px);
}
.plan.hot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: var(--noise);
}
.plan.hot > * { position: relative; z-index: 1; }
.plan.hot .plan-name { color: #fff; }
.plan.hot .plan-for, .plan.hot .plan-bill { color: var(--dw-3); }
.plan.hot .plan-price { color: #fff; }
.plan.hot .plan-price small { color: var(--dw-3); }
.plan.hot ul { color: var(--dw-2); }
.plan.hot ul li::before { background: var(--brand-2); }
.plan.hot .plan-note { color: #ffd88a; }
.plan .plan-unit { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--brand); margin: 2px 0 0; }
.plan .plan-unit b { font-weight: 750; }
.plan.hot .plan-unit { color: var(--brand-2); }
.plan .planbadge {
  position: absolute; top: -13px; left: 26px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 8px; padding: 3px 12px; box-shadow: var(--shadow-brand);
}
/* ---- 定价页能力对比表 ---- */
.cmpwrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); }
.cmp { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 13.5px; }
.cmp th, .cmp td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp thead th { font-weight: 750; background: var(--surface-2); }
.cmp thead th small { display: block; margin-top: 2px; font-weight: 500; font-family: var(--mono); color: var(--muted); }
.cmp thead th.hot { color: var(--brand); }
.cmp tbody th { text-align: left; font-weight: 600; color: var(--muted); width: 148px; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cmp tr.cmp-unit td { font-family: var(--mono); font-weight: 750; color: var(--brand); }
.plans-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 32px; }
.plans-foot a { font-weight: 600; }

/* ---- 通知 ---- */
.notif .brow {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--line-2);
}
.notif .brow:last-child { border-bottom: none; }
.notif .bname { font-weight: 600; font-size: 14.5px; }
.notif .bname a { color: var(--ink); }
.notif .bname a:hover { color: var(--brand); }
.notif .bname .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.notif .bmeta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.notif .brow .go { margin-left: auto; white-space: nowrap; }
.notif .brow.unread { background: #f6f9ff; box-shadow: inset 3px 0 0 var(--brand); }

/* ---- 错误页 ---- */
.errorwrap { text-align: center; padding: 72px 20px 40px; }
.errorwrap .code { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--brand); letter-spacing: 0.1em; }
.errorwrap h1 { font-size: 26px; margin: 10px 0 12px; }
.errorwrap p { color: var(--ink-2); max-width: 480px; margin: 0 auto 26px; }

/* ---- 进场动效 ---- */
.reveal { opacity: 0; transform: translateY(10px); animation: rise 0.5s ease forwards; }
.reveal.d1 { animation-delay: 0.06s; } .reveal.d2 { animation-delay: 0.12s; }
.reveal.d3 { animation-delay: 0.18s; } .reveal.d4 { animation-delay: 0.24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .jobbar .dot { animation: none; }
  .lf-step::before { animation: none; }
}

/* ---- 页脚 ---- */
footer.site { border-top: 1px solid var(--line); }
footer.site .site-inner {
  max-width: 1140px; margin: 0 auto; padding: 26px 24px 40px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 12.5px;
}
footer.site .sitenav a { color: var(--ink-2); font-weight: 600; margin: 0 4px; }
footer.site .sitenav a:hover { color: var(--brand); }
footer.site .sitenav span { color: var(--line); }
footer.site .disclaim { color: #98a2bd; }
/* 版权与备案行：独占一行，字号更小颜色更淡，备案号链接到工信部 */
footer.site .legal { flex-basis: 100%; margin-top: 6px; color: #98a2bd; font-size: 12px; }
footer.site .legal a { color: #98a2bd; }
footer.site .legal a:hover { color: var(--brand); }

/* ---- 官网落地页：不对称 bento ---- */
.landing-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.landing-grid .lg { margin-bottom: 0; display: flex; flex-direction: column; }
.landing-grid .lg b { font-size: 16px; }
.landing-grid .lg p { color: var(--ink-2); font-size: 14px; line-height: 1.7; margin: 10px 0 0; }
.lg-a { grid-column: span 4; }
.lg-a .lg-engines { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.lg-a .lg-engines span {
  font-size: 12.5px; color: var(--brand-deep); background: var(--brand-soft);
  border: 1px solid rgba(45, 92, 245, 0.16); border-radius: 999px; padding: 3px 12px;
}
.lg-b {
  grid-column: span 2;
  background:
    radial-gradient(88% 64% at 90% -10%, rgba(64, 106, 255, 0.38), transparent 60%),
    linear-gradient(160deg, #0b1430 0%, var(--navy-2) 100%);
  border-color: rgba(255, 255, 255, 0.08); color: var(--dw-2);
  box-shadow: var(--shadow-1);
}
.lg-b b { color: #fff; }
.lg-b p { color: var(--dw-2) !important; }
/* L3 卡：暗面大卡（与 Hero / lg-b 同一「光晕 + 网格 + 噪点」纹理族）。
   选择器带 .landing-grid 前缀：特异性必须压过 .landing-grid .lg 的 display:flex，分栏才生效 */
.landing-grid .lg-c {
  grid-column: span 6;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: 14px 40px; align-items: center;
  background:
    radial-gradient(64% 140% at 96% -24%, rgba(64, 106, 255, 0.36), transparent 60%),
    linear-gradient(150deg, #0b1430 0%, var(--navy-2) 100%);
  border-color: rgba(255, 255, 255, 0.08); color: var(--dw-2);
  box-shadow: var(--shadow-1);
}
.lg-c::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grid-line), var(--noise);
  background-size: 46px 46px, 140px 140px;
  -webkit-mask-image: radial-gradient(ellipse 92% 110% at 74% 0%, #000 28%, transparent 84%);
  mask-image: radial-gradient(ellipse 92% 110% at 74% 0%, #000 28%, transparent 84%);
}
.lg-c > * { position: relative; z-index: 1; }
.lg-c b { color: #fff; }
.lg-c .lg-ctext p { margin-bottom: 0; color: var(--dw-2) !important; }

/* 漏斗阶梯：四级台阶逐级升高、逐级点亮，呼应「看每一层是否往上走」；L4 全亮为目标台阶 */
.lg-funnel {
  display: flex; align-items: flex-end; gap: 9px;
  width: min(448px, 100%);
  padding-bottom: 1px; border-bottom: 1px solid rgba(143, 171, 255, 0.28);
}
.lf-step {
  --i: 0; --h: 62px; --lit: 0.16; --top: 0.4;
  position: relative; flex: 1 1 0; min-width: 0; height: var(--h);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 9px 4px 11px;
  border: 1px solid rgba(143, 171, 255, 0.20); border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(80, 112, 255, var(--lit)) 0%, rgba(80, 112, 255, 0.03) 100%), rgba(255, 255, 255, 0.02);
  overflow: hidden; text-align: center;
}
.lf-step:nth-child(2) { --i: 1; --h: 82px; --lit: 0.24; --top: 0.55; }
.lf-step:nth-child(3) { --i: 2; --h: 102px; --lit: 0.34; --top: 0.75; }
.lf-step:nth-child(4) { --i: 3; --h: 122px; --lit: 0.5; --top: 1; }
/* 台阶顶灯：按 L1→L4 顺序错峰呼吸，像信号沿漏斗逐级上行；L4 常亮收束 */
.lf-step::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-2) 30%, #fff 50%, var(--brand-2) 70%, transparent);
  box-shadow: 0 0 14px rgba(80, 112, 255, 0.9);
  opacity: var(--top);
  animation: lfBreath 2.8s ease-in-out calc(var(--i) * 0.7s - 2.8s) infinite;
}
.lf-step i {
  font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--brand-2); opacity: 0.9;
}
.lf-step b { font-size: 12.5px; font-weight: 600; color: var(--dw-1); white-space: nowrap; line-height: 1.4; }
.lf-step:last-child {
  border-color: rgba(143, 171, 255, 0.55);
  background: linear-gradient(180deg, rgba(80, 112, 255, 0.85) 0%, rgba(45, 92, 245, 0.28) 100%);
  box-shadow: 0 -6px 30px -8px rgba(45, 92, 245, 0.65), inset 0 0 24px rgba(80, 112, 255, 0.25);
}
.lf-step:last-child::before { animation: none; opacity: 1; box-shadow: 0 0 18px rgba(143, 171, 255, 1); }
.lf-step:last-child i { color: #fff; opacity: 1; }
@keyframes lfBreath {
  0%, 100% { opacity: var(--top); filter: brightness(0.8); }
  50% { opacity: 1; filter: brightness(1.35); }
}
.landing-gain { display: grid; }
.landing-gain > div { display: grid; gap: 4px; padding: 16px 28px; border-bottom: 1px solid var(--line-2); }
.landing-gain > div:first-child { padding-top: 24px; }
.landing-gain > div:last-child { border-bottom: none; padding-bottom: 4px; }
.landing-gain b { font-size: 15px; }
.landing-gain span { color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
.landing-price { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.landing-price .card { display: grid; gap: 8px; align-content: start; }
.landing-price .card.hot { border: 1px solid rgba(45, 92, 245, 0.5); box-shadow: var(--shadow-brand); }
.landing-price .card span { color: var(--ink-2); font-size: 13.5px; }
.landing-price .lp-num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; color: var(--ink); }
.landing-price .btn { justify-self: start; }

/* ---- 顶栏次数余额徽标 ---- */
.userbox .credits { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---- 弹层（扫码登录 / 支付） ---- */
.modal-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 15, 34, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
/* display:flex 会盖掉 hidden 属性的 UA display:none（作者样式优先），必须显式补回，否则弹层一加载就常驻 */
.modal-mask[hidden] { display: none; }
.modal { position: relative; width: 100%; max-width: 400px; text-align: center; }
.modal h1 { margin-bottom: 8px; }
.modal .qr-imgwrap { margin: 6px auto 0; }
.modalclose {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; font-size: 24px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 4px;
}
.modalclose:hover { color: var(--ink); }
.modal .qrbox { display: grid; gap: 12px; justify-items: center; }

/* ---- 响应式 ---- */
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .plan.hot { transform: none; }
  .auth { grid-template-columns: 1fr; }
  .authside { display: none; }
  .herovis { display: none; }
  .hero { grid-template-columns: 1fr; }
  .landing-grid .lg-a, .landing-grid .lg-b { grid-column: span 6; }
  .landing-grid .lg-c { grid-template-columns: 1fr; }
  .landing-grid, .landing-price { grid-template-columns: 1fr; }
  .landing-grid { display: grid; }
}
@media (max-width: 720px) {
  .container { padding: 22px 16px 64px; }
  /* 窄屏顶栏：品牌+用户区一行，导航下沉为第二行（可横滚），避免文字折行挤压 */
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 16px 4px; gap: 6px 14px; }
  .brandmark .sub { display: none; }
  .brandmark .logo { white-space: nowrap; }
  .topnav { order: 3; width: 100%; margin-left: -6px; gap: 2px; font-size: 13.5px; overflow-x: auto; }
  .topnav a { white-space: nowrap; padding: 7px 9px; }
  .userbox { margin-left: auto; gap: 10px; }
  .userbox .uname { display: none; }
  .userbox .credits { font-size: 11.5px; padding: 2px 8px; }
  .hero { padding: 40px 26px 0; border-radius: var(--r-md); }
  .hero .steps { gap: 14px; }
  h1 { font-size: 25px; }
  .funnel .frow { grid-template-columns: 104px 1fr 66px; }
  .authcard { padding: 26px 22px 24px; }
  .card { padding: 22px 20px; }
  .card.flat { padding: 0; }
}
