:root {
  --navy: #0d1a2b;
  --navy-2: #13253c;
  --ink: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #94a3b8;
  --line: #e4e9f2;
  --bg: #f4f6fb;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-soft: #edf3ff;
  --green: #059669;
  --green-soft: #e9f8f1;
  --amber: #b45309;
  --amber-soft: #fff7e8;
  --red: #b42318;
  --red-soft: #fef3f2;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { width: 16px; height: 16px; flex: 0 0 auto; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
::selection { background: #c7dbff; }

/* ==================== 布局 ==================== */
.app {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  width: 100%;
  max-width: 1500px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  width: 296px;
  height: 100vh;
  padding: 22px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #dbe5f3;
  background:
    radial-gradient(1100px 420px at -20% -10%, rgba(59, 130, 246, 0.24), transparent 55%),
    radial-gradient(700px 380px at 120% 110%, rgba(16, 185, 129, 0.12), transparent 60%),
    linear-gradient(180deg, #0d1a2b 0%, #0f2035 100%);
  overflow: hidden;
  z-index: 40;
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.sidebar > * { position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 11px; padding: 2px 4px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #3b82f6, #1d4ed8 65%, #0ea5e9);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -0.5px;
}
.brand-name { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.4px; }
.brand-sub { font-size: 10px; color: #8298b7; letter-spacing: 2.2px; text-transform: uppercase; }

.upload-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 0 14px 28px rgba(2, 8, 23, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.upload-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(2, 8, 23, 0.32); }
.upload-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  flex: 0 0 auto;
}
.upload-icon svg { width: 21px; height: 21px; }
.upload-btn b { display: block; font-size: 14px; line-height: 1.35; }
.upload-btn small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.upload-btn .up-arrow { margin-left: auto; color: #94a3b8; font-size: 18px; }

.dataset-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  padding: 11px 12px;
  display: none;
  align-items: center;
  gap: 9px;
}
.dataset-card.show { display: flex; }
.dataset-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12); flex: 0 0 auto; }
.dataset-meta { min-width: 0; flex: 1; }
.dataset-name { color: #f1f5f9; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dataset-sub { color: #8ea3c0; font-size: 10.5px; }
.dataset-change { border: 0; background: none; color: #93c5fd; font-size: 11px; padding: 0; }
.dataset-change:hover { color: #fff; }

.nav-label { color: #7086a5; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; padding: 2px 8px 0; }
.nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; padding-right: 2px; flex: 1 1 auto; min-height: 0; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 10px;
  color: #aebdd2; border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.055); color: #e8eefb; }
.nav-item.active { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); color: #9fc0ff; flex: 0 0 auto; }
.nav-item.active .nav-ico { background: var(--accent); color: #fff; box-shadow: 0 5px 12px rgba(37, 99, 235, 0.35); }
.nav-ico svg { width: 15px; height: 15px; }
.nav-text { min-width: 0; }
.nav-title { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.nav-desc { font-size: 10px; color: #7e93b0; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item.active .nav-desc { color: #9fb6d6; }
.nav-count { margin-left: auto; font-size: 10px; color: #7e93b0; background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 20px; }
.sidebar-foot { margin-top: auto; padding: 10px 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #6d82a0; font-size: 10px; display: flex; justify-content: space-between; gap: 8px; }

.main { margin-left: 0; min-width: 0; min-height: 100vh; padding: 0 34px 56px; }
.topbar { height: 68px; max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.crumb { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.crumb b { color: var(--ink); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; padding: 5px 10px; border-radius: 20px; font-size: 11px; color: var(--muted); }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; }
.status-pill.ok .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.content { width: 100%; max-width: 1120px; margin: 0 auto; }

/* ==================== 首页 ==================== */
.hero { padding: 40px 0 26px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 2px; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.hero h1 { margin: 12px 0 10px; font-size: 34px; line-height: 1.25; letter-spacing: -1px; color: var(--ink); font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 0; max-width: 650px; color: var(--muted); font-size: 14px; }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn {
  border: 1px solid transparent; border-radius: 10px; padding: 9px 16px;
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.16s ease; background: #fff; color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25); }
.btn-primary:hover { background: #1d4ed8; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: #c7d5ec; background: #f8faff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }

.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.home-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfdcf3; }
.home-card .hc-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.home-card .hc-ico svg { width: 19px; height: 19px; }
.home-card h3 { margin: 4px 0 0; font-size: 15px; color: var(--ink); }
.home-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.home-card .hc-link { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.home-card.report { background: linear-gradient(135deg, #0d1a2b, #17335a); border-color: transparent; color: #fff; }
.home-card.report h3 { color: #fff; }
.home-card.report p { color: #aac0de; }
.home-card.report .hc-ico { background: rgba(255, 255, 255, 0.12); color: #9fc0ff; }
.home-card.report .hc-link { color: #93c5fd; }
.home-banner { margin-top: 18px; background: #fff; border: 1px dashed #cbd8ec; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.home-banner b { color: var(--ink); }
.home-banner .spacer { flex: 1; }

/* ==================== 页头 / 方法选择 ==================== */
.page-head { padding: 30px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.5px; color: var(--ink); }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.page-head .head-tag { font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 20px; font-weight: 600; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 12px; margin-bottom: 22px; }
.method-card {
  text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 14px 15px; display: flex; gap: 12px; align-items: flex-start;
  transition: all 0.16s ease; box-shadow: var(--shadow-sm);
}
.method-card:hover { border-color: #c3d3ec; transform: translateY(-1px); }
.method-card.active { border-color: var(--accent); background: linear-gradient(180deg, #f7faff, #fff); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.method-index { width: 26px; height: 26px; border-radius: 8px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; }
.method-card.active .method-index { background: var(--accent); color: #fff; }
.method-copy { min-width: 0; }
.method-copy b { display: block; color: var(--ink); font-size: 13.5px; line-height: 1.4; }
.method-copy span { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.5; margin-top: 2px; }

/* ==================== 板块 ==================== */
.board {
  border: 2px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.06);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid #dbeafe;
}
.board-kicker { display: block; color: var(--accent); font-size: 9.5px; letter-spacing: 2px; font-weight: 800; }
.board-head h2 { margin: 3px 0 0; font-size: 19px; line-height: 1.35; color: #1e40af; letter-spacing: -0.2px; }
.board-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.board-head .head-tag { flex: 0 0 auto; margin-top: 4px; }
.method-board { padding-bottom: 20px; }
.method-board .method-grid { margin-bottom: 0; }
.method-panel .section-title { margin-top: 2px; }
.method-panel .role-list { gap: 9px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-title h2 { margin: 0; font-size: 15px; color: var(--ink); letter-spacing: -0.2px; }
.section-title .hint { color: var(--muted); font-size: 11.5px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.method-intro { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.method-intro .mi-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.method-intro h2 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.method-intro p { margin: 0; color: var(--muted); font-size: 12.5px; }

/* ==================== 变量声明 ==================== */
.role-list { display: flex; flex-direction: column; gap: 10px; }
.role-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color 0.16s ease; }
.role-card.open { border-color: #c9d8f0; }
.role-head { width: 100%; border: 0; background: #fff; padding: 13px 15px; display: flex; align-items: center; gap: 11px; text-align: left; }
.role-head:hover { background: #fbfcff; }
.role-num { width: 24px; height: 24px; border-radius: 7px; background: #f1f5f9; color: #64748b; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: 0 0 auto; }
.role-card.open .role-num { background: var(--accent); color: #fff; }
.role-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.role-req { font-size: 10px; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 1px 5px; margin-left: 6px; font-weight: 600; }
.role-summary { margin-left: auto; color: var(--muted); font-size: 11.5px; max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-chevron { color: #94a3b8; transition: transform 0.18s ease; flex: 0 0 auto; }
.role-card.open .role-chevron { transform: rotate(180deg); }
.role-body { display: none; padding: 0 15px 16px; }
.role-card.open .role-body { display: block; animation: fadeIn 0.18s ease; }
.role-hint { color: var(--muted); font-size: 11.5px; margin: 0 0 10px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid #dfe6f1; background: #fff; color: #334155;
  border-radius: 8px; padding: 5px 9px; font-size: 12px; line-height: 1.4;
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.13s ease;
  max-width: 100%;
}
.chip:hover { border-color: #9db9e4; background: #f8fbff; }
.chip.selected { border-color: var(--accent); background: var(--accent-soft); color: #1d4ed8; font-weight: 600; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.07); }
.chip.locked { opacity: 0.38; text-decoration: line-through; cursor: not-allowed; background: #f8fafc; color: #94a3b8; }
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: #94a3b8; flex: 0 0 auto; }
.chip .dot.numeric { background: #2563eb; }
.chip .dot.categorical { background: #d97706; }
.chip .dot.binary { background: #7c3aed; }
.chip .type-mark { font-size: 9px; color: #94a3b8; }
.chip.selected .type-mark { color: #6d9bf5; }
.empty-note { color: var(--muted); font-size: 12px; padding: 8px 0; }

/* 选项 */
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.field label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; border: 1px solid #dfe6f1; background: #fff; border-radius: 8px;
  height: 34px; padding: 0 10px; font-size: 12.5px; color: var(--text); outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.field select:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.field .help { color: #94a3b8; font-size: 10.5px; margin-top: 4px; }

/* 分组结构（CFA） */
.factor-list { display: flex; flex-direction: column; gap: 10px; }
.factor-card { border: 1px solid #e2e8f2; background: #fbfcff; border-radius: 10px; padding: 11px 12px; }
.factor-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.factor-head input { flex: 1; height: 30px; border: 1px solid #dfe6f1; border-radius: 7px; padding: 0 9px; font-size: 12px; background: #fff; min-width: 0; }
.factor-head .factor-no { font-size: 10px; color: var(--muted); font-weight: 700; }
.icon-btn { border: 0; background: #fff; color: #94a3b8; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; border: 1px solid #e6ebf3; }
.icon-btn:hover { color: var(--red); border-color: #f3c9c4; background: var(--red-soft); }
.factor-actions { margin-top: 9px; }

/* ==================== 支付 / 会员（独立板块） ==================== */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 18px; align-items: stretch; }
.access-board { margin-bottom: 0; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 11px; }
.access-head { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 2px solid #dbeafe; }
.access-head .ac-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.access-head .ac-ico svg { width: 17px; height: 17px; }
.payment-board .ac-ico { background: #ecfdf5; color: #059669; }
.member-board .ac-ico { background: #fff7e6; color: #d97706; }
.access-head h2 { margin: 0; font-size: 15px; color: #1e40af; }
.access-head p { margin: 2px 0 0; color: var(--muted); font-size: 10.5px; }
.access-board .ac-state { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-height: 20px; line-height: 1.55; }
.access-board .ac-state.ok { color: var(--green); }
.access-board .ac-state.err { color: var(--red); }
.access-board .btn { margin-top: auto; width: 100%; justify-content: center; }
.access-board .price { font-size: 20px; font-weight: 800; color: var(--ink); }
.access-board .price span { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.member-mark { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 9px; }
.member-mark svg { width: 14px; height: 14px; }
.run-row { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.run-row .run-note { color: var(--muted); font-size: 11.5px; }
.run-row .btn { margin-left: auto; }
.alert { border-radius: 10px; padding: 11px 13px; font-size: 12.5px; line-height: 1.6; display: flex; gap: 9px; align-items: flex-start; }
.alert-error { background: var(--red-soft); color: #912018; border: 1px solid #fecdca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; }
.alert-warn { background: var(--amber-soft); color: #92400e; border: 1px solid #fde4b3; }
.alert svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }

/* ==================== 进度 / 结果 ==================== */
.progress-card { margin-top: 16px; display: none; }
.progress-card.show { display: block; }
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.progress-top b { font-size: 12.5px; color: var(--ink); }
.progress-top span { font-size: 11.5px; color: var(--muted); }
.progress-track { height: 8px; border-radius: 20px; background: #eef2f8; overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 20px; background: linear-gradient(90deg, #3b82f6, #2563eb, #0ea5e9); background-size: 200% 100%; transition: width 0.45s ease; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
.progress-stage { margin-top: 8px; color: var(--muted); font-size: 11.5px; display: flex; justify-content: space-between; gap: 10px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #dbeafe; border-top-color: var(--accent); animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.results { margin-top: 24px; display: none; }
.results.show { display: block; animation: fadeIn 0.25s ease; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.results-head h2 { margin: 0; font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.results-head .done-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.results-head .result-meta { color: var(--muted); font-size: 11.5px; }
.result-table-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 2px solid #bfdbfe;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 5px 18px rgba(37, 99, 235, 0.06);
}
.result-table-head { padding: 13px 16px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid #dbeafe; }
.result-table-head h3 { margin: 0; font-size: 14px; color: #1e40af; letter-spacing: 0.2px; }
.table-scroll { overflow-x: auto; padding: 12px 14px 4px; }
table.result-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; text-align: center; background: #fff; }
table.result-table th,
table.result-table td {
  border: 1px solid #d1d5db;
  padding: 7px 9px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.45;
}
table.result-table thead th { background: #eff6ff; color: #1e40af; font-weight: 700; font-size: 12px; white-space: nowrap; }
table.result-table thead tr:first-child th { border-bottom: 1px solid #93c5fd; }
table.result-table thead tr:nth-child(2) th { border-top: 0; }
table.result-table tbody tr:nth-child(even) td { background: #f9fafb; }
table.result-table tbody tr:hover td { background: #eff6ff; }
table.result-table td.p-sig { color: var(--red); font-weight: 700; }
table.result-table td.cell-name { color: var(--ink); font-weight: 600; }
.result-note { padding: 9px 16px 13px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.run-row .run-note svg { width: 13px; height: 13px; vertical-align: -2px; color: #94a3b8; }
.result-note { padding: 9px 15px; background: #fbfcfe; color: var(--muted); font-size: 10.5px; border-top: 1px solid #f1f4f9; }
.result-notes { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px; margin-bottom: 14px; }
.result-notes h3 { margin: 0 0 8px; font-size: 12.5px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.result-notes h3 svg { width: 14px; height: 14px; color: var(--accent); }
.result-notes ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 11.5px; }
.result-notes li { margin: 4px 0; }
.pdf-card { background: linear-gradient(135deg, #0d1a2b, #1b3a63); color: #fff; border-radius: 14px; padding: 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.pdf-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; color: #93c5fd; flex: 0 0 auto; }
.pdf-card b { display: block; font-size: 15px; }
.pdf-card small { display: block; color: #a9bfdc; font-size: 11.5px; margin-top: 2px; }
.pdf-card .btn { margin-left: auto; background: #fff; color: var(--navy); }
.demo-tag { font-size: 9.5px; border: 1px solid #fde4b3; color: #b45309; background: #fffbeb; border-radius: 5px; padding: 1px 6px; font-weight: 600; }

.empty-state { background: #fff; border: 1px dashed #cfdcef; border-radius: var(--radius); padding: 44px 20px; text-align: center; margin-top: 12px; }
.empty-state .es-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 12px; }
.empty-state h3 { margin: 0 0 5px; font-size: 15px; color: var(--ink); }
.empty-state p { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; }

/* ==================== 模态框 ==================== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 15, 28, 0.55); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal-backdrop.show { display: flex; }
.modal { width: 100%; max-width: 560px; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(2, 8, 23, 0.35); overflow: hidden; animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.modal-head { padding: 20px 22px 12px; display: flex; align-items: flex-start; gap: 12px; }
.modal-head .mh-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.modal-head h2 { margin: 0; font-size: 17px; color: var(--ink); }
.modal-head p { margin: 2px 0 0; color: var(--muted); font-size: 11.5px; }
.modal-close { margin-left: auto; border: 0; background: #f4f6fa; color: #64748b; width: 30px; height: 30px; border-radius: 8px; font-size: 17px; line-height: 1; }
.modal-close:hover { background: #eef2f8; color: var(--ink); }
.modal-body { padding: 4px 22px 20px; }
.notice-box { background: #f8fafc; border: 1px solid #e8eef7; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.notice-box b { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #475569; margin-bottom: 6px; }
.notice-box ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.dropzone { border: 1.5px dashed #c8d6ea; border-radius: 12px; background: #fbfdff; padding: 26px 16px; text-align: center; cursor: pointer; transition: all 0.16s ease; }
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: #f5f9ff; }
.dropzone .dz-ico { width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid #e4ebf5; display: grid; place-items: center; margin: 0 auto 9px; color: var(--accent); box-shadow: var(--shadow-sm); }
.dropzone b { display: block; font-size: 13px; color: var(--ink); }
.dropzone small { color: var(--muted); font-size: 11px; }
.file-card { display: none; margin-top: 12px; border: 1px solid #d9e6d9; background: #f7fcf9; border-radius: 10px; padding: 11px 12px; align-items: center; gap: 10px; }
.file-card.show { display: flex; }
.file-card .fc-ico { width: 34px; height: 34px; border-radius: 8px; background: #e7f7ef; color: var(--green); display: grid; place-items: center; flex: 0 0 auto; }
.file-card .fc-main { min-width: 0; flex: 1; }
.file-card .fc-name { font-size: 12px; font-weight: 700; color: #14532d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card .fc-sub { font-size: 10.5px; color: #4b7a5c; }
.file-card .fc-ok { color: var(--green); font-size: 15px; }
.upload-error { display: none; margin-top: 10px; }
.upload-error.show { display: flex; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: #fbfcfe; }
.modal-foot .mf-note { color: var(--muted); font-size: 10.5px; }
.modal-foot .btn { margin-left: auto; }

/* ==================== 报告页 ==================== */
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.model-card { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 8px; transition: all 0.16s ease; box-shadow: var(--shadow-sm); }
.model-card:hover { border-color: #c3d3ec; transform: translateY(-1px); }
.model-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.model-card .mc-img { height: 120px; border-radius: 9px; background: #f8fafc; border: 1px solid #eef2f8; display: grid; place-items: center; overflow: hidden; }
.model-card .mc-img img { max-width: 92%; max-height: 106px; object-fit: contain; }
.model-card .mc-name { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.model-card .mc-sub { font-size: 11px; color: var(--accent); font-weight: 600; }
.model-card .mc-desc { font-size: 11px; color: var(--muted); line-height: 1.55; }
.spec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.spec-toggle { display: inline-flex; border: 1px solid #dfe6f1; border-radius: 8px; padding: 2px; background: #f8fafc; }
.spec-toggle button { border: 0; background: transparent; color: var(--muted); font-size: 10.5px; padding: 3px 9px; border-radius: 6px; }
.spec-toggle button.active { background: #fff; color: var(--accent); font-weight: 700; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08); }
.dim-list { display: flex; flex-direction: column; gap: 8px; }
.dim-card { border: 1px solid #e2e8f2; background: #fbfcff; border-radius: 9px; padding: 9px 10px; }
.dim-head { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.dim-head input { flex: 1; border: 1px solid #dfe6f1; border-radius: 7px; height: 28px; padding: 0 8px; font-size: 11.5px; background: #fff; min-width: 0; }
.dim-no { font-size: 10px; color: var(--muted); font-weight: 700; }
.report-foot { display: flex; align-items: center; gap: 10px; margin: 14px auto 0; max-width: 1120px; color: var(--muted); font-size: 11px; }

/* ==================== 提示 ==================== */
.toast-wrap { position: fixed; right: 22px; top: 22px; z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #0f172a; color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 12px; box-shadow: 0 12px 30px rgba(2, 8, 23, 0.25); display: flex; align-items: center; gap: 8px; animation: toastIn 0.18s ease; max-width: 340px; }
.toast.err { background: #7f1d1d; }
.toast.ok { background: #064e3b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.muted { color: var(--muted); }

@media (max-width: 1120px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==================== 综合报告 ==================== */
.report-role { margin-top: 10px; }
.report-role .spec-head { margin-bottom: 12px; }
.report-role .role-num { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; }
.report-role .role-req { margin-left: 0; }
.report-role .dim-list { margin-top: 2px; }
.report-role .chip-wrap { max-height: 190px; overflow-y: auto; padding-right: 2px; }
.progress-top #progressPct { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.pdf-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); }
.pdf-card .pdf-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.pdf-card .pdf-ico svg { width: 22px; height: 22px; }
.pdf-card .pdf-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pdf-card .pdf-copy b { font-size: 13.5px; color: var(--ink); }
.pdf-card .pdf-copy span { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.pdf-card .btn { flex: 0 0 auto; }
@media (max-width: 640px) { .pdf-card { flex-wrap: wrap; } .pdf-card .btn { width: 100%; justify-content: center; } }

/* ==================== 淡色主题 + 贴边侧栏 ==================== */
:root {
  --bg: #f6f7fb;
  --line: #e7ebf3;
  --ink: #172033;
  --text: #2b3648;
  --muted: #7a869c;
  --accent: #2f6fed;
  --accent-soft: #eef4ff;
  --shadow-sm: 0 1px 3px rgba(23, 32, 51, 0.04);
  --shadow: 0 10px 30px rgba(23, 32, 51, 0.07);
}

body { background: #f6f7fb; }
.app {
  grid-template-columns: 272px minmax(0, 1fr);
  max-width: none;
  margin: 0;
}
.sidebar {
  width: 272px;
  padding: 20px 16px;
  gap: 14px;
  color: #45536b;
  background: #fbfcfe;
  border-right: 1px solid #e7ebf3;
  box-shadow: none;
  overflow: hidden;
}
.sidebar::after { display: none; }
.sidebar .upload-btn {
  background: #2f6fed;
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 111, 237, 0.18);
  border-radius: 12px;
  padding: 13px 14px;
}
.sidebar .upload-btn:hover { background: #2a63d4; transform: none; box-shadow: 0 8px 18px rgba(47, 111, 237, 0.22); }
.sidebar .upload-icon { background: rgba(255, 255, 255, 0.16); color: #fff; width: 34px; height: 34px; border-radius: 9px; }
.sidebar .upload-icon svg { width: 19px; height: 19px; }
.sidebar .upload-btn b { font-size: 14px; font-weight: 700; }
.sidebar .dataset-card {
  background: #f5f8fd;
  border: 1px solid #e4eaf4;
  border-radius: 10px;
  padding: 10px 11px;
}
.sidebar .dataset-name { color: #24324a; }
.sidebar .dataset-sub { color: #8491a6; }
.sidebar .dataset-dot { background: #2fa36b; box-shadow: 0 0 0 4px rgba(47, 163, 107, 0.1); }
.sidebar .dataset-change { color: #2f6fed; }
.sidebar .dataset-change:hover { color: #1c4fc0; }
.sidebar .nav { gap: 3px; }
.sidebar .nav-item {
  color: #53617a;
  border-radius: 9px;
  padding: 9px 10px;
  border: 1px solid transparent;
}
.sidebar .nav-item:hover { background: #f1f5fb; color: #1f2c44; }
.sidebar .nav-item.active { background: #eaf1ff; color: #1f56cf; border-color: #dce8ff; }
.sidebar .nav-ico { width: 26px; height: 26px; border-radius: 7px; background: #f0f3f9; color: #6e7d96; }
.sidebar .nav-item.active .nav-ico { background: #2f6fed; color: #fff; box-shadow: none; }
.sidebar .nav-title { font-size: 12.5px; font-weight: 600; }
.sidebar .empty-note { color: #96a1b3; font-size: 11px; padding: 8px; }

.main { padding: 0 32px 48px; }
.topbar { height: 58px; max-width: 1180px; border-bottom: 1px solid #eaedf4; }
.content { max-width: 1180px; padding-top: 22px; }

/* 首页 */
.home-content { padding-top: 46px; }
.hero { padding: 0 0 8px; }
.hero h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.6px; color: #172033; }
.hero-actions { margin-top: 18px; }
.section-title { margin: 34px 0 14px; }
.section-title h2 { font-size: 16px; color: #263348; font-weight: 700; }
.home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.home-card {
  padding: 16px;
  gap: 12px;
  flex-direction: row;
  align-items: center;
  border: 1px solid #e7ebf3;
  border-radius: 12px;
  box-shadow: none;
  background: #fff;
}
.home-card:hover { transform: none; border-color: #cbd9f4; box-shadow: 0 4px 14px rgba(23, 32, 51, 0.05); }
.home-card .hc-ico { width: 34px; height: 34px; border-radius: 9px; background: #f2f6fd; color: #2f6fed; flex: 0 0 auto; }
.home-card h3 { margin: 0; font-size: 14px; font-weight: 600; color: #263348; }
.home-card.report { background: #fff; border-color: #d8e4fb; color: #263348; }
.home-card.report h3 { color: #263348; }
.home-card.report .hc-ico { background: #eef4ff; color: #2f6fed; }

/* 板块 */
.board {
  border: 1px solid #e7ebf3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.03);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.board-head {
  border-bottom: 1px solid #eef1f7;
  padding-bottom: 12px;
  margin-bottom: 15px;
}
.board-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: #1f2c44;
  letter-spacing: 0;
}
.board-head p, .board-kicker { display: none; }
.method-board .method-grid { margin-bottom: 0; }
.method-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.method-card {
  border: 1px solid #e7ebf3;
  border-radius: 10px;
  padding: 12px 13px;
  box-shadow: none;
  background: #fbfcfe;
}
.method-card:hover { transform: none; border-color: #cddbf5; background: #fff; }
.method-card.active { border-color: #2f6fed; background: #eef4ff; box-shadow: none; }
.method-index { width: 24px; height: 24px; border-radius: 6px; background: #eef2f8; color: #7a869c; font-size: 10px; }
.method-card.active .method-index { background: #2f6fed; color: #fff; }
.method-copy b { font-size: 13px; font-weight: 600; }

/* 步骤 2 */
.role-card { border: 1px solid #e7ebf3; border-radius: 10px; background: #fff; }
.role-card.open { border-color: #cddbf5; }
.role-head { background: #fbfcfe; }
.role-card.open .role-head { background: #f7faff; }
.role-num { background: #eef2f8; color: #6d7a91; }
.method-panel .divider { margin: 16px 0; }
.options-grid .field label { color: #53617a; }
.options-grid .field .help { display: none; }

/* 步骤 3：支付 / 会员 */
.step-three { padding: 18px 22px; }
.access-split { display: flex; align-items: stretch; gap: 0; }
.access-side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 2px 24px; }
.access-side:first-child { padding-left: 0; }
.access-side:last-child { padding-right: 0; }
.access-divider { width: 1px; background: #e7ebf3; flex: 0 0 auto; }
.access-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: #263348; }
.access-title .ac-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #eef4ff; color: #2f6fed; }
.access-title .ac-ico svg { width: 16px; height: 16px; }
.access-side .price { font-size: 22px; font-weight: 800; color: #172033; letter-spacing: -0.4px; }
.access-side .member-badge { font-size: 18px; font-weight: 800; color: #a16207; letter-spacing: -0.2px; padding: 1px 0; }
.access-side .ac-state { font-size: 12px; color: #7a869c; display: flex; align-items: center; gap: 6px; min-height: 22px; }
.access-side .ac-state.ok { color: #178a5c; }
.access-side .ac-state.err { color: #b42318; }
.access-side .ac-state.checking { color: #2f6fed; }
.access-side .btn { width: 100%; justify-content: center; margin-top: auto; }
.access-side .btn-primary { background: #2f6fed; border-color: #2f6fed; color: #fff; }

/* 支付弹窗 */
.pay-modal { width: 380px; }
.pay-body { padding: 22px; text-align: center; }
.qr-box { position: relative; width: 190px; height: 190px; margin: 0 auto 14px; padding: 11px; background: #fff; border: 1px solid #e4e9f2; border-radius: 12px; }
.qr-pattern {
  width: 100%; height: 100%;
  background: repeating-conic-gradient(#1f2c44 0% 25%, #fff 0% 50%) 0 0 / 13px 13px;
  opacity: 0.9;
}
.qr-finder { position: absolute; width: 40px; height: 40px; border: 7px solid #1f2c44; background: #fff; border-radius: 5px; }
.qr-finder.f1 { left: 11px; top: 11px; }
.qr-finder.f2 { right: 11px; top: 11px; }
.qr-finder.f3 { left: 11px; bottom: 11px; }
.pay-amount { font-size: 24px; font-weight: 800; color: #172033; letter-spacing: -0.4px; }
.pay-tip { margin-top: 2px; font-size: 11px; color: #96a1b3; }
.pay-modal .modal-foot { justify-content: center; }

/* 报告页 */
.model-card { border-radius: 12px; padding: 12px; gap: 9px; box-shadow: none; }
.model-card .mc-img { height: 96px; border-radius: 8px; }
.model-card .mc-name { font-size: 13px; }
.report-role { margin-top: 8px; }
.report-role .role-num { width: 28px; height: 28px; border-radius: 7px; font-size: 11px; }
.report-role .spec-head { margin-bottom: 10px; }

/* 结果区 */
.result-table-card { border-width: 1px; border-color: #e2e8f2; background: #fff; box-shadow: 0 2px 8px rgba(23, 32, 51, 0.03); }
.result-table-head { border-bottom-width: 1px; }
.result-table-head h3 { color: #263348; }
table.result-table th, table.result-table td { border-color: #dfe5ef; }
table.result-table thead th { background: #f2f6fd; color: #33415c; }
table.result-table tbody tr:nth-child(even) { background: #fafbfe; }

@media (max-width: 760px) {
  .access-side { padding: 2px 14px; }
}
.report-role .role-body { display: none; padding-top: 4px; }
.report-role.open .role-body { display: block; }
.report-role .role-chevron { border: 0; background: #f3f6fb; color: #6d7a91; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; transition: transform .18s ease, background .18s ease; }
.report-role .role-chevron:hover { background: #eaf0fa; color: #2f6fed; }
.report-role.open .role-chevron { transform: rotate(180deg); background: #eaf1ff; color: #2f6fed; }
.report-role .role-chevron svg { width: 15px; height: 15px; }

/* ==================== 第七轮精修：淡蓝侧栏 / 自适应方法框 / 步骤4 ==================== */
.sidebar {
  background: #eaf2fb;
  border-right: 1px solid #d8e6f6;
}
.sidebar .nav {
  border-top: 1px solid #d3e2f4;
  padding-top: 12px;
  margin-top: 2px;
}
.sidebar .nav-item { color: #4e6079; }
.sidebar .nav-item:hover { background: #fff; color: #1f2c44; }
.sidebar .nav-item.active { background: #fff; color: #1f56cf; border-color: #cddff3; box-shadow: 0 2px 8px rgba(31, 86, 207, 0.06); }
.sidebar .upload-btn { border: 1px solid transparent; }
.sidebar .upload-btn.uploaded {
  background: #e7f7ee;
  color: #1f7a4d;
  border-color: #c7ebd8;
  box-shadow: none;
}
.sidebar .upload-btn.uploaded .upload-icon { background: #d3f0e0; color: #1f7a4d; }
.sidebar .upload-btn.uploaded:hover { background: #dcf3e6; box-shadow: none; }
.sidebar .upload-btn.uploaded b { font-weight: 700; }

.method-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.method-card {
  flex: 0 0 auto;
  width: auto;
  min-width: 150px;
  align-items: center;
  padding: 11px 16px;
}
.method-card .method-copy b { white-space: nowrap; }
.method-card .method-copy span { display: none; }

#payBtn, #memberBtn {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
#payBtn:hover, #memberBtn:hover { background: #cfe4ff; border-color: #a9ccfb; color: #1e40af; }
.access-side .member-badge { color: #1d4ed8; }
.access-side .btn { font-weight: 600; }

.result-board { padding: 18px 20px; }
.result-board .board-head { margin-bottom: 14px; }
.result-board .result-table-card { margin-bottom: 14px; }
.result-board .result-notes { margin-top: 4px; padding-top: 12px; border-top: 1px dashed #e2e8f2; }
table.result-table td[rowspan] { vertical-align: middle; text-align: center; }

/* ===== m02279: 紧凑步骤3 ===== */
.step-three { padding: 14px 18px 15px; }
.step-three .board-head { margin-bottom: 9px; padding-bottom: 8px; }
.access-side { flex-direction: row; align-items: center; padding: 0 18px; }
.access-side:first-child { padding-left: 0; }
.access-side:last-child { padding-right: 0; }
.access-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.access-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #1e40af; white-space: nowrap; }
.access-title .ac-ico { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: #eaf2fb; color: #2563eb; flex: 0 0 auto; }
.access-title .ac-ico svg { width: 14px; height: 14px; }
.access-side .price { font-size: 16px; font-weight: 800; color: #1e40af; letter-spacing: 0; line-height: 1.2; }
.access-side .member-badge { font-size: 11px; font-weight: 600; color: #1d4ed8; background: #eef4ff; border: 1px solid #dbeafe; border-radius: 5px; padding: 2px 6px; line-height: 1.4; }
.access-side .ac-state { font-size: 11px; min-height: 0; line-height: 1.4; white-space: nowrap; }
.access-side .btn, #payBtn, #memberBtn { width: auto; margin: 0; padding: 6px 11px; font-size: 12px; line-height: 1.3; white-space: nowrap; flex: 0 0 auto; }
#payBtn { background: #dbeafe; border-color: #bfdbfe; color: #1d4ed8; }
#payBtn:hover { background: #cfe2ff; }

/* ===== m02279: 分析说明作为步骤4首个板块 ===== */
.result-board .result-notes {
  border: 2px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
  padding: 13px 15px;
  margin: 0 0 14px;
}
.result-board .result-notes h3 { color: #1e40af; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.result-board .result-notes ul { color: #475569; font-size: 12px; }
.result-board .result-notes li { margin: 4px 0; line-height: 1.65; }

/* ===== m02279: 旧版结果表配色（Excel 网格） ===== */
.result-table-card {
  border: 2px solid #2563eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
  margin-bottom: 16px;
}
.result-table-head {
  padding: 10px 12px 8px;
  border-bottom: 1px dashed #bfdbfe;
  background: #ffffff;
}
.result-table-head h3 { color: #1e40af; font-size: 14px; font-weight: 700; }
.table-scroll { padding: 8px 10px 10px; }
table.result-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
  background: #ffffff;
}
table.result-table th,
table.result-table td {
  border: 1px solid #d1d5db;
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
  color: #1f2937;
  line-height: 1.55;
}
table.result-table thead th {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 600;
  border-bottom: 1px solid #93c5fd;
}
table.result-table thead tr:first-child th { border-top: 1px solid #93c5fd; }
table.result-table tbody tr:nth-child(even) { background: #f9fafb; }
table.result-table tbody tr:hover { background: #f3f7ff; }
table.result-table td[rowspan] { vertical-align: middle; text-align: center; }
table.result-table .p-sig { color: #b42318; font-weight: 700; }

.result-board > .board-head h2 { color: #1e40af; }

/* ===== m02477: 方法卡宽度、资质锁定、表格折叠 ===== */
.method-card {
  flex: 0 1 auto;
  max-width: 238px;
  min-width: 150px;
  align-items: center;
  white-space: normal;
}
.method-card .method-copy { min-width: 0; }
.method-card .method-copy b {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
#payBtn.locked, #memberBtn.locked,
#payBtn:disabled, #memberBtn:disabled {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #9ca3af;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}
.result-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rt-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #dbe3f0;
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}
.rt-toggle svg { width: 14px; height: 14px; transition: transform .18s ease; }
.result-table-card.collapsed .table-body { display: none; }
.result-table-card.collapsed .rt-toggle svg { transform: rotate(-90deg); }

/* 报告页步骤1内的模型选择小标题 */
.subhead { margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: #334155; }

/* 分析设置：自适应宽度与步进器 */
.options-grid.compact { display: flex; flex-wrap: wrap; gap: 14px; }
.options-grid.compact .field { flex: 0 1 220px; max-width: 260px; margin: 0; }
.options-grid.auto { display: flex; flex-wrap: wrap; gap: 10px; }
.options-grid.auto .field { flex: 0 0 auto; width: max-content; max-width: 230px; margin: 0; }
.options-grid.auto .field label { white-space: nowrap; }
.options-grid.auto .field select { width: auto; min-width: 150px; max-width: 230px; }
.options-grid.auto .stepper { width: max-content; }
.option-line { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 4px; }
.option-line .section-title { margin: 0 0 6px; }
.option-line .options-grid { margin: 0; }
.stepper { display: flex; align-items: stretch; width: max-content; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.stepper input { border: 0; width: 58px; min-width: 58px; text-align: center; padding: 9px 2px; background: transparent; color: var(--ink); font: inherit; outline: none; }
.stepper input:disabled { background: #f7f9fc; color: #9aa7ba; }
.step-btn { border: 0; background: #eef4ff; color: #1d4ed8; width: 32px; font-size: 17px; line-height: 1; cursor: pointer; }
.step-btn:disabled { background: #f4f6fa; color: #b3bdcc; cursor: not-allowed; }
.refs-head { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 10px; }
.refs-head h3 { font-size: 13px; color: #1f2c44; margin: 0; }
.refs-head span { font-size: 11.5px; color: #8a97aa; }
.rt-hint { font-size: 11px; color: #93a0b4; margin-left: auto; margin-right: 8px; white-space: nowrap; }


/* ===== 报告页旧版模型筛选 ===== */
.model-filter { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 6px; }
.filter-field { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.filter-field input { width: 66px; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; color: var(--ink); background: #fff; }
.filter-tip { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.filter-empty { padding: 14px 0; color: var(--muted); font-size: 12.5px; }


/* ===== 首页公告 ===== */
.home-content { max-width: 1180px; }
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice { border-left: 3px solid #bfdbfe; padding: 2px 0 2px 14px; }
.notice b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 4px; }
.notice p, .notice-text { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.usage-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 12.5px; line-height: 2; }

.method-card:disabled { opacity: 0.55; cursor: not-allowed; }
.method-card:disabled:hover { transform: none; border-color: var(--line); }

/* ===== SEM 结构方程模型：旧版模型卡与变量设定 ===== */
.sem-model-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 4px; }
.sem-card {
  width: 230px; border: 2px solid #e5e7eb; border-radius: 10px;
  padding: 10px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.sem-card:hover { border-color: #bfdbfe; }
.sem-card.selected { border-color: #2563eb; background: #eff6ff; }
.sem-card-img { height: 130px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sem-card-img img { width: 100%; height: 130px; object-fit: contain; }
.sem-card-name { font-weight: 600; margin-top: 6px; color: #1f2c44; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sem-card-path { font-size: 12px; color: #64748b; margin-top: 3px; }
.section-subtitle { font-weight: 700; color: #1e40af; margin: 16px 0 7px; font-size: 14px; }
.mode-toggle { display: flex; gap: 12px; margin: 8px 0 4px; }
.mode-option {
  padding: 8px 22px; border: 2px solid #e5e7eb; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 14px; user-select: none;
  transition: all .15s;
}
.mode-option:hover { background: #f9fafb; }
.mode-option.selected { border-color: #2563eb; background: #eff6ff; color: #1e40af; font-weight: 600; }
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 4px; }
.role-grid.measure-grid { grid-template-columns: repeat(3, 1fr); }
.role-grid .form-label { display: block; font-size: 13px; color: #374151; margin-bottom: 4px; font-weight: 500; }
.form-select {
  width: 100%; height: 38px; border: 1px solid #d7dfec; border-radius: 8px;
  background: #fff; color: #1f2c44; padding: 0 10px; font: inherit;
}
.form-select:disabled { background: #f3f4f6; color: #6b7280; cursor: not-allowed; }
.var-block { border: 2px solid #2563eb; border-radius: 10px; padding: 14px 18px; margin: 14px 0; background: #fff; }
.var-block-title { font-size: 15px; font-weight: 700; color: #1e40af; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #dbeafe; }
.var-type-badge { font-weight: 400; font-size: 12px; color: #64748b; margin-left: 8px; }
.dim-block { border: 1px dashed #93c5fd; border-radius: 8px; padding: 10px 14px; margin: 10px 0; background: #f0f9ff; }
.dim-title { font-weight: 600; color: #1e40af; margin-bottom: 8px; }
.item-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.item-chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px;
  background: #f3f4f6; cursor: pointer; border: 1px solid transparent; font-size: 13px;
  user-select: none; transition: background .1s, color .1s;
}
.item-chip:hover { background: #e0e7ff; }
.item-chip.selected { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.item-chip.locked { background: #e5e7eb; color: #9ca3af; border-color: #e5e7eb; cursor: not-allowed; text-decoration: line-through; opacity: .7; }
.hint-info { color: #64748b; font-size: 12px; margin-top: 6px; }
.sem-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.sem-method-grid { display: flex; flex-wrap: wrap; gap: 12px; }

/* SEM 旧版步骤1：控件按内容自适应，不拉伸整行 */
.role-grid { display: flex; flex-wrap: wrap; gap: 16px 22px; }
.role-grid > .field-auto { flex: 0 0 auto; }
.form-select.auto { width: auto; min-width: 86px; max-width: 250px; display: inline-block; }
.model-hint { color: #64748b; font-size: 13px; margin: 4px 0 10px; }
.model-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 2px; }
.model-page-info { color: #475569; font-size: 13px; }
.pager-btn { min-width: 76px; }
.pager-btn:disabled { opacity: .45; cursor: not-allowed; }
.sem-card-ph {
  width: 100%; height: 130px; display: flex; align-items: center; justify-content: center;
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 6px;
  color: #94a3b8; font-size: 12px;
}

/* 步骤1：控件宽度由标题与选项文字共同决定，避免整行留白 */
.role-grid { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.role-grid > .field-auto {
  display: inline-flex; flex-direction: column; align-items: stretch;
  flex: 0 0 auto; width: max-content; max-width: 100%;
}
.role-grid > .field-auto .form-label { white-space: nowrap; }
.role-grid > .field-auto .form-select.auto { width: 100%; min-width: 0; max-width: none; }

.method-card.wide { max-width: 310px; }

.row-standard td { background: #fef3c7 !important; color: #92400e; font-weight: 600; }

.factor-head .factor-del { width: 40px; height: 28px; background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.factor-head .factor-del:hover { background: #fecaca; border-color: #fca5a5; color: #991b1b; }

/* 步骤容器折叠 + 单角色直显 */
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-toggle { flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid #e7ebf3; border-radius: 8px; background: #fbfcfe; color: #64748b; display: grid; place-items: center; cursor: pointer; }
.board-toggle:hover { background: #eef4ff; border-color: #cddbf5; color: #2f6fed; }
.board-toggle svg { width: 15px; height: 15px; transition: transform .16s ease; }
.board.collapsed > :not(.board-head) { display: none; }
.board.collapsed .board-toggle svg { transform: rotate(-90deg); }
.method-settings:empty { display: none; }
.method-settings { margin-top: 12px; }
.method-settings .divider { margin: 10px 0 12px; }
.role-single { border: 0; border-radius: 0; background: transparent; padding: 0; }
.board.collapsed > .board-head { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

/* 步骤2 内的编号分析设置卡 */
.options-card .role-head { cursor: default; }
.options-card .role-head:hover { background: #fff; }
.options-card .role-body .options-grid { margin-top: 2px; }

/* 只有一个设置项时，标题与输入框同一行 */
.options-grid.single-inline { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.options-grid.single-inline .field { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; }
.options-grid.single-inline .field label { margin: 0; white-space: nowrap; font-size: 12.5px; color: var(--text); }
.options-grid.single-inline .field input { width: 96px; min-width: 0; height: 32px; }
.options-grid.single-inline.text .field input { width: 270px; }
.options-grid.single-inline .field .help { display: none; }
.options-grid.single-inline .field label::after { content: "："; }

/* 回归参照水平：只缩短下拉框，保持原有字段样式 */
.refs-grid .field select { width: auto; min-width: 64px; max-width: 190px; }
.options-card .role-head:hover { background: #fbfcff; }

/* 维度名称：短输入框 + 题数在删除按钮左侧 */
.factor-head { gap: 7px; }
.factor-head .factor-label { font-size: 11px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.factor-head .factor-name { flex: 0 0 140px; width: 140px; max-width: 140px; }
.factor-head .factor-count { font-size: 10px; color: var(--muted); white-space: nowrap; margin-left: auto; }

/* EFA/PCA 分析设置：标题与四项设置同一行 */
.option-line.settings-line { align-items: center; gap: 18px; }
.settings-line .section-title { margin: 0; flex: 0 0 auto; }
.settings-line .section-title h2 { margin: 0; }
.settings-line .options-grid.auto { margin: 0; flex-wrap: nowrap; gap: 8px; }
.options-grid.auto .field { max-width: 215px; }
.options-grid.auto .field select { min-width: 138px; max-width: 215px; }

.factor-name-static {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  min-width: 62px;
}

/* m05494：维度选择与竞争模型的长标题卡片 */
.method-card.wide {
  flex: 0 0 auto;
  width: max-content;
  max-width: 360px;
}
.method-card.wide .method-copy b { white-space: nowrap; }
.factor-name-static { letter-spacing: 0; }

/* m05494：所有步骤1分析设置尽量保持一行 */
.settings-line .options-grid.compact {
  margin: 0;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-end;
}
.settings-line .options-grid.compact .field {
  flex: 0 0 auto;
  width: max-content;
  max-width: 240px;
}
.settings-line .options-grid.compact .field label {
  white-space: nowrap;
}
.settings-line .options-grid.compact .field select {
  width: auto;
  min-width: 112px;
  max-width: 220px;
}

/* m06403: 长方法名卡片自适应换行，避免文字溢出容器 */
.method-card.wide {
  width: fit-content;
  max-width: min(360px, 100%);
}
.method-card.wide .method-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.method-card.wide .method-copy b {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* m06403: 右侧所有步骤容器使用浅蓝色边框 */
.main .board {
  border-color: #bfdbfe;
  border-width: 1.5px;
}

/* m06448: SEM 步骤2 每个变量块独立展开/收起 */
.var-block-title {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #dbeafe;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 10px;
  padding: 0 0 6px;
  text-align: left;
  cursor: pointer;
}
.var-block-title:hover { color: #1d4ed8; }
.var-block-title .var-type-badge { margin-left: 0; }
.var-block-chevron { margin-left: auto; display: grid; place-items: center; color: #64748b; }
.var-block-chevron svg { width: 16px; height: 16px; transition: transform .16s ease; }
.var-block.collapsed .var-block-chevron svg { transform: rotate(-90deg); }
.var-block.collapsed .var-block-body { display: none; }
.var-block.collapsed .var-block-title { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

/* m06476: 迁移模型卡 5:3 图片容器 */
.sem-card { width: 250px; }
.sem-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  border-radius: 6px;
  background: #f8fafc;
}
.sem-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sem-card-img.empty::after {
  content: "暂无图片"; color: #94a3b8; font-size: 12px;
}

/* m06476: 纵向模型按时间点分组 */
.wave-block {
  border: 1px solid #dbeafe; border-radius: 8px; padding: 10px 12px;
  margin: 10px 0; background: #fff;
}
.wave-title {
  font-size: 13px; font-weight: 700; color: #1e40af; margin-bottom: 8px;
}
.wave-block .dim-block { margin: 8px 0; }

/* SEM step4 compact access */
.sem-access{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;overflow-x:auto;padding:4px 0}
.sem-access .sa-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12.5px;color:#475569}
.sem-access .sa-ico{display:inline-flex;color:#2563eb}
.sem-access .sa-ico svg{width:14px;height:14px}
.sem-access .sa-ok{display:inline-flex;align-items:center;gap:3px;color:#15803d;font-weight:600}
.sem-access .sa-price{color:#0f172a;font-weight:700}
.sem-access .sa-div{color:#cbd5e1}
.sem-access .btn-sm{padding:5px 10px;font-size:12px;white-space:nowrap}
.sem-access .btn:disabled{background:#e5e7eb;color:#94a3b8;border-color:#e5e7eb;cursor:not-allowed}
.access-progress{margin-top:12px;padding:12px 14px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}
.access-progress.hidden{display:none}

/* 已完成的步骤3方法卡：淡绿色 */
.sem-method-grid .method-card.done,
.method-grid .method-card.done { background:#e8f7ee; border-color:#b7e4c7; }
.sem-method-grid .method-card.done.active,
.method-grid .method-card.done.active { background:#d9f2e3; border-color:#8fd3ab; }
.sem-method-grid .method-card.done .method-index { background:#c9ecd8; color:#1f6b45; }

/* 表格单元格保留换行（CFA 聚合效度判断） */
.result-table td { white-space: pre-line; }
/* 步骤3 内嵌分析进度 */
.access-progress { margin: 12px 0 0; padding: 0; border: 0; background: transparent; box-shadow: none; display: none; }
.access-progress.show { display: block; }

.sidebar .nav-item:focus-visible,
.method-card:focus-visible,
.sem-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.method-card:hover:not(:disabled):not(.active),
.sem-card:hover:not(.selected) {
  border-color: #9eb9eb;
  box-shadow: 0 5px 14px -9px #31598c66;
}

@media (prefers-reduced-motion: no-preference) {
  .method-card, .sem-card {
    transition: translate 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
  }

  .method-card:hover:not(:disabled):not(.active),
  .sem-card:hover:not(.selected) { translate: 0 -2px; }
}
