*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;font-size:15px;-webkit-font-smoothing:antialiased}

:root {
  --font: -apple-system,BlinkMacSystemFont,'SF Pro Display','PingFang SC','Microsoft YaHei',sans-serif;
  --font-mono: 'SF Mono','Cascadia Code','Consolas',monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg-root: #F8F9FC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F4F9;
  --bg-hover: #E8ECF4;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent: #FE620F;
  --accent-light: #FE7D17;
  --accent-subtle: rgba(254,98,15,0.08);
  --accent-glow: rgba(254,98,15,0.15);
  --success: #10B981;
  --success-subtle: rgba(16,185,129,0.08);
  --warning: #F59E0B;
  --warning-subtle: rgba(245,158,11,0.08);
  --danger: #EF4444;
  --info: #0EA5E9;
  --info-subtle: rgba(14,165,233,0.08);
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow: 0 1px 3px rgba(0,0,0,0.04),0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --gradient-hero: linear-gradient(135deg, #FE620F 0%, #FE7D17 100%);
}

[data-theme="dark"] {
  --bg-root: #09090B;
  --bg-surface: #111113;
  --bg-subtle: #18181B;
  --bg-hover: #202024;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --accent: #FE8A2B;
  --accent-light: #FE9D45;
  --accent-subtle: rgba(254,98,15,0.12);
  --accent-glow: rgba(254,138,43,0.15);
  --success: #34D399;
  --success-subtle: rgba(52,211,153,0.1);
  --warning: #FBBF24;
  --warning-subtle: rgba(251,191,36,0.1);
  --danger: #F87171;
  --info: #38BDF8;
  --info-subtle: rgba(56,189,248,0.1);
  --border: #27272A;
  --border-light: #1F1F23;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --gradient-hero: linear-gradient(135deg, #FE620F 0%, #FE7D17 100%);
}

body {
  font-family: var(--font);
  background: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }

/* ═══ 页头 ═══ */
.page-head {
  max-width: 760px;
  margin: 40px auto 24px;
  padding: 0 8px;
  text-align: center;
}
.page-head .ph-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.page-head .ph-eyebrow::before, .page-head .ph-eyebrow::after {
  content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 1px;
}
.page-head h1 {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  margin-top: 12px; line-height: 1.3;
}
.page-head h1 .grad {
  background: var(--gradient-hero); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head p {
  font-size: 14px; color: var(--text-secondary); margin-top: 10px; max-width: 620px; margin-left: auto; margin-right: auto;
}

/* ═══ MAIN ═══ */
.main {
  max-width: 760px;
  margin: 0 auto 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Section */
.section {
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-num {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.section-num::before {
  content: ''; width: 20px; height: 2px;
  background: var(--accent); border-radius: 1px;
}

.section-title {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  max-width: 680px; margin-top: 6px;
}
.section-desc code {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--accent-subtle); padding: 1px 6px;
  border-radius: 3px; color: var(--accent);
}

/* 目录 */
.toc {
  margin-top: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-subtle); padding: 16px 20px;
}
.toc a {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
  padding: 5px 0; transition: var(--transition);
}
.toc a:hover { color: var(--accent); }
.toc a .n {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  min-width: 22px; flex-shrink: 0;
}

/* 步骤 */
.steps { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 18px; box-shadow: var(--shadow);
}
.step .sn {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--gradient-hero); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px var(--accent-glow);
}
.step .sb { flex: 1; min-width: 0; }
.step .sb b { display: block; font-size: 14px; color: var(--text-primary); }
.step .sb p { font-size: 13px; color: var(--text-secondary); margin-top: 3px; line-height: 1.65; }

/* 工作流步骤块：步骤卡 + 下方截图 */
.flow-step { margin-bottom: 22px; }
.flow-step .shot { margin: 8px 0 0; }

/* 子主题标题 */
.sub-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.01em; margin: 28px 0 6px;
}
.sub-title::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--gradient-hero);
}
.sub-desc {
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.7;
  max-width: 680px; margin: 0 0 14px;
}

/* 岗位配置功能块标题 */
.jc-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.01em; margin: 24px 0 6px;
}
.jc-title .ji {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--accent); background: var(--accent-subtle);
}

/* 功能亮点 */
.feats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 18px 0 4px; }
.feat {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; row-gap: 6px;
  align-items: center; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-subtle); border: 1px solid var(--border-light);
}
.feat .fi {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-subtle); grid-column: 1; grid-row: 1;
}
.feat .fi svg { width: 16px; height: 16px; }
.feat b { display: block; font-size: 13.5px; color: var(--text-primary); grid-column: 2; grid-row: 1; }
.feat span { display: block; font-size: 12px; color: var(--text-secondary); line-height: 1.55; grid-column: 1/span 2; grid-row: 2; }
.feats.ai { grid-template-columns: repeat(4,1fr); }

/* 对比表（居中） */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 20px 0 8px;
  font-size: 12px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th {
  padding: 10px 12px; background: var(--bg-subtle);
  font-weight: 600; font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  text-align: center; border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border-light);
  text-align: center; color: var(--text-secondary);
}
.compare-table td:first-child { text-align: center; font-weight: 500; color: var(--text-primary); }
.compare-table tr:nth-child(even) td { background: var(--bg-subtle); }
.compare-table tr:last-child td { border-bottom: none; }
.check { color: var(--success); font-weight: 600; }
.cross { color: var(--text-muted); }

/* 信息表（左对齐，用于文字） */
.info-table {
  width: 100%; border-collapse: collapse; margin: 18px 0 8px;
  font-size: 13px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.info-table th {
  padding: 11px 14px; background: var(--bg-subtle);
  font-weight: 600; font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  text-align: left; border-bottom: 1px solid var(--border);
}
.info-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border-light);
  text-align: left; color: var(--text-secondary); vertical-align: top;
}
.info-table td:first-child { font-weight: 500; color: var(--text-primary); white-space: nowrap; }
.info-table tr:nth-child(even) td { background: var(--bg-subtle); }
.info-table tr:last-child td { border-bottom: none; }

/* Tip block */
.tip-block {
  margin-top: 20px; padding: 14px 18px;
  background: var(--accent-subtle); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}
.tip-block strong { color: var(--text-primary); }
.tip-block.warn {
  background: var(--warning-subtle); border-left-color: var(--warning);
}
.tip-block.warn i { color: var(--warning); }

/* 平台网址清单 */
.platform-list { margin: 16px 0 18px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-subtle); }
.platform-list .pl-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.platform-list .pl-item:last-child { border-bottom: none; }
.platform-list .pl-name { flex-shrink: 0; min-width: 72px; font-weight: 600; font-size: 13px; color: var(--text-primary); padding-top: 1px; }
.platform-list .pl-url { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); word-break: break-all; line-height: 1.6; }

/* 平台徽标 */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.badge.blue { color: #2563EB; background: rgba(59,130,246,0.10); }
.badge.green { color: #15803D; background: rgba(22,163,74,0.10); }
.badge.orange { color: #C2410C; background: rgba(249,115,22,0.12); }

/* ═══ 界面截图 ═══ */
.shot {
  margin: 16px 0; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--bg-surface); box-shadow: var(--shadow);
}
.shot a { display: block; line-height: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; font-size: 12px; color: var(--text-muted);
  border-top: 1px solid var(--border-light); line-height: 1.6;
}
.shot figcaption i { font-size: 14px; color: var(--accent); flex-shrink: 0; }
.shot figcaption .zoom { margin-left: auto; font-size: 11px; color: var(--text-muted); opacity: .75; white-space: nowrap; }

/* ═══ 响应式 ═══ */
@media (max-width: 860px) {
  .main { margin: 0 16px 60px; border-radius: 16px; }
  .section { padding: 28px 22px; }
  .section-title { font-size: 19px; }
  .sub-title { font-size: 15px; }
  .jc-title { font-size: 14px; }
  .compare-table, .info-table { font-size: 12px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .feats.ai { grid-template-columns: 1fr 1fr; }
  .toc { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
}

@media (max-width: 560px) {
  html { font-size: 14px; }
  body { line-height: 1.65; }
  .page-head { margin: 24px auto 16px; padding: 0 14px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 13px; }
  .main { margin: 0 0 40px; border-radius: 0; border: none; }
  .section { padding: 24px 16px; }
  .section-title { font-size: 18px; }
  .sub-title { font-size: 14.5px; }
  .jc-title { font-size: 13.5px; margin: 20px 0 6px; }
  .section-desc { font-size: 13px; }
  .sub-desc { font-size: 13px; }
  .feats, .feats.ai { grid-template-columns: 1fr; }
  .toc { padding: 12px 14px; }
  .toc a { font-size: 12.5px; }
  .step { flex-direction: column; gap: 8px; }
  .step .sn { width: 26px; height: 26px; font-size: 12px; }
  .step .sb b { font-size: 13.5px; }
  .step .sb p { font-size: 12.5px; }
  .platform-list { margin: 12px 0 14px; }
  .platform-list .pl-item { flex-direction: column; gap: 3px; padding: 10px 14px; }
  .platform-list .pl-name { min-width: 0; font-size: 12.5px; }
  .platform-list .pl-url { font-size: 11.5px; }
  .info-table, .compare-table { font-size: 12px; }
  .info-table th, .info-table td { padding: 9px 10px; }
  .info-table td:first-child { white-space: normal; }
  .info-table td { word-break: break-word; }
  .shot { border-radius: 10px; }
  .shot figcaption { flex-wrap: wrap; font-size: 11.5px; padding: 8px 12px; }
  .shot figcaption .zoom { margin-left: 0; width: 100%; font-size: 10.5px; }
  .tip-block { padding: 12px 14px; font-size: 12.5px; }
  .flow-step { margin-bottom: 18px; }
}
