/* ==========================================================================
   boss真聘 — 设计系统
   ========================================================================== */

:root {
  --bg: #0b0d12;
  --bg-soft: #10131a;
  --panel: #151922;
  --panel-2: #1a1f2a;
  --line: #252b38;
  --line-soft: #1e2431;
  --text: #e9edf5;
  --text-2: #a7b0c0;
  --text-3: #6f7a8d;
  --brand: #34d399;
  --brand-2: #10b981;
  --brand-ink: #04140d;
  --danger: #f2555a;
  --warn: #f7b955;
  --info: #5aa9f7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .65);
  --maxw: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(52, 211, 153, .10), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(90, 169, 247, .07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.6vw, 42px); }
h2 { font-size: clamp(19px, 2vw, 24px); }
h3 { font-size: 17px; }
p { margin: 0 0 .8em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 34px 0 60px; }
.narrow { max-width: 860px; }
.muted { color: var(--text-3); font-size: 13px; }
.spacer { flex: 1; }

/* ------------------------------- 顶部导航 -------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 13, 18, .78);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner {
  display: flex; align-items: center; gap: 22px;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { color: inherit; }
.logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, var(--brand), #0ea5e9);
  color: #04140d; font-weight: 900; font-size: 19px;
  box-shadow: 0 6px 18px -6px rgba(52, 211, 153, .8);
}
.logo-spark {
  position: absolute; right: -5px; top: -6px;
  font-size: 13px; filter: drop-shadow(0 0 6px rgba(255, 200, 0, .8));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; }
.brand-text small { font-size: 11px; color: var(--text-3); letter-spacing: .4px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 13px; border-radius: 9px; color: var(--text-2);
  font-size: 14px; font-weight: 500; transition: .15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.on { color: var(--brand); background: rgba(52, 211, 153, .10); }
.nav a.nav-cta {
  color: var(--brand); border: 1px solid rgba(52, 211, 153, .35);
  background: rgba(52, 211, 153, .08); margin-left: 6px;
}
.nav a.nav-cta:hover { background: rgba(52, 211, 153, .16); }

.head-user { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.me {
  font-size: 13px; color: var(--text-2); max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 设备标识按钮（替代原来的登录/注册） */
.device-chip {
  display: inline-flex; align-items: center; gap: 7px;
  max-width: 190px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .3);
  background: rgba(52, 211, 153, .08);
  color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.device-chip:hover { background: rgba(52, 211, 153, .16); border-color: var(--brand); }
.device-chip.pending { color: var(--text-3); border-color: var(--line); background: var(--panel); cursor: default; }
.dc-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--brand); box-shadow: 0 0 8px rgba(52, 211, 153, .9);
}
.device-chip.pending .dc-dot { background: var(--text-3); box-shadow: none; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.dc-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 设备信息弹窗 */
.device-card {
  margin: 16px 0 6px; padding: 14px 16px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.dc-label { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.device-full {
  display: block; font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11.5px; line-height: 1.5; color: var(--brand);
  word-break: break-all; letter-spacing: -.2px;
}
.dc-hint { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.dc-hint b { color: var(--text); font-variant-numeric: tabular-nums; }
.device-note {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: rgba(90, 169, 247, .06); border: 1px solid rgba(90, 169, 247, .2);
  font-size: 12.5px; color: var(--text-2); line-height: 1.65;
}
.device-note b { display: block; margin-bottom: 4px; color: var(--info); font-size: 12.5px; }
.device-note p { margin: 0; }
.device-note strong { color: #ffd58a; }

/* 发布页的设备与冷却提示 */
.device-line {
  font-size: 13px; color: var(--text-3);
  padding-top: 4px;
}
.device-line b { color: var(--text-2); }
.device-line code {
  font-family: ui-monospace, Consolas, monospace; font-size: 11.5px;
  padding: 1px 6px; border-radius: 5px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--brand);
}
.cooldown-note {
  font-size: 12.5px; line-height: 1.6; color: var(--text-3);
  padding: 10px 14px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
}
.cooldown-note b { color: var(--text-2); }
.cooldown-note.warn {
  color: #ffd58a; background: rgba(247, 185, 85, .08);
  border-color: rgba(247, 185, 85, .35);
}

/* -------------------------------- 按钮 ---------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3;
  cursor: pointer; transition: transform .12s, background .15s, border-color .15s, opacity .15s;
  background: var(--panel-2); color: var(--text);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  box-shadow: 0 8px 22px -10px rgba(52, 211, 153, .9);
}
.btn-primary:hover { background: linear-gradient(140deg, #4ae3ad, #12c68c); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.link {
  background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0;
}
.link:hover { text-decoration: underline; }

/* --------------------------------- 首页 ---------------------------------- */

.hero { position: relative; overflow: hidden; padding: 52px 0 44px; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 -40% 0; height: 60%;
  background: radial-gradient(closest-side, rgba(52, 211, 153, .10), transparent);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px; align-items: center;
}
.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .3);
  background: rgba(52, 211, 153, .08);
  color: var(--brand); font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
.hero h1 .hl {
  background: linear-gradient(120deg, #34d399, #5aa9f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--text-2); font-size: 15.5px; max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.hero-note { font-size: 12.5px; color: var(--text-3); }

.hero-art { position: relative; height: 300px; }
.bubble {
  position: absolute; max-width: 260px; padding: 12px 15px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; font-size: 13px; color: var(--text-2);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.b1 { top: 8px; left: 0; animation-delay: 0s; }
.b2 { top: 108px; right: 0; animation-delay: 1.2s; border-color: rgba(242, 85, 90, .35); }
.b3 { top: 212px; left: 26px; animation-delay: 2.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 34px;
}
.stats-strip > div {
  background: var(--bg-soft); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.stats-strip b { font-size: 24px; color: var(--brand); font-variant-numeric: tabular-nums; }
.stats-strip span { font-size: 12.5px; color: var(--text-3); }

.section-title {
  font-size: 19px; margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-title .muted { font-weight: 400; }
.section-title-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 34px 0 16px;
}
.section-title-row .section-title { margin: 0; }
.more { font-size: 13px; color: var(--text-3); font-weight: 500; }
.more:hover { color: var(--brand); }

.flag-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 34px;
}
.flag-tile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft);
  transition: .16s;
}
.flag-tile:hover {
  border-color: rgba(52, 211, 153, .4); transform: translateY(-2px);
  background: var(--panel-2);
}
.flag-ico { font-size: 21px; }
.flag-name { font-weight: 600; font-size: 14px; }
.flag-count { font-size: 12px; color: var(--text-3); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 8px; min-height: 120px;
}
.rank-list, .recent-list { display: flex; flex-direction: column; }
.rank-item, .recent-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; border-radius: var(--radius-sm);
  transition: background .15s;
}
.rank-item:hover, .recent-item:hover { background: rgba(255, 255, 255, .04); }
.rank-no {
  width: 24px; height: 24px; flex: none; border-radius: 7px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--panel-2); color: var(--text-3);
}
.rank-no.hot { background: rgba(242, 85, 90, .16); color: var(--danger); }
.rank-main { display: flex; flex-direction: column; min-width: 0; }
.rank-main strong {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recent-item { flex-wrap: wrap; }
.recent-title {
  font-size: 14px; flex: 1 1 100%; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  order: -1; margin-bottom: 2px; color: var(--text);
}
.recent-item .muted { flex: 1 1 auto; }

.cta-band {
  margin-top: 42px; padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  border-radius: 18px; border: 1px solid rgba(52, 211, 153, .28);
  background:
    radial-gradient(600px 220px at 10% 0%, rgba(52, 211, 153, .16), transparent 70%),
    var(--panel);
}
.cta-band h3 { margin-bottom: 4px; font-size: 19px; }
.cta-band p { margin: 0; color: var(--text-2); font-size: 14px; }

/* --------------------------------- 卡片 ---------------------------------- */

.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  display: block; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); transition: .16s;
}
a.card:hover, .post-card:hover {
  border-color: rgba(52, 211, 153, .35);
  background: var(--panel-2);
  transform: translateY(-1px);
}
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.company-link { font-size: 13px; font-weight: 600; color: var(--brand); }
.company-link.lg { font-size: 15px; }
.post-time { font-size: 12px; color: var(--text-3); margin-left: auto; }
.post-title {
  display: block; font-size: 16.5px; font-weight: 650; color: var(--text);
  margin-bottom: 5px; line-height: 1.45;
}
.post-title:hover { color: var(--brand); }
.post-excerpt { color: var(--text-2); font-size: 13.5px; margin: 0 0 12px; }
.post-foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.mini-stat { color: var(--text-3); font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2);
  white-space: nowrap;
}
.chip b { color: var(--brand); font-weight: 700; }
.chip-flag { border-color: rgba(247, 185, 85, .3); background: rgba(247, 185, 85, .08); color: #f7c97a; }
.chip-warn { border-color: rgba(242, 85, 90, .35); background: rgba(242, 85, 90, .1); color: #ff8b8f; }

.risk {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line);
}
.risk-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.risk-critical { color: #ff8b8f; border-color: rgba(242, 85, 90, .4); background: rgba(242, 85, 90, .12); }
.risk-high { color: #ffb072; border-color: rgba(247, 107, 21, .38); background: rgba(247, 107, 21, .1); }
.risk-medium { color: #ffd58a; border-color: rgba(245, 165, 36, .32); background: rgba(245, 165, 36, .08); }
.risk-low, .risk-none { color: var(--text-3); }

/* ------------------------------- 公司列表 -------------------------------- */

.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 6px; }

.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px;
}
.input, .select {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.input:focus, .select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(52, 211, 153, .14);
}
.toolbar .input { flex: 1; min-width: 190px; }
.toolbar .select { width: auto; flex: none; }
.input::placeholder, textarea::placeholder { color: #5c6679; }
select.select { cursor: pointer; }
textarea.input { resize: vertical; line-height: 1.6; }

.city-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.city {
  padding: 5px 12px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line); color: var(--text-2); background: var(--panel);
}
.city i { font-style: normal; color: var(--text-3); font-size: 11px; margin-left: 3px; }
.city.on { border-color: var(--brand); color: var(--brand); background: rgba(52, 211, 153, .1); }
.city:hover { border-color: rgba(52, 211, 153, .5); color: var(--brand); }

.company-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px;
}
.company-card { display: flex; flex-direction: column; gap: 10px; }
.cc-head { display: flex; gap: 11px; align-items: center; }
.cc-avatar {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
  background: hsl(var(--h, 160) 45% 22%);
  color: hsl(var(--h, 160) 70% 74%);
  border: 1px solid hsl(var(--h, 160) 40% 30%);
}
.cc-avatar.big { width: 60px; height: 60px; font-size: 25px; border-radius: 15px; }
.cc-title { display: flex; flex-direction: column; min-width: 0; }
.cc-title strong {
  font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-summary {
  color: var(--text-2); font-size: 13px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.cc-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.risk-bar {
  height: 4px; border-radius: 999px; background: var(--line-soft); overflow: hidden;
}
.risk-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #f7b955, #f2555a);
  transition: width .5s;
}

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pg {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px;
  display: grid; place-items: center; font-size: 13px;
  border: 1px solid var(--line); color: var(--text-2); background: var(--panel);
}
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }

/* ------------------------------- 公司详情 -------------------------------- */

.back { display: inline-block; font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.back:hover { color: var(--brand); }

.company-hero {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; border-radius: 18px;
  background: radial-gradient(700px 240px at 0% 0%, rgba(52, 211, 153, .10), transparent 70%), var(--panel);
  border: 1px solid var(--line-soft);
}
.ch-main { flex: 1; min-width: 0; }
.ch-main h1 { font-size: 27px; margin-bottom: 4px; }
.ch-flags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.ch-score { display: flex; align-items: center; gap: 12px; flex: none; }
.score-ring {
  --v: 0; --c: #6b7280;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line-soft) 0);
}
.score-ring::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel-2);
}
.score-ring span {
  position: relative; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--c);
}
.score-label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.company-summary {
  margin: 16px 0 0; padding: 14px 18px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  color: var(--text-2); font-size: 14px;
}

/* -------------------------------- 帖子详情 ------------------------------- */

.detail { padding: 24px 26px; }
.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-title { font-size: 25px; margin-bottom: 12px; }
.detail-meta {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px;
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 700;
  background: hsl(var(--h, 160) 40% 24%);
  color: hsl(var(--h, 160) 70% 76%);
  border: 1px solid hsl(var(--h, 160) 35% 32%);
}
.sev { font-size: 12px; color: var(--warn); letter-spacing: 1px; }
.detail-body p { color: #d5dbe7; font-size: 15px; line-height: 1.85; margin-bottom: .9em; }
.evidence {
  margin: 16px 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(90, 169, 247, .07); border: 1px solid rgba(90, 169, 247, .22);
}
.evidence b { font-size: 13px; color: var(--info); display: block; margin-bottom: 6px; }
.evidence p { margin: 0; color: var(--text-2); font-size: 13.5px; white-space: pre-wrap; }
.detail-foot {
  display: flex; align-items: center; gap: 10px;
  padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line-soft);
}

.comments { margin-top: 30px; }
.comment-form { margin-bottom: 20px; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.comment {
  display: flex; gap: 11px; padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.comment:last-child { border-bottom: 0; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font-size: 13px; }
.cmt-main p { margin: 0; color: var(--text-2); font-size: 14px; white-space: pre-wrap; }
.tag-mine {
  font-size: 10.5px; padding: 1px 6px; border-radius: 5px;
  background: rgba(52, 211, 153, .14); color: var(--brand);
}
.empty-cmt { padding: 20px 0; }

/* --------------------------------- 表单 ---------------------------------- */

.form { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12px; color: var(--text-3); }
.flag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.flag-opt { cursor: pointer; }
.flag-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.flag-opt span {
  display: inline-block; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2);
  font-size: 13px; color: var(--text-2); transition: .15s;
}
.flag-opt span:hover { border-color: rgba(52, 211, 153, .45); }
.flag-opt input:checked + span {
  background: rgba(52, 211, 153, .14); border-color: var(--brand);
  color: var(--brand); font-weight: 600;
}
.flag-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.range { width: 100%; accent-color: var(--brand); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.switch input { accent-color: var(--brand); width: 16px; height: 16px; }
.form-foot { display: flex; align-items: center; gap: 14px; }

.gate { padding: 34px; text-align: center; }
.gate .hero-actions { justify-content: center; }

/* -------------------------------- 空状态 --------------------------------- */

.empty { text-align: center; padding: 44px 20px; color: var(--text-3); }
.empty-ico { font-size: 30px; margin-bottom: 8px; opacity: .7; }
.empty h3 { color: var(--text-2); font-size: 16px; margin-bottom: 4px; }
.empty p { font-size: 13.5px; margin-bottom: 14px; }

.skel {
  height: 82px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
  border: 1px solid var(--line-soft);
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* --------------------------------- 弹窗 ---------------------------------- */

#auth-modal[hidden] { display: none; }
#auth-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, .72); backdrop-filter: blur(4px); }
.modal {
  position: relative; width: 100%; max-width: 430px; max-height: 90vh; overflow-y: auto;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 26px 22px; box-shadow: var(--shadow);
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }
.modal h2 { font-size: 21px; margin-bottom: 4px; }
.modal-x {
  position: absolute; right: 14px; top: 12px;
  width: 30px; height: 30px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-3); font-size: 15px;
}
.modal-x:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.auth-switch { margin-top: 16px; font-size: 13px; color: var(--text-3); text-align: center; }

/* --------------------------------- 提示 ---------------------------------- */

#toasts {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  padding: 10px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(10px);
  transition: .25s;
}
.toast.in { opacity: 1; transform: translateY(0); }
.toast-ok { border-color: rgba(52, 211, 153, .4); color: #b6f5db; }
.toast-error { border-color: rgba(242, 85, 90, .45); color: #ffb4b6; }
.toast-warn { border-color: rgba(247, 185, 85, .45); color: #ffdca6; }

/* --------------------------------- 页脚 ---------------------------------- */

.site-foot {
  margin-top: 40px; border-top: 1px solid var(--line-soft);
  padding: 26px 0 34px; background: rgba(0, 0, 0, .18);
}
.foot-inner { display: flex; gap: 26px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.foot-inner strong { font-size: 15px; }
.foot-inner p { margin: 6px 0 0; max-width: 56ch; }
.foot-links { display: flex; gap: 18px; font-size: 13px; color: var(--text-3); }
.foot-links a:hover { color: var(--brand); }

/* -------------------------------- 响应式 --------------------------------- */

/* 移动端底部导航（桌面端隐藏） */
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { height: 200px; }
  .bubble { max-width: 230px; font-size: 12px; }
  .b3 { top: 150px; left: 4px; }
  .two-col { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .nav { display: none; }
  .company-hero { flex-wrap: wrap; }
  .ch-score { margin-left: auto; }

  /* 移动端用底部标签栏替代顶部导航 */
  .mobile-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(15, 18, 24, .96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px; border-radius: 10px;
    font-size: 11px; color: var(--text-3);
  }
  .mobile-nav a .mn-ico { font-size: 17px; line-height: 1; }
  .mobile-nav a.on { color: var(--brand); background: rgba(52, 211, 153, .10); }
  .mobile-nav a.primary { color: var(--brand); }
  body { padding-bottom: 66px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 15px; }
  .head-inner { height: 56px; gap: 10px; }
  .brand-text small { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .detail, .form { padding: 18px 16px; }
  .detail-title { font-size: 21px; }
  .stats-strip > div { padding: 13px 14px; }
  .stats-strip b { font-size: 20px; }
  .hero { padding: 30px 0 26px; }
  .section { padding: 22px 0 40px; }
}
