/* ============================================================
   算力通 · 智能算力信息平台 - 设计系统
   ============================================================ */

:root {
  /* 色彩系统 */
  --bg: #070b14;
  --bg-soft: #0b1120;
  --surface: #101828;
  --surface-2: #16213a;
  --surface-3: #1c2a47;
  --border: #1f2b47;
  --border-light: #2a3a5c;

  --text-1: #f0f4fa;
  --text-2: #a8b3c7;
  --text-3: #6b7890;

  --primary: #22d3ee;
  --primary-2: #3b82f6;
  --primary-deep: #0e7490;
  --grad-primary: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);

  --gold: #f5b94b;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --purple: #a78bfa;
  --orange: #fb923c;

  /* 字号 */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --fs-3xl: 34px;
  --fs-hero: 52px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.15);

  --maxw: 1200px;
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
main { flex: 1; }

/* ============================================================
   顶部导航
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%; display: flex; align-items: center; gap: 36px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #04121a; font-weight: 800;
  box-shadow: var(--shadow-glow);
}
.logo span em { font-style: normal; color: var(--primary); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: var(--fs-md); transition: all .2s;
}
.nav a:hover { color: var(--text-1); background: var(--surface-2); }
.nav a.active { color: var(--primary); background: rgba(34, 211, 238, 0.08); }
.nav-user { display: contents; } /* 登录后由 JS 注入的用户中心/管理后台链接，与 .nav a 同参与 flex */
.header-actions { display: flex; gap: 12px; align-items: center; }

/* ---------- 按钮 ---------- */
/* 裸 .btn 也有可见的浅底+边+字（在表格/暗背景上不被吞掉），变体类（primary/ghost/danger）会覆盖 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-light); color: var(--text-1);
  font-size: var(--fs-md); font-weight: 600; line-height: 1.2;
  transition: all .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--grad-primary); color: #051018; border-color: transparent; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34, 211, 238, 0.35); color: #051018; }
.btn-ghost { background: transparent; border: 1px solid var(--border-light); color: var(--text-1); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(34, 211, 238, 0.06); }
.btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: #f87171; }
.btn-danger:hover { background: rgba(248, 113, 113, 0.22); border-color: #f87171; color: #fff; }
.btn-gold { background: linear-gradient(135deg, #f5b94b, #e88f2a); color: #1a1205; border-color: transparent; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245, 185, 75, 0.3); color: #1a1205; }
.btn-sm { padding: 5px 11px; font-size: var(--fs-sm); border-radius: 4px; }
.btn-lg { padding: 13px 32px; font-size: var(--fs-lg); }
.btn-block { width: 100%; }

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 0 70px;
  background:
    radial-gradient(ellipse 800px 400px at 75% -10%, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 600px 300px at 15% 110%, rgba(34, 211, 238, 0.1), transparent),
    var(--bg-soft);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42, 58, 92, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 58, 92, 0.25) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-full);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.07);
  color: var(--primary); font-size: var(--fs-sm); margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { font-size: var(--fs-hero); line-height: 1.2; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 .grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--text-2); font-size: 17px; max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; margin-bottom: 40px; }

/* Hero 侧边实时行情卡片 */
.hero-panel {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-card);
}
.hero-panel h3 { font-size: var(--fs-lg); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.hero-panel .live { font-size: var(--fs-xs); color: var(--success); display: flex; align-items: center; gap: 5px; }
.hero-panel .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 1.5s infinite; }
.ticker-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.ticker-row:last-child { border-bottom: none; }
.ticker-name { font-size: var(--fs-md); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ticker-name .tag-ico { font-size: 15px; }
.ticker-price { font-family: "SF Mono", Consolas, monospace; font-weight: 700; }
.ticker-change { font-size: var(--fs-xs); margin-left: 8px; padding: 2px 7px; border-radius: 4px; }
.up { color: #f87171; background: rgba(248, 113, 113, 0.12); }   /* 涨-红（中国惯例） */
.down { color: #34d399; background: rgba(52, 211, 153, 0.12); } /* 跌-绿 */

/* ---------- 数据统计条 ---------- */
.stats-bar {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 30px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
  content: ""; position: absolute; right: -10px; top: 15%;
  height: 70%; width: 1px; background: var(--border);
}
.stat-num {
  font-size: 30px; font-weight: 800; font-family: "SF Mono", Consolas, monospace;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-num small { font-size: 15px; }
.stat-label { color: var(--text-3); font-size: var(--fs-sm); margin-top: 4px; }

/* ============================================================
   首页 · 5 大业务板块卡片
   ============================================================ */
.bs-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 14px 18px;
  text-align: center;
  position: relative; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.bs-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(34, 211, 238, 0.08) 100%);
  pointer-events: none;
}
.bs-card:hover {
  /* 纯品牌视觉装饰，非可点按钮 → 去掉上浮，仅保留克制描边，避免误导成可点击 */
  border-color: rgba(34, 211, 238, 0.45);
}
.bs-card-primary {
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.08) 0%, var(--surface-2) 100%);
}
.bs-card-primary::before {
  background: linear-gradient(135deg, transparent 50%, rgba(34, 211, 238, 0.15) 100%);
}
.bs-card-gold {
  border-color: rgba(245, 185, 75, 0.35);
}
.bs-card-gold::before {
  background: linear-gradient(135deg, transparent 60%, rgba(245, 185, 75, 0.12) 100%);
}
.bs-ico {
  font-size: 30px; margin-bottom: 8px; line-height: 1;
}
.bs-name {
  font-size: 18px; font-weight: 700; color: var(--text-1);
  margin-bottom: 4px; letter-spacing: 1px;
}
.bs-card-primary .bs-name { color: var(--primary); }
.bs-card-gold .bs-name { color: var(--gold); }
@media (max-width: 1024px) {
  .bs-card { padding: 18px 10px 14px; }
  .bs-name { font-size: 16px; }
}
@media (max-width: 640px) {
  /* 移动端 5 列 → 3 列换行 */
  section [style*="grid-template-columns:repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .bs-card { padding: 16px 8px 12px; }
  .bs-name { font-size: 15px; letter-spacing: 0; }
  .bs-ico { font-size: 24px; }
}

/* ============================================================
   学算力 · 平台预置主题卡（需求大厅只读 tab）
   ============================================================ */
.learn-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex; gap: 16px; align-items: flex-start;
  position: relative;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.learn-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--shadow-card);
}
.learn-ico {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.learn-body { flex: 1; min-width: 0; }
.learn-tag { color: var(--text-3); font-size: var(--fs-xs); margin-bottom: 4px; letter-spacing: 1px; }
.learn-body h3 { font-size: var(--fs-xl); margin: 0 0 6px; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
.learn-body p { margin: 0; color: var(--text-3); font-size: var(--fs-sm); line-height: 1.6; }
.learn-flag {
  position: absolute; top: 14px; right: 14px;
  font-size: var(--fs-xs); color: var(--primary);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 2px 8px; border-radius: var(--radius-full);
}
@media (max-width: 640px) {
  .learn-card { padding: 16px; }
  .learn-ico { width: 38px; height: 38px; font-size: 18px; }
  .learn-body h3 { font-size: var(--fs-lg); }
}

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .kicker {
  color: var(--primary); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: var(--fs-lg); }

/* ---------- 业务板块卡片 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.biz-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: all .25s; cursor: pointer;
}
.biz-card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, 0.5); box-shadow: var(--shadow-glow); }
.biz-ico {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.ico-cyan { background: rgba(34, 211, 238, 0.12); }
.ico-blue { background: rgba(59, 130, 246, 0.12); }
.ico-gold { background: rgba(245, 185, 75, 0.12); }
.ico-purple { background: rgba(167, 139, 250, 0.12); }
.biz-card h3 { font-size: var(--fs-xl); margin-bottom: 8px; }
.biz-card p { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: 16px; min-height: 42px; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.biz-tags span {
  font-size: var(--fs-xs); padding: 3px 10px; border-radius: var(--radius-full);
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.biz-card .arrow { position: absolute; right: 20px; top: 24px; color: var(--text-3); transition: all .25s; }
.biz-card:hover .arrow { color: var(--primary); transform: translateX(4px); }

/* ---------- 需求卡片 ---------- */
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.req-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  transition: all .25s; display: flex; flex-direction: column;
  cursor: pointer;   /* 整卡可点进详情，光标反馈可点性 */
}
.req-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.req-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 10px; }
.req-type {
  font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-full); letter-spacing: .5px;
}
.type-buy { color: #f87171; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); }
.type-sell { color: #34d399; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }
.type-rent { color: var(--primary); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3); }
.type-service { color: var(--purple); background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.3); }
.type-tech { color: var(--gold); background: rgba(245, 185, 75, 0.1); border: 1px solid rgba(245, 185, 75, 0.3); }
.req-verified { color: var(--primary); font-size: var(--fs-xs); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.req-card h3 { font-size: var(--fs-lg); line-height: 1.45; margin-bottom: 12px; flex: 1; }
.req-card h3 a:hover { color: var(--primary); }
.req-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.req-specs span {
  font-size: var(--fs-xs); color: var(--text-2);
  background: var(--surface-2); padding: 3px 9px; border-radius: 4px;
  font-family: "SF Mono", Consolas, monospace;
}
.req-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); }
.req-price { font-size: 18px; font-weight: 800; color: var(--gold); font-family: "SF Mono", Consolas, monospace; }
.req-price small { font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; }
.req-meta { font-size: var(--fs-xs); color: var(--text-3); text-align: right; }

/* ---------- 平台优势 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px;
}
.feat-num {
  font-size: 40px; font-weight: 800; opacity: .15;
  font-family: "SF Mono", Consolas, monospace; margin-bottom: 8px;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feat-card h3 { font-size: var(--fs-xl); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.feat-card p { color: var(--text-3); font-size: var(--fs-sm); }

/* ---------- 发布流程 ---------- */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.flow-step { text-align: center; position: relative; padding: 0 18px; }
.flow-step::before {
  content: ""; position: absolute; top: 27px; left: -50%; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--border), var(--primary-deep));
}
.flow-step:first-child::before { display: none; }
.flow-dot {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--surface-2); border: 2px solid var(--primary-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-soft);
}
.flow-step h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.flow-step p { color: var(--text-3); font-size: var(--fs-sm); }
.flow-step .step-tag {
  display: inline-block; font-size: var(--fs-xs); color: var(--primary);
  border: 1px solid rgba(34, 211, 238, 0.3); border-radius: var(--radius-full);
  padding: 2px 10px; margin-bottom: 12px;
}

/* ---------- CTA ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(59, 130, 246, 0.22), transparent),
    radial-gradient(ellipse 500px 260px at 20% 60%, rgba(34, 211, 238, 0.14), transparent),
    var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 64px 0; text-align: center;
}
.cta-band h2 { font-size: var(--fs-2xl); margin-bottom: 12px; }
.cta-band p { color: var(--text-2); margin-bottom: 28px; }

/* 平台规则公示条（首页显著位置，116号令第7条） */
.rules-strip { background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px 0; }
.rules-strip .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.rules-title { display: flex; align-items: center; gap: 12px; }
.rules-title .rules-ico { font-size: 24px; }
.rules-title b { font-size: 15px; display: block; }
.rules-title .rules-sub { font-size: var(--fs-xs); color: var(--text-3); }
.rules-more { margin-left: auto; font-size: var(--fs-xs); color: var(--primary); white-space: nowrap; text-decoration: none; }
.rules-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.rules-links a { font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; }
.rules-links a:hover { color: var(--primary); }
@media (max-width: 720px) {
  .rules-strip .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rules-more { margin-left: 0; }
}

/* ============================================================
   需求大厅
   ============================================================ */
.page-head {
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
  padding: 44px 0 30px;
}
.page-head h1 { font-size: var(--fs-2xl); font-weight: 800; margin-bottom: 6px; }
.page-head .crumb { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: 14px; }
.page-head .crumb a { color: var(--text-3); }
.page-head .crumb a:hover { color: var(--primary); }

.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px;
}
.chip {
  padding: 7px 18px; border-radius: var(--radius-full);
  border: 1px solid var(--border); color: var(--text-2);
  font-size: var(--fs-sm); transition: all .2s; background: var(--surface);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--grad-primary); color: #04121a; border-color: transparent; font-weight: 700; }

.search-row { display: flex; gap: 12px; margin-top: 16px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0 16px;
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-1); font-size: var(--fs-md); padding: 12px 0;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box .s-ico { color: var(--text-3); }
/* 搜索框"一键清空"按钮：有内容时显示，点击清除搜索回到正常列表 */
.search-clear {
  flex: 0 0 auto; width: 22px; height: 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: rgba(127, 127, 127, .18); color: var(--text-2);
  border-radius: 50%; font-size: 12px; cursor: pointer; padding: 0;
  transition: background .2s, color .2s;
}
.search-clear:hover { background: rgba(127, 127, 127, .34); color: var(--text-1); }
select.filter-select {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-1); padding: 12px 14px; font-size: var(--fs-md); outline: none; cursor: pointer;
}

.list-meta { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 18px; color: var(--text-3); font-size: var(--fs-sm); }

/* ---------- 需求大厅 · 供需左右两栏 ---------- */
.dual-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  align-items: start; margin-top: 8px;
}
.side-col {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 18px 22px;
}
.side-head {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 2px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.side-ico { font-size: 18px; }
.side-title { font-size: var(--fs-lg); font-weight: 800; color: var(--text-1); }
.side-count {
  margin-left: auto; font-size: var(--fs-xs); color: var(--text-3);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 2px 12px;
}
/* 左需求方：暖色标记 */
.side-demand .side-title { color: #f87171; }
.side-demand { box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.55); }
/* 右提供方：冷色标记 */
.side-supply .side-title { color: #34d399; }
.side-supply { box-shadow: inset 3px 0 0 rgba(52, 211, 153, 0.55); }
.side-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.side-grid .req-card { padding: 18px; }
.side-grid .req-card h3 { font-size: var(--fs-md); }

/* 分页条 */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 32px; flex-wrap: wrap;
}
.pager .p-info { color: var(--text-3); font-size: var(--fs-sm); }
.pager button {
  min-width: 88px; padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: var(--fs-sm); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   表单（发布页）
   ============================================================ */
.form-wrap { max-width: 860px; margin: 0 auto; }
.stepper { display: flex; justify-content: space-between; margin: 34px 0 38px; position: relative; }
.stepper::before {
  content: ""; position: absolute; top: 19px; left: 8%; right: 8%;
  height: 2px; background: var(--border);
}
.step-item { text-align: center; position: relative; z-index: 1; flex: 1; }
.step-dot {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--surface-2); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--text-3);
}
.step-item.active .step-dot { background: var(--grad-primary); border-color: transparent; color: #04121a; }
.step-item.done .step-dot { background: var(--surface-2); border-color: var(--success); color: var(--success); }
.step-item span { font-size: var(--fs-sm); color: var(--text-3); }
.step-item.active span { color: var(--primary); font-weight: 600; }

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px;
}
.form-section-title {
  font-size: var(--fs-lg); font-weight: 700; margin: 26px 0 16px;
  padding-left: 12px; border-left: 3px solid var(--primary);
}
.form-section-title:first-child { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 7px; font-weight: 600; }
.form-group label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-1);
  padding: 11px 14px; font-size: var(--fs-md); outline: none; transition: border .2s;
}
.form-control:focus { border-color: var(--primary); }
.form-control:disabled { opacity: .5; cursor: not-allowed; }
/* 必填未填：字段标红 */
.form-control.invalid {
  border-color: var(--danger); background: rgba(248, 113, 113, 0.06);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.type-select-grid.invalid {
  border: 1px dashed var(--danger); border-radius: var(--radius-md); padding: 10px;
  background: rgba(248, 113, 113, 0.04);
}
/* 发布弹窗内错误提示条（位于按钮上方，避免被弹窗遮罩挡住的全局 toast） */
.pub-err {
  display: flex; flex-direction: column; gap: 3px; margin-top: 22px;
  padding: 12px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--danger); background: rgba(248, 113, 113, 0.1);
  color: var(--text-1); font-size: var(--fs-sm); line-height: 1.6;
  animation: pubErrIn .25s ease;
}
.pub-err b { color: var(--danger); font-size: var(--fs-md); }
.pub-err span { color: var(--text-2); }
@keyframes pubErrIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: var(--fs-xs); color: var(--text-3); margin-top: 5px; }
#specsPreview { transition: color .2s; }
#specsPreview.on { color: var(--primary); font-weight: 600; }

/* 类型选择大卡片 */
.type-select-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type-opt {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 14px; text-align: center; cursor: pointer; transition: all .2s;
  background: var(--bg);
}
.type-opt:hover { border-color: var(--primary); }
.type-opt.selected { border-color: var(--primary); background: rgba(34, 211, 238, 0.06); box-shadow: var(--shadow-glow); }
.type-opt .t-ico { font-size: 30px; margin-bottom: 8px; }
.type-opt h4 { font-size: var(--fs-md); margin-bottom: 4px; }
.type-opt p { font-size: var(--fs-xs); color: var(--text-3); }

.form-nav { display: flex; justify-content: space-between; margin-top: 30px; }
.form-summary {
  background: rgba(34, 211, 238, 0.05); border: 1px dashed rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-md); padding: 18px 22px; margin-top: 24px;
}
.form-summary h4 { color: var(--primary); margin-bottom: 10px; font-size: var(--fs-md); }
.form-summary dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.form-summary .kv { display: flex; gap: 10px; font-size: var(--fs-sm); }
.form-summary dt { color: var(--text-3); white-space: nowrap; }
.form-summary dd { color: var(--text-1); }

/* ============================================================
   详情页
   ============================================================ */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; padding: 30px 0 60px; }
.detail-main {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
}
.detail-title-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.detail-title-row h1 { font-size: 24px; line-height: 1.4; flex: 1; }
.detail-sub { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-3); font-size: var(--fs-sm); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 11px 14px; font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border);
}
.spec-table th { color: var(--text-3); font-weight: 600; width: 160px; background: var(--bg-soft); }
.spec-table td { color: var(--text-1); }
.detail-desc { color: var(--text-2); font-size: var(--fs-md); line-height: 1.8; }

/* 侧栏 */
.side-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 18px;
}
.price-big { font-size: 34px; font-weight: 800; color: var(--gold); font-family: "SF Mono", Consolas, monospace; }
.price-big small { font-size: var(--fs-sm); color: var(--text-3); font-weight: 400; }
.side-card .divider { height: 1px; background: var(--border); margin: 18px 0; }
/* 联系发布方展开区（手机号脱敏 → 点击展开 → 可复制） */
.contact-box {
  margin-top: 12px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.contact-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 0; flex-wrap: wrap;
}
.contact-label { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.contact-val {
  font-size: var(--fs-md); font-weight: 700; color: var(--text-1);
  font-family: "SF Mono", Consolas, monospace; word-break: break-all;
}
.contact-actions { display: flex; gap: 8px; margin-top: 10px; }
.contact-tip {
  font-size: var(--fs-xs); color: var(--text-3);
  line-height: 1.6; margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.seller-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.seller-name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.vip-badge {
  font-size: 10px; padding: 1px 7px; border-radius: 3px;
  background: linear-gradient(135deg, #f5b94b, #e88f2a); color: #1a1205; font-weight: 700;
}
.seller-stats { display: flex; gap: 0; }
.seller-stats .s-item { flex: 1; text-align: center; }
.seller-stats .s-item b { display: block; font-size: 16px; font-family: "SF Mono", Consolas, monospace; }
.seller-stats .s-item span { font-size: var(--fs-xs); color: var(--text-3); }

/* ============================================================
   行情中心
   ============================================================ */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 30px 0; }
.market-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.market-card h3 { font-size: var(--fs-lg); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.market-card .m-sub { color: var(--text-3); font-size: var(--fs-xs); margin-bottom: 16px; }
.spark { width: 100%; height: 56px; margin-bottom: 10px; }
.m-price { font-size: 24px; font-weight: 800; font-family: "SF Mono", Consolas, monospace; }
.m-change { font-size: var(--fs-sm); margin-left: 8px; }

/* 资讯区块样式已于 2026-09-08 移除（行业资讯整块删，market.html 不再渲染） */


/* ============================================================
   用户中心
   ============================================================ */
.dash-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding: 30px 0 60px; }
.dash-side {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 16px; height: fit-content; position: sticky; top: calc(var(--header-h) + 20px);
}
.dash-user { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.dash-menu a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: var(--radius-md); color: var(--text-2); font-size: var(--fs-md);
  transition: all .2s; margin-bottom: 2px;
}
.dash-menu a:hover { background: var(--surface-2); color: var(--text-1); }
.dash-menu a.active { background: rgba(34, 211, 238, 0.08); color: var(--primary); font-weight: 600; }
.dash-main h2 { font-size: var(--fs-xl); margin-bottom: 20px; }

/* ---------- 管理后台 Tab 分类 ---------- */
.admin-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); margin-bottom: 26px; padding-bottom: 0;
}
.admin-tab {
  border: 1px solid var(--border); border-bottom: none; background: transparent;
  color: var(--text-2); font-size: var(--fs-md); cursor: pointer;
  padding: 11px 20px; border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: -1px; transition: all .15s;
}
.admin-tab:hover { color: var(--text-1); background: var(--surface-2); }
.admin-tab.active {
  color: var(--primary); background: var(--surface);
  font-weight: 600; border-color: var(--border);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.atab-panel { display: none; }
.atab-panel.active { display: block; animation: fadeUp .2s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.stat-mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px; }
@media (max-width: 900px) { .stat-mini-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .stat-mini-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-mini {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 20px;
}
.stat-mini b { display: block; font-size: 24px; font-family: "SF Mono", Consolas, monospace; }
.stat-mini span { font-size: var(--fs-xs); color: var(--text-3); }

table.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 12px 14px; font-size: var(--fs-sm); color: var(--text-3);
  border-bottom: 1px solid var(--border); background: var(--bg-soft); font-weight: 600;
}
.data-table td { padding: 13px 14px; font-size: var(--fs-sm); border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: rgba(34, 211, 238, 0.03); }

.status-pill {
  font-size: var(--fs-xs); padding: 3px 10px; border-radius: var(--radius-full); font-weight: 600;
}
.st-active { color: var(--success); background: rgba(52, 211, 153, 0.1); }
.st-pending { color: var(--warning); background: rgba(251, 191, 36, 0.1); }
.st-done { color: var(--primary); background: rgba(34, 211, 238, 0.1); }
.st-closed { color: var(--text-3); background: var(--surface-2); }

/* ---------- 消息通知 ---------- */
.panel-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-head-row h2 { margin-bottom: 20px; }

/* 侧栏未读数徽标 */
.msg-badge {
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); background: var(--danger, #f87171);
  color: #0b0f14; font-size: 11px; font-weight: 700; line-height: 1;
}
/* 未读消息行：左侧青蓝色条 + 淡底色 */
.data-table tr.msg-unread td { background: rgba(34, 211, 238, 0.045); }
.data-table tr.msg-unread td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center; padding: 56px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.empty-icon { font-size: 40px; color: var(--text-3); margin-bottom: 12px; }
.empty-title { font-size: var(--fs-md); color: var(--text-1); font-weight: 600; margin-bottom: 8px; }
.empty-desc { font-size: var(--fs-sm); color: var(--text-3); max-width: 420px; margin: 0 auto 20px; line-height: 1.7; }

/* ============================================================
   页脚
   ============================================================ */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 26px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-size: var(--fs-md); margin-bottom: 16px; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--text-3); font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--primary); }
.footer-desc { color: var(--text-3); font-size: var(--fs-sm); margin-top: 14px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; justify-content: space-between; color: var(--text-3); font-size: var(--fs-xs);
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-3); text-decoration: none; }
.footer-legal a:hover { color: var(--primary); }

/* 管理后台行情录入：表格内联小输入框 */
.mgt-input {
  width: 100%; min-width: 70px; box-sizing: border-box;
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-1); font-size: var(--fs-xs); padding: 5px 7px;
}
.mgt-input:focus { outline: none; border-color: var(--primary); }
.data-table .mgt-input { min-width: 60px; }

@media (max-width: 620px) {
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer-legal { gap: 10px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--surface-2); border: 1px solid var(--primary); color: var(--text-1);
  padding: 13px 26px; border-radius: var(--radius-full); font-size: var(--fs-md);
  box-shadow: var(--shadow-card); opacity: 0; transition: all .35s; z-index: 1001; /* 需高于 .modal-mask(1000)，否则弹窗内提示被遮罩挡住 */
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- 空状态 / 加载 ---------- */
.empty-state { text-align: center; padding: 70px 0; color: var(--text-3); }
.empty-state .e-ico { font-size: 46px; margin-bottom: 14px; }

/* ============================================================
   弹窗：登录 / 发布
   ============================================================ */
body.modal-open { overflow: hidden; }
.modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(3, 7, 15, .8); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 44px 20px; overflow-y: auto;
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0 } to { opacity: 1 } }
.modal-box {
  position: relative; width: 100%; max-width: 520px; margin: auto;
  max-height: calc(100vh - 88px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  animation: modalUp .24s ease;
}
@keyframes modalUp { from { transform: translateY(16px); opacity: 0 } to { transform: none; opacity: 1 } }
#publishModal .modal-box { max-width: 780px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 32px; height: 32px; line-height: 1; font-size: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-3); cursor: pointer;
  transition: all .15s;
}
.modal-close:hover { color: var(--text-1); border-color: var(--primary); }
.modal-body { padding: 30px 32px; overflow-y: auto; }

/* 关闭确认条：发布弹窗点 × / Esc 时贴顶滑出，避免手滑清空已填内容 */
.pub-confirm {
  position: sticky; top: -30px; z-index: 6;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: -30px -32px 20px; padding: 13px 32px;
  background: rgba(248, 113, 113, 0.14); border-bottom: 1px solid var(--danger);
  font-size: var(--fs-sm); color: var(--text-1);
  animation: pubErrIn .2s ease;
}
.pub-confirm span { flex: 1; min-width: 180px; }
.pc-btn {
  border-radius: var(--radius-full); padding: 7px 18px; font-size: var(--fs-sm);
  cursor: pointer; border: 1px solid var(--border); background: transparent;
  color: var(--text-2); transition: all .2s;
}
.pc-btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.pc-btn.leave { background: var(--danger); border-color: var(--danger); color: #fff; }
.pc-btn.leave:hover { opacity: .85; }

/* 登录框 */
.auth-box { max-width: 400px; margin: 0 auto; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-logo {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: var(--radius-md);
  background: var(--grad-primary); color: #04121a; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.auth-head h3 { font-size: var(--fs-xl); margin-bottom: 6px; }
.auth-head p { font-size: var(--fs-sm); color: var(--text-3); margin: 0; }
.code-row { display: flex; gap: 10px; }
.code-row .form-control { flex: 1; }
.code-row .btn { flex-shrink: 0; white-space: nowrap; }
.auth-agree {
  display: flex; gap: 8px; align-items: flex-start; cursor: pointer;
  font-size: var(--fs-sm); color: var(--text-2); margin: 6px 0 18px; line-height: 1.6;
}
.auth-agree a { color: var(--primary); }
.auth-tip {
  margin-top: 16px; text-align: center; font-size: var(--fs-xs); color: var(--text-3);
  background: var(--bg-soft); border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm); padding: 9px 12px; line-height: 1.6;
}

/* 登录方式切换 tabs */
.auth-tabs {
  display: flex; gap: 6px; background: var(--bg-soft);
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 4px; margin-bottom: 22px;
}
.auth-tab {
  flex: 1; padding: 8px 0; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2); font-size: var(--fs-sm);
  font-weight: 600; cursor: pointer; transition: all .2s;
}
.auth-tab:hover { color: var(--text-1); }
.auth-tab.active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.auth-sub { font-size: var(--fs-xs); color: var(--text-3); margin: -8px 0 16px; }

/* 发布框 */
.pub-head { margin-bottom: 22px; padding-right: 30px; }
.pub-head h3 { font-size: var(--fs-xl); margin-bottom: 6px; }
.pub-head p { font-size: var(--fs-sm); color: var(--text-3); margin: 0; }
.pub-box .form-card { box-shadow: none; border: none; padding: 0; background: transparent; }
.pub-box .stepper { margin-bottom: 26px; }

/* header 用户区 */
.user-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border: 1px solid var(--border);
  border-radius: var(--radius-full); background: var(--surface-2); cursor: pointer;
  transition: all .15s; user-select: none;
}
.user-chip:hover { border-color: var(--primary); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--grad-primary);
  color: #04121a; font-size: var(--fs-sm); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-phone {
  font-size: var(--fs-sm); color: var(--text-1);
  font-family: "SF Mono", Consolas, monospace;
}
.user-caret { font-size: 10px; color: var(--text-3); }
.user-drop {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px;
  background: var(--surface-2); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 6px; display: none; z-index: 60;
}
.user-chip.open .user-drop { display: block; }
.user-drop a {
  display: block; padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.user-drop a:hover { background: var(--surface-3); color: var(--text-1); }
/* 管理员后台专属模式下，用户下拉顶部的小标签 */
.user-drop-tag {
  display: block; padding: 6px 14px 2px; font-size: var(--fs-xs);
  color: var(--primary); letter-spacing: 1px; font-weight: 600;
}

/* ============================================================
   管理员后台专属模式（auth.js applyAdminMode 加 header.admin-only）
   隐藏顶部前台浏览导航与"+免费发布"，管理后台页不再露出普通站内入口
   ============================================================ */
header.header.admin-only .nav > a { display: none; }
header.header.admin-only .nav-user { display: none; }
header.header.admin-only .header-actions > [data-action="publish"] { display: none; }


/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .biz-grid, .req-grid, .feat-grid, .market-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .flow-step::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item::after { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --fs-hero: 36px; --fs-3xl: 27px; }
  .nav { display: none; }
  .biz-grid, .req-grid, .feat-grid, .market-grid, .stats-grid,
  .form-row, .type-select-grid { grid-template-columns: 1fr; }
  .dual-wrap { grid-template-columns: 1fr; gap: 18px; }
  .hero-cta { flex-direction: column; }
  .search-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .stepper { flex-wrap: wrap; gap: 16px; }
  .stepper::before { display: none; }
}
