    :root {
      --primary: #3b82f6;
      --primary-dark: #0f172a;
      --bg: #0f172a;
      --surface: #1e293b;
      --border: #334155;
      --text: #f1f5f9;
      --text-secondary: #94a3b8;
      --success: #10b981;
      --warning: #f59e0b;
      --error: #ef4444;
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      margin: 0;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      background-color: var(--bg);
      background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
      color: var(--text);
      height: 100vh;
      overflow: hidden;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    /* 全局滚动条美化 */
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: transparent;
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.2);
    }
    .app {
      display: flex;
      height: 100vh;
      max-width: 1800px;
      margin: 0 auto;
      background: rgba(15, 23, 42, 0.6);
      backdrop-filter: blur(20px);
    }
    /* 侧边栏美化 */
    .sidebar {
      width: 260px;
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
      padding: 24px 16px;
      display: flex;
      flex-direction: column;
      border-right: 1px solid rgba(255,255,255,0.05);
      z-index: 10;
      box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }
    .logo {
      margin-bottom: 32px;
      padding: 0 12px;
    }
    .logo-title {
      font-size: 20px;
      font-weight: 700;
      background: linear-gradient(135deg, #60a5fa, #34d399);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: -0.5px;
      text-shadow: 0 2px 10px rgba(96, 165, 250, 0.3);
    }
    .logo-sub {
      font-size: 12px;
      color: var(--text-secondary);
      margin-top: 6px;
      font-weight: 500;
    }
    .nav {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .nav-item {
      padding: 12px 16px;
      border-radius: 12px;
      color: var(--text-secondary);
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: 1px solid transparent;
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 2px;
    }
    .nav-item:hover {
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      transform: translateX(4px);
    }
    .nav-item.active {
      background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
      border: 1px solid rgba(59, 130, 246, 0.2);
      border-left: 3px solid #60a5fa;
      color: white;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
      transform: translateX(4px);
    }
    .nav-badge {
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 6px;
      background: rgba(0,0,0,0.2);
      color: var(--text-secondary);
      font-weight: 600;
      letter-spacing: 0.5px;
    }
    .nav-item.active .nav-badge {
      background: rgba(59, 130, 246, 0.2);
      color: #60a5fa;
    }
    .nav-footer {
      padding: 16px;
      margin-top: auto;
      font-size: 12px;
      color: var(--text-secondary);
      background: rgba(255,255,255,0.02);
      border-radius: 12px;
      line-height: 1.6;
    }

    /* 主区域美化 */
    .main {
      flex: 1;
      padding: 24px 32px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
    }
    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 24px;
      border-radius: 16px;
      background: rgba(30, 41, 59, 0.4);
      border: 1px solid rgba(255,255,255,0.05);
      margin-bottom: 24px;
      backdrop-filter: blur(12px);
    }
    .topbar-title {
      font-size: 18px;
      font-weight: 600;
      color: var(--text);
      letter-spacing: -0.3px;
    }
    .topbar-sub {
      color: var(--text-secondary);
      font-size: 13px;
      margin-top: 2px;
    }
    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(16, 185, 129, 0.1);
      border: 1px solid rgba(16, 185, 129, 0.2);
      color: #34d399;
      font-size: 12px;
      font-weight: 500;
    }
    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #34d399;
      box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
      animation: pulse 2s infinite;
    }

    /* 内容区域卡片化 */
    .content {
      flex: 1;
      border-radius: 20px;
      background: rgba(30, 41, 59, 0.3);
      border: 1px solid rgba(255,255,255,0.03);
      padding: 6px; /* 给内部滚动条留空间 */
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .page {
      display: none;
      flex: 1;
      padding: 20px;
      overflow-y: auto;
      overflow-x: hidden;
      animation: fadeIn 0.4s ease-out;
    }
    .page.active {
      display: block;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* 页面标题区 */
    .page-header {
      margin-bottom: 24px;
      padding: 0 4px;
    }
    .page-header-title {
      font-size: 24px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 6px;
    }
    .page-header-sub {
      color: var(--text-secondary);
      font-size: 14px;
    }

    /* 卡片通用样式 */
    .card {
      background: rgba(30, 41, 59, 0.4);
      border: 1px solid rgba(255,255,255,0.05);
      border-radius: 16px;
      padding: 20px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
    }
    .card:hover {
      background: rgba(30, 41, 59, 0.6);
      transform: translateY(-2px);
      box-shadow: 0 12px 24px rgba(0,0,0,0.2);
      border-color: rgba(255,255,255,0.1);
    }
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    .card-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .chip {
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 4px;
      background: rgba(255,255,255,0.05);
      color: var(--text-secondary);
      border: 1px solid rgba(255,255,255,0.05);
    }

    /* Grid System */
    .grid {
      display: grid;
      gap: 20px;
    }
    .grid-3-cols {
      grid-template-columns: repeat(3, 1fr);
    }
    .grid-2-cols {
      grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    /* 按钮 */
    .btn {
      padding: 8px 16px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.05);
      color: var(--text);
      cursor: pointer;
      font-size: 13px;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .btn:hover {
      background: rgba(255,255,255,0.1);
    }
    .btn-primary {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    .btn-primary:hover {
      background: #2563eb;
      box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    }
    .btn-icon { font-size: 14px; }
    .btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      filter: grayscale(1);
    }

    /* 表格 */
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }
    th {
      text-align: left;
      color: var(--text-secondary);
      padding: 12px 8px;
      font-weight: 500;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    td {
      padding: 12px 8px;
      color: var(--text);
      border-bottom: 1px solid rgba(255,255,255,0.02);
    }
    tr:last-child td { border-bottom: none; }
    .clean-table tr:hover td {
      background: rgba(255,255,255,0.02);
    }
    .cell-missing { color: var(--error); font-weight: bold; }
    .cell-anomaly { color: var(--warning); font-weight: bold; }

    /* 进度条与状态 */
    .progress-bar {
      height: 6px;
      background: rgba(255,255,255,0.05);
      border-radius: 3px;
      overflow: hidden;
      margin: 10px 0;
    }
    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #3b82f6, #60a5fa);
      border-radius: 3px;
      transition: width 1s ease;
    }
    
    .score-main {
      padding: 20px 0;
    }
    .score-number {
      font-size: 48px;
      font-weight: 800;
      background: linear-gradient(135deg, #fbbf24, #f59e0b);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 1;
      margin-bottom: 8px;
    }
    .score-badge {
      font-size: 11px;
      padding: 4px 8px;
      border-radius: 4px;
      background: rgba(245, 158, 11, 0.1);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.2);
    }

    /* P5 智能融资授信中心 */
    .finance-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
      align-items: stretch;
    }
    .finance-card { min-width: 0; display: flex; flex-direction: column; }
    .finance-rate { font-size: 12px; color: #34d399; }
    .finance-rate { color: #fbbf24; font-weight: 600; }
    .chip-gold { color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.12); }
    .finance-score-wrap { text-align: center; padding: 6px 0 2px; }
    .finance-score-label, .finance-score-caption { color: var(--text-secondary); font-size: 12px; }
    .finance-score-number { font-size: 56px; line-height: 1.12; font-weight: 800; color: #60a5fa; letter-spacing: -2px; transition: color .24s ease, text-shadow .24s ease; }
    .finance-score-number.score-grade-a { color: #60a5fa; text-shadow: 0 0 18px rgba(96,165,250,.28); }
    .finance-score-number.score-grade-aa { color: #d1d5db; text-shadow: 0 0 18px rgba(209,213,219,.25); }
    .finance-score-number.score-grade-aaa { color: #fbbf24; text-shadow: 0 0 18px rgba(251,191,36,.28); }
    .finance-radar { height: 270px; margin: 2px -14px 0; }
    .finance-indicators { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
    .finance-indicator { padding: 5px 8px; border-radius: 6px; font-size: 11px; }
    .finance-indicator.positive { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); }
    .finance-indicator.warning { color: #fcd34d; background: rgba(245, 158, 11, 0.12); }
    .finance-link-btn { width: 100%; justify-content: center; margin-top: auto; color: #93c5fd; }
    .btn.is-loading { pointer-events: none; }
    .btn-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.32); border-top-color: currentColor; border-radius: 50%; animation: buttonSpin .7s linear infinite; }
    @keyframes buttonSpin { to { transform: rotate(360deg); } }
    .credit-limit-card { padding: 16px; border-radius: 12px; border: 1px solid rgba(59, 130, 246, 0.22); background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(14,165,233,.06)); margin-bottom: 14px; }
    .credit-limit-value { color: #60a5fa; font-size: 30px; line-height: 1.25; font-weight: 800; margin: 4px 0; }
    .credit-limit-sub { color: var(--text-secondary); font-size: 11px; }
    .finance-bank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 8px; color: var(--text-secondary); font-size: 12px; }
    .limit-row, .forecast-total, .forecast-balance { display: flex; align-items: center; justify-content: space-between; color: var(--text-secondary); font-size: 13px; padding: 6px 0; }
    .limit-row strong, .forecast-total strong, .forecast-balance strong { color: var(--text); font-size: 14px; }
    .limit-row .limit-available, .forecast-balance strong { color: #34d399; }
    .finance-progress { margin: 4px 0 16px; }
    .finance-form { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); }
    .form-label { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
    .finance-form label { display: flex; flex-direction: column; gap: 6px; color: var(--text-secondary); font-size: 11px; }
    .finance-form input { width: 100%; min-height: 34px; border-radius: 7px; border: 1px solid rgba(255,255,255,.1); background: rgba(15,23,42,.72); color: var(--text); padding: 7px 9px; outline: none; font: inherit; }
    .finance-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59,130,246,.14); }
    .finance-form input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
    .finance-form input[type="number"]::-webkit-inner-spin-button, .finance-form input[type="number"]::-webkit-outer-spin-button { appearance: none; -webkit-appearance: none; margin: 0; }
    .native-select-source { display: none; }
    .custom-select { position: relative; width: 100%; }
    .finance-bank-row .custom-select { width: 150px; }
    .custom-select-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 34px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: rgba(15,23,42,.72); color: var(--text); cursor: pointer; font: inherit; text-align: left; }
    .finance-bank-row .custom-select-trigger { min-height: 30px; border-color: rgba(96,165,250,.28); }
    .custom-select-trigger:hover, .custom-select.open .custom-select-trigger { border-color: #60a5fa; box-shadow: 0 0 0 2px rgba(59,130,246,.14); }
    .custom-select-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #94a3b8; transition: transform .18s ease; }
    .custom-select.open .custom-select-caret { transform: rotate(180deg); }
    .custom-select-menu { display: none; position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; right: 0; overflow: hidden; border: 1px solid rgba(96,165,250,.36); border-radius: 8px; background: #172236; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
    .custom-select.open .custom-select-menu { display: block; animation: selectMenuIn .16s ease-out; }
    .custom-select-option { display: block; width: 100%; padding: 9px 10px; border: 0; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 12px; text-align: left; }
    .custom-select-option:hover, .custom-select-option.selected { background: rgba(59,130,246,.18); color: #fff; }
    .finance-form .custom-select-menu { top: auto; bottom: calc(100% + 6px); }
    @keyframes selectMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
    .finance-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
    .finance-precheck { color: #6ee7b7; font-size: 11px; padding: 10px 0; }
    .finance-submit { width: 100%; justify-content: center; }
    .forecast-tabs { display: flex; gap: 8px; margin: -4px 0 14px; }
    .forecast-tab { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: var(--text-secondary); padding: 5px 12px; border-radius: 7px; cursor: pointer; font-size: 12px; }
    .forecast-tab.active { color: #fff; background: var(--primary); border-color: var(--primary); }
    .forecast-heading { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
    .forecast-list { display: grid; gap: 6px; }
    .forecast-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; border-radius: 7px; background: rgba(255,255,255,.025); padding: 7px 8px; font-size: 12px; }
    .forecast-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .forecast-item-amount { color: var(--text-secondary); }
    .urgency { font-size: 10px; padding: 2px 6px; border-radius: 999px; }
    .urgency.urgent { color: #fca5a5; background: rgba(239,68,68,.13); }
    .urgency.normal { color: #fcd34d; background: rgba(245,158,11,.13); }
    .urgency.later { color: #6ee7b7; background: rgba(16,185,129,.13); }
    .forecast-total { border-top: 1px solid rgba(255,255,255,.06); margin-top: 10px; padding-top: 10px; }
    .forecast-total strong { color: #fbbf24; font-size: 16px; }
    .forecast-sufficiency { border-radius: 8px; padding: 8px; margin: 8px 0 14px; font-size: 12px; }
    .forecast-sufficiency.success { color: #6ee7b7; background: rgba(16,185,129,.11); }
    .timeline-title { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
    .forecast-timeline { display: grid; gap: 7px; }
    .timeline-row { display: grid; grid-template-columns: 40px minmax(0,1fr) 68px; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 11px; }
    .timeline-track { height: 7px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; }
    .timeline-bar { height: 100%; background: linear-gradient(90deg, #3b82f6, #34d399); border-radius: 99px; }
    .finance-records-card { margin-top: 20px; }
    .record-actions { display: flex; gap: 8px; }
    .finance-table-wrap { overflow-x: auto; }
    .finance-table { min-width: 740px; }
    .record-status { font-size: 12px; font-weight: 600; }
    .record-status.paid { color: #6ee7b7; }
    .record-status.pending { color: #fcd34d; }
    .record-status.rejected { color: #fca5a5; }
    .record-action { color: #93c5fd; background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }

    /* P6 智能采购决策中心 */
    .p6-view-tabs { display: flex; gap: 8px; margin: 0 0 20px; padding: 5px; width: fit-content; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(15,23,42,.5); }
    .p6-view-tab { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 7px; padding: 8px 13px; background: transparent; color: var(--text-secondary); cursor: pointer; font: inherit; font-size: 12px; }
    .p6-view-tab span { color: #64748b; font-size: 10px; font-weight: 700; }
    .p6-view-tab.active { color: #fff; background: linear-gradient(135deg, rgba(59,130,246,.95), rgba(14,165,233,.85)); box-shadow: 0 5px 14px rgba(37,99,235,.22); }
    .p6-view-tab.active span { color: #bfdbfe; }
    .p6-view { display: none; }
    .p6-view.active { display: block; animation: p6ViewIn .24s ease-out; }
    @keyframes p6ViewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
    .procure-sourcing-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(500px, 1.1fr); gap: 20px; align-items: start; }
    .procure-supplier-layout { display: block; }
    .procure-supplier-layout .supplier-card { max-width: none; }
    .procure-supplier-layout .procure-form { display: grid; grid-template-columns: minmax(180px, 1.35fr) minmax(110px, .68fr) minmax(145px, .9fr) minmax(145px, .9fr) auto; gap: 10px; align-items: end; }
    .procure-supplier-layout .procure-form-title { grid-column: 1 / -1; }
    .procure-supplier-layout .procure-form > label { margin-top: 0; }
    .procure-supplier-layout .procure-form-row { display: contents; }
    .procure-supplier-layout .procure-form-row label { margin-top: 0; }
    .procure-supplier-layout .procure-match-btn { width: auto; min-height: 34px; margin-top: 0; white-space: nowrap; }
    .procure-supplier-layout .supplier-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .procure-supplier-layout .p6-plan-funding-stack { display: none; }
    #p6-planning-view .p6-plan-funding-stack { display: grid; gap: 20px; }
    .p6-plan-funding-stack { display: grid; gap: 20px; align-items: start; }
    .procure-bottom-grid { display: grid; grid-template-columns: 1.13fr .87fr; gap: 20px; margin-top: 20px; align-items: stretch; }
    .procure-card { min-width: 0; }
    .contract-card, .scenario-card { display: flex; flex-direction: column; height: 100%; }
    .chip-green { color: #6ee7b7; border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.12); }
    .chip-chain { color: #c4b5fd; border-color: rgba(139,92,246,.35); background: rgba(139,92,246,.12); }
    .procure-form { padding: 14px; border: 1px solid rgba(74,222,128,.16); border-radius: 11px; background: linear-gradient(145deg, rgba(16,185,129,.09), rgba(15,23,42,.28)); }
    .procure-form-title, .procure-section-label, .fund-title { font-weight: 600; font-size: 13px; }
    .procure-form label { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; color: var(--text-secondary); font-size: 11px; }
    .procure-form input { width: 100%; min-height: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: rgba(15,23,42,.72); color: var(--text); padding: 7px 9px; outline: none; font: inherit; }
    .procure-form input:focus { border-color: #4ade80; box-shadow: 0 0 0 2px rgba(74,222,128,.12); }
    .procure-form input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
    .procure-form input[type="number"]::-webkit-inner-spin-button, .procure-form input[type="number"]::-webkit-outer-spin-button { appearance: none; -webkit-appearance: none; margin: 0; }
    .procure-form small { color: #64748b; margin-top: -2px; }
    .procure-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .procure-match-btn { width: 100%; justify-content: center; margin-top: 14px; }
    .procure-section-label { display: flex; justify-content: space-between; margin: 16px 0 9px; }
    .procure-section-label span { color: var(--text-secondary); font-size: 11px; font-weight: 400; }
    .supplier-list { display: grid; gap: 8px; }
    .supplier-item { border: 1px solid rgba(255,255,255,.07); border-radius: 9px; padding: 10px; background: rgba(255,255,255,.022); transition: border-color .2s ease, background .2s ease; }
    .supplier-item.best { border-color: rgba(74,222,128,.32); background: rgba(16,185,129,.07); }
    .supplier-name-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
    .supplier-score { color: #fbbf24; white-space: nowrap; font-size: 12px; }
    .supplier-ratings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px 8px; margin: 7px 0; color: #fbbf24; font-size: 10px; }
    .supplier-reason { color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
    .supplier-item .btn { margin-top: 8px; min-height: 28px; padding: 4px 9px; font-size: 11px; }

    /* P6 供应商寻源页视觉优化 */
    #p6 > .page-header { display: none; }
    #p6 .p6-view-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 12px; margin: 0 0 22px; padding: 0; border: 0; background: transparent; }
    #p6 .p6-view-tab { position: relative; justify-content: flex-start; min-height: 48px; padding: 9px 16px; border: 1px solid rgba(148,163,184,.14); border-radius: 12px; background: rgba(15,23,42,.4); color: #94a3b8; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
    #p6 .p6-view-tab:hover { border-color: rgba(96,165,250,.35); transform: translateY(-1px); }
    #p6 .p6-view-tab span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: rgba(148,163,184,.1); color: #94a3b8; font-size: 10px; }
    #p6 .p6-view-tab.active { border-color: rgba(56,189,248,.48); background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(14,165,233,.12)); color: #f8fafc; box-shadow: 0 10px 24px rgba(2,132,199,.12); }
    #p6 .p6-view-tab.active span { background: linear-gradient(135deg, #3b82f6, #06b6d4); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.3); }
    #p6 .supplier-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .p6-module-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 2px 14px; }
    .p6-module-title { font-size: 18px; font-weight: 700; color: #f8fafc; }
    .p6-module-head p { margin: 5px 0 0; color: #64748b; font-size: 12px; }
    .p6-module-head .chip { margin-top: 2px; }
    .procure-supplier-layout .procure-form { padding: 18px; gap: 12px; border-color: rgba(45,212,191,.22); border-radius: 14px; background: linear-gradient(135deg, rgba(13,148,136,.1), rgba(15,23,42,.52)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
    .procure-supplier-layout .procure-form-title { display: flex; align-items: center; gap: 9px; margin-bottom: 2px; }
    .procure-supplier-layout .procure-form-title span { color: #f8fafc; font-size: 14px; font-weight: 650; }
    .procure-supplier-layout .p6-form-hint { margin: 0; padding-left: 9px; border-left: 1px solid rgba(148,163,184,.2); color: #64748b; font-size: 10px; font-weight: 400; }
    .procure-supplier-layout .procure-form label { gap: 7px; color: #94a3b8; font-size: 11px; }
    .procure-supplier-layout .procure-form input, .procure-supplier-layout .custom-select-trigger { min-height: 40px; border-color: rgba(148,163,184,.16); border-radius: 9px; background: rgba(8,15,30,.62); }
    .p6-input-suffix-wrap { position: relative; }
    .p6-input-suffix-wrap input { padding-right: 42px; }
    .p6-input-suffix-wrap > span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); padding-left: 9px; border-left: 1px solid rgba(148,163,184,.16); color: #64748b; font-size: 10px; pointer-events: none; }
    .procure-supplier-layout .procure-match-btn { min-height: 40px; padding: 8px 18px; border-radius: 9px; background: linear-gradient(135deg, #2563eb, #0ea5e9); box-shadow: 0 8px 18px rgba(37,99,235,.22); }
    .procure-supplier-layout .procure-section-label { align-items: flex-end; margin: 20px 2px 11px; }
    .procure-section-label strong { display: block; color: #f8fafc; font-size: 14px; }
    .procure-section-label small { display: block; margin-top: 3px; color: #64748b; font-size: 10px; font-weight: 400; }
    .procure-section-label > span { padding: 4px 9px; border-radius: 999px; background: rgba(148,163,184,.08); color: #94a3b8; }
    .procure-supplier-layout .supplier-list { gap: 14px; }
    .supplier-item { position: relative; display: flex; flex-direction: column; min-height: 245px; padding: 17px; overflow: hidden; border-color: rgba(148,163,184,.13); border-radius: 14px; background: linear-gradient(155deg, rgba(30,41,59,.92), rgba(21,31,49,.82)); box-shadow: 0 12px 28px rgba(2,6,23,.12); }
    .supplier-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(96,165,250,.55), transparent); opacity: .45; }
    .supplier-item.best, .supplier-item.selected { border-color: rgba(45,212,191,.38); background: linear-gradient(155deg, rgba(13,148,136,.14), rgba(21,31,49,.9)); }
    .supplier-item.best::before, .supplier-item.selected::before { height: 3px; opacity: 1; background: linear-gradient(90deg, #10b981, #22d3ee); }
    .supplier-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .supplier-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .supplier-rank { display: grid; place-items: center; min-width: 38px; height: 28px; padding: 0 7px; border-radius: 8px; background: rgba(96,165,250,.1); color: #93c5fd; font-size: 9px; font-weight: 700; }
    .supplier-item.best .supplier-rank { background: rgba(16,185,129,.16); color: #6ee7b7; }
    .supplier-name { overflow: hidden; color: #f8fafc; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .supplier-type { margin-top: 3px; color: #64748b; font-size: 9px; }
    .supplier-score { display: flex; flex-direction: column; align-items: flex-end; color: #fbbf24; }
    .supplier-score strong { font-size: 25px; line-height: 1; letter-spacing: -1px; }
    .supplier-score span { margin-top: 3px; color: #64748b; font-size: 9px; }
    .supplier-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 13px; margin: 17px 0 13px; padding: 13px 0; border-top: 1px solid rgba(148,163,184,.09); border-bottom: 1px solid rgba(148,163,184,.09); }
    .supplier-metric { display: grid; grid-template-columns: 27px minmax(30px,1fr) 22px; align-items: center; gap: 6px; color: #94a3b8; font-size: 9px; }
    .supplier-metric-track { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(148,163,184,.1); }
    .supplier-metric-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #2dd4bf); }
    .supplier-metric b { color: #cbd5e1; font-size: 9px; font-weight: 600; text-align: right; }
    .supplier-reason { display: flex; gap: 8px; min-height: 32px; color: #94a3b8; }
    .supplier-reason > span { flex: 0 0 auto; color: #64748b; font-size: 9px; }
    .supplier-reason p { margin: 0; color: #cbd5e1; font-size: 10px; line-height: 1.45; }
    .supplier-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
    .supplier-card-footer > span { color: #64748b; font-size: 9px; }
    .supplier-card-footer .btn { flex: 0 0 auto; min-height: 30px; margin: 0; padding: 5px 10px; border-radius: 8px; }
    .supplier-empty-state { grid-column: 1 / -1; display: grid; place-items: center; min-height: 190px; border: 1px dashed rgba(148,163,184,.18); border-radius: 14px; background: rgba(15,23,42,.24); text-align: center; }
    .supplier-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 11px; border-radius: 14px; background: rgba(59,130,246,.1); color: #60a5fa; font-size: 22px; }
    .supplier-empty-state strong { display: block; color: #cbd5e1; font-size: 13px; }
    .supplier-empty-state p { margin: 6px 0 0; color: #64748b; font-size: 10px; }
    .supplier-skeleton { position: relative; min-height: 245px; overflow: hidden; border: 1px solid rgba(148,163,184,.1); border-radius: 14px; background: rgba(30,41,59,.48); }
    .supplier-skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(148,163,184,.08), transparent); animation: supplierShimmer 1.05s infinite; }
    .supplier-skeleton-lines { padding: 18px; }
    .supplier-skeleton-lines i { display: block; height: 9px; margin-bottom: 14px; border-radius: 99px; background: rgba(148,163,184,.09); }
    .supplier-skeleton-lines i:nth-child(1) { width: 56%; height: 15px; }
    .supplier-skeleton-lines i:nth-child(2) { width: 90%; }
    .supplier-skeleton-lines i:nth-child(3) { width: 76%; }
    .supplier-skeleton-lines i:nth-child(4) { width: 84%; }
    .supplier-skeleton-lines i:nth-child(5) { width: 42%; margin-top: 34px; }
    @keyframes supplierShimmer { to { transform: translateX(100%); } }
    .p6-table-wrap, .scenario-table-wrap { overflow-x: auto; }
    .p6-plan-table, .scenario-table { width: 100%; border-collapse: collapse; font-size: 11px; }
    .p6-plan-table th, .p6-plan-table td, .scenario-table th, .scenario-table td { padding: 9px 7px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
    .p6-plan-table th, .scenario-table th { color: var(--text-secondary); font-weight: 500; }
    .p6-plan-table td input { width: 54px; border: 0; border-bottom: 1px solid rgba(96,165,250,.35); background: transparent; color: var(--text); outline: none; font: inherit; padding: 2px; }
    .p6-plan-table td input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
    .p6-plan-table td input[type="number"]::-webkit-inner-spin-button, .p6-plan-table td input[type="number"]::-webkit-outer-spin-button { appearance: none; -webkit-appearance: none; margin: 0; }
    .p6-plan-table td:last-child { color: #a7f3d0; }
    .plan-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 10px; font-size: 13px; }
    .plan-total strong { color: #fbbf24; font-size: 21px; }
    .plan-actions, .fund-actions, .contract-actions, .scenario-actions { display: flex; gap: 9px; }
    .plan-actions .btn, .fund-actions .btn, .contract-actions .btn, .scenario-actions .btn { flex: 1; justify-content: center; }
    .p6-divider { height: 1px; background: rgba(255,255,255,.07); margin: 17px 0 14px; }
    .p6-procure-timeline { display: grid; gap: 9px; margin-top: 9px; }
    .p6-timeline-row { display: grid; grid-template-columns: 42px minmax(80px,1fr) 82px; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 11px; }
    .p6-timeline-bar { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
    .p6-timeline-bar.urgent { background: linear-gradient(90deg, #ef4444, #fb7185); }
    .fund-summary { padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.022); }
    .fund-summary + .fund-summary { margin-top: 11px; }
    .fund-title { margin-bottom: 8px; }
    .fund-row, .fund-total { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; color: var(--text-secondary); font-size: 12px; }
    .fund-row strong { color: var(--text); font-size: 12px; }
    .fund-row small { color: #64748b; }
    .fund-row.available strong { color: #34d399; }
    .fund-total { border-top: 1px solid rgba(255,255,255,.08); margin-top: 5px; padding-top: 10px; }
    .fund-total strong { color: #fbbf24; font-size: 17px; }
    .credit-summary .progress-bar { margin: 8px 0 0; }
    .fund-assessment { margin: 12px 0; border-radius: 9px; padding: 11px; font-size: 12px; }
    .fund-assessment.success { background: rgba(16,185,129,.11); color: #6ee7b7; }
    .fund-assessment strong, .fund-assessment span { display: block; }
    .fund-assessment span { color: #a7f3d0; margin-top: 5px; }
    .fund-assessment p { color: var(--text-secondary); margin: 6px 0 0; font-size: 11px; }
    .contract-template-row { display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 9px; color: var(--text-secondary); font-size: 12px; }
    .contract-preview { margin: 13px 0; padding: 13px; border: 1px solid rgba(139,92,246,.22); border-radius: 10px; background: linear-gradient(145deg, rgba(139,92,246,.08), rgba(15,23,42,.28)); }
    .contract-preview-title { color: #c4b5fd; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
    .contract-preview > div:not(:first-child) { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 8px; padding: 3px 0; color: var(--text-secondary); font-size: 11px; }
    .contract-preview strong { color: var(--text); font-weight: 500; }
    .contract-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.07); }
    .contract-status-grid > div { padding: 10px; background: #182338; }
    .contract-status-grid span, .contract-status-grid strong, .contract-status-grid small { display: block; }
    .contract-status-grid span, .contract-status-grid small { color: var(--text-secondary); font-size: 10px; }
    .contract-status-grid strong { margin: 4px 0; color: #fcd34d; font-size: 12px; }
    .contract-status-grid small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .evidence-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 14px; padding: 3px 0; color: #94a3b8; font-size: 10px; }
    .evidence-flow span { position: relative; display: grid; place-items: center; min-height: 28px; padding: 4px 8px; text-align: center; line-height: 1.35; }
    .evidence-flow span:not(:last-of-type)::after { content: ''; position: absolute; top: 50%; right: -28px; width: 47px; height: 1px; background: #64748b; transform: translateY(-50%); }
    .evidence-flow span:not(:last-of-type)::before { content: ''; position: absolute; top: 50%; right: -28px; width: 5px; height: 5px; border-top: 1px solid #64748b; border-right: 1px solid #64748b; transform: translateY(-50%) rotate(45deg); }
    .evidence-flow span.done { color: #6ee7b7; }
    .evidence-flow span.done:not(:last-of-type)::after { background: #6ee7b7; }
    .evidence-flow span.done:not(:last-of-type)::before { border-color: #6ee7b7; }
    .evidence-flow i { display: none; }
    .contract-chain-reference { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 11px 12px; border: 1px solid rgba(139,92,246,.2); border-radius: 9px; background: rgba(139,92,246,.07); }
    .contract-chain-reference strong, .contract-chain-reference span { display: block; }
    .contract-chain-reference strong { color: #c4b5fd; font-size: 11px; }
    .contract-chain-reference span { margin-top: 4px; color: #94a3b8; font-size: 9px; }
    .contract-chain-reference .btn { flex: 0 0 auto; min-height: 30px; padding: 5px 10px; color: #c4b5fd; font-size: 10px; }
    .contract-verify-btn { width: 100%; justify-content: center; margin-top: 9px; color: #c4b5fd; }
    .scenario-table th, .scenario-table td { text-align: center; padding: 8px 5px; }
    .scenario-table th:first-child, .scenario-table td:first-child { text-align: left; color: var(--text-secondary); }
    .scenario-table .recommended, .scenario-table td.recommended { color: #6ee7b7; background: rgba(16,185,129,.08); }
    .scenario-table tr { cursor: pointer; }
    .scenario-table tr:hover td { background: rgba(59,130,246,.07); }
    .scenario-detail { margin-top: 14px; padding: 13px; border-radius: 10px; background: rgba(16,185,129,.09); border: 1px solid rgba(16,185,129,.18); }
    .scenario-detail h4 { margin: 0 0 7px; color: #6ee7b7; font-size: 13px; }
    .scenario-detail p { margin: 0; color: var(--text-secondary); font-size: 11px; line-height: 1.65; }
    .scenario-impact-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; padding-top: 0; }
    .scenario-impact-summary > div { min-height: 62px; padding: 12px; border: 1px solid rgba(148,163,184,.1); border-radius: 9px; background: linear-gradient(145deg, rgba(15,23,42,.56), rgba(30,41,59,.38)); }
    .scenario-impact-summary span, .scenario-impact-summary strong { display: block; }
    .scenario-impact-summary span { color: #64748b; font-size: 9px; }
    .scenario-impact-summary strong { margin-top: 5px; color: #6ee7b7; font-size: 13px; }
    .scenario-actions { margin-top: 14px; padding-top: 0; }

    /* P6 采购计划与资金页 */
    #p6-planning-view .plan-card { display: block; }
    #p6-planning-view .plan-card > .plan-actions { margin-top: 2px; }
    #p6-planning-view .plan-card > .p6-divider { display: block; margin: 30px 0 18px; }
    #p6-planning-view .plan-card > .timeline-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: #e2e8f0; font-size: 12px; font-weight: 650; }
    #p6-planning-view .plan-card > .timeline-title::after { content: '按到货紧急程度排序'; color: #64748b; font-size: 9px; font-weight: 400; }
    #p6-planning-view .plan-card > .p6-procure-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
    .p6-timeline-node { padding: 11px 12px; border: 1px solid rgba(245,158,11,.14); border-radius: 10px; background: linear-gradient(145deg, rgba(245,158,11,.06), rgba(15,23,42,.3)); }
    .p6-timeline-node.urgent { border-color: rgba(244,63,94,.16); background: linear-gradient(145deg, rgba(244,63,94,.07), rgba(15,23,42,.3)); }
    .p6-timeline-when { margin-bottom: 8px; color: #fbbf24; font-size: 10px; font-weight: 650; }
    .p6-timeline-node.urgent .p6-timeline-when { color: #fb7185; }
    .p6-timeline-track { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(148,163,184,.12); }
    .p6-timeline-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
    .p6-timeline-node.urgent .p6-timeline-track i { background: linear-gradient(90deg, #ef4444, #fb7185); }
    .p6-timeline-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
    .p6-timeline-info strong { overflow: hidden; color: #e2e8f0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
    .p6-timeline-info span { flex: 0 0 auto; color: #94a3b8; font-size: 9px; }
    #p6-planning-view .p6-plan-table th { padding-top: 8px; padding-bottom: 11px; color: #64748b; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
    #p6-planning-view .p6-plan-table td { height: 50px; padding: 8px 7px; transition: background .18s ease; }
    #p6-planning-view .p6-plan-table tbody tr:hover td { background: rgba(59,130,246,.045); }
    .p6-material-name { color: #e2e8f0; font-size: 11px; }
    .p6-subtotal { color: #f8fafc; font-weight: 650; }
    .p6-supplier-pill { display: inline-block; max-width: 130px; overflow: hidden; padding: 4px 7px; border-radius: 6px; background: rgba(16,185,129,.09); color: #6ee7b7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
    .p6-qty-stepper { display: inline-flex; align-items: center; min-height: 30px; overflow: hidden; border: 1px solid rgba(148,163,184,.13); border-radius: 8px; background: rgba(8,15,30,.45); }
    .p6-qty-stepper button { display: grid; place-items: center; width: 27px; height: 28px; border: 0; background: transparent; color: #94a3b8; cursor: pointer; font: inherit; font-size: 15px; transition: color .18s ease, background .18s ease; }
    .p6-qty-stepper button:hover { background: rgba(59,130,246,.12); color: #60a5fa; }
    .p6-qty-stepper input { width: 44px !important; height: 28px; padding: 0 2px !important; border: 0 !important; border-left: 1px solid rgba(148,163,184,.1) !important; background: transparent; text-align: center; }
    .p6-qty-stepper span { min-width: 24px; padding: 0 6px; border-right: 1px solid rgba(148,163,184,.1); color: #64748b; font-size: 9px; text-align: center; }
    #p6-planning-view .plan-total { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: rgba(245,158,11,.07); }
    #p6-planning-view .plan-total strong { font-size: 22px; }
    #p6-planning-view .funds-card { display: block; }
    #p6-planning-view .funds-card > .card-header { margin-bottom: 13px; }
    .p6-fund-metrics { display: grid; grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); gap: 10px; }
    .p6-fund-metric { min-width: 0; padding: 14px; border: 1px solid rgba(148,163,184,.1); border-radius: 11px; background: rgba(15,23,42,.38); }
    .p6-fund-metric > span, .p6-fund-metric > strong, .p6-fund-metric > small { display: block; }
    .p6-fund-metric > span { color: #94a3b8; font-size: 10px; }
    .p6-fund-metric > strong { margin: 8px 0 7px; color: #f8fafc; font-size: 19px; line-height: 1; }
    .p6-fund-metric > small { color: #64748b; font-size: 9px; white-space: nowrap; }
    .p6-fund-metric > small b { color: #94a3b8; font-weight: 500; }
    .p6-fund-metric > small i { display: inline-block; width: 1px; height: 9px; margin: 0 7px; background: rgba(148,163,184,.22); vertical-align: -1px; }
    .p6-fund-metric.demand { border-color: rgba(245,158,11,.18); background: linear-gradient(145deg, rgba(245,158,11,.08), rgba(15,23,42,.35)); }
    .p6-fund-metric.demand > strong { color: #fbbf24; }
    .p6-fund-metric.available { border-color: rgba(16,185,129,.18); background: linear-gradient(145deg, rgba(16,185,129,.08), rgba(15,23,42,.35)); }
    .p6-fund-metric.available > strong { color: #34d399; }
    .p6-fund-metric .progress-bar { margin-top: 10px; }
    .p6-funding-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 12px; }
    #p6-planning-view .p6-funding-footer .fund-assessment { display: grid; grid-template-columns: auto auto minmax(180px, 1fr); align-items: center; gap: 11px; margin: 0; padding: 11px 13px; }
    #p6-planning-view .p6-funding-footer .fund-assessment strong, #p6-planning-view .p6-funding-footer .fund-assessment span, #p6-planning-view .p6-funding-footer .fund-assessment p { margin: 0; }
    #p6-planning-view .p6-funding-footer .fund-assessment p { padding-left: 11px; border-left: 1px solid rgba(110,231,183,.18); }
    #p6-planning-view .fund-actions { min-width: 310px; }
    @media (max-width: 1100px) { .p6-fund-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p6-funding-footer { grid-template-columns: 1fr; } #p6-planning-view .fund-actions { min-width: 0; } }
    @media (max-width: 760px) { #p6-planning-view .plan-card > .p6-procure-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } #p6-planning-view .p6-funding-footer .fund-assessment { grid-template-columns: 1fr; } #p6-planning-view .p6-funding-footer .fund-assessment p { padding: 0; border: 0; } }
    @media (max-width: 1040px) { .procure-sourcing-grid { grid-template-columns: 1fr; } .procure-supplier-layout .procure-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .procure-supplier-layout .procure-form-title { grid-column: 1 / -1; } .procure-supplier-layout .procure-match-btn { width: 100%; grid-column: 1 / -1; } }
    @media (max-width: 900px) { .procure-bottom-grid { grid-template-columns: 1fr; } }
    @media (max-width: 720px) { .procure-supplier-layout .supplier-list { grid-template-columns: 1fr; } }
    @media (max-width: 520px) { .p6-view-tabs { width: 100%; } .p6-view-tab { flex: 1; justify-content: center; padding: 8px; font-size: 0; } .p6-view-tab span { font-size: 10px; } .procure-supplier-layout .procure-form { grid-template-columns: 1fr; } .procure-supplier-layout .procure-form-title, .procure-supplier-layout .procure-match-btn { grid-column: auto; } .procure-form-row, .contract-status-grid { grid-template-columns: 1fr; } .p6-timeline-row { grid-template-columns: 40px minmax(60px,1fr) 70px; } }
    @media (max-width: 1180px) { .finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 760px) { .finance-grid { grid-template-columns: 1fr; } .finance-form-row { grid-template-columns: 1fr; } }

    /* P7 区块链溯源与数据安全 */
    #p7 { padding-bottom: 30px; }
    #p7 > .page-header { display: none; }
    .p7-view-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
    .p7-view-tab { display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 48px; padding: 9px 16px; border: 1px solid rgba(148,163,184,.14); border-radius: 12px; background: rgba(15,23,42,.4); color: #94a3b8; cursor: pointer; font: inherit; font-size: 12px; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
    .p7-view-tab:hover { border-color: rgba(34,211,238,.35); transform: translateY(-1px); }
    .p7-view-tab span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: rgba(148,163,184,.1); color: #94a3b8; font-size: 10px; font-weight: 700; }
    .p7-view-tab.active { border-color: rgba(34,211,238,.45); background: linear-gradient(135deg, rgba(14,116,144,.34), rgba(6,182,212,.12)); color: #f8fafc; box-shadow: 0 10px 24px rgba(8,145,178,.1); }
    .p7-view-tab.active span { background: linear-gradient(135deg, #0ea5e9, #14b8a6); color: #fff; box-shadow: 0 4px 12px rgba(6,182,212,.25); }
    .p7-view { display: none; } .p7-view.active { display: block; animation: p6ViewIn .24s ease-out; }
    #p7-chain-view.active { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(560px, 1.28fr); gap: 24px; align-items: stretch; }
    #p7-chain-view .p7-chain-card, #p7-chain-view .p7-trace-card { min-height: 0; height: 100%; }
    .p7-view .p7-card { width: 100%; max-width: none; }
    .p7-view .p7-security-card { display: grid; }
    .p7-overview { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 26px; padding: 14px 17px; border: 1px solid rgba(34,211,238,.14); border-radius: 13px; background: linear-gradient(90deg, rgba(6,182,212,.09), rgba(15,23,42,.35)); color: #94a3b8; font-size: 11px; }
    .p7-overview span:first-child { color: #67e8f9; } .p7-overview i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
    .p7-overview span:last-child { margin-left: auto; color: #e2e8f0; }
    .p7-main-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
    .p7-card { min-width: 0; display: flex; flex-direction: column; padding: 24px; }
    .p7-form, .p7-security-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .p7-form label, .p7-security-form label { position: relative; display: grid; gap: 5px; color: #94a3b8; font-size: 10px; }
    .p7-form input, .p7-form select, .p7-security-form select, .p7-query input, .p7-form .custom-select-trigger, .p7-security-form .custom-select-trigger { min-width: 0; min-height: 36px; border: 1px solid rgba(148,163,184,.14); border-radius: 8px; outline: none; background: rgba(8,15,30,.68); color: #e2e8f0; padding: 8px 10px; font: inherit; font-size: 11px; }
    .p7-form select, .p7-security-form select { appearance: none; -webkit-appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 14px) 15px, calc(100% - 9px) 15px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
    .p7-file-field { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px !important; }
    .p7-file-field input { display: none; } .p7-file-button { min-height: 30px; padding: 5px 9px; border: 1px solid rgba(96,165,250,.25); border-radius: 7px; background: rgba(59,130,246,.1); color: #93c5fd; cursor: pointer; font: inherit; font-size: 10px; }
    .p7-file-field small { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .p7-loading { display: none; align-items: center; gap: 9px; margin-top: 11px; padding: 10px 12px; border: 1px solid rgba(34,211,238,.2); border-radius: 9px; background: rgba(6,182,212,.06); color: #a5f3fc; font-size: 10px; }
    .p7-loading.show { display: flex; }
    .p7-loading i { width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid rgba(34,211,238,.22); border-top-color: #22d3ee; border-radius: 50%; animation: p7Spin .7s linear infinite; }
    @keyframes p7Spin { to { transform: rotate(360deg); } }
    .p7-validation { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 11px; overflow: hidden; border: 1px solid rgba(148,163,184,.1); border-radius: 10px; background: rgba(148,163,184,.1); }
    .p7-validation > div { padding: 8px 10px; background: rgba(15,23,42,.5); } .p7-validation span, .p7-validation strong { display: block; }
    .p7-validation span { color: #64748b; font-size: 9px; } .p7-validation strong { margin-top: 4px; color: #e2e8f0; font-size: 11px; } .success-text { color: #6ee7b7 !important; }
    .p7-validation .p7-date-range strong { white-space: nowrap; font-size: 10px; letter-spacing: -.1px; }
    .p7-validation .p7-hash { grid-column: 1 / -1; } .p7-hash strong { color: #c4b5fd; font-family: Consolas, monospace; }
    .p7-chain-steps { display: grid; gap: 6px; margin: 11px 0; }
    .p7-chain-steps > div { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(148,163,184,.1); border-radius: 8px; color: #64748b; font-size: 10px; }
    .p7-chain-steps b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(148,163,184,.1); font-size: 9px; } .p7-chain-steps small { font-size: 9px; }
    .p7-chain-steps .done { border-color: rgba(16,185,129,.22); color: #a7f3d0; background: rgba(16,185,129,.05); } .p7-chain-steps .done b { background: rgba(16,185,129,.14); color: #6ee7b7; }
    .p7-chain-steps .running { border-color: rgba(34,211,238,.32); color: #67e8f9; box-shadow: 0 0 0 2px rgba(6,182,212,.08); animation: p7Pulse 1s infinite; } @keyframes p7Pulse { 50% { opacity: .7; } }
    .p7-actions, .p7-security-buttons { display: flex; gap: 9px; margin-top: auto; } .p7-actions .btn, .p7-security-buttons .btn { flex: 1; justify-content: center; }
    .p7-query { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; } .p7-query .btn { min-height: 36px; padding: 7px 10px; }
    .p7-product-title { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 12px; } .p7-product-title strong { color: #f8fafc; font-size: 14px; } .p7-product-title span { color: #64748b; font-size: 10px; }
    .p7-trace-line { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 3px; margin: 0 0 16px; }
    .p7-trace-line button { position: relative; min-width: 0; padding: 8px 3px 5px; border: 0; background: transparent; color: #64748b; cursor: pointer; font: inherit; text-align: center; } .p7-trace-line button:not(:last-child)::after { content: ''; position: absolute; top: 32px; left: calc(50% + 10px); width: calc(100% - 17px); height: 1px; background: rgba(148,163,184,.28); }
    .p7-trace-line b, .p7-trace-line span, .p7-trace-line small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .p7-trace-line b { min-height: 12px; margin-bottom: 18px; color: #cbd5e1; font-size: 10px; } .p7-trace-line span, .p7-trace-line small { margin-top: 4px; font-size: 8px; } .p7-trace-line button::before { content: ''; position: absolute; top: 28px; left: 50%; z-index: 1; width: 8px; height: 8px; transform: translateX(-50%); border-radius: 50%; background: #64748b; box-shadow: 0 0 0 3px rgba(100,116,139,.12); } .p7-trace-line button.active b { color: #67e8f9; } .p7-trace-line button.active::before { top: 27px; width: 10px; height: 10px; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.14); }
    .p7-scan-picker, .p7-scanner-overlay { position: fixed; z-index: 300; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(2,6,23,.78); backdrop-filter: blur(8px); }
    .p7-scan-picker.show, .p7-scanner-overlay.show { display: flex; animation: p7OverlayIn .2s ease-out; } @keyframes p7OverlayIn { from { opacity: 0; } to { opacity: 1; } }
    .p7-scan-panel, .p7-scanner { position: relative; width: min(720px, 100%); border: 1px solid rgba(56,189,248,.32); border-radius: 18px; background: linear-gradient(145deg, #17243b, #0b1325); box-shadow: 0 28px 80px rgba(0,0,0,.5); }
    .p7-scan-panel { padding: 28px; } .p7-modal-close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(148,163,184,.12); color: #cbd5e1; cursor: pointer; font-size: 22px; line-height: 1; }
    .p7-scan-panel-title span, .p7-scan-panel-title small { display: block; } .p7-scan-panel-title span { color: #f8fafc; font-size: 18px; font-weight: 700; } .p7-scan-panel-title small { margin-top: 7px; color: #94a3b8; font-size: 11px; }
    .p7-qr-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; } .p7-qr-option { display: grid; justify-items: center; gap: 8px; padding: 17px 10px; border: 1px solid rgba(148,163,184,.14); border-radius: 12px; background: rgba(15,23,42,.52); color: #e2e8f0; cursor: pointer; font: inherit; } .p7-qr-option:hover { border-color: rgba(34,211,238,.5); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6,182,212,.12); } .p7-qr-option strong { font-size: 12px; } .p7-qr-option small { color: #64748b; font-size: 9px; }
    .p7-qr { width: 116px; aspect-ratio: 1; border: 7px solid #f8fafc; background-color: #f8fafc; background-image: linear-gradient(90deg, #0f172a 10%, transparent 10% 20%, #0f172a 20% 30%, transparent 30% 40%, #0f172a 40% 50%, transparent 50% 60%, #0f172a 60% 70%, transparent 70% 80%, #0f172a 80% 90%, transparent 90%), linear-gradient(#0f172a 10%, transparent 10% 20%, #0f172a 20% 30%, transparent 30% 40%, #0f172a 40% 50%, transparent 50% 60%, #0f172a 60% 70%, transparent 70% 80%, #0f172a 80% 90%, transparent 90%); background-size: 20px 20px; image-rendering: pixelated; } .p7-qr.qr-cherry { background-position: 7px 2px, 2px 7px; } .p7-qr.qr-millet { background-position: 13px 6px, 5px 13px; }
    .p7-scanner { width: min(470px, 100%); padding: 28px 28px 24px; text-align: center; } .p7-scanner-copy strong, .p7-scanner-copy span { display: block; } .p7-scanner-copy strong { color: #f8fafc; font-size: 17px; } .p7-scanner-copy span { margin-top: 7px; color: #67e8f9; font-family: Consolas, monospace; font-size: 12px; }
    .p7-scan-frame { position: relative; width: min(290px, 76vw); aspect-ratio: 1; margin: 24px auto 16px; overflow: hidden; border: 2px solid rgba(34,211,238,.62); border-radius: 18px; background: linear-gradient(135deg, rgba(6,182,212,.13), rgba(15,23,42,.65)); box-shadow: inset 0 0 40px rgba(6,182,212,.11), 0 0 30px rgba(6,182,212,.12); } .p7-scan-frame::before, .p7-scan-frame::after { content: ''; position: absolute; z-index: 3; width: 34px; height: 34px; border-color: #67e8f9; border-style: solid; } .p7-scan-frame::before { top: 12px; left: 12px; border-width: 3px 0 0 3px; } .p7-scan-frame::after { right: 12px; bottom: 12px; border-width: 0 3px 3px 0; } .p7-scan-frame i { position: absolute; z-index: 2; top: 0; left: 8%; right: 8%; height: 2px; background: #22d3ee; box-shadow: 0 0 14px 3px rgba(34,211,238,.75); animation: p7ScanLine 1.45s ease-in-out infinite; } @keyframes p7ScanLine { 0%,100% { transform: translateY(22px); } 50% { transform: translateY(242px); } } .p7-scan-frame img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); border-radius: 10px; background: #fff; object-fit: contain; opacity: .9; } .p7-scanner p { margin: 0; color: #94a3b8; font-size: 11px; }
    @media (max-width: 600px) { .p7-qr-options { grid-template-columns: 1fr; } .p7-qr-option { grid-template-columns: auto 1fr; justify-items: start; text-align: left; } .p7-qr { grid-row: span 2; width: 62px; } }
    .p7-trace-summary { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr); gap: 14px; align-items: stretch; min-height: 128px; }
    .p7-stage-detail { min-height: 128px; padding: 17px; border: 1px solid rgba(34,211,238,.16); border-radius: 10px; background: linear-gradient(145deg, rgba(6,182,212,.08), rgba(15,23,42,.35)); } .p7-stage-detail strong { color: #67e8f9; font-size: 11px; } .p7-stage-detail p { margin: 9px 0 0; color: #94a3b8; font-size: 10px; line-height: 1.75; }
    .p7-verify-status { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 36px; gap: 10px; min-height: 128px; } .p7-verify-status > div { padding: 13px 11px; border-radius: 8px; background: rgba(16,185,129,.08); } .p7-verify-status strong, .p7-verify-status span { display: block; } .p7-verify-status strong { color: #6ee7b7; font-size: 10px; } .p7-verify-status span { margin-top: 6px; color: #94a3b8; font-size: 9px; line-height: 1.45; } .p7-verify-status .btn { grid-column: 1 / -1; min-height: 36px; padding: 7px 9px; font-size: 10px; }
    .p7-recent-records { margin-top: 14px; padding: 13px; border: 1px solid rgba(148,163,184,.11); border-radius: 10px; background: rgba(15,23,42,.3); } .p7-recent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; color: #cbd5e1; font-size: 11px; font-weight: 600; } .p7-recent-head button { border: 0; background: transparent; color: #67e8f9; cursor: pointer; font: inherit; font-size: 10px; } .p7-recent-row { display: grid; grid-template-columns: 1.15fr .8fr .65fr auto; gap: 10px; width: 100%; padding: 8px 4px; border: 0; border-top: 1px solid rgba(148,163,184,.08); background: transparent; color: #94a3b8; cursor: pointer; font: inherit; font-size: 9px; text-align: left; } .p7-recent-row:first-child { border-top: 0; } .p7-recent-row:hover { color: #e2e8f0; } .p7-recent-row span:first-child { color: #bfdbfe; } .p7-recent-row b { justify-self: end; font-weight: 500; }
    .p7-security-card { grid-column: 1 / -1; display: grid; grid-template-columns: .82fr 1fr 1.08fr; gap: 20px; align-items: start; }
    .p7-security-card > .card-header { grid-column: 1 / -1; margin-bottom: 0; }
    .p7-security-form { grid-column: 1; grid-template-columns: 1fr; gap: 10px; } .p7-security-buttons { margin-top: 4px; }
    .p7-key-card { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 26px 0 0; overflow: hidden; border: 1px solid rgba(148,163,184,.1); border-radius: 10px; background: rgba(148,163,184,.08); } .p7-key-card > div { min-height: 84px; padding: 16px; background: rgba(15,23,42,.48); } .p7-key-card span, .p7-key-card strong { display: block; } .p7-key-card span { color: #64748b; font-size: 10px; } .p7-key-card strong { margin-top: 8px; color: #e2e8f0; font-size: 12px; } .p7-key-card > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 5px; } .p7-key-card button { width: 100%; min-width: 0; min-height: 32px; margin: 0; padding: 5px 4px; overflow: hidden; white-space: nowrap; font-size: 9px; justify-content: center; text-align: center; }
    .p7-access { grid-column: 3; margin: 0; padding: 2px 2px 0; } .p7-section-title { display: flex; justify-content: space-between; margin-bottom: 12px; color: #cbd5e1; font-size: 12px; font-weight: 600; } .p7-section-title button { border: 0; background: transparent; color: #67e8f9; cursor: pointer; font: inherit; font-size: 11px; }
    .p7-role-head, .p7-role-row { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 8px; padding: 8px 9px; border-bottom: 1px solid rgba(148,163,184,.07); color: #94a3b8; font-size: 10px; } .p7-role-head { color: #64748b; } .p7-role-row b { color: #6ee7b7; } .p7-role-row b.warn { color: #fcd34d; }
    .p7-encryption { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid rgba(148,163,184,.08); } .p7-encryption > div { padding: 12px 14px; border-radius: 9px; background: rgba(255,255,255,.025); } .p7-encryption span, .p7-encryption strong { display: block; } .p7-encryption span { color: #64748b; font-size: 9px; } .p7-encryption strong { margin-top: 5px; color: #e2e8f0; font-size: 11px; } .p7-encryption i { display: block; height: 5px; margin-top: 9px; border-radius: 99px; background: rgba(148,163,184,.12); } .p7-encryption i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#06b6d4,#34d399); }
    .p7-audit-card { margin-top: 18px; } .p7-audit-wrap { overflow-x: auto; } .p7-audit-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 11px; } .p7-audit-table th, .p7-audit-table td { padding: 10px 9px; border-bottom: 1px solid rgba(148,163,184,.08); text-align: left; } .p7-audit-table th { color: #64748b; font-weight: 500; } .p7-audit-table button { padding: 0; border: 0; background: transparent; color: #93c5fd; cursor: pointer; font: inherit; font-size: 10px; } .p7-status-success { color: #6ee7b7; } .p7-status-pending { color: #fcd34d; } .p7-audit-footer { display: flex; justify-content: space-between; padding-top: 12px; color: #64748b; font-size: 10px; }
    @media (max-width: 980px) { .p7-security-card { grid-template-columns: 1fr 1fr; } .p7-access { grid-column: 1 / -1; } }
    @media (max-width: 900px) { #p7-chain-view.active { grid-template-columns: 1fr; } }
    @media (max-width: 760px) { .p7-overview { flex-wrap: wrap; gap: 8px; } .p7-overview strong { margin-left: 0; } .p7-view-tabs { grid-template-columns: 1fr; gap: 8px; } .p7-main-grid { grid-template-columns: 1fr; } .p7-card { padding: 18px; } .p7-security-card { grid-column: auto; grid-template-columns: 1fr; } .p7-security-form, .p7-key-card, .p7-access, .p7-encryption { grid-column: auto; } .p7-security-form { grid-template-columns: 1fr; } .p7-query { grid-template-columns: 1fr 1fr; } .p7-query input { grid-column: 1 / -1; } .p7-trace-summary, .p7-verify-status { grid-template-columns: 1fr; } .p7-verify-status .btn { grid-column: auto; } .p7-recent-row { grid-template-columns: 1fr auto; } .p7-recent-row span:nth-child(2), .p7-recent-row span:nth-child(3) { display: none; } .p7-file-field { grid-template-columns: 1fr 1fr; } .p7-file-field small { grid-column: 1 / -1; } .p7-encryption { grid-template-columns: 1fr; } }

    /* 步骤指示器 */
    .steps {
      display: flex;
      justify-content: space-between;
      margin: 20px 0;
      position: relative;
    }
    .steps::before {
      content: '';
      position: absolute;
      top: 14px;
      left: 0;
      right: 0;
      height: 2px;
      background: rgba(255,255,255,0.05);
      z-index: 0;
    }
    .step-item {
      position: relative;
      z-index: 1;
      text-align: center;
      font-size: 12px;
      color: var(--text-secondary);
      flex: 1;
    }
    .step-dot {
      width: 10px;
      height: 10px;
      background: #334155;
      border: 2px solid #1e293b;
      border-radius: 50%;
      margin: 0 auto;
      transition: all 0.3s;
    }
    .step-item.active .step-dot {
      background: var(--primary);
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    }
    .step-item.active div:first-child {
      color: var(--primary);
      font-weight: 600;
    }

    /* 统计卡片 */
    .stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 16px;
    }
    .stat-item {
      background: rgba(255,255,255,0.03);
      padding: 12px;
      border-radius: 10px;
    }
    .stat-label {
      font-size: 11px;
      color: var(--text-secondary);
    }
    .stat-value {
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
      margin-top: 4px;
    }

    /* 文件上传 */
    .file-drop {
      border: 2px dashed rgba(255,255,255,0.1);
      border-radius: 12px;
      padding: 32px 16px;
      text-align: center;
      color: var(--text-secondary);
      font-size: 13px;
      margin-bottom: 12px;
      transition: all 0.2s;
      cursor: pointer;
    }
    .file-drop:hover {
      border-color: var(--primary);
      background: rgba(59, 130, 246, 0.05);
      color: var(--primary);
    }
    .file-list {
      max-height: 120px;
      overflow-y: auto;
    }
    .file-item {
      display: flex;
      justify-content: space-between;
      padding: 8px;
      background: rgba(255,255,255,0.03);
      border-radius: 6px;
      margin-bottom: 4px;
      font-size: 12px;
    }

    /* 区块链流程 */
    .hash-flow {
      background: rgba(0,0,0,0.2);
      border-radius: 8px;
      padding: 12px;
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 12px;
      line-height: 1.6;
    }

    /* 验证面板 */
    .verify-panel {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .input {
      background: rgba(0,0,0,0.2);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 8px;
      padding: 8px 12px;
      color: var(--text);
      font-size: 13px;
      outline: none;
      flex: 1;
      transition: border-color 0.2s;
    }
    .input:focus {
      border-color: var(--primary);
    }
    .verify-result {
      background: rgba(16, 185, 129, 0.1);
      border: 1px solid rgba(16, 185, 129, 0.2);
      color: #34d399;
      padding: 12px;
      border-radius: 8px;
      font-size: 12px;
      line-height: 1.5;
    }

    /* 信用画像折叠面板 */
    .collapse {
      background: rgba(255,255,255,0.03);
      border-radius: 8px;
      margin-bottom: 8px;
      overflow: hidden;
      border: 1px solid transparent;
      transition: all 0.2s;
    }
    .collapse.open {
      border-color: rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.05);
    }
    .collapse-header {
      padding: 10px 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      font-size: 13px;
      font-weight: 500;
      user-select: none;
    }
    .collapse-header:hover {
      background: rgba(255,255,255,0.05);
    }
    .collapse-body {
      padding: 0 12px 12px;
      display: none;
      font-size: 12px;
      color: var(--text-secondary);
    }
    .collapse.open .collapse-body {
      display: block;
    }
    .collapse-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .collapse-list li {
      display: flex;
      gap: 8px;
      margin-top: 6px;
      line-height: 1.4;
    }
    
    .keyword {
      color: var(--primary);
      font-weight: 600;
      margin: 0 2px;
    }
    .chart, .chart-small {
      width: 100%;
      border-radius: 8px;
    }
    .chart { height: 200px; }
    .chart-small { height: 140px; }
    
    /* Toast */
    .toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: rgba(15, 23, 42, 0.9);
      color: white;
      padding: 12px 24px;
      border-radius: 999px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.5);
      border: 1px solid rgba(255,255,255,0.1);
      font-size: 14px;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 400;
      opacity: 0;
    }
    .toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    /* 补全缺失的样式 */
    .nav-item span {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .nav-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--text-secondary);
      transition: all 0.3s;
    }
    .nav-item.active .nav-dot {
      background: #60a5fa;
      box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
    }
    
    .file-icon {
      width: 32px;
      height: 32px;
      background: rgba(255,255,255,0.1);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 700;
      color: var(--text);
      flex-shrink: 0;
    }
    .file-item {
      justify-content: flex-start;
      gap: 12px;
    }
    
    .hash-step {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 8px;
      animation: slideIn 0.3s ease-out;
    }
    @keyframes slideIn {
      from { opacity: 0; transform: translateX(-10px); }
      to { opacity: 1; transform: translateX(0); }
    }
    .hash-tag {
      background: rgba(59, 130, 246, 0.2);
      color: #60a5fa;
      font-size: 10px;
      padding: 2px 6px;
      border-radius: 4px;
      font-weight: 600;
      white-space: nowrap;
      margin-top: 2px;
    }
    
    .score-level {
      font-size: 18px;
      font-weight: 700;
      margin-right: 6px;
      color: #fff;
      vertical-align: middle;
    }
    .score-tag {
      font-size: 10px;
      background: rgba(0,0,0,0.2);
      padding: 2px 6px;
      border-radius: 4px;
      margin-left: 6px;
      vertical-align: middle;
    }

    /* Python 终端与代码展示 */
    .terminal-container {
      background: #1e1e1e;
      border-radius: 8px;
      padding: 12px;
      font-family: 'Consolas', 'Monaco', monospace;
      font-size: 12px;
      color: #d4d4d4;
      border: 1px solid #333;
      height: 200px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    .terminal-header {
      display: flex;
      gap: 6px;
      margin-bottom: 8px;
      padding-bottom: 8px;
      border-bottom: 1px solid #333;
    }
    .term-dot { width: 10px; height: 10px; border-radius: 50%; }
    .term-dot.red { background: #ff5f56; }
    .term-dot.yellow { background: #ffbd2e; }
    .term-dot.green { background: #27c93f; }
    
    .code-view {
      background: #1e1e1e;
      border-radius: 8px;
      padding: 12px;
      font-family: 'Consolas', 'Monaco', monospace;
      font-size: 12px;
      color: #d4d4d4;
      border: 1px solid #333;
      height: 180px;
      overflow-y: auto;
      margin-bottom: 12px;
      cursor: text;
    }
    .code-line {
      display: flex;
      line-height: 1.5;
      padding: 0 4px;
      border-radius: 2px;
    }
    .code-line.active {
      background: #264f78;
    }
    .line-num {
      color: #858585;
      min-width: 24px;
      text-align: right;
      margin-right: 12px;
      user-select: none;
    }
    .log-line {
      margin-bottom: 2px;
      word-break: break-all;
    }
    .log-time { color: #569cd6; margin-right: 8px; }
    .log-level { margin-right: 8px; font-weight: bold; }
    .log-level.info { color: #9cdcfe; }
    .log-level.warn { color: #ce9178; }
    .log-level.error { color: #f44747; }
    
    /* Syntax Highlighting */
    .kwd { color: #c586c0; } /* keyword */
    .str { color: #ce9178; } /* string */
    .fun { color: #dcdcaa; } /* function */
    .num { color: #b5cea8; } /* number */
    .cmt { color: #6a9955; } /* comment */
    .cls { color: #4ec9b0; } /* class */
    /* Console Panel (Standalone IDE Style) */
    .console-panel {
      /* margin-top: 20px; Removed for flexibility */
      background: #1e1e1e;
      border: 1px solid #333;
      border-radius: 6px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.5);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      height: 100%; /* Changed from fixed 320px to fill container */
      min-height: 320px;
    }

    /* Modal Styles for Independent Console */
    .console-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      z-index: 1000;
      display: none;
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .console-modal-overlay.show {
      display: flex;
      opacity: 1;
    }
    .console-modal-content {
      width: 90%;
      height: 85%;
      background: #1e1e1e;
      border-radius: 12px;
      border: 1px solid #333;
      box-shadow: 0 20px 50px rgba(0,0,0,0.5);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transform: scale(0.95);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .console-modal-overlay.show .console-modal-content {
      transform: scale(1);
    }
    .console-modal-header {
      height: 48px;
      background: #252526;
      border-bottom: 1px solid #333;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 16px;
    }
    .console-modal-title {
      color: #fff;
      font-weight: 600;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .console-modal-close {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #ccc;
      transition: background 0.2s;
    }
    .console-modal-close:hover {
      background: rgba(255,255,255,0.1);
      color: #fff;
    }
    .console-modal-body {
      flex: 1;
      padding: 0;
      overflow: hidden;
    }
    
    /* Console Placeholder Card */
    .console-placeholder {
      background: rgba(30, 41, 59, 0.4);
      border: 1px dashed rgba(255,255,255,0.1);
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 30px;
      gap: 16px;
      cursor: pointer;
      transition: all 0.2s;
      min-height: 200px;
    }
    .console-placeholder:hover {
      background: rgba(30, 41, 59, 0.6);
      border-color: var(--primary);
    }
    .console-placeholder-icon {
      width: 48px;
      height: 48px;
      background: rgba(59, 130, 246, 0.1);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      font-size: 24px;
    }
    .console-placeholder-text {
      color: var(--text-secondary);
      font-size: 14px;
    }
    .console-header {
      background: #252526;
      padding: 0 16px;
      height: 36px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #333;
      gap: 20px;
    }
    .console-tab {
      font-size: 12px;
      color: #969696;
      cursor: pointer;
      height: 100%;
      display: flex;
      align-items: center;
      border-bottom: 2px solid transparent;
      transition: all 0.2s;
    }
    .console-tab.active {
      color: #fff;
      border-bottom-color: #3794ff;
    }
    .console-body {
      flex: 1;
      display: flex;
      overflow: hidden;
    }
    .console-pane {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
    }
    .console-pane-title {
      position: absolute;
      top: 0;
      right: 0;
      background: rgba(0,0,0,0.5);
      color: #858585;
      font-size: 10px;
      padding: 2px 6px;
      z-index: 10;
      pointer-events: none;
    }
    .console-pane.left {
      border-right: 1px solid #333;
    }
    
    /* Override embedded styles for panel */
    .console-panel .code-view, 
    .console-panel .terminal-container {
      border: none;
      border-radius: 0;
      box-shadow: none;
      height: 100% !important;
      margin: 0 !important;
      background: #1e1e1e;
    }

    /* Editable Code Editor */
    .code-editor {
      background: #1e1e1e;
      color: #d4d4d4;
      font-family: 'Consolas', 'Monaco', monospace;
      font-size: 12px;
      border: none;
      width: 100%;
      height: 100%;
      padding: 12px;
      resize: none;
      outline: none;
      line-height: 1.5;
    }

    /* Terminal Input */
    .terminal-input-line {
        display: flex;
        align-items: center;
        padding: 0 4px;
        margin-top: 4px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .term-input {
        background: transparent;
        border: none;
        color: #d4d4d4;
        font-family: 'Consolas', 'Monaco', monospace;
        font-size: 12px;
        flex: 1;
        outline: none;
        margin-left: 8px;
    }
    .prompt {
        color: #6a9955;
        font-weight: bold;
    }

    /* P1 Module Styles */
    .policy-list::-webkit-scrollbar {
      width: 4px;
    }
    .policy-list::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.1);
      border-radius: 2px;
    }
    .policy-item:hover {
      background: rgba(255,255,255,0.03);
      cursor: default;
    }

    /* IoT Metrics */
    .iot-metrics {
      display: flex;
      justify-content: space-around;
      margin-bottom: 16px;
    }
    .iot-item {
      text-align: center;
    }
    .iot-label {
      font-size: 11px;
      color: var(--text-secondary);
    }
    .iot-value {
      font-size: 16px;
      font-weight: bold;
      color: var(--success);
    }

    /* Dashboard Grid Layout (New Requirement) */
    .dashboard-grid {
      display: grid;
      grid-template-columns: 2fr 1fr;
      grid-template-rows: auto auto;
      gap: 20px;
    }
    
    .market-module {
      grid-column: 1 / 2;
      grid-row: 1 / 2;
    }
    
    .policy-module {
      grid-column: 2 / 3;
      grid-row: 1 / 3;
      display: flex;
      flex-direction: column;
    }
    
    .iot-module {
      grid-column: 1 / 2;
      grid-row: 2 / 3;
    }
    
    /* Make charts responsive to new container sizes */
    .market-module .chart {
      height: 280px !important; 
    }
    
    .policy-module .policy-list {
      flex: 1; 
      height: auto !important;
      min-height: 0; 
      overflow-y: auto;
    }
    
    .iot-module .chart {
      height: 180px !important;
    }


/* P2 Layout Specifics */
.etl-steps-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 15px;
}
.etl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    flex: 1;
    opacity: 0.5;
    transition: all 0.3s;
}
.etl-step.active {
    opacity: 1;
}
.etl-step.completed .step-icon {
    background: var(--success);
    color: white;
    border-color: var(--success);
}
.etl-step::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 0;
}
.etl-step:last-child::after {
    display: none;
}
.step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 1;
    transition: all 0.3s;
}
.etl-step.active .step-icon {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}
.step-label {
    font-size: 11px;
    font-weight: 500;
}

.quality-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 10px 0;
}
.metric-box {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.metric-box-lg {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(255,255,255,0.05);
}
.metric-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0;
}
.metric-val.score {
    font-size: 36px;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.metric-name {
    font-size: 11px;
    color: var(--text-secondary);
}

.flex-col {
    display: flex;
    flex-direction: column;
}
.gap-20 {
    gap: 20px;
}

/* Missing styles for P2 Data Preview & Terminal */
.row-duplicate {
    background: rgba(245, 158, 11, 0.1);
}
.cell-missing {
    color: var(--warning);
    font-weight: bold;
}
.cell-anomaly {
    color: var(--error);
    font-weight: bold;
}
.log-level.warning {
    color: var(--warning);
}

.finance-detail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(5px);
}
.finance-detail-overlay.show { display: flex; }
.finance-detail-dialog {
    position: relative;
    width: min(470px, 100%);
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.34);
    border-radius: 18px;
    background: linear-gradient(145deg, #1b2941, #131e31);
    box-shadow: 0 28px 72px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.finance-detail-dialog::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #38bdf8, #60a5fa 45%, #34d399); }
.finance-detail-heading { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.finance-detail-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: rgba(16,185,129,.13); border: 1px solid rgba(52,211,153,.28); color: #6ee7b7; font-size: 20px; font-weight: 700; }
.finance-detail-dialog h3 { margin: 3px 0 0; color: #f8fafc; font-size: 21px; }
.finance-detail-kicker { color: #60a5fa; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.finance-detail-content { display: grid; gap: 1px; margin-top: 20px; overflow: hidden; border: 1px solid rgba(148,163,184,.12); border-radius: 11px; background: rgba(148,163,184,.08); }
.finance-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 13px; background: rgba(15,23,42,.46); font-size: 12px; }
.finance-detail-row span { color: #94a3b8; }
.finance-detail-row strong { color: #e2e8f0; font-weight: 600; text-align: right; }
.finance-detail-content p { margin: 0; padding: 12px 13px; color: #94a3b8; background: rgba(15,23,42,.46); font-size: 12px; line-height: 1.65; }
.finance-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.finance-detail-footer span { color: #64748b; font-size: 10px; }
.finance-detail-footer .btn { min-width: 96px; justify-content: center; }
.finance-detail-close { position: absolute; top: 13px; right: 14px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); font-size: 22px; cursor: pointer; }
.finance-detail-close:hover { background: rgba(255,255,255,.07); color: #fff; }

/* P1 业财全景图谱 */
.overview-page { --overview-blue: #38bdf8; --overview-violet: #a78bfa; --overview-amber: #fbbf24; --overview-green: #34d399; }
.overview-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 124px; padding: 24px 28px; overflow: hidden; border: 1px solid rgba(56,189,248,.22); border-radius: 18px; background: radial-gradient(circle at 78% 24%, rgba(52,211,153,.13), transparent 34%), linear-gradient(125deg, rgba(14,165,233,.15), rgba(15,23,42,.72) 46%, rgba(16,185,129,.08)); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 18px 42px rgba(2,6,23,.22); }
.overview-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(148,163,184,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.035) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, #000, transparent); }
.overview-eyebrow { margin-bottom: 5px; color: #7dd3fc; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.overview-hero h1 { margin: 0; color: #f8fafc; font-size: clamp(27px, 3vw, 40px); line-height: 1.15; letter-spacing: -.04em; }
.overview-hero p { margin: 8px 0 0; color: #a5b4c9; font-size: 14px; letter-spacing: .08em; }
.overview-hero-side { position: relative; z-index: 1; display: grid; min-width: 210px; padding: 15px 18px; border: 1px solid rgba(52,211,153,.2); border-radius: 14px; background: rgba(15,23,42,.54); text-align: right; }
.overview-hero-side span { color: #6ee7b7; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.overview-hero-side strong { margin-top: 3px; color: #f8fafc; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.overview-hero-side small { color: #64748b; font-size: 10px; }

.overview-flow { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.overview-flow-line { position: absolute; top: 29px; left: 12.5%; right: 12.5%; height: 2px; overflow: hidden; background: linear-gradient(90deg, var(--overview-blue), var(--overview-violet), var(--overview-amber), var(--overview-green)); opacity: .55; }
.overview-flow-line i { position: absolute; top: -2px; width: 42px; height: 6px; border-radius: 999px; background: #fff; filter: blur(1px); box-shadow: 0 0 14px #7dd3fc; animation: overviewFlow 3.2s linear infinite; }
@keyframes overviewFlow { from { left: -42px; } to { left: 100%; } }
.overview-flow-node { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 10px 10px 11px; text-align: center; }
.overview-flow-node b { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; background: #111d31; font-size: 11px; box-shadow: 0 0 0 6px rgba(15,23,42,.8), 0 0 24px currentColor; animation: overviewPulse 2.6s ease-in-out infinite; }
@keyframes overviewPulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(15,23,42,.72), 0 0 30px currentColor; } }
.overview-flow-node strong { margin-top: 5px; color: #e2e8f0; font-size: 12px; }
.overview-flow-node span { max-width: 250px; overflow: hidden; color: #64748b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.overview-flow-node.blue { color: var(--overview-blue); } .overview-flow-node.violet { color: var(--overview-violet); } .overview-flow-node.amber { color: var(--overview-amber); } .overview-flow-node.green { color: var(--overview-green); }

/* 四大中心方形卡片：紧凑单页布局 */
.overview-centers { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 10px; }
.overview-center { --accent: var(--overview-blue); --accent-rgb: 56,189,248; position: relative; display: flex; min-width: 0; min-height: 156px; flex-direction: column; padding: 13px 14px 12px; overflow: hidden; border: 1px solid rgba(var(--accent-rgb),.26); border-top: 2px solid var(--accent); border-radius: 15px; background: radial-gradient(130% 110% at 100% 0%, rgba(var(--accent-rgb),.15), transparent 46%), linear-gradient(165deg, rgba(30,41,59,.34), rgba(15,23,42,.58)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 12px 26px rgba(2,6,23,.2); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.overview-center:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb),.52); box-shadow: 0 14px 30px rgba(2,6,23,.36), 0 0 22px rgba(var(--accent-rgb),.09); }
.overview-center.violet { --accent: var(--overview-violet); --accent-rgb: 167,139,250; } .overview-center.amber { --accent: var(--overview-amber); --accent-rgb: 251,191,36; } .overview-center.green { --accent: var(--overview-green); --accent-rgb: 52,211,153; }
.center-idx { position: absolute; top: 2px; right: 8px; color: rgba(var(--accent-rgb),.22); font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -2px; pointer-events: none; user-select: none; }
.overview-center h3 { margin: 0; padding-right: 46px; color: #f1f5f9; font-size: 15px; line-height: 1.3; }
.overview-center .center-sub { margin: 3px 0 0; padding-right: 46px; overflow: hidden; color: #64748b; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.overview-modules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 6px; margin-top: 12px; }
.overview-modules span { padding: 5px 4px; overflow: hidden; border: 1px solid rgba(var(--accent-rgb),.13); border-radius: 7px; background: rgba(15,23,42,.55); color: #c3d0e0; font-size: 10px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.overview-bottom { display: grid; grid-template-columns: 1.5fr .75fr; gap: 14px; margin-top: 12px; }
.overview-map,.overview-loop { min-width: 0; padding: 16px 15px; border-radius: 15px; background: rgba(15,23,42,.5); }
.overview-map { padding: 16px 15px; border: 1px solid rgba(56,189,248,.18); }
.overview-map .overview-section-title { margin-bottom: 10px; }
.overview-map .overview-section-title span { font-size: 15px; }
.overview-map .overview-section-title small { font-size: 10px; }
.overview-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.overview-section-title span { color: #f1f5f9; font-size: 13px; font-weight: 700; }
.overview-section-title small { color: #64748b; font-size: 9px; }
.overview-map-row { --row-color: #38bdf8; display: grid; grid-template-columns: minmax(62px,1fr) 12px minmax(62px,1fr) 12px minmax(62px,1fr) 12px minmax(78px,1.15fr); align-items: center; gap: 5px; margin-top: 7px; color: #94a3b8; font-size: 9px; }
.overview-map-row.violet { --row-color:#a78bfa; } .overview-map-row.amber { --row-color:#fbbf24; } .overview-map-row.green { --row-color:#34d399; }
.overview-map-row span,.overview-map-row strong { min-width: 0; padding: 6px 5px; overflow: hidden; border-radius: 6px; background: rgba(255,255,255,.035); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.overview-map-row strong { color: var(--row-color); font-weight: 600; }
.overview-map-row i { position: relative; height: 1px; background: var(--row-color); opacity: .55; }
.overview-map-row i::after { content: ''; position: absolute; top: -2px; right: -1px; border-width: 2.5px 0 2.5px 4px; border-style: solid; border-color: transparent transparent transparent var(--row-color); }
/* 数据闭环总览：蛇形回环链路，与业财映射同规格放大展示 */
.overview-loop { display: flex; flex-direction: column; padding: 16px 15px; border: 1px solid rgba(52,211,153,.18); }
.overview-loop .overview-section-title { margin-bottom: 10px; }
.overview-loop .overview-section-title span { font-size: 15px; }
.overview-loop .overview-section-title small { font-size: 10px; }
.overview-loop-circuit { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr) 16px minmax(0,1fr) 16px minmax(0,1fr); grid-template-rows: 46px 20px 46px; color: #34d399; margin-bottom: 8px; }
.loop-node { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(52,211,153,.26); border-radius: 999px; background: rgba(52,211,153,.06); box-shadow: inset 0 1px rgba(255,255,255,.03); }
.loop-node b { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: rgba(52,211,153,.18); color: #d1fae5; font-size: 10px; font-weight: 800; }
.loop-node span { overflow: hidden; color: #e2e8f0; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lc-1, .lc-7 { border-color: rgba(52,211,153,.55); background: rgba(52,211,153,.14); }
.lc-1 b, .lc-7 b { background: rgba(52,211,153,.42); }
.lc-1 { grid-area: 1 / 1; } .lc-2 { grid-area: 1 / 3; } .lc-3 { grid-area: 1 / 5; } .lc-4 { grid-area: 1 / 7; }
.lc-5 { grid-area: 3 / 7; } .lc-6 { grid-area: 3 / 5; } .lc-7 { grid-area: 3 / 3; }
.loop-circuit-arrow { position: relative; }
.loop-circuit-arrow::before { content: ''; position: absolute; height: 2px; top: 50%; transform: translateY(-50%); background: linear-gradient(90deg, rgba(52,211,153,.25), rgba(52,211,153,.9)); }
.lc-a1 { grid-area: 1 / 2; } .lc-a2 { grid-area: 1 / 4; } .lc-a3 { grid-area: 1 / 6; }
.lc-a1::before, .lc-a2::before, .lc-a3::before { left: 0; right: 0; }
.lc-a1::after, .lc-a2::after, .lc-a3::after { content: ''; position: absolute; top: 50%; right: -1px; transform: translateY(-50%); border-width: 4px 0 4px 6px; border-style: solid; border-color: transparent transparent transparent #34d399; }
.lc-l1 { grid-area: 3 / 6; } .lc-l2 { grid-area: 3 / 4; }
.lc-l1::before, .lc-l2::before { left: 0; right: 0; }
.lc-l1::after, .lc-l2::after { content: ''; position: absolute; top: 50%; left: -1px; transform: translateY(-50%); border-width: 4px 6px 4px 0; border-style: solid; border-color: transparent #34d399 transparent transparent; }
.lc-ret { grid-area: 3 / 1 / 3 / 3; }
.lc-ret::before { left: 26px; right: 0; }
.lc-dn { grid-area: 2 / 7; }
.lc-dn::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; height: auto; transform: translateX(-50%); background: linear-gradient(180deg, rgba(52,211,153,.9), rgba(52,211,153,.35)); }
.lc-dn::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border-width: 6px 4px 0; border-style: solid; border-color: #34d399 transparent transparent; }
.lc-up { grid-area: 2 / 1 / 4 / 2; margin-bottom: 23px; }
.lc-up::before { content: ''; position: absolute; top: 0; bottom: 0; left: 26px; width: 2px; height: auto; transform: none; background: linear-gradient(180deg, rgba(52,211,153,.35), rgba(52,211,153,.9)); }
.lc-up::after { content: ''; position: absolute; top: 0; left: 23px; border-width: 0 4px 6px; border-style: solid; border-color: transparent transparent #34d399; }
.overview-loop-result { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 10px 12px; border: 1px solid rgba(52,211,153,.28); border-radius: 12px; background: linear-gradient(90deg, rgba(16,185,129,.16), rgba(16,185,129,.04)); }
.overview-loop-result b { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: rgba(52,211,153,.18); color: #6ee7b7; font-size: 16px; }
.overview-loop-result div { display: grid; gap: 3px; }.overview-loop-result strong { color: #d1fae5; font-size: 13px; }.overview-loop-result span { color: #7c8aa0; font-size: 10px; }
@media (max-width: 1240px) { .loop-node { gap: 6px; }.loop-node b { width: 20px; height: 20px; flex: 0 0 20px; font-size: 10px; }.loop-node span { font-size: 11px; } }
@media (max-width: 720px) { .overview-loop-circuit { display: flex; flex-wrap: wrap; gap: 8px; }.overview-loop-circuit .loop-node { flex: 1 1 calc(50% - 8px); height: 40px; }.overview-loop-circuit > i { display: none; } }

@media (max-width: 1280px) { .overview-centers { grid-template-columns: repeat(2,minmax(0,1fr)); } .overview-center { min-height: 150px; } }
@media (max-width: 900px) { .overview-flow { grid-template-columns: repeat(2,minmax(0,1fr)); } .overview-flow-line { display:none; } .overview-bottom { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .overview-hero { align-items: stretch; flex-direction: column; } .overview-hero-side { min-width: 0; text-align: left; } .overview-centers,.overview-flow { grid-template-columns: 1fr; } .overview-map-row { grid-template-columns: 1fr; } .overview-map-row i { width: 1px; height: 7px; margin: auto; } .overview-map-row i::after { top: auto; right: -2px; bottom: -1px; border-width: 4px 2.5px 0; border-color: var(--row-color) transparent transparent; } }

/* P1 全屏工作区：导航默认收起，鼠标移到屏幕最左侧自动唤出侧栏 */
.app.overview-focus { max-width: none; margin: 0; }
.app.overview-focus .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 280px; height: 100vh; transform: translateX(-100%); transition: transform .28s cubic-bezier(.2,.75,.2,1), box-shadow .28s ease; }
.app.overview-focus.sidebar-open .sidebar { transform: translateX(0); box-shadow: 18px 0 42px rgba(2,6,23,.5); }
.app.overview-focus .main { width: 100%; padding: 20px 28px; }
.app.overview-focus .content { border-radius: 18px; }
.app.overview-focus .overview-page { min-height: 0; padding: 12px 20px 14px; }

/* 业财映射：按数据端、业务端、财务端、税务端四段建立同源链路 */
.overview-mapping-frame { display: grid; grid-template-columns: minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr); align-items: center; gap: 7px; padding: 3px 1px 2px; }
.overview-mapping-stage { position: relative; display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 9px 9px; border: 1px solid rgba(125,211,252,.28); border-radius: 10px; background: linear-gradient(145deg, rgba(30,58,84,.42), rgba(15,23,42,.66)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.overview-mapping-stage::before { content: ''; position: absolute; top: 0; left: 14px; right: 14px; height: 2px; background: linear-gradient(90deg, transparent, rgba(125,211,252,.8), transparent); }
.overview-mapping-stage h4 { margin: 0 0 6px; color: #d9f4ff; font-size: 12px; font-weight: 700; text-align: center; letter-spacing: .05em; }
.overview-mapping-stage > div { display: grid; gap: 3px; }
.overview-mapping-stage span { display: block; padding: 4px 4px; border-left: 3px solid rgba(125,211,252,.6); background: rgba(2,15,30,.3); color: #a7bed0; font-size: 11px; line-height: 1.3; text-align: center; white-space: nowrap; }
.overview-mapping-stage.business { border-color: rgba(167,139,250,.3); }.overview-mapping-stage.business::before { background: linear-gradient(90deg, transparent, rgba(167,139,250,.8), transparent); }.overview-mapping-stage.business span { border-left-color: rgba(167,139,250,.68); }
.overview-mapping-stage.finance { border-color: rgba(251,191,36,.3); }.overview-mapping-stage.finance::before { background: linear-gradient(90deg, transparent, rgba(251,191,36,.8), transparent); }.overview-mapping-stage.finance span { border-left-color: rgba(251,191,36,.68); }
.overview-mapping-stage.tax { border-color: rgba(52,211,153,.3); }.overview-mapping-stage.tax::before { background: linear-gradient(90deg, transparent, rgba(52,211,153,.8), transparent); }.overview-mapping-stage.tax span { border-left-color: rgba(52,211,153,.68); }
.overview-mapping-arrow { position: relative; height: 2px; background: linear-gradient(90deg, rgba(125,211,252,.22), rgba(125,211,252,.85)); }
.overview-mapping-arrow::after { content: ''; position: absolute; top: -4px; right: -1px; border-width: 5px 0 5px 8px; border-style: solid; border-color: transparent transparent transparent #7dd3fc; }
@media (max-width: 1050px) { .overview-mapping-frame { grid-template-columns: 1fr 18px 1fr; grid-template-areas: 'data arrow-one business' '. arrow-two .' 'finance arrow-three tax'; }.overview-mapping-stage.data { grid-area: data; }.overview-mapping-stage.business { grid-area: business; }.overview-mapping-stage.finance { grid-area: finance; }.overview-mapping-stage.tax { grid-area: tax; }.overview-mapping-arrow:nth-of-type(1) { grid-area: arrow-one; }.overview-mapping-arrow:nth-of-type(2) { grid-area: arrow-two; transform: rotate(90deg); }.overview-mapping-arrow:nth-of-type(3) { grid-area: arrow-three; } }
@media (max-width: 720px) { .app.overview-focus .main { padding: 12px; }.overview-mapping-frame { grid-template-columns: 1fr; gap: 5px; min-height: 0; }.overview-mapping-stage { min-height: 0; }.overview-mapping-stage.tax { grid-column: auto; }.overview-mapping-arrow { width: 1px; height: 11px; margin: auto; background: linear-gradient(180deg, rgba(125,211,252,.22), rgba(125,211,252,.8)); }.overview-mapping-arrow::after { top: auto; right: -2px; bottom: -1px; border-width: 5px 3px 0; border-color: #7dd3fc transparent transparent; } }

/* P7 访问权限控制：角色可删除 + 可添加 */
.p7-role-head, .p7-role-row { grid-template-columns: 1.1fr 1fr auto 22px; }
.p7-role-row .p7-role-del { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #475569; cursor: pointer; font-size: 10px; line-height: 1; }
.p7-role-row .p7-role-del:hover { background: rgba(239, 68, 68, .16); color: #f87171; }
.p7-role-overlay { position: fixed; z-index: 320; inset: 0; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(2, 6, 23, .72); backdrop-filter: blur(6px); }
.p7-role-overlay.show { display: flex; animation: p7OverlayIn .18s ease-out; }
.p7-role-dialog { position: relative; width: min(400px, 100%); padding: 20px 20px 18px; border: 1px solid rgba(103, 232, 249, .3); border-radius: 16px; background: linear-gradient(150deg, #17253c, #0b1424); box-shadow: 0 26px 64px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .05); }
.p7-role-dialog-head strong { color: #f1f5f9; font-size: 16px; } .p7-role-dialog-head small { display: block; margin: 5px 0 0; color: #64748b; font-size: 11px; }
.p7-role-field { display: grid; gap: 6px; margin-top: 16px; color: #94a3b8; font-size: 11px; }
.p7-role-field > input { min-height: 34px; padding: 7px 10px; border: 1px solid rgba(148, 163, 184, .18); border-radius: 8px; outline: none; background: rgba(8, 15, 30, .72); color: #e2e8f0; font: inherit; font-size: 12px; }
.p7-role-field > input:focus { border-color: rgba(103, 232, 249, .55); }
.p7-role-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.p7-role-dialog-actions .btn { min-width: 84px; justify-content: center; }

/* ---------- P1 本地数据采集：标题行右侧的低调入口 + 批量上传进度面板 ---------- */
.page-header-split { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-header-main { min-width: 0; }
.local-collect { position: relative; flex: 0 0 auto; margin-top: 2px; }
.local-collect-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px dashed rgba(148, 163, 184, .32); border-radius: 8px; background: transparent; color: #94a3b8; font: inherit; font-size: 12px; line-height: 1.2; cursor: pointer; opacity: .7; transition: opacity .22s ease, color .22s ease, border-color .22s ease, background .22s ease; }
.local-collect-btn:hover, .local-collect-btn.active { opacity: 1; color: #e2e8f0; border-color: rgba(96, 165, 250, .5); background: rgba(96, 165, 250, .08); }
.local-collect-icon { font-size: 11px; opacity: .75; }
.local-collect-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 132px; padding: 6px; border: 1px solid rgba(148, 163, 184, .16); border-radius: 10px; background: rgba(15, 23, 42, .97); box-shadow: 0 14px 32px rgba(2, 6, 23, .5); animation: fadeIn .16s ease; }
.local-collect-menu button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #94a3b8; font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease; }
.local-collect-menu button:hover { background: rgba(96, 165, 250, .15); color: #e2e8f0; }
.local-upload-overlay { position: fixed; z-index: 340; inset: 0; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(2, 6, 23, .72); backdrop-filter: blur(6px); }
.local-upload-overlay.show { display: flex; animation: p7OverlayIn .18s ease-out; }
.local-upload-dialog { position: relative; display: flex; flex-direction: column; width: min(520px, 100%); padding: 20px 20px 18px; border: 1px solid rgba(103, 232, 249, .3); border-radius: 16px; background: linear-gradient(150deg, #17253c, #0b1424); box-shadow: 0 26px 64px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .05); }
.local-upload-head { margin-bottom: 12px; padding-right: 30px; }
.local-upload-title { display: flex; align-items: baseline; gap: 10px; }
.local-upload-title strong { color: #f1f5f9; font-size: 16px; }
.local-upload-title small { color: #64748b; font-size: 11px; }
.local-upload-overall { height: 6px; margin-bottom: 12px; border-radius: 999px; background: rgba(148, 163, 184, .16); overflow: hidden; }
.local-upload-overall i { display: block; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #22d3ee); transition: width .26s ease; }
.local-upload-list { display: grid; gap: 8px; max-height: 230px; overflow-y: auto; }
.local-upload-item { display: grid; grid-template-columns: minmax(0, 1fr) 96px 78px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(148, 163, 184, .1); border-radius: 9px; background: rgba(15, 23, 42, .5); font-size: 12px; }
.local-upload-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.local-upload-name b { overflow: hidden; color: #e2e8f0; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.local-upload-name span { flex: 0 0 auto; color: #94a3b8; font-size: 10px; }
.local-upload-bar { height: 5px; border-radius: 999px; background: rgba(148, 163, 184, .16); overflow: hidden; }
.local-upload-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #38bdf8, #22d3ee); transition: width .2s ease; }
.local-upload-state { color: #94a3b8; font-size: 11px; text-align: right; white-space: nowrap; }
.local-upload-item.done { border-color: rgba(52, 211, 153, .28); }
.local-upload-item.done .local-upload-bar i { background: linear-gradient(90deg, #34d399, #22c55e); }
.local-upload-item.done .local-upload-state { color: #34d399; }
@media (max-width: 720px) {
  .page-header-split { flex-direction: column; align-items: stretch; gap: 10px; }
  .local-collect { align-self: flex-end; }
  .local-upload-item { grid-template-columns: minmax(0, 1fr) 72px; }
  .local-upload-state { display: none; }
}
