@charset "UTF-8";
/* AI任务网 airenwu.cn · 视觉系统
   亮色为默认（白色主色调），data-theme="dark" 切换为暗色，全部走 CSS 变量 */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fd;
  --bg-alt: #fbfcff;
  --surface: #ffffff;
  --surface-2: #f4f6fc;
  --surface-3: #eef2fb;
  --border: #e5e9f4;
  --border-strong: #d6ddef;
  --text: #161c30;
  --text-2: #4b5570;
  --text-3: #7d87a1;
  --primary: #4f6bff;
  --primary-2: #6f5bff;
  --primary-soft: #eef1ff;
  --teal: #0ea5a4;
  --teal-soft: #e6f7f6;
  --orange: #e0733a;
  --orange-soft: #fff0e7;
  --green: #1a9c6b;
  --red: #df4c5b;
  --shadow: 0 8px 30px rgba(28, 42, 92, .07);
  --shadow-lg: 0 20px 60px rgba(28, 42, 92, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 68px;
  --grad: linear-gradient(115deg, #4f6bff 0%, #6f5bff 46%, #0ea5a4 100%);
  --grad-soft: linear-gradient(135deg, #f2f4ff 0%, #eaf9f8 100%);
}
[data-theme="dark"] {
  --bg: #0c1120;
  --bg-soft: #101728;
  --bg-alt: #0e1526;
  --surface: #151d31;
  --surface-2: #1b2439;
  --surface-3: #222d47;
  --border: #27324b;
  --border-strong: #354260;
  --text: #eef2ff;
  --text-2: #b3bed8;
  --text-3: #8592b0;
  --primary: #7d90ff;
  --primary-2: #a48cff;
  --primary-soft: #202a4b;
  --teal: #35c9c2;
  --teal-soft: #143536;
  --orange: #f09868;
  --orange-soft: #3a2a22;
  --green: #43c995;
  --red: #ff7181;
  --shadow: 0 8px 30px rgba(0, 0, 0, .22);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .38);
  --grad: linear-gradient(115deg, #5b74ff 0%, #8f73ff 46%, #24b3ac 100%);
  --grad-soft: linear-gradient(135deg, #17203a 0%, #122c31 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.container { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.strong { font-weight: 700; }
.hide { display: none !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.spacer { height: 12px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 18px rgba(79, 107, 255, .3); letter-spacing: -.5px; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; white-space: nowrap; }
.brand-sub { font-size: 10.5px; color: var(--text-3); letter-spacing: .2px; line-height: 1.25; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex-shrink: 0; }
.nav-link {
  padding: 7px 10px; border-radius: 9px; font-size: 13px; color: var(--text-2);
  font-weight: 600; transition: .18s; white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link.active { color: var(--primary); background: var(--primary-soft); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; font-size: 16px;
  transition: .18s; color: var(--text-2); flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.theme-toggle {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--text-2); transition: .18s;
  flex-shrink: 0; white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .dot { font-size: 15px; }
.search-trigger {
  display: flex; align-items: center; gap: 7px; height: 36px; width: 128px; padding: 0 10px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-3); font-size: 12.5px; transition: .18s; text-align: left;
  white-space: nowrap; flex-shrink: 0;
}
.search-trigger .si { font-size: 13px; flex-shrink: 0; }
.search-trigger .st { overflow: hidden; text-overflow: ellipsis; }
.search-trigger:hover { border-color: var(--primary); background: var(--surface); }
.search-trigger .kbd {
  margin-left: auto; font-size: 10px; border: 1px solid var(--border-strong);
  border-radius: 5px; padding: 1px 4px; color: var(--text-3); flex-shrink: 0;
}
.menu-btn { display: none; }

/* ---------- 通用按钮 / 标签 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 700; transition: .18s; background: var(--surface-2); color: var(--text);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(79, 107, 255, .22); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(79, 107, 255, .32); }
.btn-outline { border-color: var(--border-strong); background: transparent; color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-teal { background: var(--teal-soft); color: var(--teal); }
.btn-sm { min-height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-lg { min-height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.chip.primary { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.chip.teal { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.chip.orange { background: var(--orange-soft); color: var(--orange); border-color: transparent; }
.chip.green { background: rgba(26,156,107,.12); color: var(--green); border-color: transparent; }
.chip.red { background: rgba(223,76,91,.12); color: var(--red); border-color: transparent; }
.tag { padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-3); font-size: 11px; }
.badge-hot { background: var(--grad); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; }

/* ---------- 页面结构 ---------- */
.view { display: none; animation: fadeUp .35s ease both; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.section { padding: 56px 0; }
.section.tight { padding: 32px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 26px; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 12px;
  font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 9px;
}
.section-kicker::before { content: ''; width: 18px; height: 2px; background: var(--primary); border-radius: 2px; }
.section-title { font-size: clamp(23px, 3vw, 32px); font-weight: 800; letter-spacing: -.7px; line-height: 1.3; margin: 0 0 8px; }
.section-desc { color: var(--text-2); font-size: 14px; max-width: 760px; margin: 0; }
.page-hero {
  padding: 38px 0 30px; background: var(--grad-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 10px; letter-spacing: -1px; font-weight: 800; }
.page-hero p { margin: 0; color: var(--text-2); max-width: 800px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card.pad-sm { padding: 15px; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }
.card-title { font-size: 15.5px; font-weight: 800; margin: 0 0 7px; letter-spacing: -.2px; }
.card-desc { font-size: 13px; color: var(--text-2); margin: 0; }
.card-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: 19px; font-weight: 800; margin-bottom: 14px;
}
.card-icon.teal { background: var(--teal-soft); color: var(--teal); }
.card-icon.orange { background: var(--orange-soft); color: var(--orange); }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 68px 0 58px; background: var(--bg); }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(79,107,255,.16) 0%, rgba(14,165,164,.09) 42%, transparent 70%);
  pointer-events: none; filter: blur(10px);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 60% 60% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 70% 30%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr .88fr; gap: 44px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 20px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(26,156,107,.16); }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.16; letter-spacing: -2px; margin: 0 0 16px; font-weight: 850; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 16px; color: var(--text-2); max-width: 600px; margin: 0 0 26px; }
.hero-input {
  display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 15px; box-shadow: var(--shadow-lg); max-width: 620px;
}
.hero-input input {
  flex: 1; border: 0; outline: 0; background: transparent; padding: 8px 12px; font-size: 14px; min-width: 0;
}
.hero-input .btn { border-radius: 10px; }
.hero-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-hints button {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-3);
  border-radius: 999px; padding: 4px 11px; font-size: 11.5px; transition: .18s;
}
.hero-hints button:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.hero-stats { display: flex; gap: 30px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 24px; font-weight: 850; letter-spacing: -1px; line-height: 1.2; }
.hero-stat span { font-size: 12px; color: var(--text-3); }
.hero-visual { position: relative; }
.flow-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 18px; overflow: hidden;
}
.flow-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.flow-dots { display: flex; gap: 5px; }
.flow-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.flow-line { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); margin-bottom: 8px; font-size: 12.5px; }
.flow-line .num { width: 20px; height: 20px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.flow-line .ai { margin-left: auto; font-size: 10.5px; }
.flow-arrow { text-align: center; color: var(--text-3); font-size: 12px; line-height: 1; margin: -2px 0 4px; }
.flow-progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.flow-progress i { display: block; height: 100%; width: 71%; background: var(--grad); border-radius: 999px; }
.float-chip {
  position: absolute; right: -12px; top: 30%; padding: 9px 13px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: 11.5px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.float-chip.bottom { top: auto; bottom: -14px; right: auto; left: -14px; }

/* ---------- 产业链 ---------- */
.chain-lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lane { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.lane-head { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.lane-head .lane-en { font-size: 10.5px; letter-spacing: 1.4px; font-weight: 800; opacity: .75; }
.lane-head h3 { margin: 3px 0 5px; font-size: 17px; font-weight: 800; }
.lane-head p { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.55; }
.node-list { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.chain-node {
  width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; transition: .18s;
}
.chain-node:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateX(3px); }
.chain-node .idx { font-size: 10.5px; font-weight: 800; color: var(--text-3); width: 20px; }
.chain-node .nm { font-size: 13px; font-weight: 700; }
.chain-node .ar { margin-left: auto; color: var(--text-3); font-size: 12px; }
.node-detail { border: 1px solid var(--primary); background: var(--primary-soft); border-radius: 12px; padding: 16px; margin-top: 16px; }
.node-detail h4 { margin: 0 0 10px; font-size: 16px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-item { background: var(--surface); border-radius: 10px; padding: 12px; }
.detail-item .lb { font-size: 11px; color: var(--text-3); font-weight: 700; margin-bottom: 5px; }
.detail-item .tx { font-size: 12.5px; line-height: 1.55; }

/* ---------- 任务 / 市场卡片 ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 11px; color: var(--text-3); font-weight: 700; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  border-radius: 9px; padding: 9px 11px; font-size: 13px; outline: 0; transition: .18s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.range { width: 100%; accent-color: var(--primary); }
.task-card { display: flex; flex-direction: column; gap: 12px; }
.task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.task-title { font-size: 15.5px; font-weight: 800; line-height: 1.45; margin: 0; letter-spacing: -.2px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.task-nums { display: flex; gap: 18px; border-top: 1px dashed var(--border); padding-top: 12px; }
.task-num b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.4px; }
.task-num span { font-size: 11px; color: var(--text-3); }
.meter { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.tool-card .tool-head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.tool-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 18px; font-weight: 800;
}
.provider-avatar {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface-3); color: var(--primary); font-weight: 800; font-size: 17px;
}
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.hot { border-color: var(--primary); box-shadow: 0 12px 36px rgba(79,107,255,.16); }
.price-card .price { font-size: 32px; font-weight: 850; letter-spacing: -1.4px; line-height: 1.2; }
.price-card .price small { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 14px 0 20px; display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: var(--text-2); }
.price-card ul li::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 8px; }
.price-card .btn { margin-top: auto; }

/* ---------- 表格 / 列表 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 800; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty .em-icon { font-size: 34px; display: block; margin-bottom: 10px; opacity: .6; }

/* ---------- Tabs / 步骤 / 时间轴 / 折叠 ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); overflow-x: auto; padding-bottom: 2px; }
.tab {
  padding: 9px 14px; border: 0; background: transparent; color: var(--text-2); font-weight: 700;
  font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; transition: .18s;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; padding-top: 20px; }
.tab-panel.active { display: block; animation: fadeUp .3s ease both; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.step { flex: 1; min-width: 108px; padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11.5px; text-align: center; }
.step.done { background: var(--teal-soft); border-color: transparent; color: var(--teal); font-weight: 700; }
.step.current { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 800; }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.tl-item { position: relative; padding: 0 0 20px 8px; }
.tl-item::before { content: ''; position: absolute; left: -22px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--primary-soft); }
.tl-year { font-size: 12px; font-weight: 800; color: var(--primary); }
.tl-title { font-weight: 800; font-size: 14.5px; margin: 2px 0 3px; }
.tl-text { font-size: 12.5px; color: var(--text-2); }
.acc-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 9px; background: var(--surface); overflow: hidden; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: transparent; border: 0; font-weight: 700; font-size: 14px; text-align: left; }
.acc-head:hover { background: var(--surface-2); }
.acc-body { display: none; padding: 0 16px 16px; color: var(--text-2); font-size: 13px; line-height: 1.8; }
.acc-item.open .acc-body { display: block; }

/* ---------- 图表 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 17px; }
.kpi .lb { font-size: 12px; color: var(--text-3); }
.kpi .vl { font-size: 25px; font-weight: 850; letter-spacing: -1px; margin: 4px 0; }
.chart-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-2); margin-top: 8px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.bar-row .bl { width: 110px; flex-shrink: 0; color: var(--text-2); }
.bar-track { flex: 1; height: 9px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 999px; }
.bar-row .bv { width: 36px; text-align: right; font-weight: 700; }

/* ---------- 弹窗 / Toast / 抽屉 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 34, .55);
  backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-backdrop.open { display: flex; animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(680px, 100%); max-height: min(86vh, 900px); overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: popIn .25s ease both;
}
.modal.wide { width: min(900px, 100%); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toast-wrap { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
  min-width: 210px; max-width: 340px; padding: 12px 15px; border-radius: 11px; background: var(--surface);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 9px; animation: slideIn .25s ease both;
}
.toast.ok { border-left: 4px solid var(--green); }
.toast.warn { border-left: 4px solid var(--orange); }
.toast.err { border-left: 4px solid var(--red); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.drawer-mask { position: fixed; inset: 0; z-index: 80; background: rgba(10,16,34,.45); display: none; }
.drawer-mask.open { display: block; }
.drawer {
  position: fixed; z-index: 90; left: 0; top: 0; bottom: 0; width: min(290px, 82vw);
  background: var(--surface); border-right: 1px solid var(--border); padding: 18px;
  transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer .nav-link { display: block; padding: 11px 12px; font-size: 14px; margin-bottom: 3px; }
.bottom-nav { display: none; }

/* ---------- 搜索面板 ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(10,16,34,.5); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; padding: 9vh 16px 16px; }
.search-overlay.open { display: flex; }
.search-panel { width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.search-bar input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search-results { overflow-y: auto; padding: 10px; }
.search-group { font-size: 11px; font-weight: 800; color: var(--text-3); letter-spacing: .6px; padding: 10px 8px 5px; text-transform: uppercase; }
.search-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; transition: .15s; }
.search-item:hover, .search-item.focus { background: var(--primary-soft); }
.search-item .si-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); font-size: 14px; flex-shrink: 0; }
.search-item .si-title { font-size: 13.5px; font-weight: 700; }
.search-item .si-sub { font-size: 11.5px; color: var(--text-3); }
.search-foot { padding: 9px 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-3); display: flex; gap: 14px; }

/* ---------- 悬浮助手 ---------- */
.fab { position: fixed; left: 20px; bottom: 22px; z-index: 55; width: 50px; height: 50px; border-radius: 16px; border: 0; background: var(--grad); color: #fff; font-size: 21px; box-shadow: 0 12px 30px rgba(79,107,255,.35); }
.assistant-panel { position: fixed; left: 20px; bottom: 82px; z-index: 56; width: min(340px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; display: none; }
.assistant-panel.open { display: block; }
.assistant-head { padding: 12px 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13.5px; }
.assistant-log { height: 230px; overflow-y: auto; padding: 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 9px; }
.msg { padding: 8px 11px; border-radius: 10px; max-width: 88%; line-height: 1.6; }
.msg.bot { background: var(--surface-2); align-self: flex-start; }
.msg.me { background: var(--primary-soft); color: var(--primary); align-self: flex-end; font-weight: 600; }
.assistant-input { display: flex; gap: 7px; padding: 10px; border-top: 1px solid var(--border); }
.assistant-input input { flex: 1; border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 10px; outline: 0; background: var(--surface); font-size: 12.5px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 38px 0 22px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer h4 { font-size: 13px; margin: 0 0 12px; }
.footer a, .footer p { font-size: 12.5px; color: var(--text-3); display: block; margin: 0 0 7px; }
.footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }

/* ---------- 响应式 ---------- */
/* 顶栏分级收窄：保证 100% 缩放下 9 个导航标题完整单行展示 */
@media (max-width: 1340px) {
  .topbar-inner { gap: 12px; }
  .nav { gap: 2px; margin-left: 4px; }
  .nav-link { padding: 7px 8px; font-size: 12.5px; }
  .search-trigger { width: 110px; }
  .search-trigger .kbd { display: none; }
  #userBtn { padding: 0 11px; font-size: 12.5px; flex-shrink: 0; }
}
@media (max-width: 1100px) {
  .topbar-inner { gap: 9px; }
  .nav { gap: 0; margin-left: 0; }
  .nav-link { padding: 6px 6px; font-size: 12px; }
  .search-trigger { width: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 26px; }
}
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .search-trigger { width: 36px; padding: 0; justify-content: center; }
  .search-trigger .st, .search-trigger .kbd { display: none; }
}
@media (max-width: 900px) {
  .hero { padding: 44px 0 38px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .chain-lanes, .grid-3, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .float-chip { right: 0; }
  .float-chip.bottom { left: 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 9.5px; letter-spacing: 0; }
  .topbar-inner { gap: 8px; }
  .top-actions { gap: 6px; }
  #userBtn { padding: 0 11px; font-size: 12.5px; }
  body { font-size: 14px; padding-bottom: 62px; }
  .container { width: calc(100% - 28px); }
  .section { padding: 36px 0; }
  .hero { padding: 32px 0 30px; }
  .hero h1 { font-size: 31px; letter-spacing: -1.4px; }
  .hero-stats { gap: 18px; margin-top: 24px; }
  .hero-stat b { font-size: 20px; }
  .hero-input { flex-wrap: wrap; padding: 8px; }
  .hero-input input { width: 100%; flex-basis: 100%; }
  .hero-input .btn { width: 100%; }
  .grid-2, .grid-3, .grid-4, .grid-6, .chain-lanes, .kpi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 26px 0 22px; }
  .bottom-nav {
    display: flex; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: 60px;
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); align-items: stretch;
  }
  .bottom-nav button { flex: 1; border: 0; background: transparent; color: var(--text-3); font-size: 10.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
  .bottom-nav button .bi { font-size: 17px; line-height: 1.1; }
  .bottom-nav button.active { color: var(--primary); font-weight: 800; }
  .fab { bottom: 74px; left: 14px; width: 44px; height: 44px; border-radius: 14px; }
  .assistant-panel { bottom: 126px; left: 14px; }
  .toast-wrap { bottom: 72px; right: 12px; left: 12px; }
  .toast { max-width: none; }
  .modal-backdrop { padding: 8px; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 16px 16px 0 0; width: 100%; }
  .filter-bar { padding: 12px; }
  .filter-bar .field { flex: 1 1 45%; }
  .float-chip, .float-chip.bottom { display: none; }
  .task-nums { gap: 12px; }
  .section-title { font-size: 22px; }
}
/* 超窄手机：登录按钮收成图标，保证品牌双行与操作按钮不互相挤压 */
@media (max-width: 400px) {
  .topbar-inner { gap: 6px; }
  .top-actions { gap: 6px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 15.5px; }
  .brand-sub { font-size: 9px; }
  #userBtn { width: 36px; min-width: 36px; padding: 0; gap: 0; font-size: 0; min-height: 36px; }
  #userBtn::before { content: "👤"; font-size: 15px; }
}
@media print { .topbar, .bottom-nav, .fab, .footer, .toast-wrap { display: none !important; } }
