/* ============================================
   MES 引导页 - portal.css
   独立的样式,不影响原有 index.css
   ============================================ */

:root {
  --primary: #0c4a8a;
  --primary-light: #1976d2;
  --primary-lighter: #42a5f5;
  --accent: #06b6d4;
  --accent-2: #f59e0b;
  --bg: #f5f7fb;
  --bg-card: #ffffff;
  --text: #1a2b48;
  --text-soft: #5a6b85;
  --text-mute: #8895ad;
  --border: #e6ebf2;
  --shadow-sm: 0 1px 3px rgba(12, 74, 138, 0.06);
  --shadow: 0 4px 16px rgba(12, 74, 138, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 74, 138, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

/* ========== 顶部导航 ========== */
.portal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.portal-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.portal-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.5px;
}
.portal-nav-links { display: flex; gap: 28px; }
.portal-nav-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}
.portal-nav-links a:hover { color: var(--primary); }
.portal-nav-cta {
  padding: 8px 18px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.portal-nav-cta:hover { background: var(--primary-light); color: #fff !important; }

/* ========== Hero 区 ========== */
.portal-hero {
  position: relative;
  background: linear-gradient(135deg, #0c4a8a 0%, #1565c0 45%, #0288d1 100%);
  color: #fff;
  padding: 80px 24px 100px;
  overflow: hidden;
}
.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(6, 182, 212, .25) 0%, transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(66, 165, 245, .35) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(245, 158, 11, .15) 0%, transparent 50%);
  pointer-events: none;
}
.portal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%);
}
.portal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.portal-hero-inner-centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 820px;
}
.portal-hero-inner-centered .portal-hero-tag {
  margin-left: auto;
  margin-right: auto;
}
.portal-hero-inner-centered .portal-hero-sub {
  margin-left: auto;
  margin-right: auto;
}
.portal-hero-inner-centered .portal-hero-cta {
  justify-content: center;
}
.portal-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  font-size: 12px;
  color: rgba(255,255,255,.92);
  margin-bottom: 22px;
}
.portal-hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
}
.portal-hero h1 {
  font-size: 44px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 18px;
  color: #fff;
}
.portal-hero h1 .hl {
  background: linear-gradient(90deg, #fde68a 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.portal-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
  margin: 0 0 32px;
  max-width: 540px;
}
.portal-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary, .btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-hero-primary {
  background: #fff;
  color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-hero-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  color: var(--primary) !important;
}
.btn-hero-ghost {
  background: rgba(255,255,255,.08);
  color: #fff !important;
  border-color: rgba(255,255,255,.3);
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,.18);
  color: #fff !important;
}

/* ========== Stats 数字条 ========== */
.portal-stats {
  max-width: 1200px;
  margin: -50px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
}
.stat-item {
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 4px 8px;
}
.stat-item:last-child { border-right: 0; }
.stat-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.2;
}
.stat-num small { font-size: 13px; font-weight: 500; color: var(--text-mute); margin-left: 2px; }
.stat-label {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* ========== 通用 Section ========== */
.portal-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.portal-section-header {
  text-align: center;
  margin-bottom: 50px;
}
.portal-section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.portal-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -1px;
}
.portal-section-sub {
  font-size: 15px;
  color: var(--text-mute);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== 能力卡片网格 ========== */
.portal-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transition: height .3s;
}
.feature-card:hover {
  border-color: var(--primary-lighter);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-card:hover::before { height: 100%; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e3f2fd 0%, #d1e9fc 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card:nth-child(2n) .feature-icon {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  color: #0e7490;
}
.feature-card:nth-child(3n) .feature-icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
}
.feature-card:nth-child(4n) .feature-icon {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #15803d;
}
.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.feature-desc {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
  margin: 0;
}

/* ========== 核心业务流程 ========== */
.portal-flow {
  background: linear-gradient(180deg, #fff 0%, #f5f8fc 100%);
}

/* 时间线容器(共用) */
.flow-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ---------- PC 端:水平时间线 ---------- */
@media (min-width: 769px) {
  .flow-timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 36px 12px 28px;
  }
  .flow-item {
    position: relative;
    text-align: center;
    padding: 0 6px;
  }
  /* PC 端圆点之间的横线 */
  .flow-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-lighter) 0%, var(--accent) 100%);
    opacity: .35;
    z-index: 0;
  }
  .flow-dot {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, .25);
  }
  .flow-dot-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
  }
  .flow-content { text-align: center; }
  .flow-icon {
    display: none;
  }
  .flow-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
  }
  .flow-item p {
    font-size: 11px;
    color: var(--text-mute);
    line-height: 1.5;
    margin: 0;
  }
  .flow-item-final .flow-dot {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, .25);
  }
  .flow-item-final h4 { color: #b45309; }
}

/* ---------- 手机端:垂直时间线 ---------- */
@media (max-width: 768px) {
  .flow-timeline {
    padding: 8px 0;
  }
  .flow-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px 18px 16px;
  }
  /* 圆点之间的竖线 */
  .flow-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 56px;
    left: 35px;
    bottom: -18px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--accent) 100%);
    opacity: .35;
  }
  .flow-dot {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(25, 118, 210, .25);
    position: relative;
    z-index: 1;
  }
  .flow-dot-num {
    font-size: 12px;
    font-weight: 700;
  }
  .flow-icon {
    display: none;
  }
  .flow-content {
    flex: 1;
    text-align: left;
    padding-top: 2px;
  }
  .flow-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
  }
  .flow-item p {
    font-size: 13px;
    color: var(--text-mute);
    line-height: 1.6;
    margin: 0;
  }
  .flow-item-final .flow-dot {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, .25);
  }
  .flow-item-final h4 { color: #b45309; }
}

/* 流程下方的 4 个特性卡(共用) */
.flow-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.flow-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.flow-feature svg {
  width: 20px;
  height: 20px;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}
.flow-feature div { display: flex; flex-direction: column; gap: 2px; }
.flow-feature strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.flow-feature span {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ========== 数据看板 ========== */
.portal-reports {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.report-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.report-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transition: height .3s;
}
.report-card:hover {
  border-color: var(--primary-lighter);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.report-card:hover::before { height: 100%; }
.report-icon-lg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e3f2fd 0%, #d1e9fc 100%);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.report-icon-lg svg { width: 26px; height: 26px; }
.report-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}
.report-card p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
  margin: 0;
}

/* ========== 角色权限 ========== */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.role-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .3s;
}
.role-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.role-card:hover::before { opacity: 1; }
.role-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}
.role-avatar svg { width: 26px; height: 26px; }
.role-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.role-card p {
  font-size: 12px;
  color: var(--text-mute);
  margin: 0 0 16px;
  line-height: 1.6;
}
.role-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.role-card li {
  font-size: 12px;
  color: var(--text-soft);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.5;
}
.role-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-lighter);
}

/* ========== 快速入口 ========== */
.portal-quick {
  background: linear-gradient(180deg, #fff 0%, #f0f4f9 100%);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quick-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}
.quick-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.quick-card-tag {
  position: absolute;
  top: 16px; right: 16px;
  padding: 2px 10px;
  border-radius: 100px;
  background: #e0f2fe;
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
}
.quick-card-tag.new { background: #dcfce7; color: #16a34a; }
.quick-icon-big {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 74, 138, .25);
}
.quick-icon-big svg { width: 28px; height: 28px; }
.quick-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.quick-desc {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}
.quick-link:hover { gap: 8px; }

/* ========== 底部 ========== */
.portal-footer {
  background: #0a1a36;
  color: rgba(255,255,255,.7);
  padding: 40px 24px 20px;
}
.portal-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 320px;
}
.footer-col h4 {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.55); font-size: 13px; }
.footer-col a:hover { color: #fff; }
.portal-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .portal-features { grid-template-columns: repeat(2, 1fr); }
  .quick-grid, .quick-grid-2 { grid-template-columns: 1fr; }
  .portal-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2n) { border-right: 0; }
  .portal-footer-inner { grid-template-columns: 1fr 1fr; }
  .portal-hero h1 { font-size: 36px; }
  .flow-features { grid-template-columns: repeat(2, 1fr); }
  .reports-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .portal-nav-links { display: none; }
  .portal-features { grid-template-columns: 1fr; }
  .portal-stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 0; }
  .stat-item:last-child { border-bottom: 0; }
  .portal-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .portal-hero { padding: 50px 20px 70px; }
  .portal-hero h1 { font-size: 28px; }
  .portal-section { padding: 50px 20px; }
  .portal-section-title { font-size: 24px; }
  .flow-features { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
}

/* ============================================
   操作手册页 - manual.html
   ============================================ */
.manual-hero {
  background: linear-gradient(135deg, #0c4a8a 0%, #1565c0 45%, #0288d1 100%);
  color: #fff;
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.manual-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(6,182,212,.12) 0, transparent 50%);
  pointer-events: none;
}
.manual-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.manual-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -1px;
}
.manual-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin: 0;
  line-height: 1.7;
}
.manual-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 12px;
  margin-bottom: 16px;
  color: #fff;
}

.manual-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

/* 侧边目录 */
.manual-toc {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.manual-toc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.manual-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.manual-toc li { margin: 0; }
.manual-toc a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: 6px;
  border-left: 2px solid transparent;
  margin-bottom: 2px;
  line-height: 1.5;
  transition: all .15s;
}
.manual-toc a:hover {
  color: var(--primary);
  background: rgba(25, 118, 210, .05);
}
.manual-toc a.is-active {
  color: var(--primary);
  background: rgba(25, 118, 210, .08);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* 内容卡片 */
.manual-content { min-width: 0; }
.manual-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 80px;
}
.manual-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--primary), transparent) 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.manual-card h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.manual-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary-light);
}
.manual-card p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-soft);
  margin: 0 0 12px;
}
.manual-card ul, .manual-card ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.85;
}
.manual-card li { margin-bottom: 4px; }
.manual-card code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  background: #f1f5fb;
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

/* 表格 */
.manual-card .doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.manual-card .doc-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.manual-card .doc-table th,
.manual-card .doc-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.manual-card .doc-table th { font-weight: 600; font-size: 12.5px; }
.manual-card .doc-table tr:last-child td { border-bottom: 0; }
.manual-card .doc-table tbody tr:nth-child(even) { background: #fafbfd; }
.manual-card .doc-table tbody tr:hover { background: #f1f5fb; }

/* 概念卡片(网格) */
.manual-card .concept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0;
}
.manual-card .concept {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fafbfd, #fff);
  transition: all .2s;
}
.manual-card .concept:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(25, 118, 210, .1);
  transform: translateY(-2px);
}
.manual-card .concept-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.manual-card .concept-desc {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* 流程图(伪流程图,纯 CSS) */
.manual-card .flow {
  background: #f8fafd;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 14px 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
}

/* 信息盒 */
.manual-card .info-box {
  background: linear-gradient(135deg, rgba(25,118,210,.06), rgba(6,182,212,.06));
  border-left: 3px solid var(--primary-light);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}
.manual-card .info-box strong { color: var(--primary); }

/* 状态徽章 */
.manual-card .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #e3f2fd;
  color: var(--primary);
  margin-right: 4px;
}
.manual-card .tag.green { background: #d4f4dd; color: #1b6e3d; }
.manual-card .tag.orange { background: #fff3e0; color: #b75d00; }
.manual-card .tag.red { background: #ffe2e2; color: #c0392b; }

/* 响应式 */
@media (max-width: 900px) {
  .manual-wrap {
    grid-template-columns: 1fr;
    padding: 30px 20px 60px;
    gap: 20px;
  }
  .manual-toc {
    position: static;
    max-height: 220px;
    overflow-y: auto;
  }
  .manual-card { padding: 24px 20px; }
  .manual-card .concept-grid { grid-template-columns: 1fr; }
  .manual-hero h1 { font-size: 28px; }
  .manual-hero { padding: 40px 20px 36px; }
}
@media (max-width: 600px) {
  .manual-card h2 { font-size: 18px; }
  .manual-card { padding: 20px 16px; }
  .manual-card .doc-table { font-size: 12px; }
  .manual-card .doc-table th, .manual-card .doc-table td { padding: 8px; }
}
