/* ===== 供应商门户 · 样式 =====
 * 与客户端（js/style.css）同一套设计语言：深色工业主题 · 单一暖橙 accent · 无外部字体依赖
 */
:root {
  --bg: #101318;
  --bg-2: #161b22;
  --surface: #1a202a;
  --surface-2: #212836;
  --surface-3: #293242;
  --border: #2b3444;
  --border-strong: #3a465c;
  --text: #e7ecf3;
  --text-dim: #9aa6b8;
  --text-faint: #6b7789;
  --accent: #d97757;
  --accent-hover: #e08663;
  --accent-dim: rgba(217, 119, 87, .16);
  --green: #6a9b6d;
  --green-bg: rgba(106, 155, 109, .16);
  --red: #c96a6a;
  --red-bg: rgba(201, 106, 106, .16);
  --yellow: #c9a85e;
  --yellow-bg: rgba(201, 168, 94, .16);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 6px 28px rgba(0, 0, 0, .45);
  --font: "Geist", "Outfit", -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: sticky; top: 0; z-index: 20;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-dim); border: 1px solid rgba(217, 119, 87, .35);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; font-size: 16px;
}
.brand b { font-size: 15px; letter-spacing: .3px; }
.brand .sub { font-size: 11px; color: var(--text-faint); margin-top: -3px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.nav a { color: var(--text-dim); }
.nav a:hover, .nav a.on { color: var(--text); }

/* ---------- 主视觉 ---------- */
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: 34px; line-height: 1.35; letter-spacing: -.4px; font-weight: 650; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 18px; font-size: 15px; color: var(--text-dim); max-width: 660px; }
.hero .acts { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.meta-line { margin-top: 16px; font-size: 12px; color: var(--text-faint); font-family: var(--mono); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text); font-size: 13.5px; font-family: inherit;
  cursor: pointer; transition: .15s; text-decoration: none;
}
.btn:hover { background: var(--surface-3); border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #17130f; font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #17130f; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(201, 106, 106, .5); color: #e39b9b; }
.btn.danger:hover { background: var(--red-bg); border-color: var(--red); color: #f0b3b3; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 区块 ---------- */
.section { padding: 44px 0; border-top: 1px solid var(--border); }
.section > .wrap > h2 { font-size: 19px; margin-bottom: 6px; font-weight: 620; }
.section > .wrap > .desc { color: var(--text-dim); font-size: 13.5px; margin-bottom: 26px; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.card h3 { font-size: 14px; margin-bottom: 8px; font-weight: 600; }
.card p { font-size: 12.8px; color: var(--text-dim); }
.card .num {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  border: 1px solid rgba(217, 119, 87, .3); border-radius: 5px;
  padding: 1px 7px; display: inline-block; margin-bottom: 12px;
}

/* 三步 */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(217, 119, 87, .4);
  color: var(--accent); font-family: var(--mono); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 表单 ---------- */
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--text-dim); }
.field .hint { font-size: 11.5px; color: var(--text-faint); }
input, select, textarea {
  font-family: inherit; font-size: 13.5px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 9px 12px; width: 100%;
  transition: .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--bg); }
textarea { resize: vertical; min-height: 78px; }
.mono { font-family: var(--mono); font-size: 12px; }

/* ---------- 提示条 ---------- */
.note {
  border-radius: var(--radius); padding: 11px 14px; font-size: 12.8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim);
}
.note.ok { border-color: rgba(106, 155, 109, .45); background: var(--green-bg); color: #a9caab; }
.note.warn { border-color: rgba(201, 168, 94, .45); background: var(--yellow-bg); color: #ddc489; }
.note.err { border-color: rgba(201, 106, 106, .45); background: var(--red-bg); color: #e5a5a5; }
.note.info { border-color: rgba(217, 119, 87, .35); background: var(--accent-dim); color: #e5bdaa; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-faint); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }
tr:hover td { background: var(--surface-2); }

/* ---------- 徽标 ---------- */
.tag { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11.5px; font-family: var(--mono); }
.tag.ok { background: var(--green-bg); color: #a9caab; }
.tag.warn { background: var(--yellow-bg); color: #ddc489; }
.tag.err { background: var(--red-bg); color: #e5a5a5; }
.tag.dim { background: var(--surface-3); color: var(--text-dim); }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--border); padding: 30px 0 46px; color: var(--text-faint); font-size: 12px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- 工具类 ---------- */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mt22 { margin-top: 22px; }
.dim { color: var(--text-dim); } .faint { color: var(--text-faint); font-size: 12px; }
.hidden { display: none !important; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 12.8px; }
.kv dt { color: var(--text-faint); }
.kv dd { font-family: var(--mono); }

@media (max-width: 820px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 25px; }
  .nav { gap: 14px; font-size: 12px; }
}
