  :root {
    --navy-950: #071528;
    --navy-900: #0b2748;
    --navy-800: #0f3d7a;
    --navy-700: #1854a5;
    --navy-600: #2b6cb0;
    --navy-100: #e8f1fb;
    --navy-50: #f4f8fc;
    --sky: #3b82c4;
    --teal: #0f766e;
    --amber: #b45309;
    --rose: #be123c;
    --bg: #eef3f9;
    --bg-mesh: #e8eef6;
    --surface: #ffffff;
    --surface-2: #f7fafd;
    --line: rgba(15, 61, 122, 0.10);
    --line-strong: rgba(15, 61, 122, 0.16);
    --text: #12263a;
    --text-2: #4a6078;
    --text-3: #7a8fa5;
    --sidebar-w: 232px;
    --header-h: 60px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(7, 21, 40, 0.04), 0 1px 3px rgba(7, 21, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(7, 21, 40, 0.06), 0 1px 3px rgba(7, 21, 40, 0.04);
    --shadow-lg: 0 20px 48px rgba(7, 21, 40, 0.14), 0 4px 12px rgba(7, 21, 40, 0.06);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html {
    scroll-behavior: smooth;
    height: 100%;
  }
  body {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    height: 100%;
    overflow: hidden;
  }
  button, input, select, textarea { font: inherit; }
  a { color: var(--navy-700); text-decoration: none; }
  a:hover { color: var(--navy-600); }
  .hidden { display: none !important; }
  .display { font-family: "Outfit", "Noto Sans SC", sans-serif; letter-spacing: -0.02em; }

  #app {
    /* zoom 下 100vh 会被放大 1.1 倍导致整页溢出滚动；百分比链基于 ICB 自动归一 */
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* —— Buttons —— */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 36px; padding: 0 14px;
    border: 1px solid transparent; border-radius: 9px;
    cursor: pointer; font-size: 13px; font-weight: 500;
    transition: transform .15s var(--ease), box-shadow .2s, background .15s, border-color .15s, color .15s;
    white-space: nowrap; background: #fff; color: var(--text);
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary {
    background: linear-gradient(180deg, #1a5bb5 0%, var(--navy-800) 100%);
    color: #fff; border-color: transparent;
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 4px 12px rgba(15, 61, 122, 0.28);
  }
  .btn-primary:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 16px rgba(15, 61, 122, 0.34); }
  .btn-outline {
    background: rgba(255,255,255,0.9); border-color: var(--line-strong); color: var(--navy-800);
  }
  .btn-outline:hover { background: var(--navy-50); border-color: rgba(15,61,122,0.28); }
  .btn-ghost { background: transparent; color: var(--navy-700); }
  .btn-ghost:hover { background: var(--navy-100); }
  /* 危险操作（删除等）：红色语义，对齐 --rose 变量 */
  .btn-danger { background: rgba(190,18,60,0.06); border-color: rgba(190,18,60,0.35); color: var(--rose); }
  .btn-danger:hover { background: rgba(190,18,60,0.12); border-color: rgba(190,18,60,0.5); }
  .btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
  .btn-block { width: 100%; height: 46px; font-size: 15px; border-radius: 10px; }
  .btn svg { width: 15px; height: 15px; flex-shrink: 0; }

  /* —— 总览四维饼图 —— */
  .pie-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 12px; margin: 14px 0 4px;
  }
  .pie-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface-2); padding: 14px 16px;
  }
  .pie-card h4 {
    font-size: 13px; font-weight: 650; color: var(--text);
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
  }
  .pie-card .pie-total { font-size: 12px; font-weight: 500; color: var(--text-3); }
  .pie-flex { display: flex; align-items: center; gap: 18px; }
  .pie-legend { display: grid; gap: 7px; font-size: 13.5px; color: var(--text-2); }
  .pie-legend i {
    display: inline-block; width: 10px; height: 10px; border-radius: 3px;
    margin-right: 6px; vertical-align: -1px;
  }
  .pie-legend b { color: var(--text); font-weight: 650; margin-left: 2px; }
  /* 图例项可点击（查看该分类企业名单） */
  .pie-legend .lg-item { cursor: pointer; padding: 2px 6px; margin: -2px -6px; border-radius: 6px; transition: background .15s; }
  .pie-legend .lg-item:hover { background: var(--navy-100); }
  /* 饼图分段详情弹窗：企业名单行（可点进企业详情） */
  .pie-det-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
    background: var(--surface-2); font-size: 13.5px; color: var(--text);
    cursor: pointer; transition: border-color .15s, background .15s;
  }
  .pie-det-row:hover { border-color: rgba(15,61,122,0.32); background: var(--navy-50); }
  .pie-det-row b { color: var(--text-2); font-weight: 600; font-size: 12.5px; text-align: right; max-width: 62%; }

  /* 总览页（#dash-root 作用域，不影响企业详情页同类组件）：四维饼图 + 净利润对比 字号放大 */
  #dash-root .pie-card h4 { font-size: 16px; }
  #dash-root .pie-card .pie-total { font-size: 13px; }
  #dash-root .pie-legend { font-size: 15px; gap: 8px; }
  #dash-root .pie-legend i { width: 12px; height: 12px; margin-right: 7px; }
  #dash-root .chart-title { font-size: 16px; }
  #dash-root .bar-val { font-size: 13px; }
  #dash-root .bar-col .bar-name { font-size: 12.5px; }
  #dash-root .chart-legend { font-size: 12.5px; }

  /* —— 文件名预览链接 —— */
  .file-link { color: var(--navy-700); cursor: pointer; }
  .file-link:hover { color: var(--navy-600); text-decoration: underline; }

  /* ========== LOGIN ========== */
  #login-page {
    /* zoom 下 100vh 会被放大 1.1 倍；用百分比链贴合视口 */
    min-height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    color: #fff;
    background:
      radial-gradient(ellipse 90% 70% at 12% 18%, rgba(96, 165, 250, 0.28), transparent 50%),
      radial-gradient(ellipse 60% 50% at 88% 78%, rgba(14, 116, 144, 0.28), transparent 48%),
      radial-gradient(ellipse 40% 35% at 60% 40%, rgba(30, 64, 175, 0.35), transparent 60%),
      linear-gradient(155deg, #050f1c 0%, #0a2748 38%, #0f3d7a 72%, #1560a8 100%);
  }
  #login-page::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 15%, transparent 78%);
    pointer-events: none;
    animation: gridDrift 28s linear infinite;
    z-index: 0;
  }
  #login-page::after {
    content: "";
    position: absolute;
    width: 560px; height: 560px;
    right: -120px; bottom: -180px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 35% 35%, rgba(147,197,253,0.22), transparent 55%),
      radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
    z-index: 0;
  }
  .login-bg {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
  }
  .hero-orb.a {
    width: 220px; height: 220px; top: 10%; right: 22%;
    background: radial-gradient(circle, rgba(56,189,248,0.2), transparent 70%);
    animation: orbFloat 9s ease-in-out infinite reverse;
  }
  .hero-orb.b {
    width: 140px; height: 140px; bottom: 18%; left: 12%;
    background: radial-gradient(circle, rgba(96,165,250,0.22), transparent 70%);
    animation: orbFloat 11s ease-in-out 1s infinite;
  }
  .hero-orb.c {
    width: 90px; height: 90px; top: 42%; left: 38%;
    background: radial-gradient(circle, rgba(147,197,253,0.16), transparent 70%);
    animation: orbFloat 10s ease-in-out 0.5s infinite;
  }
  .hero-ring {
    position: absolute;
    width: min(420px, 48vw); height: min(420px, 48vw);
    right: 8%; top: 48%;
    transform: translateY(-50%);
    border: 1px solid rgba(147,197,253,0.18);
    border-radius: 50%;
  }
  .hero-ring::before, .hero-ring::after {
    content: "";
    position: absolute; inset: 36px;
    border-radius: 50%;
    border: 1px solid rgba(147,197,253,0.12);
  }
  .hero-ring::after { inset: 72px; border-color: rgba(147,197,253,0.08); }
  .hero-viz {
    position: absolute;
    right: 6%; bottom: 12%;
    width: min(380px, 36vw);
    opacity: 0.5;
  }
  .hero-viz svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 28px rgba(0,0,0,0.25)); }

  .login-shell {
    position: relative; z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 64px clamp(28px, 5vw, 72px) 64px clamp(20px, 3vw, 36px);
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-top {
    max-width: 560px;
    padding-left: 22px;
    border-left: 2px solid rgba(147,197,253,0.35);
    margin-left: -28px;
  }
  .brand-mark {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    animation: riseIn .65s var(--ease) both;
  }
  .brand-mark img {
    width: 72px; height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.55) inset,
      0 10px 28px rgba(0,0,0,0.22);
    flex-shrink: 0;
  }
  .brand-mark .brand-name {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(19px, 1.75vw, 22px);
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 6px 24px rgba(0,0,0,0.28);
  }
  .hero-copy h1 {
    font-family: Outfit, "Noto Sans SC", sans-serif;
    font-size: clamp(40px, 4.8vw, 56px);
    font-weight: 700; line-height: 1.12;
    letter-spacing: -0.04em;
    width: fit-content;
    max-width: 100%;
    text-align: center;
    text-shadow: 0 10px 40px rgba(0,0,0,0.28);
    animation: riseIn .7s var(--ease) .05s both;
  }
  .hero-copy h1 em {
    font-style: normal;
    background: linear-gradient(120deg, #fff 15%, #93c5fd 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-copy p {
    margin-top: 24px; max-width: 520px;
    font-size: clamp(16px, 1.35vw, 18px); line-height: 1.8;
    color: rgba(226, 236, 248, 0.78);
    animation: riseIn .8s var(--ease) .08s both;
  }

  .login-panel {
    display: flex; align-items: center; justify-content: center;
  }
  .login-card {
    position: relative;
    width: 400px; max-width: 100%;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(255,255,255,0.95);
    border-radius: 24px;
    padding: 44px 40px 36px;
    color: var(--text);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.9) inset,
      0 28px 64px rgba(0, 0, 0, 0.28),
      0 8px 24px rgba(7, 21, 40, 0.18);
    backdrop-filter: blur(20px);
    animation: riseIn .65s var(--ease) both;
  }
  .login-card::before {
    content: "";
    position: absolute;
    top: 0; left: 40px; right: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15,61,122,0.12), transparent);
  }
  .login-card-head { margin-bottom: 28px; }
  .login-card-head .badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600;
    color: var(--navy-700);
    background: var(--navy-50);
    border: 1px solid var(--line);
    margin-bottom: 14px;
  }
  .login-card-head .badge i {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(15,118,110,0.15);
  }
  .login-card h2 {
    font-family: Outfit, "Noto Sans SC", sans-serif;
    font-size: 28px; font-weight: 700;
    color: var(--navy-900); letter-spacing: -0.03em;
  }
  .login-card .sub {
    margin-top: 8px; color: var(--text-2); font-size: 14px; line-height: 1.55;
  }
  .form-group { margin-bottom: 18px; }
  .form-group label {
    display: block; margin-bottom: 8px;
    color: var(--text-2); font-size: 12.5px; font-weight: 600;
  }
  .field {
    position: relative;
    display: flex; align-items: center;
  }
  .field .ficon {
    position: absolute; left: 13px;
    width: 18px; height: 18px;
    color: var(--text-3);
    pointer-events: none;
  }
  .field .ficon svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .form-group input, .form-group select, .form-group textarea {
    width: 100%; height: 48px; padding: 0 14px 0 42px;
    border: 1px solid var(--line-strong);
    border-radius: 12px; outline: none;
    background: rgba(255,255,255,0.95);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s, background .15s;
  }
  .form-group textarea {
    height: auto; min-height: 100px; padding: 12px 14px; line-height: 1.55; resize: vertical;
  }
  .form-group .field:not(:has(.ficon)) input,
  .form-group .field:not(:has(.ficon)) select { padding-left: 14px; }
  .form-group select { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8fa5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
  }
  .form-group input:hover, .form-group select:hover, .form-group textarea:hover {
    border-color: rgba(15,61,122,0.28);
  }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--navy-600);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.14);
  }
  .field:focus-within .ficon { color: var(--navy-700); }
  .role-switch {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
  }
  .role-switch .switch-link {
    font-size: 13.5px; font-weight: 600;
    color: var(--navy-700);
    cursor: pointer;
    border: none; background: none; padding: 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(24,84,165,0.35);
    transition: color .15s, border-color .15s;
  }
  .role-switch .switch-link:hover {
    color: var(--navy-800);
    border-bottom-color: var(--navy-800);
  }
  .login-card .btn-block {
    height: 50px; font-size: 15.5px; font-weight: 600;
    border-radius: 13px;
    letter-spacing: 0.02em;
  }
  .login-tip {
    margin-top: 22px; text-align: center;
    font-size: 12px; color: var(--text-3);
    letter-spacing: 0.02em;
  }
  .login-secure {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 14px;
    font-size: 11.5px; color: var(--text-3);
  }
  .login-secure svg {
    width: 13px; height: 13px;
    stroke: currentColor; fill: none; stroke-width: 1.8;
  }

  @keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-12px, 16px); }
  }
  @keyframes gridDrift {
    from { background-position: 0 0; }
    to { background-position: 64px 64px; }
  }

  /* ========== APP SHELL ========== */
  .layout {
    display: flex;
    height: 100%;
    overflow: hidden;
  }
  .aside {
    width: var(--sidebar-w); flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(180deg, #0a2344 0%, #0f3d7a 55%, #12488c 100%);
    color: #c9daf0;
    display: flex; flex-direction: column;
    position: relative;
    box-shadow: 4px 0 24px rgba(7,21,40,0.12);
  }
  .aside::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 0% 0%, rgba(59,130,196,0.25), transparent 55%);
    pointer-events: none;
  }
  .aside .logo {
    height: auto;
    min-height: var(--header-h);
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    position: relative; z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .aside .logo img {
    width: 40px; height: 40px;
    object-fit: contain;
    background: #fff;
    border-radius: 9px;
    padding: 4px;
    flex-shrink: 0;
  }
  .aside .logo .txt {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 700; font-size: 14.5px; color: #fff;
    letter-spacing: 0.01em; line-height: 1.45;
  }
  .aside .logo .txt small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(201,218,240,0.78);
    margin-top: 2px;
  }
  .nav-menu { padding: 14px 10px; flex: 1; position: relative; z-index: 1; }
  .nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px; border-radius: 10px;
    cursor: pointer; color: rgba(201,218,240,0.82);
    margin-bottom: 3px; user-select: none;
    transition: background .15s, color .15s, transform .15s;
    position: relative;
  }
  .nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
  .nav-item.active {
    background: linear-gradient(90deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
    color: #fff; font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  }
  .nav-item.active::before {
    content: "";
    position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
    border-radius: 0 3px 3px 0;
    background: #93c5fd;
  }
  .nav-item .icon {
    width: 20px; height: 20px; display: grid; place-items: center; opacity: 0.9;
  }
  .nav-item .icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .nav-badge {
    margin-left: auto;
    background: linear-gradient(180deg, #f87171, #dc2626);
    color: #fff; font-size: 10.5px; font-weight: 600;
    min-width: 18px; height: 18px; line-height: 18px;
    text-align: center; border-radius: 9px; padding: 0 5px;
    box-shadow: 0 2px 6px rgba(220,38,38,0.35);
  }
  .aside-foot {
    position: relative; z-index: 1;
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11.5px; color: rgba(201,218,240,0.45);
  }

  .main-wrap {
    flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0;
    overflow: hidden;
    background:
      radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 220, 245, 0.45), transparent 55%),
      var(--bg);
  }
  .header {
    height: var(--header-h);
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 22px; flex-shrink: 0;
  }
  .header-left { display: flex; align-items: center; gap: 14px; }
  .sys-name {
    font-family: Outfit, "Noto Sans SC", sans-serif;
    font-weight: 750; color: var(--navy-900); font-size: 17px;
    letter-spacing: -0.015em;
  }
  .breadcrumb {
    color: var(--text-3); font-size: 13px; font-weight: 500;
    padding-left: 14px; border-left: 2px solid var(--line);
  }
  .header-right { display: flex; align-items: center; gap: 12px; }
  .alert-chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px;
    border-radius: 999px;
    background: #fff5f5; border: 1px solid #fecaca;
    color: var(--rose); font-size: 12.5px; font-weight: 500;
    cursor: pointer; transition: background .15s;
  }
  .alert-chip:hover { background: #fee2e2; }
  .alert-chip .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 0 0 3px rgba(190,18,60,0.2);
    animation: pulse 1.6s ease infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(190,18,60,0.2); }
    50% { box-shadow: 0 0 0 6px rgba(190,18,60,0.08); }
  }
  .user-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(145deg, var(--navy-700), var(--navy-800));
    color: #fff; font-size: 11px; font-weight: 700;
    display: grid; place-items: center;
  }
  .user-tag {
    display: inline-block; padding: 1px 7px; border-radius: 4px;
    font-size: 11px; background: var(--navy-100); color: var(--navy-800);
  }
  .username { color: var(--text-2); font-size: 12.5px; font-weight: 500; }

  .content {
    flex: 1; min-height: 0;
    padding: 22px;
    overflow: auto;
  }
  .content:has(.qa-page) {
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .page-enter { animation: fadeSlide .35s var(--ease) both; }
  /* 局部渲染：切页/交互重渲不重播整页动画（消除闪烁），仅首次进入等显式场景播 */
  .page-enter.no-anim { animation: none; }
  .content:has(.qa-page) .page-enter {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column;
  }

  /* —— Cards / surfaces —— */
  .page-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
  }
  .page-card.qa-page {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column;
  }
  .page-card.qa-page .toolbar { flex-shrink: 0; margin-bottom: 16px; }
  .toolbar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
  }
  .page-title {
    font-family: Outfit, "Noto Sans SC", sans-serif;
    font-size: 18px; font-weight: 700; color: var(--navy-900);
    letter-spacing: -0.02em;
  }
  .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .alert-info {
    background: linear-gradient(135deg, #f0f7ff 0%, #f4faf8 100%);
    border: 1px solid rgba(43,108,176,0.14);
    color: var(--navy-800);
    padding: 11px 14px; border-radius: 11px;
    font-size: 13px; margin-bottom: 16px;
    display: flex; gap: 10px; align-items: flex-start;
    line-height: 1.55;
  }
  .alert-info .ai {
    width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
    border-radius: 6px;
    background: var(--navy-100);
    display: grid; place-items: center;
  }
  .alert-info .ai svg { width: 12px; height: 12px; stroke: var(--navy-700); fill: none; stroke-width: 2; }

  .filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
  .seg {
    display: inline-flex; padding: 3px;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 10px;
  }
  .seg button {
    height: 30px; padding: 0 13px; border: none; border-radius: 7px;
    background: transparent; cursor: pointer; color: var(--text-2);
    font-weight: 500; font-size: 12.5px;
    transition: all .15s;
  }
  .seg button.active {
    background: #fff; color: var(--navy-800);
    box-shadow: var(--shadow-sm);
  }
  /* BR5.6-3 复核弹窗：结论卡片式选择（通过=绿 / 修正=橙） */
  .review-opts { display: flex; gap: 10px; }
  .review-opts button {
    flex: 1; display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; text-align: left; cursor: pointer;
    border: 1.5px solid var(--line-strong); border-radius: 12px;
    background: #fff; transition: all .18s ease;
  }
  .review-opts button:hover {
    transform: translateY(-1px);
    border-color: var(--navy-500);
    box-shadow: var(--shadow-sm);
  }
  .review-opts .rc-icon {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    background: var(--surface-2); color: var(--text-3);
    transition: all .18s ease;
  }
  .review-opts .rc-txt b { display: block; font-size: 13.5px; font-weight: 650; color: var(--text-1); }
  .review-opts .rc-txt i { display: block; font-style: normal; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
  .review-opts button.active[data-v="通过"] {
    border-color: #10b981; background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
    box-shadow: 0 2px 8px rgba(16,185,129,.18);
  }
  .review-opts button.active[data-v="通过"] .rc-icon { background: #10b981; color: #fff; }
  .review-opts button.active[data-v="通过"] .rc-txt b { color: #047857; }
  .review-opts button.active[data-v="通过"] .rc-txt i { color: #059669; }
  .review-opts button.active[data-v="修正"] {
    border-color: #f59e0b; background: linear-gradient(180deg, #fffbeb, #fff7ed);
    box-shadow: 0 2px 8px rgba(245,158,11,.18);
  }
  .review-opts button.active[data-v="修正"] .rc-icon { background: #f59e0b; color: #fff; }
  .review-opts button.active[data-v="修正"] .rc-txt b { color: #b45309; }
  .review-opts button.active[data-v="修正"] .rc-txt i { color: #d97706; }
  #review-submit-btn.fix {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245,158,11,.30);
  }
  .select, .input {
    height: 34px; padding: 0 12px;
    border: 1px solid var(--line-strong); border-radius: 9px;
    background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .select:focus, .input:focus {
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(43,108,176,0.12);
  }

  .stat-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 18px;
  }
  .stat-card {
    position: relative; overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px; padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s;
  }
  .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .stat-card::after {
    content: "";
    position: absolute; right: -20px; top: -20px;
    width: 80px; height: 80px; border-radius: 50%;
    background: radial-gradient(circle, rgba(15,61,122,0.06), transparent 70%);
  }
  .stat-card .label { color: var(--text-3); font-size: 12px; font-weight: 500; }
  .stat-card .value {
    font-family: Outfit, sans-serif;
    font-size: 28px; font-weight: 700; color: var(--navy-900);
    margin-top: 6px; letter-spacing: -0.03em; line-height: 1.1;
  }
  .stat-card .sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
  .stat-card.warn .value { color: var(--amber); }
  .stat-card.danger .value { color: var(--rose); }
  .stat-card.ok .value { color: var(--teal); }
  .stat-card .accent-bar {
    position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--navy-600);
  }
  .stat-card.ok .accent-bar { background: var(--teal); }
  .stat-card.warn .accent-bar { background: var(--amber); }
  .stat-card.danger .accent-bar { background: var(--rose); }

  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 14px;
  }
  .ent-card {
    border: 1px solid var(--line);
    border-radius: 14px; padding: 16px;
    background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
  }
  .ent-card:hover {
    transform: translateY(-3px);
    border-color: rgba(43,108,176,0.35);
    box-shadow: 0 12px 28px rgba(15,61,122,0.1);
  }
  .ent-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 8px; margin-bottom: 14px;
  }
  .ent-head strong { font-size: 14.5px; color: var(--text); font-weight: 650; }
  .tag {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 6px;
    font-size: 11px; font-weight: 500; line-height: 18px; white-space: nowrap;
  }
  .tag-blue { background: #e0efff; color: #1d4ed8; }
  .tag-red { background: #ffe4e6; color: #be123c; }
  .tag-green { background: #d1fae5; color: #047857; }
  .tag-orange { background: #ffedd5; color: #c2410c; }
  .tag-gray { background: #f1f5f9; color: #475569; }
  .tag-purple { background: #ede9fe; color: #5b21b6; }
  .metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-cell {
    padding: 8px 10px; border-radius: 8px;
    background: rgba(244,248,252,0.8);
  }
  .metric-cell .label { font-size: 11px; color: var(--text-3); }
  .metric-cell .value { font-size: 14px; font-weight: 650; color: var(--text); margin-top: 2px; }
  .metric-cell.span-2 { grid-column: span 2; }
  .net3y-chart { margin-top: 4px; }
  .net3y-chart svg { display: block; }
  .metric-cell .value.net3y-val { font-size: 12.5px; font-weight: 600; }
  .pdf-viewer { display:flex; flex-direction:column; height:min(68vh,620px); }
  .pdf-toolbar {
    display:flex; align-items:center; gap:14px;
    background:#3a3f46; color:#e5e7eb; border-radius:8px 8px 0 0;
    padding:8px 12px; font-size:12px;
  }
  .pdf-name { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
  .pdf-badge { background:#dc2626; color:#fff; font-size:10px; font-weight:700; padding:1px 5px; border-radius:3px; letter-spacing:.5px; }
  .pdf-tb { margin-left:auto; display:flex; align-items:center; gap:6px; }
  .pdf-btn { background:transparent; border:none; color:#e5e7eb; cursor:pointer; font-size:14px; line-height:1; padding:4px 7px; border-radius:4px; }
  .pdf-btn:hover { background:rgba(255,255,255,.14); }
  .pdf-btn:disabled { opacity:.35; cursor:default; }
  .pdf-btn:disabled:hover { background:transparent; }
  .pdf-zoom { min-width:44px; text-align:center; }
  .pdf-sep { width:1px; height:16px; background:rgba(255,255,255,.22); margin:0 4px; }
  .pdf-stage { flex:1; overflow:auto; background:#525659; padding:18px 12px; display:flex; justify-content:center; align-items:flex-start; }
  .pdf-page { position:relative; background:#fff; box-shadow:0 2px 12px rgba(0,0,0,.38); overflow:hidden; flex:none; }
  .pdf-pfoot { position:absolute; left:0; right:0; bottom:0.9em; text-align:center; font-size:0.72em; color:#9ca3af; }
  .pdf-stamp {
    position:absolute; right:9%; bottom:12%; width:96px; height:96px; border-radius:50%;
    border:3px solid rgba(220,38,38,.65); color:rgba(220,38,38,.78);
    display:flex; align-items:center; justify-content:center; text-align:center;
    font-size:12px; font-weight:700; line-height:1.4; transform:rotate(-14deg);
    pointer-events:none; background:rgba(220,38,38,.03);
  }
  .form-tbl { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 12px; }
  .form-tbl th, .form-tbl td { border: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
  .form-tbl th { background: #f1f5f9; font-weight: 600; color: #334155; text-align: center; }
  .form-tbl td { text-align: center; }
  .form-tbl th.grp { background: #e2e8f0; }
  .form-tbl td.name { font-weight: 550; text-align: left; }
  .form-tbl td.left { text-align: left; }

  /* 低效无效处置进度表：容器自适应视口高度，纵向滚动限制在容器内，
     横向滚动条始终停在可视区底部；表头吸顶 */
  .ineff-wrap {
    overflow: auto;
    max-height: calc(100vh - 250px);
    min-height: 240px;
  }
  .ineff-wrap thead th {
    position: sticky; top: 0; z-index: 2;
    background: #f1f5f9;
    box-shadow: 0 1px 0 var(--line);  /* 吸顶滚动时补齐被 border-collapse 裁掉的表头下边框 */
  }
  /* 两级合并表头：第二行吸顶偏移 = 第一行高度（--ineff-h1 由 sizeIneffWrap 动态写入） */
  .ineff-wrap thead tr:nth-child(2) th {
    top: var(--ineff-h1, 0px);
  }

  /* 修改密码弹窗掩码文本框：type=text 让 Chrome 不识别为密码框（不再配对已存
     凭据、不再于全站文本框弹密码下拉），圆点掩码由 CSS 实现，视觉同密码框。
     注：-webkit-text-security 仅 Chrome/Edge 支持，Firefox 下明文显示（可接受） */
  .pwd-mask {
    -webkit-text-security: disc;
  }

  .chart-box {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 14px; padding: 16px 18px;
    background: linear-gradient(180deg, #fbfdff, #f5f9fc);
  }
  .chart-title {
    font-weight: 650; margin-bottom: 14px; color: var(--navy-900); font-size: 13.5px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .bar-chart {
    display: flex; gap: 10px;
    height: 244px; padding: 20px 4px 0;  /* 两行简称后加高，避免挤压柱体 */
  }
  .bar-col {
    flex: 1; display: flex; flex-direction: column;
    align-items: stretch; height: 100%;
    min-width: 0;
  }
  /* 零轴上下两区：盈利柱从零轴向上长、亏损柱从零轴向下长（diverging bar） */
  .bar-zone {
    display: flex; flex-direction: column; align-items: center;
    min-height: 0; overflow: visible;
  }
  .bar-zone.up { justify-content: flex-end; }
  .bar-zone.down { justify-content: flex-start; border-top: 1px solid var(--line-strong); }
  .bar-zone.down .bar-val { margin: 6px 0 0; }
  .bar-val {
    font-family: Outfit, "Noto Sans SC", sans-serif;
    font-size: 12px; font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 6px;
    white-space: nowrap;
    line-height: 1;
  }
  .bar-val.neg { color: var(--rose); }
  .bar-val.zero { color: #64748b; }
  .bar {
    width: 72%; max-width: 42px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #4a90d9 0%, var(--navy-800) 100%);
    min-height: 6px;
    box-shadow: 0 4px 10px rgba(15,61,122,0.2);
    transition: height .5s var(--ease);
    position: relative;
  }
  .bar::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 40%);
  }
  .bar.bar-down { border-radius: 3px 3px 8px 8px; }  /* 亏损柱：朝下生长，圆角朝下 */
  /* 企业简称完整显示：允许换行，最多两行（超出仍截断防溢出） */
  .bar-col .bar-name {
    font-size: 11px; color: var(--text-3); margin-top: 8px;
    text-align: center; font-weight: 500;
    max-width: 100%; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    white-space: normal; word-break: break-all; line-height: 1.3;
  }
  .chart-legend {
    margin-top: 12px;
    font-size: 12px; color: var(--text-3);
    display: flex; gap: 16px; flex-wrap: wrap;
  }
  .chart-legend i {
    display: inline-block; width: 10px; height: 10px; border-radius: 2px;
    margin-right: 6px; vertical-align: -1px;
  }

  table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
  table.data th, table.data td {
    padding: 11px 12px; text-align: left;
    border-bottom: 1px solid var(--line);
  }
  table.data th {
    background: var(--navy-50); color: var(--navy-800);
    font-weight: 600; font-size: 12px; white-space: nowrap;
  }
  table.data th:first-child { border-radius: 10px 0 0 0; }
  table.data th:last-child { border-radius: 0 10px 0 0; }
  table.data tbody tr { transition: background .12s; }
  table.data tbody tr:hover td { background: #f5f9fd; }
  table.data tbody tr:last-child td { border-bottom: none; }
  .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .pager {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    margin-top: 12px; padding: 10px 4px 2px;
    font-size: 12.5px; color: var(--text-2);
  }
  .pager-info { color: var(--text-3); }
  .pager-btns { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
  .pager-btns button {
    min-width: 32px; height: 32px; padding: 0 10px;
    border: 1px solid var(--line-strong); border-radius: 8px;
    background: #fff; color: var(--navy-800); font-size: 12.5px; cursor: pointer;
  }
  .pager-btns button:hover:not(:disabled) { border-color: var(--navy-600); background: var(--navy-50); }
  .pager-btns button.active {
    background: var(--navy-700); border-color: var(--navy-700); color: #fff; font-weight: 600;
  }
  .pager-btns button:disabled { opacity: 0.4; cursor: not-allowed; }

  .tabs {
    display: flex; gap: 2px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
  }
  .tab {
    padding: 11px 16px; cursor: pointer; color: var(--text-3);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    font-weight: 500; font-size: 13.5px;
    transition: color .15s;
  }
  .tab:hover { color: var(--navy-700); }
  .tab.active {
    color: var(--navy-800); font-weight: 650;
    border-bottom-color: var(--navy-700);
  }

  .upload-zone {
    border: 1.5px dashed rgba(43,108,176,0.35);
    border-radius: 16px;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(232,241,251,0.9), transparent 60%),
      #f7faff;
    padding: 40px 20px; text-align: center; cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
    margin-bottom: 14px;
  }
  .upload-zone:hover {
    border-color: var(--navy-600);
    background: #eef5fc;
    transform: translateY(-1px);
  }
  .upload-zone.dragover {
    border-color: var(--navy-700);
    background: #e8f1fb;
    border-style: solid;
  }
  .upload-zone .cloud {
    width: 56px; height: 56px; margin: 0 auto 12px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--navy-100), #fff);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
  }
  .upload-zone .cloud svg { width: 26px; height: 26px; stroke: var(--navy-700); fill: none; stroke-width: 1.6; }
  .upload-zone strong { color: var(--navy-800); font-size: 14.5px; }
  .upload-zone p { color: var(--text-3); font-size: 13px; margin-top: 6px; }

  .upload-panel { margin-bottom: 18px; }
  .upload-opts {
    display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
    margin-bottom: 12px;
  }
  .upload-opts .opt-label {
    font-size: 12.5px; color: var(--text-2); font-weight: 550; margin-right: 2px;
  }
  .type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .type-chip {
    height: 30px; padding: 0 12px; border-radius: 8px;
    border: 1px solid var(--line-strong); background: #fff;
    color: var(--text-2); font-size: 12.5px; font-weight: 500; cursor: pointer;
    transition: all .15s var(--ease);
  }
  .type-chip:hover { border-color: rgba(15,61,122,0.28); background: var(--navy-50); color: var(--navy-800); }
  .type-chip.active {
    background: linear-gradient(180deg, #1a5bb5 0%, var(--navy-800) 100%);
    border-color: transparent; color: #fff;
    box-shadow: 0 2px 8px rgba(15,61,122,0.22);
  }
  .pending-box, .task-box {
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); padding: 12px 14px; margin-bottom: 12px;
  }
  .pending-title {
    font-size: 12.5px; font-weight: 650; color: var(--navy-800);
    margin-bottom: 10px;
  }
  .pending-row, .task-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-top: 1px solid var(--line);
    font-size: 13px;
  }
  .pending-row:first-of-type, .task-row:first-of-type { border-top: none; padding-top: 0; }
  .pending-row .name, .task-head .name { flex: 1; font-weight: 500; color: var(--text); min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pending-row .size { color: var(--text-3); font-size: 12px; flex-shrink: 0; }
  .task-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .task-head { display: flex; align-items: center; gap: 10px; }
  .progress {
    height: 8px; border-radius: 999px; background: var(--navy-100);
    overflow: hidden;
  }
  .progress > i {
    display: block; height: 100%; width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--navy-600), var(--navy-800));
    transition: width .25s var(--ease);
  }
  .progress.ok > i { background: linear-gradient(90deg, #0d9488, #0f766e); }
  .progress.fail > i { background: linear-gradient(90deg, #e11d48, #be123c); }
  .task-msg { font-size: 12px; color: var(--text-2); }
  .task-msg.ok { color: var(--teal); }
  .task-msg.fail { color: var(--rose); }
  .upload-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
  /* 上传进度条自动清除：淡出 + 轻微上收，避免突然消失 */
  .task-box { transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .task-box.fade-out { opacity: 0; transform: translateY(-6px); }
  #file-input { display: none; }

  .two-col { display: grid; grid-template-columns: 252px 1fr; gap: 14px; min-height: 420px; }
  .tree {
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface-2); padding: 10px;
    overflow: auto; max-height: 560px;
  }
  .tree-title {
    font-weight: 650; color: var(--navy-800); font-size: 12.5px;
    padding: 8px 10px; margin-bottom: 4px;
  }
  .tree-item {
    padding: 8px 10px; border-radius: 8px; cursor: pointer;
    font-size: 12px; color: var(--text);
    display: flex; justify-content: space-between; gap: 6px;
    transition: background .12s, color .12s;
  }
  .tree-item:hover { background: #e8f0fa; }
  .tree-item.active {
    background: linear-gradient(90deg, var(--navy-800), var(--navy-700));
    color: #fff; box-shadow: 0 4px 10px rgba(15,61,122,0.25);
  }
  .tree-item .cnt { font-size: 11px; opacity: 0.7; }

  .tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .conf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; }
  .conf-dot { width: 7px; height: 7px; border-radius: 50%; }
  .conf-high .conf-dot { background: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,0.15); }
  .conf-mid .conf-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(180,83,9,0.12); }
  .conf-low .conf-dot { background: var(--rose); box-shadow: 0 0 0 3px rgba(190,18,60,0.12); }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .panel {
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background: #fff; box-shadow: var(--shadow-sm);
  }
  .panel-hd {
    background: linear-gradient(180deg, #f4f8fc, #eef4fa);
    padding: 11px 14px; font-weight: 650; color: var(--navy-800);
    font-size: 13px; border-bottom: 1px solid var(--line);
  }
  .panel-bd { padding: 14px; }
  .pdf-preview {
    background: linear-gradient(180deg, #f1f5f9, #e8eef5);
    min-height: 280px; border-radius: 10px; padding: 18px;
    font-size: 12.5px; color: #334155; line-height: 1.75;
    font-family: "Times New Roman", "Noto Serif SC", serif;
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    /* 保留换行：xlsx 虚拟页/OCR 页文本按 \n 分行返回，无此属性会全部粘连成一段 */
    white-space: pre-wrap; word-break: break-all;
  }
  .pdf-preview .hl {
    background: linear-gradient(180deg, transparent 40%, #fde68a 40%);
    padding: 0 2px; font-weight: 600;
  }
  /* xlsx 真表格预览：带边框行列 + 行号列（与指标溯源 R 行号对应），宽表横向滚动 */
  .xlsx-preview { display: flex; flex-direction: column; gap: 18px; }
  .xlsx-sheet-name {
    font-weight: 600; color: var(--navy-800); font-size: 13px; margin-bottom: 8px;
  }
  .xlsx-grid-wrap {
    overflow-x: auto; border: 1px solid var(--line); border-radius: 8px;
    max-height: 640px; overflow-y: auto; background: #fff;
  }
  .xlsx-grid { border-collapse: collapse; font-size: 12.5px; }
  .xlsx-grid td {
    border: 1px solid var(--line); padding: 5px 10px;
    white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis;
    vertical-align: top; color: #334155;
  }
  .xlsx-grid tr:nth-child(even) td { background: #f8fbff; }
  .xlsx-grid .xlsx-rowno {
    background: #f1f5f9; color: var(--text-3); font-size: 11.5px;
    text-align: right; min-width: 46px; position: sticky; left: 0;
  }
  .field-row {
    display: grid; grid-template-columns: 100px 1fr 64px;
    gap: 8px; align-items: start; margin-bottom: 12px;
  }
  .field-row label { font-size: 12px; color: var(--text-3); font-weight: 500; padding-top: 8px; }
  .field-row input, .field-row textarea {
    height: 34px; border: 1px solid var(--line-strong); border-radius: 8px;
    padding: 0 10px; width: 100%; outline: none; font: inherit; color: var(--text); background: #fff;
  }
  .field-row textarea { height: auto; min-height: 56px; padding: 8px 10px; resize: vertical; }
  .field-row input:focus, .field-row textarea:focus { border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(43,108,176,0.12); }
  .field-row input.anomaly, .field-row textarea.anomaly { border-color: #fda4af; background: #fff1f2; }
  .field-row .field-extra { grid-column: 2 / -1; font-size: 11.5px; color: var(--text-3); margin-top: -4px; }
  .field-row .snippet {
    grid-column: 2 / -1; font-size: 12px; color: var(--text-2);
    background: var(--surface-2); padding: 6px 8px; border-radius: 6px;
  }

  .correct-layout {
    display: grid; grid-template-columns: 248px 1fr; gap: 14px; min-height: 520px;
  }
  .correct-queue {
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
    overflow: hidden; display: flex; flex-direction: column; max-height: 640px;
  }
  .correct-queue-hd {
    padding: 10px 12px; font-size: 12.5px; font-weight: 650; color: var(--navy-800);
    border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px;
  }
  .correct-queue-bd { overflow: auto; flex: 1; }
  .correct-item {
    padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer;
    display: flex; gap: 8px; align-items: flex-start; transition: background .15s;
  }
  .correct-item:hover { background: rgba(232,241,251,0.7); }
  .correct-item.active { background: var(--navy-100); box-shadow: inset 3px 0 0 var(--navy-700); }
  .correct-item .cn { font-size: 12.5px; font-weight: 550; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .correct-item .cs { font-size: 11.5px; color: var(--text-3); margin-top: 4px;
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .correct-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
  .correct-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .correct-compare { display: grid; grid-template-columns: 1fr 1.05fr; gap: 12px; }
  @media (max-width: 1100px) {
    .correct-layout { grid-template-columns: 1fr; }
    .correct-compare { grid-template-columns: 1fr; }
  }

  .chat {
    display: flex; flex-direction: column;
    flex: 1; min-height: 0; height: auto;
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .chat-msgs {
    flex: 1; overflow: auto; padding: 18px;
    background:
      radial-gradient(ellipse at 0% 0%, rgba(232,241,251,0.6), transparent 50%),
      #f6f9fc;
  }
  .msg {
    max-width: 76%; margin-bottom: 14px; padding: 12px 14px;
    border-radius: 14px; font-size: 13.5px; line-height: 1.65;
    animation: fadeSlide .3s var(--ease) both;
  }
  .msg.user {
    margin-left: auto;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
    color: #fff; border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(15,61,122,0.25);
  }
  .msg.bot {
    max-width: 92%;
    background: #fff; border: 1px solid var(--line);
    border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm);
  }
  /* AI 生成中提示气泡：呼吸闪烁，防重复提交等待反馈 */
  .msg.typing {
    color: var(--text-3); font-style: italic;
    animation: qaTyping 1.2s ease-in-out infinite;
  }
  @keyframes qaTyping { 50% { opacity: .4; } }
  .btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }
  .chat-input input[disabled] { opacity: .6; }
  .msg .meta {
    font-size: 11.5px; color: var(--text-3);
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--line);
  }
  .cite-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .cite-list .cite-label { font-size: 12px; color: var(--text-3); margin-right: 2px; }
  .cite-btn {
    border: none; background: var(--navy-50); color: var(--navy-800);
    border-radius: 8px; padding: 4px 9px; font-size: 12px; cursor: pointer;
  }
  .cite-btn:hover { background: #dbeafe; }
  .risk-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
  .risk-item {
    border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
    background: linear-gradient(160deg, #fff, #f8fafc);
  }
  .risk-item .ri-hd {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 6px; font-weight: 650; color: var(--navy-900); font-size: 13.5px;
  }
  .risk-item .ri-desc, .risk-item .ri-sug {
    font-size: 13px; color: #334155; line-height: 1.6;
  }
  .risk-item .ri-sug { margin-top: 6px; }
  .risk-item .ri-sug strong { color: var(--navy-800); font-weight: 600; }
  .major-hint {
    margin-top: 10px; padding: 8px 10px; border-radius: 8px;
    background: #fff7ed; border: 1px solid #fed7aa;
    font-size: 12.5px; color: #9a3412;
  }
  .chat-input {
    display: flex; gap: 8px; padding: 14px;
    border-top: 1px solid var(--line); background: #fff;
  }
  .chat-input input {
    flex: 1; height: 42px; border: 1px solid var(--line-strong);
    border-radius: 11px; padding: 0 14px; outline: none;
  }
  .chat-input input:focus {
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(43,108,176,0.12);
  }
  .cite-excerpt {
    margin-top: 10px; padding: 12px 14px; border-radius: 10px;
    background: var(--navy-50); border: 1px solid var(--line);
    font-size: 13.5px; line-height: 1.7; color: #1e293b;
  }
  .msg.bot .report-card {
    margin-top: 12px; box-shadow: none;
  }
  .msg.bot .report-card h3 { font-size: 15px; }
  .report-actions {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
  }

  .report-card {
    border: 1px solid var(--line); border-radius: 16px;
    padding: 22px; background: #fff; box-shadow: var(--shadow-sm);
  }
  .report-card h3 {
    font-family: Outfit, "Noto Sans SC", sans-serif;
    color: var(--navy-900); font-size: 16px; font-weight: 700;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  }
  .report-sec { margin-bottom: 16px; position: relative; padding-left: 14px; }
  .report-sec::before {
    content: "";
    position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
    border-radius: 2px; background: var(--navy-100);
  }
  .report-sec h4 { font-size: 13px; color: var(--navy-800); margin-bottom: 6px; font-weight: 650; }
  .report-sec p, .report-sec li { font-size: 13.5px; color: #334155; line-height: 1.7; }
  .report-sec ul { padding-left: 18px; }
  .disclaimer {
    margin-top: 14px; padding: 11px 13px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border: 1px solid #fde68a; border-radius: 10px;
    font-size: 12px; color: #92400e; line-height: 1.55;
  }

  .desc-grid {
    display: grid; grid-template-columns: 132px 1fr; gap: 0;
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    font-size: 13px; margin-bottom: 14px;
  }
  .desc-grid dt, .desc-grid dd { padding: 9px 12px; border-bottom: 1px solid var(--line); }
  .desc-grid dt { background: var(--navy-50); color: var(--text-2); font-weight: 500; }
  .desc-grid dd { background: #fff; }
  .desc-grid dt:nth-last-of-type(1), .desc-grid dd:last-child { border-bottom: none; }

  .cover-form-sec {
    margin: 4px 0 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
    font-size: 13px; font-weight: 650; color: var(--navy-800);
  }
  .cover-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .cover-form-grid .form-group.span-2 { grid-column: 1 / -1; }
  .cover-form-grid .form-group { margin-bottom: 14px; }
  .cover-form-grid .form-group label { font-size: 12px; }
  @media (max-width: 720px) {
    .cover-form-grid { grid-template-columns: 1fr; }
  }

  .micro-metrics {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px;
  }
  .micro-metric {
    border: 1px solid var(--line); border-radius: 12px; padding: 14px;
    background: linear-gradient(160deg, #fff, #f5f9fd);
    box-shadow: var(--shadow-sm);
  }
  .micro-metric .label { font-size: 12px; color: var(--text-3); font-weight: 500; }
  .micro-metric .value {
    font-family: Outfit, sans-serif;
    font-size: 22px; font-weight: 700; color: var(--navy-900);
    margin-top: 6px; letter-spacing: -0.02em;
  }
  .micro-metric .trend { font-size: 12px; margin-top: 4px; color: var(--text-3); }
  .up { color: var(--rose); }
  .down { color: var(--teal); }

  .toast {
    position: fixed; top: 56px; right: 22px; z-index: 10000;
    background: #fff; border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    box-shadow: var(--shadow-lg);
    padding: 13px 16px; border-radius: 10px;
    font-size: 13px; max-width: 320px;
    display: none;
  }
  .toast.show { display: block; animation: riseIn .25s var(--ease); }

  .fullscreen-mode {
    position: fixed !important; inset: 0; z-index: 8000;
    background: linear-gradient(160deg, #061224, #0b2748 40%, #0f3d7a);
    color: #e2e8f0; padding: 28px; overflow: auto;
    border-radius: 0 !important; border: none !important;
  }
  .fullscreen-mode .page-title,
  .fullscreen-mode .chart-title,
  .fullscreen-mode .stat-card .value,
  .fullscreen-mode .ent-head strong { color: #bfdbfe; }
  .fullscreen-mode .page-card,
  .fullscreen-mode .stat-card,
  .fullscreen-mode .ent-card,
  .fullscreen-mode .chart-box,
  .fullscreen-mode .metric-cell {
    background: rgba(255,255,255,0.05);
    border-color: rgba(147,197,253,0.18);
    backdrop-filter: blur(8px);
  }
  .fullscreen-mode .metric-cell .value,
  .fullscreen-mode .metric-cell .value.net3y-val { color: #e2e8f0; }
  .fullscreen-mode .alert-info { display: none; }
  .fullscreen-mode .bar {
    background: linear-gradient(180deg, #60a5fa, #1e40af);
  }
  .fullscreen-mode .bar-val { color: #bfdbfe; }
  .fullscreen-mode .bar-val.neg { color: #fda4af; }
  .fullscreen-mode .bar-val.zero { color: #cbd5e1; }

  .empty { text-align: center; padding: 40px; color: var(--text-3); }
  .modal-mask {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(7, 21, 40, 0.48);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: fadeSlide .2s ease;
  }
  #link-modal.modal-mask { z-index: 9200; }
  .modal {
    background: #fff; border-radius: 16px; width: 520px; max-width: 100%;
    max-height: 85vh; overflow: auto;
    box-shadow: var(--shadow-lg);
    animation: riseIn .3s var(--ease);
  }
  .modal.wide { width: min(920px, 96vw); }
  .modal.trace-modal { width: min(980px, 96vw); display: flex; flex-direction: column; max-height: 88vh; overflow: hidden; }
  .modal.trace-modal .modal-bd { overflow: auto; flex: 1; }
  .trace-layout {
    display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 14px;
    align-items: start;  /* 各列按内容高：锚点列表全部展开，弹窗整体滚动 */
  }
  @media (max-width: 860px) {
    .trace-layout { grid-template-columns: 1fr; }
  }
  .trace-meta {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px;
    margin-bottom: 12px; font-size: 12.5px; color: var(--text-2);
  }
  .trace-meta b { color: var(--navy-800); font-weight: 600; }
  .trace-field {
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
    margin-bottom: 8px; cursor: pointer; background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s;
  }
  .trace-field:hover { border-color: rgba(43,108,176,0.35); background: var(--navy-50); }
  .trace-field.active {
    border-color: var(--navy-600); background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(43,108,176,0.12);
  }
  .trace-field .tf-hd {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-weight: 650; color: var(--navy-900); font-size: 13px; margin-bottom: 4px;
  }
  .trace-field .tf-val { font-size: 13.5px; color: #1e293b; }
  .trace-field .tf-loc { font-size: 12px; color: var(--text-3); margin-top: 4px; }
  .trace-field .tf-snip {
    margin-top: 6px; font-size: 12px; color: var(--text-2);
    background: var(--surface-2); padding: 6px 8px; border-radius: 6px;
  }
  .pdf-preview .hl.active-hl {
    background: linear-gradient(180deg, transparent 35%, #fbbf24 35%);
    outline: 2px solid #f59e0b; outline-offset: 1px;
    border-radius: 2px;
  }
  .trace-page-bar {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; align-items: center;
  }
  .trace-page-bar .pg-btn {
    min-width: 36px; height: 28px; padding: 0 10px;
    border: 1px solid var(--line-strong); border-radius: 7px;
    background: #fff; color: var(--navy-800); font-size: 12px; cursor: pointer;
  }
  .trace-page-bar .pg-btn.active {
    background: var(--navy-700); border-color: var(--navy-700); color: #fff;
  }
  .modal-hd {
    padding: 16px 20px; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; color: var(--navy-900); font-size: 15px;
  }
  .modal-bd { padding: 18px 20px; }
  .modal-ft {
    padding: 14px 20px; border-top: 1px solid var(--line);
    display: flex; justify-content: flex-end; gap: 8px;
    background: var(--surface-2);
  }
  .check-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--line); cursor: pointer;
    transition: border-color .15s, background .15s;
  }
  .check-item:hover { background: var(--navy-50); border-color: rgba(43,108,176,0.3); }

  /* 过程资料链抽屉 */
  .drawer-mask {
    position: fixed; inset: 0; z-index: 9100;
    background: rgba(7, 21, 40, 0.42);
    backdrop-filter: blur(3px);
    display: flex; justify-content: flex-end;
    animation: fadeSlide .2s ease;
  }
  .drawer {
    width: min(520px, 100%); height: 100%;
    background: #fff; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
    animation: riseIn .28s var(--ease);
  }
  .drawer-hd {
    padding: 16px 20px; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; color: var(--navy-900); font-size: 15px; flex-shrink: 0;
  }
  .drawer-bd { padding: 18px 20px; overflow: auto; flex: 1; }
  .chain-meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-bottom: 16px; padding: 12px 14px;
    background: var(--navy-50); border-radius: 12px; border: 1px solid var(--line);
  }
  .chain-meta .km { font-size: 11.5px; color: var(--text-3); }
  .chain-meta .kv { font-size: 13px; color: var(--text); font-weight: 550; margin-top: 2px; }
  .chain-flow {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    margin-bottom: 14px; font-size: 12px; color: var(--text-3);
  }
  .chain-flow .step {
    padding: 4px 10px; border-radius: 6px; background: #fff;
    border: 1px solid var(--line-strong); color: var(--navy-800); font-weight: 550;
  }
  .chain-flow .step.miss { opacity: 0.45; border-style: dashed; color: var(--text-3); }
  .chain-flow .arrow { color: var(--text-3); }
  .stage-block {
    border: 1px solid var(--line); border-radius: 12px;
    margin-bottom: 12px; overflow: hidden;
  }
  .stage-hd {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: var(--surface-2);
    font-size: 13px; font-weight: 650; color: var(--navy-800);
  }
  .stage-bd { padding: 4px 0; }
  .stage-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px;
  }
  .stage-row .fn { flex: 1; min-width: 0; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stage-empty {
    padding: 14px; font-size: 12.5px; color: var(--text-3); text-align: center;
  }
  .link-file-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px;
    cursor: pointer; border-radius: 8px;
  }
  .link-file-row:hover { background: var(--navy-50); }
  .link-file-row:last-child { border-bottom: none; }
  .link-file-row input { width: 16px; height: 16px; accent-color: var(--navy-800); flex-shrink: 0; }
  .link-file-row .meta { flex: 1; min-width: 0; }
  .link-file-row .meta .fn { font-weight: 500; display: block;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .link-file-row .meta .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
  .link-file-row select.role-sel {
    height: 28px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-strong);
    background: #fff; font-size: 12px; color: var(--navy-800); max-width: 88px;
  }
  .link-file-row.select-off { opacity: 0.55; }
  .link-file-row.select-off .role-sel { pointer-events: none; opacity: 0.5; }
  .link-hint {
    display: flex; gap: 16px; flex-wrap: wrap;
    padding: 10px 12px; margin-bottom: 12px;
    background: var(--navy-50); border-radius: 10px; border: 1px solid var(--line);
    font-size: 12.5px; color: var(--text-2);
  }
  .link-hint strong { color: var(--navy-800); font-weight: 650; }

  .risk-loop {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding: 12px 14px; margin-bottom: 14px;
    background: linear-gradient(90deg, rgba(232,241,251,0.9), #fff);
    border: 1px solid var(--line); border-radius: 12px;
    font-size: 12.5px; color: var(--text-2);
  }
  .risk-loop .rl-step {
    padding: 5px 10px; border-radius: 8px; background: #fff;
    border: 1px solid var(--line-strong); color: var(--navy-800); font-weight: 550;
  }
  .risk-loop .rl-arrow { color: var(--text-3); }

  @media (max-width: 1100px) {
    .login-shell { grid-template-columns: 1fr; padding: 40px 28px 48px; gap: 28px; }
    .hero-top { border-left: none; padding-left: 0; }
    .hero-copy h1 { font-size: 36px; }
    .login-panel { justify-content: center; }
    .hero-viz { opacity: 0.28; width: min(280px, 50vw); }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .two-col, .split { grid-template-columns: 1fr; }
    .micro-metrics { grid-template-columns: 1fr; }
  }
  @media (max-width: 760px) {
    .login-shell { padding: 28px 18px 36px; }
    .hero-viz, .hero-ring { display: none; }
    .login-card { padding: 32px 24px 28px; border-radius: 20px; }
    .brand-mark { gap: 12px; margin-bottom: 22px; }
    .brand-mark img { width: 60px; height: 60px; border-radius: 12px; padding: 6px; }
    .brand-mark .brand-name { font-size: 17px; }
    .aside { width: 68px; }
    .aside .logo .txt, .nav-item .txt, .aside-foot { display: none; }
    .aside .logo { justify-content: center; padding: 12px 8px; }
    .aside .logo img { width: 36px; height: 36px; }
    .nav-item { justify-content: center; padding: 12px; }
    .nav-item.active::before { display: none; }
    .breadcrumb { display: none; }
  }
