    :root {
      --primary: #165DFF;
      --primary-hover: #0D42CC;
      --primary-light: #E8F3FF;
      --bg-page: #F2F3F5;
      --bg-card: #FFFFFF;
      --bg-secondary: #F7F8FA;
      --border: #E5E6EB;
      --border-light: #F0F0F0;
      --text-primary: #1D2129;
      --text-secondary: #4E5969;
      --text-tertiary: #86909C;
      --success: #00B42A;
      --success-bg: #E8FFEA;
      --danger: #F53F3F;
      --danger-bg: #FFECE8;
      --warning: #FF7D00;
      --warning-bg: #FFF7E8;
      --sidebar-width: 240px;
      --radius-sm: 6px;
      --radius-md: 8px;
      --radius-lg: 12px;
      --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
      --shadow-md: 0 4px 12px rgba(0,0,0,.08);
      --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
      /* Typography */
      --text-xs: 12px;
      --text-sm: 13px;
      --text-base: 14px;
      --text-md: 15px;
      --text-lg: 16px;
      --text-xl: 18px;
      --text-2xl: 20px;
      --text-3xl: 24px;
      --font-weight-normal: 400;
      --font-weight-medium: 500;
      --font-weight-semibold: 600;
      /* Page titles */
      --page-title-size: 20px;
      --page-title-weight: 600;
      /* Section & card titles */
      --section-title-size: 16px;
      --section-title-weight: 600;
      /* Subsection */
      --subsection-size: 14px;
      --subsection-weight: 600;
      /* Modal title */
      --modal-title-size: 16px;
      --modal-title-weight: 600;
      /* Buttons */
      --btn-height: 36px;
      --btn-height-sm: 32px;
      --btn-height-lg: 44px;
      --btn-padding-x: 20px;
      --btn-padding-x-sm: 12px;
      --btn-font: 14px;
      --btn-font-sm: 13px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { -webkit-text-size-adjust: 100%; }
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
      font-size: var(--text-base);
      line-height: 1.55;
      background: var(--bg-page);
      color: var(--text-primary);
      min-height: 100vh;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      font-feature-settings: 'tnum' 1, 'kern' 1;
      letter-spacing: .01em;
    }
.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--text-secondary);
  font-size: var(--text-base);
}
.page-loader.is-error {
  color: var(--danger);
}
    /* Stable numeric columns */
    td, th, .mono, .num, .value, .tabular { font-variant-numeric: tabular-nums; }
    code, pre, .addr, .hash { font-family: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace; }

    /* ===================== Design System v2 ===================== */
    /* Selection */
    ::selection { background: rgba(22,93,255,.18); color: var(--text-primary); }
    /* Scrollbar */
    *::-webkit-scrollbar { width: 10px; height: 10px; }
    *::-webkit-scrollbar-thumb { background: #dadde4; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
    *::-webkit-scrollbar-thumb:hover { background: #c2c7d1; border: 2px solid transparent; background-clip: content-box; }
    *::-webkit-scrollbar-track { background: transparent; }

    /* Focus rings — consistent soft glow */
    :root { --focus-ring: 0 0 0 3px rgba(22,93,255,.18); --danger-focus-ring: 0 0 0 3px rgba(245,63,63,.18); }

    /* ----- Inputs / Textareas / Selects ----- */
    .form-group input,
    .form-group textarea,
    .form-group select,
    .filter-bar input,
    .filter-bar select,
    .control-select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    select,
    textarea {
      font-family: inherit;
      color: var(--text-primary);
      background: #fff;
      background-image: none !important;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: var(--text-base);
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }
    .form-group input::placeholder,
    .form-group textarea::placeholder,
    .filter-bar input::placeholder,
    input::placeholder,
    textarea::placeholder { color: #a9afb8; }
    .form-group input:hover:not(:disabled):not(:focus),
    .form-group textarea:hover:not(:disabled):not(:focus),
    .form-group select:hover:not(:disabled):not(:focus),
    .filter-bar input:hover:not(:disabled):not(:focus),
    .filter-bar select:hover:not(:disabled):not(:focus),
    .control-select:hover:not(:disabled):not(:focus),
    input:hover:not(:disabled):not(:focus),
    select:hover:not(:disabled):not(:focus),
    textarea:hover:not(:disabled):not(:focus) { border-color: #c9cdd4; }
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus,
    .filter-bar input:focus,
    .filter-bar select:focus,
    .control-select:focus,
    input:focus,
    select:focus,
    textarea:focus { outline: none !important; border-color: var(--primary); box-shadow: var(--focus-ring); }
    .form-group.has-error input:focus,
    .form-group.has-error select:focus,
    .form-group.has-error textarea:focus { border-color: var(--danger); box-shadow: var(--danger-focus-ring); }
    input:disabled, select:disabled, textarea:disabled { background: #f7f8fa; color: #a0a3aa; cursor: not-allowed; border-color: #eceef2; }
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill,
    select:-webkit-autofill {
      background-image: none !important;
    }

    /* Select style without decorative pattern */
    select, .control-select {
      -webkit-appearance: none; -moz-appearance: none; appearance: none;
      padding-right: 12px !important;
      background-image: none !important;
    }
    select[multiple] { background-image: none; padding-right: 12px !important; }
    select:focus { background-image: none !important; }

    /* Checkbox / Radio visuals */
    input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
    input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

    /* ----- Buttons v2: soft shadow + pressed effect + loading ----- */
    .btn { position: relative; box-shadow: 0 1px 2px rgba(22,26,35,.04); }
    .btn-primary { box-shadow: 0 1px 2px rgba(22,93,255,.22), 0 0 0 1px rgba(22,93,255,.04) inset; }
    .btn-primary:hover { box-shadow: 0 2px 6px rgba(22,93,255,.28); }
    .btn-danger { box-shadow: 0 1px 2px rgba(245,63,63,.18); }
    .btn:focus-visible { box-shadow: var(--focus-ring); }
    .btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(22,93,255,.28); }
    .btn:active:not(:disabled):not(.is-loading) { transform: translateY(1px); }
    .btn.is-loading { color: transparent !important; pointer-events: none; }
    .btn.is-loading::after {
      content: ''; position: absolute; inset: 0; margin: auto;
      width: 16px; height: 16px; border-radius: 50%;
      border: 2px solid currentColor; border-right-color: transparent;
      color: #fff; opacity: .85;
      animation: btn-spin .7s linear infinite;
    }
    .btn-default.is-loading::after { color: var(--text-primary); }
    @keyframes btn-spin { to { transform: rotate(360deg); } }

    /* ----- Card hover micro-lift ----- */
    .card { transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease; }
    .card:hover { box-shadow: 0 6px 16px rgba(20, 33, 56, .06); }

    /* ----- Table: sticky header inside .table-wrap ----- */
    .table-wrap { overflow-x: auto; overflow-y: auto; border-radius: var(--radius-md); }
    .table-wrap.sticky-head { max-height: 560px; }
    .table-wrap.sticky-head thead th { position: sticky; top: 0; z-index: 1; background: var(--bg-secondary); }
    tbody tr { transition: background-color .15s ease; }
    tr.project-group:hover { background: #f8faff; }

    /* ----- Links ----- */
    .link { position: relative; transition: color .18s ease, opacity .18s ease; }
    .link:hover { color: var(--primary-hover); opacity: 1; }
    .link-danger { color: var(--danger) !important; }
    .link-danger:hover { color: #cc2f2f !important; }

    /* ----- Modal animation ----- */
    .modal-overlay { opacity: 0; transition: opacity .2s ease; }
    .modal-overlay.show { opacity: 1; }
    .modal { transform: translateY(6px) scale(.98); opacity: 0; transition: opacity .22s ease, transform .22s cubic-bezier(.22,1,.36,1); }
    .modal-overlay.show .modal { transform: translateY(0) scale(1); opacity: 1; }
    @media (prefers-reduced-motion: reduce) {
      .modal-overlay, .modal { transition: none !important; }
      .modal { transform: none !important; }
    }

    /* ----- Toast v2 (top-right, icon, progress) ----- */
    #toast-container {
      position: fixed; top: 20px; right: 20px; left: auto; bottom: auto;
      transform: none;
      z-index: 3000; display: flex; flex-direction: column; gap: 10px;
      pointer-events: none; max-width: calc(100vw - 40px);
    }
    .toast {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 12px 14px 12px 12px; min-width: 260px; max-width: 380px;
      background: #fff; color: var(--text-primary);
      border: 1px solid var(--border); border-left: 3px solid var(--text-tertiary);
      border-radius: 10px;
      box-shadow: 0 10px 24px rgba(20,33,56,.10), 0 2px 6px rgba(20,33,56,.05);
      font-size: var(--text-sm); line-height: 1.5;
      animation: toastIn .26s cubic-bezier(.22,1,.36,1);
      pointer-events: auto;
      position: relative; overflow: hidden;
    }
    .toast .toast-ico { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; margin-top: 1px; }
    .toast.info { border-left-color: var(--primary); }
    .toast.info .toast-ico { background: var(--primary); }
    .toast.success { background: #fff; color: var(--text-primary); border-left-color: var(--success); }
    .toast.success .toast-ico { background: var(--success); }
    .toast.error { background: #fff; color: var(--text-primary); border-left-color: var(--danger); }
    .toast.error .toast-ico { background: var(--danger); }
    .toast.warning { background: #fff; color: var(--text-primary); border-left-color: var(--warning); }
    .toast.warning .toast-ico { background: var(--warning); }
    .toast .toast-msg { flex: 1; word-break: break-word; }
    .toast .toast-close { flex-shrink: 0; width: 18px; height: 18px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-tertiary); cursor: pointer; transition: background .15s ease, color .15s ease; margin-top: 1px; }
    .toast .toast-close:hover { background: #f2f3f5; color: var(--text-primary); }
    .toast .toast-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(22,93,255,.35); transform-origin: left; animation: toastBar 3s linear forwards; }
    .toast.success .toast-bar { background: rgba(0,180,42,.35); }
    .toast.error .toast-bar { background: rgba(245,63,63,.35); }
    .toast.warning .toast-bar { background: rgba(255,125,0,.35); }
    .toast.exit { animation: toastOut .22s cubic-bezier(.22,1,.36,1) forwards; }
    @keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }
    @keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
    @media (max-width: 640px) { #toast-container { top: 12px; right: 12px; left: 12px; align-items: stretch; } .toast { min-width: 0; } }

    /* ----- Global loading overlay ----- */
    #global-loader {
      position: fixed; inset: 0; background: rgba(255,255,255,.55); backdrop-filter: blur(2px);
      z-index: 4000; display: none; align-items: center; justify-content: center;
    }
    #global-loader.show { display: flex; }
    .spinner-ring { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(22,93,255,.18); border-top-color: var(--primary); animation: btn-spin .8s linear infinite; }

    /* ----- Skeleton shimmer ----- */
    .skel { display: block; position: relative; overflow: hidden; background: #eef0f4; border-radius: 6px; }
    .skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
      animation: skel-shim 1.2s infinite;
    }
    .skel-line { height: 12px; margin: 6px 0; border-radius: 6px; }
    .skel-line.lg { height: 16px; }
    .skel-line.w-40 { width: 40%; } .skel-line.w-60 { width: 60%; } .skel-line.w-80 { width: 80%; }
    .skel-row td { padding: 14px 16px; }
    @keyframes skel-shim { 0%{ transform: translateX(-100%);} 100%{ transform: translateX(100%);} }
    @media (prefers-reduced-motion: reduce) { .skel::after { animation: none; } }

    /* ----- Page transitions ----- */
    .page { animation: page-fade .24s ease-out; }
    @keyframes page-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
    @media (prefers-reduced-motion: reduce) { .page { animation: none; } }

    /* ----- Back-to-top ----- */
    #back-to-top {
      position: fixed; right: 24px; bottom: 24px; z-index: 1500;
      width: 40px; height: 40px; border-radius: 50%;
      background: #fff; color: var(--text-primary);
      border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,.08);
      display: none; align-items: center; justify-content: center;
      cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }
    #back-to-top.show { display: flex; }
    #back-to-top:hover { background: var(--bg-secondary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }

    /* ----- Row click & hover polish on nav ----- */
    .nav-item { transition: background-color .16s ease, color .16s ease; }
    .nav-item:not(.active):hover { background: rgba(22,93,255,.06); }
    /* =================== /Design System v2 =================== */

    .skip-link {
      position: absolute;
      left: -9999px;
      top: 12px;
      z-index: 3000;
      padding: 10px 18px;
      background: var(--primary);
      color: #fff;
      font-size: var(--text-sm);
      font-weight: 500;
      border-radius: var(--radius-sm);
      text-decoration: none;
      box-shadow: var(--shadow-md);
    }
    .skip-link:focus { left: 12px; outline: 2px solid #fff; outline-offset: 2px; }
    :focus:not(:focus-visible) { outline: none; }
    :focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }
    .modal-close:focus-visible { outline-offset: 0; }
    .btn, .link, .nav-item, .list-tab { -webkit-tap-highlight-color: transparent; }
    .icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .icon svg { width: 1em; height: 1em; fill: currentColor; }
    .icon-16 { width: 16px; height: 16px; font-size: 16px; }
    .icon-18 { width: 18px; height: 18px; font-size: 18px; }
    .icon-20 { width: 20px; height: 20px; font-size: 20px; }
    .icon-24 { width: 24px; height: 24px; font-size: 24px; }

    /* ========== Login ========== */
    #login-screen {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    }
    .login-box {
      width: 400px;
      padding: 48px 40px;
      background: white;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      border: 1px solid var(--border);
    }
    .login-logo { text-align: center; margin-bottom: 32px; }
    .login-logo h1 { font-size: var(--text-3xl); font-weight: var(--font-weight-semibold); letter-spacing: -.02em; }
    .login-logo .nexa { color: var(--primary); font-size: var(--text-xl); }
    .login-form .field { margin-bottom: 20px; }
    .login-form label { display: block; margin-bottom: 8px; font-size: var(--text-base); color: var(--text-primary); }
    .login-form input {
      width: 100%;
      height: var(--btn-height);
      padding: 0 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: var(--text-base);
    }
    .login-form input:focus { outline: none; border-color: var(--primary); }
    .login-form .btn-login {
      width: 100%;
      height: var(--btn-height-lg);
      background: var(--primary);
      color: white;
      border: none;
      border-radius: var(--radius-sm);
      font-size: var(--text-lg);
      font-weight: var(--font-weight-medium);
      cursor: pointer;
      margin-top: 8px;
    }
    .login-form .btn-login:hover { background: var(--primary-hover); }
    .login-form .forgot-link { display: block; text-align: right; margin-top: 8px; font-size: var(--text-sm); color: var(--primary); cursor: pointer; text-decoration: none; }
    .login-form .forgot-link:hover { text-decoration: underline; }
    .code-row { display:flex; gap:8px; align-items:stretch; }
    .code-row input { flex:1; }
    .code-row .btn-sm { flex:none; white-space:nowrap; min-width:96px; }
    .login-demo-hint { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--text-secondary); background: var(--primary-light, #eef3ff); border: 1px dashed var(--primary); border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: background .15s; }
    .login-demo-hint:hover { background: #e3ecff; }
    .login-demo-hint b { color: var(--primary); }
    .login-demo-block { margin-top: 14px; }
    .login-demo-title { text-align: center; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
    .login-demo-row { display: flex; gap: 8px; }
    .login-demo-btn { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--primary-light, #eef3ff); border: 1px dashed var(--primary); border-radius: 8px; padding: 8px 10px; cursor: pointer; transition: background .15s; text-align: left; }
    .login-demo-btn:hover { background: #e3ecff; }
    .login-demo-cred { font-size: 12px; color: var(--text-secondary); }
    .login-demo-cred b { color: var(--primary); }
    .login-demo-tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; line-height: 1.6; }
    .login-demo-tag-free { background: #eef1f5; color: #5a6474; }
    .login-demo-tag-pro { background: #e6f7ee; color: #1a9c5b; }
    .login-register-row { margin-top: 16px; text-align: center; font-size: var(--text-sm); color: var(--text-secondary); }
    .login-register-row a { color: var(--primary); font-weight: 600; text-decoration: none; margin-left: 4px; }
    .login-register-row a:hover { text-decoration: underline; }
    .login-footer { margin-top: 24px; font-size: var(--text-xs); color: var(--text-secondary); text-align: center; }
    .lang-select { padding: 4px 28px 4px 10px !important; border: 1px solid var(--border); border-radius: 4px; font-size: var(--text-sm); background-color: white; cursor: pointer; background-position: right 8px center !important; background-size: 10px !important; }
    .login-footer .lang-select, .verify-footer .lang-select { margin-bottom: 12px; }

    /* ========== Forgot Password ========== */
    #forgot-screen, #reset-pwd-screen { display: none; min-height: 100vh; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%); }
    #forgot-screen.active, #reset-pwd-screen.active { display: flex; }
    .forgot-box, .reset-pwd-box { width: 400px; padding: 48px 40px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
    .forgot-box h2, .reset-pwd-box h2 { font-size: var(--page-title-size); font-weight: var(--page-title-weight); margin-bottom: 8px; }
    .forgot-box .subtitle, .reset-pwd-box .subtitle { font-size: var(--text-base); color: var(--text-secondary); margin-bottom: 24px; }
    .forgot-back, .reset-pwd-back { font-size: var(--text-base); color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; }
    .forgot-back:hover, .reset-pwd-back:hover { text-decoration: underline; }
    .send-code-row { display: flex; gap: 12px; }
    .send-code-row input { flex: 1; }
    .send-code-row .btn-send { flex-shrink: 0; height: var(--btn-height); padding: 0 16px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); font-size: var(--btn-font); cursor: pointer; white-space: nowrap; }
    .send-code-row .btn-send:hover { background: var(--primary-hover); }
    .send-code-row .btn-send:disabled { opacity: 0.6; cursor: not-allowed; }

    /* ========== 2FA Verification ========== */
    #verify-screen { display: none; min-height: 100vh; background: white; }
    #verify-screen.active { display: flex; flex-direction: column; }
    .verify-header { padding: 24px 40px; border-bottom: 1px solid var(--border); }
    .verify-header h2 { font-size: var(--section-title-size); font-weight: var(--section-title-weight); }
    .verify-header .nexa { color: var(--primary); font-size: var(--text-base); }
    .verify-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
    .verify-box { width: 400px; }
    .verify-email { font-size: var(--text-xl); font-weight: var(--font-weight-semibold); margin-bottom: 8px; }
    .verify-restart { font-size: var(--text-base); color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; text-decoration: none; }
    .verify-restart:hover { text-decoration: underline; }
    .verify-form .field { margin-bottom: 24px; }
    .verify-form label { display: block; margin-bottom: 8px; font-size: var(--text-base); font-weight: var(--font-weight-medium); }
    .verify-form input { width: 100%; height: var(--btn-height-lg); padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: var(--text-lg); letter-spacing: 4px; }
    .verify-form input:focus { outline: none; border-color: var(--primary); }
    .verify-form .btn-verify { width: 100%; height: var(--btn-height-lg); background: var(--primary); color: white; border: none; border-radius: var(--radius-md); font-size: var(--text-lg); font-weight: var(--font-weight-medium); cursor: pointer; }
    .verify-form .btn-verify:hover { background: var(--primary-hover); }
    .verify-footer { font-size: var(--text-xs); color: var(--text-secondary); text-align: center; padding: 24px; }

    /* ========== Main App ========== */
    #main-app { display: none; min-height: 100vh; }
    #main-app.active { display: flex; }

    /* Sidebar */
    .sidebar {
      width: var(--sidebar-width);
      background: white;
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }
    .sidebar-logo {
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
    }
    .sidebar-logo h2 { font-size: var(--section-title-size); font-weight: var(--section-title-weight); }
    .sidebar-logo .nexa { color: var(--primary); font-size: var(--text-base); }
    .sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
    .nav-group-label {
      padding: 14px 24px 6px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-tertiary);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      user-select: none;
    }
    .nav-group-label:first-child { padding-top: 0; }
    .nav-item-devspec {
      margin-top: 8px;
      border-top: 1px dashed var(--border);
      padding-top: 14px;
      opacity: 0.75;
    }
    .nav-item-devspec:hover { opacity: 1; }
    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 24px;
      color: var(--text-primary);
      cursor: pointer;
      font-size: var(--text-base);
      border-left: 3px solid transparent;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .nav-item:hover { background: #f7f8fa; }
    .nav-item.active { background: #e8f3ff; color: var(--primary); border-left-color: var(--primary); font-weight: 500; }
    .nav-item .icon { width: 20px; height: 20px; color: var(--text-tertiary); }
    .nav-item.active .icon { color: var(--primary); }
    .sidebar-user {
      padding: 16px 24px;
      border-top: 1px solid var(--border);
    }
    .welcome-box { background: #f7f8fa; padding: 10px 12px; border-radius: var(--radius-sm); font-size: var(--text-xs); margin-bottom: 12px; }
    .user-email { font-size: var(--text-sm); margin-bottom: 8px; }
    .user-roles { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
    .role-tag { padding: 2px 8px; background: #e8f3ff; color: var(--primary); border-radius: 4px; font-size: var(--text-xs); }
    .sidebar-user-footer { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
    .sidebar-user .lang { flex: 1; min-width: 0; }
    .sidebar-user .lang .lang-select { width: 100%; max-width: 140px; margin: 0; }
    .sidebar-user .logout { font-size: var(--text-sm); color: var(--text-secondary); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; padding: 4px; border: none; background: none; cursor: pointer; color: var(--text-primary); border-radius: 6px; }
    .menu-toggle:hover { background: var(--bg-secondary); }
    .menu-toggle .icon { color: inherit; }
    .sidebar-user .logout:hover { color: var(--danger); }

    /* Main Content */
    .main-content {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
    }
    #main-content:focus { outline: none; }
    .page { display: none; }
    .page.active { display: block; }
    .page-title { font-size: var(--page-title-size); font-weight: var(--page-title-weight); margin-bottom: 24px; letter-spacing: -.02em; color: var(--text-primary); line-height: 1.3; }

    /* Cards & Forms */
    .card {
      background: white;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      padding: 24px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-sm);
      transition: box-shadow .2s;
    }
    .card .card { margin-bottom: 20px; }
    .card:hover { box-shadow: var(--shadow-md); }
    .form-row { display: flex; gap: 24px; margin-bottom: 20px; }
    .form-group { flex: 1; }
    .form-group.full { flex: 1 1 100%; }
    .form-group label { display: block; margin-bottom: 8px; font-size: var(--text-base); color: var(--text-primary); font-weight: var(--font-weight-normal); }
    .form-group label .req { color: var(--danger); }
    .form-group label .label-opt { color: var(--text-tertiary); font-weight: var(--font-weight-normal); margin-right: 4px; }
    .issuance-optional-panel {
      margin: 4px 0 20px;
      padding: 16px 20px;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
    }
    .issuance-optional-panel-desc {
      margin: 0 0 14px;
      font-size: var(--text-sm);
      color: var(--text-secondary);
      line-height: 1.6;
    }
    .issuance-optional-panel .form-row:last-child { margin-bottom: 0; }
    .form-group input, .form-group textarea, .form-group select {
      width: 100%;
      height: var(--btn-height);
      padding: 0 12px;
      font-size: var(--text-base);
    }
    .form-group textarea { height: 100px; padding: 10px 12px; resize: vertical; }
    .form-group input, .form-group textarea { text-transform: none; }

    /* Buttons */
    .btn { min-height: var(--btn-height); padding: 0 var(--btn-padding-x); border-radius: var(--radius-sm); font-size: var(--btn-font); font-weight: var(--font-weight-medium); cursor: pointer; border: 1px solid transparent; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
    .btn-primary { background: var(--primary); color: white; }
    .btn-primary:hover { background: var(--primary-hover); }
    .btn-primary:active { transform: scale(0.98); }
    .btn:disabled, .btn[disabled] { background: #e5e6eb !important; border-color: #d9dadd !important; color: #a0a3aa !important; cursor: not-allowed !important; box-shadow: none !important; pointer-events: none; }
    .btn-default { background: white; border-color: var(--border); color: var(--text-primary); }
    .btn-default:hover { background: #f7f8fa; }
    .btn-danger { background: var(--danger); color: white; }
    .btn-danger:hover { opacity: .9; }
    .btn-sm { min-height: var(--btn-height-sm); padding: 0 var(--btn-padding-x-sm); font-size: var(--btn-font-sm); }
    .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
    .section-header .section-title { margin: 0; }
    .form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

    /* Upload */
    .upload-zone {
      border: 2px dashed var(--border);
      border-radius: 8px;
      padding: 40px;
      text-align: center;
      cursor: pointer;
      background: #fafafa;
    }
    .upload-zone:hover { border-color: var(--primary); background: #f5faff; }
    .upload-zone .icon { width: 48px; height: 48px; font-size: 48px; color: var(--primary); margin-bottom: 12px; }
    .upload-zone .hint { font-size: var(--text-xs); color: var(--text-secondary); margin-top: 8px; }

    /* Table */
    .table-wrap { overflow-x: auto; border-radius: 8px; }
    .project-table { min-width: 800px; }
    table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
    th { background: var(--bg-secondary); padding: 12px 16px; text-align: left; font-weight: var(--font-weight-medium); border-bottom: 1px solid var(--border); font-size: var(--text-sm); color: var(--text-secondary); }
    td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; font-size: var(--text-base); }
    tr:hover { background: #fafbfc; }
    tr:last-child td { border-bottom: none; }
    .status-ok { color: var(--success); font-weight: 500; }
    .status-fail { color: var(--danger); font-weight: 500; }
    .status-pending { color: var(--primary); font-weight: 500; }
    .status-issuing { color: var(--warning); font-weight: 500; }
    .link { color: var(--primary); cursor: pointer; transition: opacity 0.2s; }
    .link:hover { text-decoration: underline; opacity: 0.85; }

    /* Tabs */
    .tabs { display: flex; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
    .tab { padding: 12px 0; cursor: pointer; color: var(--text-secondary); font-size: var(--text-base); }
    .tab:hover { color: var(--primary); }
    .tab.active { color: var(--primary); font-weight: 500; border-bottom: 2px solid var(--primary); margin-bottom: -1px; }

    /* Modal */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.45);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }
    .modal-overlay.show { display: flex; }
    .modal {
      background: white;
      border-radius: var(--radius-lg);
      width: 90%;
      max-width: 520px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: var(--shadow-lg);
      border: 1px solid var(--border);
    }
    .modal.modal-lg { max-width: 640px; }
    .modal-header {
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--bg-secondary);
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .modal-header h3 { font-size: var(--modal-title-size); font-weight: var(--modal-title-weight); }
    .modal-close { cursor: pointer; color: var(--text-tertiary); padding: 4px; border-radius: 6px; transition: color .2s, background .2s; }
    .modal-close:hover { color: var(--text-primary); background: var(--bg-secondary); }
    .modal-body { padding: 24px; }
    .modal-body .form-group { margin-bottom: 18px; }
    .input-order { max-width: 520px; width: 100%; }
    .modal-footer {
      padding: 16px 24px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: flex-end;
      gap: 12px;
    }

    /* Filter bar */
    .filter-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
    .filter-bar input, .filter-bar select { height: var(--btn-height); padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 180px; font-size: var(--text-base); }
    .filter-bar .btn { flex-shrink: 0; }
    .toolbar-spacer { margin-left: auto; }
    .control-select { height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: var(--text-base); }

    /* Breadcrumb */
    .breadcrumb { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
    .breadcrumb a { color: var(--primary); cursor: pointer; }
    .breadcrumb span { margin: 0 8px; }

    /* Alert */
    .alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: var(--text-base); }
    .alert-warning { background: #fff7e6; border: 1px solid #ffd591; color: #ad6800; }
    .alert-danger { background: #ffece8; border: 1px solid #ffccc7; color: #d4380d; }
    .alert-info { background: var(--primary-light); border: 1px solid #b3d8ff; color: var(--primary); }

    /* Toast legacy kept only for reduced-motion opt-out */
    @media (prefers-reduced-motion: reduce) {
      .toast { animation: none !important; }
      .nav-item, .btn, .card, .sidebar { transition-duration: 0.01ms !important; }
    }

    /* Empty State */
    .empty-state { text-align: center; padding: 48px 24px; color: var(--text-secondary); }
    .empty-state-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 28px; }
    .empty-state-title { font-size: var(--text-lg); font-weight: var(--font-weight-medium); color: var(--text-primary); margin-bottom: 8px; }
    .empty-state-desc { font-size: var(--text-base); margin-bottom: 20px; line-height: 1.5; }
    .empty-state .btn { margin-top: 8px; }

    /* Form Validation */
    .form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: var(--danger); }
    .form-error { font-size: var(--text-xs); color: var(--danger); margin-top: 4px; }

    /* Pagination */
    .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
    .pagination button { padding: 6px 12px; border: 1px solid var(--border); background: white; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--text-sm); min-height: var(--btn-height-sm); }
    .pagination button:hover { border-color: var(--primary); color: var(--primary); }
    .pagination .current { background: var(--primary); color: white; border-color: var(--primary); }
    .pagination-info { font-size: var(--text-xs); color: var(--text-secondary); margin-right: 12px; }

    /* Contract info */
    .contract-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; font-size: var(--text-base); }
    .contract-info .label { color: var(--text-secondary); }
    .contract-info .value { margin-top: 4px; }
    .copy-btn { cursor: pointer; margin-left: 6px; color: var(--text-tertiary); display: inline-flex; align-items: center; vertical-align: middle; padding: 2px; border-radius: 4px; transition: color .2s, background .2s; }
    .copy-btn:hover { color: var(--primary); background: var(--primary-light); }

    /* Issuance list tabs */
    .list-tabs { display: flex; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
    .list-tab { padding: 12px 0; cursor: pointer; color: var(--text-secondary); font-size: var(--text-base); position: relative; }
    .list-tab:hover { color: var(--primary); }
    .list-tab.active { color: var(--primary); font-weight: 500; border-bottom: 2px solid var(--primary); margin-bottom: -1px; }
    .list-tab .badge { background: #c9cdd4; color: white; font-size: var(--text-xs); padding: 2px 6px; border-radius: 10px; margin-left: 6px; }
    .list-tab.active .badge { background: var(--primary); }

    /* Multi-chain table grouping */
    .chain-icon { width: 20px; height: 20px; min-width: 20px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary, #666); }
    .chain-icon svg { width: 18px; height: 18px; }
    .chain-cell { min-width: 140px; white-space: nowrap; text-align: left; vertical-align: middle; }
    .chain-item { display: inline-flex; align-items: center; gap: 6px; }
    .chain-list { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
    .chain-list .chain-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
    .project-group td { border-top: 2px solid var(--border); }
    .project-group:first-child td { border-top: none; }
    .sub-row td:first-child { padding-left: 16px; }
    .project-name-cell { vertical-align: middle; min-width: 118px; }
    .project-name-wrap {
      display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    }
    .project-name-wrap > strong {
      font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text);
    }
    .project-name-wrap .tag { margin: 0; align-self: flex-start; }
    .btn-add-chain-text {
      display: inline-block; padding: 3px 10px; margin: 0;
      font-size: 12px; font-weight: 500; line-height: 1.35;
      color: #165DFF; background: #f0f5ff;
      border: 1px solid #c9ddff; border-radius: 4px;
      cursor: pointer; white-space: nowrap;
      transition: background .15s ease, border-color .15s ease, color .15s ease;
    }
    .btn-add-chain-text:hover {
      background: #e8f3ff; border-color: #91caff; color: #0d42cc;
    }
    .btn-add-chain-text:active { background: #d6e8ff; }
    .project-table thead th:first-child { min-width: 118px; }
    .btn-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
    .header-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
    .token-badge { background: #e8f3ff; color: var(--primary); padding: 4px 10px; border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: var(--font-weight-medium); }
    .data-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
    .data-card h4 { font-size: var(--subsection-size); font-weight: var(--subsection-weight); color: var(--text-secondary); margin-bottom: 8px; }
    .data-card .value { font-size: var(--text-xl); font-weight: var(--font-weight-semibold); color: var(--primary); }
    .data-summary-card { margin-bottom: 20px; }
    .data-token-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
    .data-token-logo { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#165DFF,#0D42CC); }
    .data-token-title { font-size: var(--text-2xl); font-weight: 600; margin: 0 0 6px 0; line-height: 1.35; }
    .data-token-contract { font-size: var(--text-base); color: var(--text-primary); word-break: break-all; }
    .data-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .badge-warn { background:#fff7e6; color:#ad6800; }

    /* Token Detail (Issued view design) */
    .token-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
    .status-timeline { display: flex; align-items: center; gap: 0; padding: 16px 8px 20px; margin: 0 -4px 8px; border-bottom: 1px solid var(--border); }
    .status-timeline .st-node { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 56px; flex-shrink: 0; }
    .status-timeline .st-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--border); color: var(--text-tertiary); font-size: 12px; font-weight: 600; transition: all .2s ease; }
    .status-timeline .st-label { font-size: 12px; color: var(--text-tertiary); font-weight: 500; }
    .status-timeline .st-bar { flex: 1; height: 2px; background: var(--border); min-width: 18px; margin: 0 -1px; transition: background .2s ease; transform: translateY(-12px); }
    .status-timeline .st-node.done .st-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
    .status-timeline .st-node.done .st-label { color: var(--text-primary); }
    .status-timeline .st-node.current .st-dot { background: #fff; border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px rgba(22,93,255,0.12); }
    .status-timeline .st-node.current .st-label { color: var(--primary); font-weight: 600; }
    .status-timeline .st-node.error .st-dot { background: #fff2f0; border-color: #ff4d4f; color: #ff4d4f; }
    .status-timeline .st-node.error .st-label { color: #ff4d4f; font-weight: 600; }
    .status-timeline .st-bar.done { background: var(--primary); }
    .status-timeline .st-bar.error { background: #ff4d4f; }
    @media (max-width: 860px) { .status-timeline { overflow-x: auto; padding-bottom: 8px; } }
    .token-detail-title-wrap { display: flex; align-items: center; gap: 8px; }
    .token-detail-title-wrap h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
    .status-issued { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; padding: 4px 10px; border-radius: 14px; font-size: 12px; font-weight: 600; }
    .chain-select { height: 34px; padding: 0 28px 0 10px !important; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background-color: #fff; background-position: right 8px center !important; background-size: 10px !important; }
    .token-detail-overview-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 10px; }
    .token-detail-overview-card { background: #fff; border: 1px solid #edf0f3; border-radius: 8px; padding: 10px 12px; min-height: 76px; }
    .token-detail-overview-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; line-height: 1.65; }
    .token-detail-overview-row .label { color: #86909c; }
    .token-detail-overview-row .value { color: #1d2129; font-weight: 600; margin-left: 12px; text-align: right; }
    .token-detail-overview-row .value.light { font-weight: 500; }
    .token-detail-overview-row .value.with-copy { display: inline-flex; align-items: center; gap: 4px; }
    .token-network-logos { display: inline-flex; align-items: center; gap: 8px; }
    .token-network-logo-item { display: inline-flex; align-items: center; gap: 4px; color: #4e5969; font-size: 12px; font-weight: 500; }
    .token-network-logo-item .chain-icon { width: 16px; height: 16px; min-width: 16px; }
    .token-network-logo-item .chain-icon svg { width: 14px; height: 14px; }
    .section-title { font-size: 18px; font-weight: 600; margin: 0 0 12px 0; color: var(--text-primary); line-height: 1.35; }
    .issuer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .issuer-card { border: 1px solid #edf0f3; border-radius: 8px; padding: 12px; background: #fff; }
    .issuer-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; gap: 8px; font-size: 14px; color: #1d2129; line-height: 1.35; }
    .issuer-card-header > span { flex: 1; min-width: 0; }
    .issuer-card-header .btn { flex-shrink: 0; }
    .issuer-card-body { display: grid; grid-template-columns: 1fr; gap: 6px; font-size: 13px; }
    .issuer-card-body .label { color: #86909c; margin-right: 4px; }
    .issuer-card-body > div { display: flex; justify-content: space-between; gap: 8px; }
    .token-detail-history-table thead th { background: #f7f8fa; color: #4e5969; font-size: 12px; padding: 10px 12px; }
    .token-detail-history-table tbody td { padding: 10px 12px; font-size: 13px; }
    .token-dist-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .token-dist-card { border: 1px solid #edf0f3; border-radius: 8px; padding: 12px; background: #fff; }
    .token-dist-card-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #1d2129; line-height: 1.35; }
    .token-dist-card-header > span { flex: 1; min-width: 0; }
    .token-dist-card-header .btn { flex-shrink: 0; }
    .token-dist-card-body { display: grid; grid-template-columns: 1fr; gap: 6px; font-size: 13px; }
    .token-dist-card-body > div { display: flex; justify-content: space-between; gap: 8px; }
    .token-dist-card-body .label { color: #86909c; margin-right: 4px; }
    .hint-text { font-size: var(--text-xs); color: var(--text-secondary); font-weight: var(--font-weight-normal); }
    .subsection-title { font-size: var(--subsection-size); font-weight: var(--subsection-weight); margin: 24px 0 16px 0; }
    .whitelist-section { padding: 16px; background: #fafafa; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 20px; }
    .form-card .form-group { margin-bottom: 20px; }
    .config-section-title { font-size: var(--section-title-size); font-weight: var(--section-title-weight); margin: 0 0 20px 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
    .input-readonly {
      background: #f5f5f5;
      background-image: none !important;
      color: var(--text-secondary);
    }
    input[disabled], input[readonly] {
      background-image: none !important;
    }
    .threshold-input { display: flex; align-items: center; gap: 8px; }
    .table-bordered { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
    .table-input { width: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: var(--text-sm); }
    .link-danger { color: var(--danger) !important; }
    .radio-group { display: flex; flex-direction: column; gap: 8px; }
    .radio-group label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--text-base); font-weight: var(--font-weight-normal); }
    .radio-group input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
    .radio-compact label { padding: 6px 0; }
    .radio-inline-sm { display: inline-flex; gap: 16px; align-items: center; flex-wrap: wrap; }
    .radio-inline-sm label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: var(--text-sm); font-weight: var(--font-weight-normal); margin: 0; padding: 4px 0; }
    .radio-inline-sm input[type="radio"] { width: 14px; height: 14px; margin: 0; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
    .permission-table td { vertical-align: top; white-space: normal; line-height: 1.5; }
    .kyc-page .biz-req-panel { margin-bottom: 20px; }
    .kyc-toolbar { padding: 16px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
    .kyc-toolbar .kyc-search-input { min-width: 240px; flex: 1 1 240px; max-width: 360px; }
    .kyc-table-card { padding: 0; overflow: hidden; }
    .kyc-table-wrap { border-top: 1px solid var(--border-light); }
    .kyc-table-wrap table { min-width: 980px; }
    .kyc-table-wrap th { background: #fafbfc; white-space: nowrap; }
    .kyc-table-wrap td { line-height: 1.5; }
    .kyc-address-cell { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 13px; }
    .holder-address-display { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .holder-name-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px; background: #eef4ff; color: #165dff; font-size: 12px; font-weight: 600; }
    .kyc-type-chip, .kyc-source-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
    .kyc-type-chip { background: #eef4ff; color: #165dff; }
    .kyc-source-badge { background: #f2f3f5; color: #4e5969; }
    .kyc-status-cell .status-ok, .kyc-status-cell .status-fail, .kyc-status-cell .status-kyc-pending { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
    .kyc-status-cell .status-ok { color: #00a870; background: #e8ffea; }
    .kyc-status-cell .status-fail { color: #f53f3f; background: #fff1f0; }
    .kyc-status-cell .status-kyc-pending { color: #165dff; background: #e8f3ff; }
    .kyc-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; white-space: nowrap; }
    .kyc-sign-waiting-bar { display: none; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #bedaff; border-radius: 8px; background: #f0f5ff; font-size: 13px; line-height: 1.55; color: #1d2129; }
    .kyc-sign-waiting-bar.is-visible { display: block; }
    .kyc-actions .btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; box-shadow: none; }
    .kyc-empty-state { padding: 56px 24px; margin: 8px; border: 1px dashed var(--border); border-radius: 12px; background: #fafbfc; }
    .kyc-pagination { padding: 16px 20px 20px; }
    /* 需求描述面板：体验版不展示（客户仅浏览各页面功能） */
    .req-desc-group, .biz-req-panel { display: none !important; }
    .biz-req-panel { background: var(--primary-light); border: 1px solid #b3d8ff; border-radius: var(--radius-md); padding: 10px 16px; margin-bottom: 12px; font-size: var(--text-sm); line-height: 1.65; color: var(--text-primary); transition: padding .15s ease; }
    .biz-req-panel h4 { font-size: var(--subsection-size); margin: 0; color: var(--primary); font-weight: var(--subsection-weight); display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; position: relative; padding-right: 22px; }
    .biz-req-panel h4::after { content: '▾'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-tertiary); transition: transform .15s ease; }
    .biz-req-panel.collapsed { padding: 8px 16px; margin-bottom: 8px; }
    .biz-req-panel.collapsed h4::after { transform: translateY(-50%) rotate(-90deg); }
    .biz-req-panel.collapsed > :not(h4) { display: none; }
    .biz-req-panel:not(.collapsed) h4 { margin-bottom: 10px; }
    .biz-req-panel ul { margin: 8px 0 0 16px; padding: 0; }
    .biz-req-panel li { margin-bottom: 4px; }
    .biz-req-panel.panel-product { border-left: 4px solid var(--primary); padding-left: 16px; }
    .biz-req-panel.panel-guide { background: #f7f8fa; border-color: #e5e6eb; border-left: 4px solid #86909c; }
    .biz-req-panel.panel-guide h4 { color: #4e5969; }
    .biz-req-panel.panel-prototype { background: #fffbe6; border-color: #ffe58f; border-left: 4px solid #d48806; }
    .biz-req-panel.panel-prototype h4 { color: #ad6800; }
    /* --- 统一「需求描述」折叠容器 --- */
    .req-desc-group {
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: #fff;
      margin-bottom: 16px;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    .req-desc-group-head {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      background: linear-gradient(90deg,#f0f5ff 0%,#fafbff 100%);
      border-bottom: 1px solid var(--border-light);
      cursor: pointer;
      user-select: none;
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
    }
    .req-desc-group-head .req-desc-title-icon { color: var(--primary); display: inline-flex; align-items: center; }
    .req-desc-group-head .req-desc-caret { margin-left: auto; font-size: 12px; color: var(--text-tertiary); transition: transform .15s ease; }
    .req-desc-group.collapsed .req-desc-caret { transform: rotate(-90deg); }
    .req-desc-group.collapsed .req-desc-group-body { display: none; }
    .req-desc-tabs { display: flex; gap: 2px; padding: 10px 12px 0; border-bottom: 1px solid var(--border-light); background: #fafbfc; }
    .req-desc-tab {
      padding: 6px 14px;
      border: 1px solid transparent;
      border-bottom: none;
      border-radius: 6px 6px 0 0;
      font-size: 12px;
      color: var(--text-secondary);
      cursor: pointer;
      background: transparent;
      user-select: none;
    }
    .req-desc-tab:hover { color: var(--primary); }
    .req-desc-tab.active { background: #fff; border-color: var(--border-light); color: var(--primary); font-weight: 600; position: relative; top: 1px; }
    .req-desc-tab.tab-prototype.active { color: #ad6800; border-color: #ffe58f; background: #fffdf5; }
    .req-desc-tab.tab-guide.active { color: #4e5969; }
    .req-desc-body-wrap { padding: 12px 16px; font-size: 13px; line-height: 1.7; color: var(--text-primary); }
    .req-desc-body-wrap .biz-req-panel { background: transparent !important; border: none !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
    .req-desc-body-wrap .biz-req-panel h4 { display: none; }
    .req-desc-body-wrap .biz-req-panel > :not(h4) { display: block !important; }
    .req-desc-body-wrap .biz-req-panel ul { margin: 0 0 0 20px; }
    .req-desc-body-wrap .biz-req-panel li { margin-bottom: 6px; }
    .req-desc-body-wrap .biz-req-panel p { margin: 0 0 6px; }
    .req-desc-body-wrap .biz-req-panel > *[data-panel-subitem="hidden"] { display: none !important; }
    /* 信息悬浮提示：data-tip 承载说明文本 */
    .info-tip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      height: 14px;
      margin-left: 4px;
      border-radius: 50%;
      background: rgba(22,93,255,.08);
      color: var(--primary);
      font-size: 10px;
      font-weight: 700;
      font-style: normal;
      line-height: 1;
      cursor: help;
      vertical-align: middle;
      border: 1px solid rgba(22,93,255,.2);
      transition: background .15s ease, color .15s ease;
      position: relative;
    }
    .info-tip:hover { background: var(--primary); color: #fff; }
    .info-tip::before {
      content: attr(data-tip);
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%);
      white-space: normal;
      min-width: 180px;
      max-width: 280px;
      padding: 8px 10px;
      background: #1d2129;
      color: #fff;
      font-size: 12px;
      font-weight: 400;
      line-height: 1.5;
      border-radius: 6px;
      box-shadow: 0 6px 16px rgba(0,0,0,.18);
      opacity: 0;
      pointer-events: none;
      transition: opacity .15s ease;
      z-index: 50;
      text-align: left;
    }
    .info-tip::after {
      content: '';
      position: absolute;
      bottom: calc(100% + 2px);
      left: 50%;
      transform: translateX(-50%);
      border: 5px solid transparent;
      border-top-color: #1d2129;
      opacity: 0;
      transition: opacity .15s ease;
      pointer-events: none;
    }
    .info-tip:hover::before,
    .info-tip:hover::after,
    .info-tip:focus::before,
    .info-tip:focus::after { opacity: 1; }
    /* --- Demo 场景切换器 --- */
    .demo-launcher {
      position: fixed;
      right: 16px;
      bottom: 16px;
      z-index: 9998;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
    }
    .demo-launcher-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 999px;
      background: #165dff;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      box-shadow: 0 6px 16px rgba(22,93,255,.28);
      cursor: pointer;
      border: none;
      transition: transform .15s ease, box-shadow .15s ease;
    }
    .demo-launcher-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(22,93,255,.36); }
    .demo-scenario-panel {
      display: none;
      width: 320px;
      max-height: 70vh;
      overflow-y: auto;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 16px 48px rgba(0,0,0,.18);
      padding: 14px;
    }
    .demo-scenario-panel.show { display: block; }
    .demo-scenario-panel h4 {
      margin: 0 0 8px;
      font-size: 14px;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .demo-scenario-panel p.hint { margin: 0 0 10px; font-size: 12px; color: var(--text-secondary); line-height: 1.55; }
    .demo-scenario-list { display: flex; flex-direction: column; gap: 6px; }
    .demo-scenario-item {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
      padding: 10px 12px;
      border: 1px solid var(--border-light);
      border-radius: 8px;
      background: #fafbfc;
      cursor: pointer;
      transition: border-color .15s ease, background .15s ease, transform .15s ease;
    }
    .demo-scenario-item:hover { border-color: var(--primary); background: #f0f5ff; transform: translateX(-2px); }
    .demo-scenario-item .scn-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
    .demo-scenario-item .scn-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
    .demo-scenario-item .scn-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.45; }
    .demo-scenario-item .scn-tag { flex-shrink: 0; padding: 2px 8px; font-size: 11px; border-radius: 999px; background: rgba(22,93,255,.08); color: var(--primary); font-weight: 600; white-space: nowrap; }
    .demo-scenario-item .scn-tag.tag-warn { background: rgba(255,125,0,.08); color: #d46b08; }
    .demo-scenario-item .scn-tag.tag-ok { background: rgba(22,163,74,.1); color: #16a34a; }
    .demo-scenario-item .scn-tag.tag-muted { background: #f2f3f5; color: #86909c; }
    .demo-scenario-divider {
      margin: 10px 0 6px;
      padding-top: 8px;
      border-top: 1px dashed var(--border-light);
      font-size: 11px;
      font-weight: 600;
      color: var(--text-tertiary);
      letter-spacing: .5px;
      text-transform: uppercase;
    }
    /* 中英文字体微调：英文环境下收紧行距，避免大段文字堆积 */
    html[lang="en"] body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
    html[lang="en"] .biz-req-panel li,
    html[lang="en"] .req-desc-body-wrap { line-height: 1.6; letter-spacing: 0; }
    html[lang="zh-TW"] body,
    html[lang="zh-CN"] body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'PingFang TC', 'Microsoft YaHei', 'Source Han Sans SC', 'Segoe UI', sans-serif; }
    html[lang^="zh"] .req-desc-body-wrap { letter-spacing: .01em; }
    td .btn, td .link { margin-right: 8px; }
    td .link:last-child { margin-right: 0; }
    .dynamic-fields .field-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
    .dynamic-fields .field-row input { flex: 1; }
    /* Token Distribute Modal */
    .dist-modal-upload { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--bg-secondary); border: 1px dashed var(--border); border-radius: var(--radius-md); margin-bottom: 24px; cursor: pointer; transition: border-color .2s, background .2s; }
    .dist-modal-upload:hover { border-color: var(--primary); background: var(--primary-light); }
    .dist-modal-upload .upload-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: white; border-radius: var(--radius-sm); color: var(--primary); }
    .dist-modal-upload .upload-icon svg { width: 24px; height: 24px; }
    .dist-modal-upload .upload-text { flex: 1; font-size: var(--text-sm); color: var(--text-secondary); }
    .dist-modal-upload .upload-text strong { color: var(--text-primary); font-weight: 500; }
    .dist-modal-section { margin-bottom: 24px; }
    .dist-modal-section-title { font-size: var(--subsection-size); font-weight: var(--subsection-weight); color: var(--text-primary); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
    .dist-addr-table { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
    .dist-addr-table table { width: 100%; border-collapse: collapse; }
    .dist-addr-table th { background: var(--bg-secondary); padding: 10px 14px; text-align: left; font-size: var(--text-xs); font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
    .dist-addr-table th:last-child { width: 56px; text-align: center; }
    .dist-addr-table td { padding: 8px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
    .dist-addr-table tr:last-child td { border-bottom: none; }
    .dist-addr-table input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--text-sm); }
    .dist-addr-table input:focus { outline: none; border-color: var(--primary); }
    .dist-addr-table .dist-addr-col { min-width: 0; }
    .dist-addr-table .dist-qty-col { width: 140px; }
    .dist-addr-table .dist-action-col { width: 56px; text-align: center; }
    .dist-addr-table .dist-action-col .link { font-size: var(--text-lg); padding: 4px; line-height: 1; opacity: 0.6; }
    .dist-addr-table .dist-action-col .link:hover { opacity: 1; }
    .dist-add-row-wrap { padding: 10px 14px; background: var(--bg-secondary); border-top: 1px solid var(--border); }
    .dist-sig-info { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-secondary); border-radius: var(--radius-md); margin-top: 20px; }
    .dist-sig-info .sig-label { font-size: var(--text-sm); color: var(--text-secondary); }
    .dist-sig-info .sig-value { font-size: var(--text-sm); font-weight: 500; color: var(--text-primary); }
    .dist-sig-info .hint-text { margin: 0; margin-left: auto; font-size: var(--text-xs); }
    /* Distribution Platform (ERC1404) */
    .dist-platform-card { border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-top: 16px; background: #fafbfc; }
    .dist-platform-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
    .dist-platform-row .form-group { flex: 1; min-width: 200px; }
    .dist-platform-row .form-group input { width: 100%; }
    .dist-addr-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
    .dist-addr-row input { flex: 1; }
    .dist-addr-row .btn-sm { flex-shrink: 0; }
    /* Issuance step2 is info-entry only, no address management actions */
    #issuance-step-pane-2 button[onclick*="openIssuanceDistAddressStatus"] { display: none !important; }
    /* Pending sign-in-progress pill (Safe multisig waiting) */
    .dist-pending-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: #fff7e6; color: #ad6800; font-size: 12px; font-weight: 500; border: 1px solid #ffd591; white-space: nowrap; }
    .dist-pending-dot { width: 8px; height: 8px; border-radius: 50%; background: #ad6800; box-shadow: 0 0 0 0 rgba(173,104,0,.7); animation: dist-pending-pulse 1.4s infinite; }
    .dist-pending-pill.is-inline { padding: 0 8px; }
    .dist-pending-inline { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: #fff7e6; color: #ad6800; font-size: 11px; font-weight: 500; border: 1px solid #ffd591; vertical-align: middle; }
    .dist-pending-inline::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ad6800; animation: dist-pending-pulse 1.4s infinite; }
    .dist-pending-actions { display: inline-flex; gap: 10px; margin-left: 6px; }
    .dist-pending-actions .link { font-size: 12px; }
    .dist-pending-banner { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fff7e6; border: 1px solid #ffd591; color: #874d00; font-size: 12px; }
    .dist-pending-banner .dist-pending-dot { background: #874d00; }
    /* Generic Safe-sign in-progress button state (reusable across pages) */
    .status-deploying { color: #ad6800 !important; font-weight: 500 !important; }
    .btn.is-signing,
    .btn.is-signing:hover,
    .btn.is-signing:focus,
    .btn.is-signing:active {
      background: #fff7e6 !important;
      color: #ad6800 !important;
      border: 1px solid #ffd591 !important;
      cursor: not-allowed !important;
      pointer-events: none;
      box-shadow: none !important;
    }
    .btn-pending-dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
      margin-left: 8px;
      vertical-align: middle;
      animation: dist-pending-pulse 1.4s infinite;
    }
    .safe-sign-sim { display: inline-flex; gap: 10px; margin-left: 8px; vertical-align: middle; }
    .safe-sign-sim .link { font-size: 12px; }
    @keyframes dist-pending-pulse {
      0% { box-shadow: 0 0 0 0 rgba(173,104,0,.55); }
      70% { box-shadow: 0 0 0 6px rgba(173,104,0,0); }
      100% { box-shadow: 0 0 0 0 rgba(173,104,0,0); }
    }

    /* Contract Management */
    .contract-page-header { margin-bottom: 24px; }
    .contract-hero { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
    .contract-title { font-size: var(--text-xl); font-weight: var(--section-title-weight); margin: 0; display: flex; align-items: center; gap: 4px; line-height: 1.4; }
    .contract-main-card { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; }
    .contract-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--border); font-size: var(--text-base); }
    .contract-pane { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-secondary); padding: 16px; }
    .contract-pane h4 { font-size: var(--subsection-size); font-weight: var(--subsection-weight); margin-bottom: 12px; color: var(--text-primary); }
    .info-row { margin-bottom: 8px; line-height: 1.6; }
    .contract-tab-wrap { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px 18px; background: #fff; }
    .contract-tab-wrap .tabs { margin-bottom: 8px; }
    .contract-tab-wrap .tab-content { padding-top: 6px; }
    .contract-tab-notice { margin: 8px 0 14px; font-size: var(--text-xs); color: var(--text-tertiary); }
    .contract-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
    .contract-actions-mint { min-height: 36px; }
    .contract-addr-invalid { display: flex; align-items: center; gap: 12px; font-size: var(--text-sm); }
    .contract-addr-invalid .hint-text { color: var(--danger); }
    #page-contract .breadcrumb { margin-bottom: 10px !important; }
    #page-contract .contract-breadcrumb { margin-bottom: 8px; }
    #page-contract .biz-req-panel { margin: 0 0 14px; }
    #page-contract .contract-main-card .form-group { margin-bottom: 14px; }
    #page-contract .contract-main-card .form-group:last-child { margin-bottom: 0; }
    #page-contract .contract-main-card label { display: block; margin-bottom: 6px; font-size: var(--text-sm); color: var(--text-secondary); }
    #page-contract .contract-main-card input[type="text"],
    #page-contract .contract-main-card select,
    #page-contract .contract-main-card textarea { width: 100%; min-height: 40px; border-radius: 8px; border: 1px solid var(--border); padding: 9px 12px; background: #fff; }
    #page-contract .contract-main-card textarea { min-height: 88px; resize: vertical; }
    #page-contract .contract-main-card input[disabled] { background: var(--bg-secondary); color: var(--text-secondary); }
    #page-contract .contract-main-card .table-wrap { border: 1px solid var(--border); border-radius: 8px; background: #fff; }
    #page-contract .contract-main-card .table-wrap table { margin: 0; }
    #page-contract .contract-main-card .table-wrap th { background: #fafbfc; }
    #page-contract .contract-main-card .table-wrap td input { min-height: 34px; border-radius: 6px; }
    #page-contract .contract-main-card .btn-sm { min-width: 88px; }
    #page-contract .contract-main-card .link { display: inline-flex; align-items: center; }
    #page-contract #tab-multisig .form-group + .form-group { margin-top: 10px; }
    #page-contract .contract-back-link { display: inline-flex; align-items: center; margin-right: 4px; }
    #page-contract .contract-info-indent { padding-left: 12px; }
    #page-contract .contract-info-gap-top { margin-top: 12px; }
    #page-contract .contract-signer-block { padding-left: 12px; margin-top: 8px; }
    #page-contract .contract-signer-meta { font-size: 12px; color: var(--text-secondary); }
    #page-contract .contract-op-type { margin-bottom: 16px; }
    #page-contract .contract-qty-hint { font-size: 12px; color: var(--text-secondary); margin-top: -8px; }
    #page-contract .contract-sig-group { margin-bottom: 16px; }
    #page-contract .contract-sig-readonly { padding: 10px 12px; background: var(--bg-secondary, #f5f5f5); border-radius: 6px; color: var(--text-secondary); }
    #page-contract .contract-hint-top { margin-top: 6px; }
    #page-contract .contract-inline-input-sm { width: 200px; max-width: 100%; display: inline-block; }
    #page-contract .contract-inline-hint { font-size: 12px; color: var(--text-secondary); margin-left: 8px; }
    #page-contract .contract-threshold-input { width: 100px; max-width: 100%; display: inline-block; }
    #page-contract .contract-threshold-hint { font-size: 12px; color: var(--text-secondary); margin-left: 8px; }

    /* Deploy flow (Safe create -> Token create) */
    .deploy-meta { display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-secondary); margin-bottom: 16px; }
    .deploy-meta .label { display:block; font-size: var(--text-xs); color: var(--text-secondary); margin-bottom: 2px; }
    .deploy-meta .value { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); word-break: break-word; }
    .deploy-steps { display: flex; flex-direction: column; gap: 12px; }
    .deploy-step { border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; padding: 14px 14px 12px; }
    .deploy-step-hd { display:flex; align-items:flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .deploy-step-title { display:flex; align-items:center; gap: 10px; font-weight: 600; }
    .deploy-step .badge { display:inline-flex; align-items:center; padding: 3px 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; border: 1px solid var(--border); color: var(--text-secondary); background: var(--bg-secondary); }
    .deploy-step .badge.ok { color: var(--success); border-color: rgba(0,180,42,.25); background: var(--success-bg); }
    .deploy-step .badge.warn { color: var(--warning); border-color: rgba(255,125,0,.25); background: var(--warning-bg); }
    .deploy-step .badge.signing { color: #ad6800; border-color: #ffd591; background: #fff7e6; gap: 6px; }
    .deploy-step .badge.signing::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ad6800; animation: dist-pending-pulse 1.4s infinite; }
    .deploy-step.is-signing { background: linear-gradient(180deg, #fff7e6 0%, #fffbf0 100%) !important; border-color: #ffd591 !important; box-shadow: 0 0 0 3px rgba(173,104,0,.08); }
    #deploy-flow-progress-banner { display: none; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #fff7e6; border: 1px solid #ffd591; color: #874d00; font-size: 13px; line-height: 1.5; }
    #deploy-flow-progress-banner.is-active { display: flex; }
    #deploy-flow-progress-banner .dist-pending-dot { background: #874d00; }
    #deploy-demo-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; padding: 8px 12px; border: 1px dashed #c9cdd4; border-radius: 8px; background: #fafbfc; font-size: 12px; }
    #deploy-demo-toolbar .deploy-demo-toolbar-label { color: var(--text-tertiary); font-weight: 500; }
    #deploy-demo-toolbar .link { font-size: 12px; padding: 0; background: transparent; border: 0; cursor: pointer; }
    .deploy-step .badge.fail { color: var(--danger); border-color: rgba(245,63,63,.25); background: var(--danger-bg); }
    .deploy-step-actions { display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }
    .deploy-step-bd { margin-top: 10px; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
    .deploy-footer-hint { margin-top: 14px; font-size: var(--text-xs); color: var(--text-tertiary); }

    /* Signature mode linkage */
    #page-issuance-sig.sig-single-mode #sig-contract-signers th:nth-child(3),
    #page-issuance-sig.sig-single-mode #sig-contract-signers td:nth-child(3),
    #page-issuance-sig.sig-single-mode #sig-issuance-signers th:nth-child(3),
    #page-issuance-sig.sig-single-mode #sig-issuance-signers td:nth-child(3),
    #page-issuance-sig.sig-single-mode #sig-issuance-signers th:nth-child(4),
    #page-issuance-sig.sig-single-mode #sig-issuance-signers td:nth-child(4) { display: none; }
    .deploy-next-action { margin-bottom: 12px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm); background: #fafbfd; font-size: var(--text-sm); color: var(--text-secondary); }
    .deploy-next-action strong { color: var(--text-primary); }


    /* Signature Config UX */
    .sig-page .biz-req-panel { margin-bottom: 14px; }
    .issuance-flow-stepper { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
    .issuance-flow-step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-secondary); font-size: var(--text-sm); }
    .issuance-flow-step .num { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #c9cdd4; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
    .issuance-flow-step.active { border-color: #91caff; background: #e6f4ff; color: var(--primary); font-weight: 600; }
    .issuance-flow-step.active .num { border-color: var(--primary); color: var(--primary); background: #fff; }
    .issuance-flow-step.done { border-color: #b7eb8f; background: #f6ffed; color: #389e0d; }
    .issuance-flow-step.done .num { border-color: #52c41a; color: #389e0d; background: #fff; }
    .issuance-step-pane { display: none; }
    .issuance-step-pane.active { display: block; }
    .sig-config-card { border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
    .sig-unified-card { background: #f7f8fa; border: none; box-shadow: none; padding: 0; }
    .sig-page .biz-req-panel { margin-bottom: 16px; }
    .sig-page .page-title { margin-bottom: 18px; }
    .sig-page .issuance-flow-stepper { margin-bottom: 20px; }
    .sig-page-section {
      margin-top: 18px;
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: linear-gradient(180deg, #fcfdff 0%, #ffffff 100%);
      box-shadow: var(--shadow-sm);
    }
    .sig-page-section .config-section-title {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }
    .sig-page-section .config-section-title::before,
    .sig-unified-head-main .config-section-title::before {
      content: "";
      width: 6px;
      height: 20px;
      border-radius: 999px;
      background: var(--primary);
      flex-shrink: 0;
    }
    .sig-section-hint {
      margin: -2px 0 16px;
      color: var(--text-secondary);
      line-height: 1.6;
    }
    .sig-unified-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin: 0;
      padding: 18px 20px;
      border: 1px solid #d6e4ff;
      border-radius: var(--radius-lg);
      background: linear-gradient(135deg, #eef6ff 0%, #ffffff 62%);
      box-shadow: var(--shadow-sm);
    }
    .sig-unified-head-main { flex: 1; min-width: 0; }
    .sig-unified-head-main .config-section-title { margin-bottom: 10px; }
    .sig-perm-panel {
      margin-top: 14px;
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: #fff;
      box-shadow: var(--shadow-sm);
    }
    .sig-action-bar {
      margin-top: 18px;
      padding-top: 12px;
      border-top: 1px solid #edf0f3;
    }
    .sig-mode-card { background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
    .sig-config-card .config-section-title { margin-bottom: 16px; }
    .sig-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 10px; }
    .sig-mode-switch label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
    .sig-safe-box { border: 1px dashed #bfd4ff; background: #f5f9ff; border-radius: var(--radius-md); padding: 16px; }
    .sig-safe-box > label { font-weight: 600; margin-bottom: 8px; display: inline-block; }
    .safe-source-row { margin-top: 8px; }
    .safe-source-row select, .safe-source-row input { background: #fff; }
    .sig-source-inline { flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .sig-source-inline label { min-height: 32px; }
    #sig-mode-hint { padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.86); color: var(--text-primary); border: 1px solid #dbe7ff; }
    .sig-config-card .form-group { margin-bottom: 14px; }
    .sig-config-card .form-group > label { font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
    .sig-config-card .table-wrap { border-radius: var(--radius-md); border: 1px solid #edf0f3; }
    .sig-config-card .table-wrap table thead th { background: #fafbfd; }
    .sig-config-card .threshold-input { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
    .sig-config-card .threshold-input input { width: 54px !important; border: none; background: #f7f8fa; border-radius: 6px; height: 32px; }
    .sig-config-card .threshold-input span { color: var(--text-secondary); font-weight: 600; }
    .sig-actions { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 18px; position: sticky; bottom: 0; background: #fff; z-index: 2; }
    .sig-mode-banner { display:none; margin: 0 0 12px 0; padding: 10px 12px; border-radius: 8px; font-size: var(--text-sm); line-height: 1.5; }
    .sig-mode-banner.plugin { background:#f0f9ff; border:1px solid #91d5ff; color:#0958d9; }
    .sig-mode-banner.safe { background:#f6ffed; border:1px solid #b7eb8f; color:#237804; }
    #page-safe-config.safe-layout {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .safe-section-title {
      margin: 2px auto 0;
      width: 100%;
      max-width: 1360px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      letter-spacing: .02em;
    }
    .safe-config-toolbar {
      display:flex;
      justify-content:flex-start;
      align-items:flex-start;
      gap:16px;
      margin-bottom:16px;
      padding:18px 20px;
      border:1px solid var(--border);
      border-radius:var(--radius-lg);
      background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);
      box-shadow:0 6px 18px rgba(20,33,56,.06);
    }
    .safe-config-toolbar .hint-text { max-width: 720px; line-height: 1.6; color: var(--text-secondary); }
    .safe-config-toolbar-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; flex:1; justify-content:flex-start; }
    #page-safe-config .biz-req-panel { border-radius: var(--radius-lg); }
    #page-safe-config .safe-config-toolbar,
    #page-safe-config .safe-config-filter-bar,
    #page-safe-config .safe-config-list-card {
      max-width: 1360px;
      margin-left: auto;
      margin-right: auto;
    }
    #page-safe-config .safe-config-toolbar .safe-config-filter-bar {
      max-width: none;
      margin-left: 0;
      margin-right: 0;
    }
    .safe-config-filter-bar {
      display:flex;
      align-items:flex-start;
      justify-content:flex-start;
      gap:12px;
      margin-bottom:0;
      padding:0;
      border:none;
      border-radius:0;
      background:transparent;
      box-shadow:none;
      flex-wrap:wrap;
    }
    .safe-config-filter-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      padding: 4px 10px;
      border-radius: 999px;
      background: #f2f3f5;
      border: 1px solid #e5e6eb;
    }
    .safe-config-filter-controls {
      display:flex;
      align-items:center;
      justify-content:flex-start;
      gap:10px;
      flex-wrap:wrap;
    }
    .safe-config-filter-item { display:flex; align-items:center; gap:8px; flex: 0 1 auto; }
    .safe-config-filter-item label { font-size:13px; color:var(--text-secondary); margin:0; white-space:nowrap; }
    .safe-config-filter-item select { min-width:180px; height:32px; padding:0 32px 0 12px !important; font-size:13px; }
    #safe-filter-reset { padding:4px 12px; font-size:12px; }
    .safe-config-filter-summary { margin-left:0; font-size:12px; color:var(--text-secondary); }
    .safe-config-filter-summary .filter-chip {
      display:inline-flex; align-items:center; gap:6px;
      padding:2px 10px;
      background:rgba(22,93,255,.08);
      border:1px solid rgba(22,93,255,.2);
      border-radius:999px;
      color:#1d4ed8;
      font-weight:500;
    }
    .safe-count-badge {
      display:inline-block;
      margin-left:8px;
      padding:2px 10px;
      font-size:12px;
      font-weight:500;
      color:var(--text-secondary);
      background:var(--bg-muted, #f0f2f5);
      border-radius:999px;
      vertical-align:middle;
    }
    .safe-count-badge.is-filtered {
      color:#1d4ed8;
      background:rgba(22,93,255,.08);
    }
    .safe-config-split {
      display:grid;
      grid-template-columns: 1fr;
      gap:16px;
      align-items:start;
    }
    .safe-list-area {
      width: 100%;
      max-width: 1360px;
      margin: 0 auto;
      padding: 0;
      border: none;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }
    .safe-list-tabs {
      display:flex;
      align-items:center;
      gap: 24px;
      margin: 0 auto 2px;
      width: 100%;
      max-width: 1360px;
      border-bottom: 1px solid var(--border);
      padding: 0 4px;
    }
    .safe-list-actions {
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding-bottom: 8px;
    }
    #page-safe-config .safe-config-toolbar .btn,
    #page-safe-config .safe-list-actions .btn {
      height: 32px;
      min-height: 32px;
      padding: 0 12px;
      font-size: 12px;
      line-height: 32px;
      border-radius: 6px;
    }
    .safe-list-tab {
      padding: 10px 2px;
      color: var(--text-secondary);
      border-bottom: 2px solid transparent;
      cursor: pointer;
      font-weight: 600;
      transition: color .2s ease, border-color .2s ease;
    }
    .safe-list-tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }
    .safe-list-panel { display: none; }
    .safe-list-panel.active { display: block; }
    .safe-config-list-card,
    .safe-config-editor {
      border:1px solid var(--border);
      border-radius:var(--radius-lg);
      background:#fff;
      box-shadow:0 8px 24px rgba(20,33,56,.06);
      overflow:visible;
    }
    .safe-config-list-card { padding:0; }
    .safe-config-list-head,
    .safe-config-editor-head {
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      padding:16px 18px;
      border-bottom:1px solid var(--border);
      background:#fafbfd;
      position: relative;
      z-index: 2;
      overflow: visible;
    }
    #page-safe-config .safe-config-list-head .info-tip { z-index: 30; }
    .safe-config-list-head h3,
    .safe-config-editor-head h3 { margin:0; font-size:var(--section-title-size); font-weight:var(--section-title-weight); }
    .safe-config-list-head .hint-text,
    .safe-config-editor-head .hint-text { margin:0; }
    .safe-config-list-card .table-wrap { padding:0 18px 8px; }
    .safe-config-list-card table { min-width: 880px; }
    .safe-config-list-card table { table-layout: fixed; }
    .safe-config-list-card th {
      white-space:nowrap;
      background:#f7f9fc;
      border-bottom:1px solid #e9edf3;
      color:#4e5969;
      font-weight:600;
    }
    .safe-config-list-card td {
      vertical-align:middle;
      border-bottom:1px solid #f0f2f5;
      padding-top:12px;
      padding-bottom:12px;
      font-size: 13px;
    }
    .safe-config-list-card th.safe-col-status,
    .safe-config-list-card td.safe-col-status {
      text-align: center;
      vertical-align: middle;
    }
    .safe-config-list-card th.safe-col-actions,
    .safe-config-list-card td.safe-col-actions {
      width: 170px;
      min-width: 170px;
      text-align: left;
      vertical-align: middle;
    }
    .safe-config-list-card tbody tr:hover { background:#f8fbff; }
    .safe-name-cell { min-width: 180px; }
    .safe-name-main { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-weight:600; color:var(--text-primary); }
    .safe-default-tag { display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border-radius:999px; background:#e6f4ff; color:#0958d9; font-size:12px; font-weight:600; }
    .safe-address-cell {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 12px;
      line-height: 1.6;
      color: var(--text-secondary);
      word-break: break-all;
      min-width: 200px;
    }
    .safe-threshold-badge {
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:56px;
      min-height:28px;
      padding:0 10px;
      border-radius:999px;
      background:#eef3ff;
      color:#165dff;
      font-size:12px;
      font-weight:600;
      border:1px solid rgba(22,93,255,.2);
    }
    .safe-action-group { display:flex; gap:10px; flex-wrap:wrap; white-space:nowrap; align-items:center; }
    .safe-action-group .btn.btn-sm { min-width:78px; }
    #page-safe-config .safe-status-badge {
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:76px;
      height:24px;
      border-radius:999px;
      font-size:12px;
      font-weight:600;
      line-height:1;
      margin: 0 auto;
      white-space: nowrap;
    }
    #page-safe-config .safe-status-badge.status-ok {
      color:var(--success);
      background:var(--success-bg);
      border:1px solid rgba(0,180,42,.2);
    }
    #page-safe-config .safe-status-badge.status-pending {
      color:var(--warning);
      background:var(--warning-bg);
      border:1px solid rgba(255,125,0,.2);
    }
    #modal-safe-deploy-confirm .modal { max-width: 760px; width: 92%; }
    #modal-safe-deploy-confirm .modal-body { background:#fcfdff; }
    #modal-safe-deploy-confirm .table-wrap { border-radius:10px; }
    #modal-safe-deploy-confirm td:first-child {
      width: 180px;
      color: var(--text-secondary);
      background: #f7f9fc;
      font-weight: 600;
      white-space: nowrap;
    }
    .safe-config-editor-head .hint-text { color: var(--text-secondary); }
    .safe-config-editor-body { padding:18px; }
    .safe-config-editor .form-row { gap:16px; margin-bottom:16px; }
    .safe-config-editor .form-group { margin-bottom:16px; }
    .safe-config-editor .form-group label { font-weight:600; color:var(--text-primary); }
    .safe-config-editor .form-actions { margin-top:8px; padding-top:16px; border-top:1px solid var(--border-light); }
    .safe-editor-modal .modal { max-width: 720px; width: 92%; }
    .safe-editor-modal .modal-body { padding: 0; }
    .safe-editor-modal .safe-config-editor { border:none; box-shadow:none; border-radius:0; }
    .nav-item { cursor: pointer; }
    .sig-mode-toggle { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 0; flex-shrink: 0; }
    .sig-mode-toggle .btn {
      min-height: 40px;
      padding: 8px 18px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text-secondary);
      font-weight: 600;
    }
    .sig-mode-toggle .btn.active {
      color: #fff;
      border-color: #165dff;
      background: #165dff;
    }
    #page-issuance-sig #sig-single-mode-panel,
    #page-issuance-sig #sig-safe-mode-panel { display: none; }
    #page-issuance-sig[data-sig-mode="metamask"] #sig-single-mode-panel { display: block !important; }
    #page-issuance-sig[data-sig-mode="safe"] #sig-safe-mode-panel { display: block !important; }
    .sig-page.sig-existing-lock #sig-contract-signer-group .link,
    .sig-page.sig-existing-lock #sig-issuance-signer-group .link,
    .sig-page.sig-existing-lock #sig-initiator-email-group .link { pointer-events: none; color: #c9cdd4; text-decoration: none; }
    .sig-page.sig-existing-lock #sig-contract-signer-group .link-danger,
    .sig-page.sig-existing-lock #sig-issuance-signer-group .link-danger,
    .sig-page.sig-existing-lock #sig-initiator-email-group .link-danger { display: none !important; }
    .sig-page.sig-existing-lock #sig-contract-signer-group input,
    .sig-page.sig-existing-lock #sig-issuance-signer-group input,
    .sig-page.sig-existing-lock #sig-initiator-email-group input,
    .sig-page.sig-existing-lock #sig-contract-threshold-group input,
    .sig-page.sig-existing-lock #sig-issuance-threshold-group input,
    .sig-page.sig-existing-lock #sig-single-contract-group input,
    .sig-page.sig-existing-lock #sig-single-issuance-group input { background: #f2f3f5 !important; color: #86909c; }
    .sig-page.sig-metamask-existing-lock #sig-single-contract-group input,
    .sig-page.sig-metamask-existing-lock #sig-single-issuance-group input { background: #f2f3f5 !important; color: #86909c; }
    #page-issuance-sig.sig-single-mode .sig-mm-email-row { display: none !important; }
    .sig-safe-address-card { margin-top: 16px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
    .sig-safe-address-card > .config-section-title { margin-top: 0; }
    .sig-subsection-card {
      margin-top: 16px;
      padding: 16px;
      border: 1px solid #edf0f3;
      border-radius: var(--radius-md);
      background: #fff;
    }
    .sig-subsection-card:first-of-type,
    .sig-readonly-section:first-of-type { margin-top: 0; }
    .sig-subsection-card .config-section-title,
    .sig-readonly-section .config-section-title { margin-top: 0; margin-bottom: 12px; }
    .sig-summary-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 12px;
    }
    .sig-summary-item {
      padding: 12px 14px;
      border-radius: var(--radius-md);
      border: 1px solid #e5e6eb;
      background: rgba(255,255,255,0.88);
    }
    .sig-summary-item strong {
      display: block;
      margin-bottom: 6px;
      font-size: var(--text-sm);
      color: var(--text-secondary);
      font-weight: 600;
    }
    .sig-summary-item span {
      display: block;
      color: var(--text-primary);
      line-height: 1.5;
      font-size: var(--text-base);
    }
    .sig-demo-toggle {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 14px;
      padding: 10px 12px;
      border: 1px dashed var(--border);
      border-radius: var(--radius-md, 8px);
      background: rgba(22,93,255,.03);
    }
    .sig-demo-toggle-label {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
    }
    .sig-demo-toggle .btn {
      padding: 4px 14px;
      font-size: 12px;
    }
    .sig-demo-toggle .btn.active {
      background: #165dff;
      border-color: #165dff;
      color: #fff;
    }
    .sig-demo-toggle-hint {
      flex-basis: 100%;
      margin: 2px 0 0;
      font-size: 12px;
      color: var(--text-secondary);
    }
    .sig-single-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .sig-safe-source-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 14px;
      margin-bottom: 10px;
    }
    .sig-safe-source-toolbar .sig-safe-source-select {
      flex: 1 1 200px;
      min-width: 0;
      max-width: 100%;
      height: 36px;
      padding: 0 10px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: #fff;
      font-size: var(--text-base);
    }
    .sig-safe-source-toolbar .sig-safe-source-or {
      flex: 0 0 auto;
      color: var(--text-secondary);
      font-size: var(--text-sm);
      user-select: none;
    }
    .sig-safe-source-toolbar .btn {
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .sig-config-state-card {
      margin-bottom: 14px;
      padding: 14px 16px;
      border-radius: var(--radius-md);
      border: 1px solid #d6e4ff;
      background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    }
    .sig-config-state-card h4 {
      margin: 0 0 8px;
      font-size: var(--text-base);
      font-weight: 600;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .sig-config-state-card p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
    .sig-config-state-card .sig-config-state-lead { margin: 0; font-size: 13px; color: var(--text-secondary); }
    .sig-mode-hint-line {
      margin: 6px 0 10px;
      padding: 6px 10px;
      font-size: 13px;
      color: var(--text-secondary);
      background: #f7f9ff;
      border-left: 3px solid var(--primary);
      border-radius: 4px;
    }
    .sig-section-details {
      margin: 0 0 12px;
      border: 1px dashed var(--border);
      border-radius: 6px;
      background: #fbfcfe;
    }
    .sig-section-details > summary {
      padding: 6px 12px;
      cursor: pointer;
      font-size: 12px;
      color: var(--text-secondary);
      list-style: none;
      user-select: none;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .sig-section-details > summary::-webkit-details-marker { display: none; }
    .sig-section-details > summary::before {
      content: '▸';
      font-size: 10px;
      color: var(--text-tertiary);
      transition: transform .15s ease;
    }
    .sig-section-details[open] > summary::before { transform: rotate(90deg); }
    .sig-section-details[open] > summary { color: var(--primary); font-weight: 500; border-bottom: 1px dashed var(--border); }
    .sig-section-details > .sig-summary-grid { padding: 10px 12px; margin: 0; }
    /* 在 h3 里以 inline 形式承载 info-tip，保持基线对齐 */
    .sig-safe-split-card-head h3,
    .config-section-title { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
    .sig-config-state-card .form-actions {
      justify-content: flex-start;
      margin-top: 12px;
    }
    .sig-readonly-section {
      margin-top: 16px;
      padding: 16px;
      border-radius: var(--radius-md);
      border: 1px solid #edf0f3;
      background: #fbfcfe;
    }
    .sig-safe-multisig-unified {
      margin-top: 4px;
      margin-bottom: 14px;
    }
    .sig-safe-multisig-unified > .config-section-title {
      margin: 0 0 12px;
      font-size: var(--text-lg);
    }
    .sig-safe-split-cards {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .sig-safe-split-card {
      position: relative;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: #fff;
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .sig-safe-split-card::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 4px;
      background: linear-gradient(180deg, #3b82f6, #2563eb);
    }
    .sig-safe-split-card.sig-safe-split-card-issuance::before {
      background: linear-gradient(180deg, #f59e0b, #d97706);
    }
    .sig-safe-split-card-head {
      padding: 14px 16px 12px 20px;
      background: #fafbfd;
      border-bottom: 1px solid var(--border);
    }
    .sig-safe-split-card-head h3 {
      margin: 0;
      font-size: var(--text-lg);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text-primary);
    }
    .sig-safe-card-tag {
      display: inline-flex;
      align-items: center;
      padding: 2px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 500;
      background: #dbeafe;
      color: #1d4ed8;
    }
    .sig-safe-split-card.sig-safe-split-card-issuance .sig-safe-card-tag {
      background: #fef3c7;
      color: #b45309;
    }
    .sig-safe-split-card-head .hint-text {
      margin: 6px 0 0;
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.55;
    }
    .sig-safe-split-card-body {
      padding: 14px 16px 16px 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .sig-safe-split-card-body > .form-group { margin: 0; }
    .sig-safe-split-card-body .threshold-input input { width: 64px; }
    .demo-only { display: none !important; }
    html[data-demo="1"] .demo-only { display: unset !important; }
    html[data-demo="1"] .demo-only.btn { display: inline-flex !important; }
    html[data-demo="1"] tr.demo-only { display: table-row !important; }
    html[data-demo="1"] .demo-only.sig-demo-toggle { display: inline-flex !important; }
    html[data-demo="1"] .nav-item.demo-only { display: flex !important; }
    .demo-badge { display: none; position: fixed; right: 16px; bottom: 64px; z-index: 9999; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fff3cd; color: #9a6700; border: 1px solid #ffd43b; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
    html[data-demo="1"] .demo-badge { display: inline-block; }
    .audit-info-card { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: #fafbfc; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 24px; }
    .audit-info-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
    .audit-info-label { color: var(--text-tertiary); flex-shrink: 0; min-width: 96px; }
    .audit-info-value { color: var(--text-primary); font-weight: 500; word-break: break-all; }
    .audit-info-value.audit-addr { font-family: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 12px; }
    .modal.modal-xl { max-width: 880px; }
    @media (max-width: 1100px) {
      .modal.modal-xl { max-width: none; }
    }
    .audit-modal.modal { display: flex; flex-direction: column; overflow: hidden; }
    .audit-modal .modal-body { flex: 1 1 auto; overflow-y: auto; max-height: calc(90vh - 132px); }
    .audit-modal .modal-footer { flex-shrink: 0; }
    .audit-meta-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 16px 18px; margin-bottom: 18px; background: linear-gradient(135deg, #f2f7ff 0%, #f7f8fa 100%); border: 1px solid #dbe5ff; border-radius: 10px; flex-wrap: wrap; }
    .audit-meta-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
    .audit-meta-sub { font-size: 13px; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 4px 14px; }
    .audit-meta-sub b { color: var(--text-primary); font-weight: 500; }
    .audit-meta-side { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-secondary); text-align: right; }
    .audit-meta-side b { color: var(--text-primary); font-weight: 500; }
    .audit-section { margin-bottom: 18px; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
    .audit-section-title { margin: 0; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--text-primary); background: #f7f8fa; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
    .audit-section-title .audit-section-tag { font-size: 11px; color: var(--text-tertiary); font-weight: 400; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
    .audit-section .audit-info-grid { padding: 14px 16px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 24px; background: #fff; }
    .audit-section .audit-info-grid.three-col { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .audit-section .audit-info-grid .audit-info-row.span-2 { grid-column: span 2; }
    .audit-subsection { padding: 4px 16px 14px; border-top: 1px dashed var(--border); }
    .audit-subsection:first-of-type { border-top: none; }
    .audit-subsection > h5 { margin: 12px 0 8px; font-size: 13px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
    .audit-subsection > h5::before { content: ''; width: 3px; height: 12px; background: var(--primary); border-radius: 2px; }
    .audit-signers-table { margin-top: 6px; border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden; }
    .audit-signers-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .audit-signers-table th, .audit-signers-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border-light); }
    .audit-signers-table th { background: #f7f8fa; color: var(--text-secondary); font-weight: 500; }
    .audit-signers-table tr:last-child td { border-bottom: none; }
    .audit-signers-table td.audit-addr { font-family: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace; }
    .audit-dist-card { margin: 12px 16px; padding: 12px; border: 1px solid var(--border-light); border-radius: 8px; background: #fafbfc; }
    .audit-dist-card + .audit-dist-card { margin-top: 0; }
    .audit-dist-card-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
    .audit-dist-card .audit-info-grid { padding: 0; background: transparent; gap: 8px 16px; }
    .audit-dist-deposits { display: flex; flex-direction: column; gap: 4px; }
    .audit-dist-deposits .audit-addr { font-family: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 12px; color: var(--text-primary); }
    .audit-section-decision { background: #fafbfc; }
    .audit-section-decision .form-group { margin: 0; padding: 14px 16px; }
    .audit-section-decision .form-group + .form-group { padding-top: 0; }
    .audit-mode-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
    .audit-mode-pill.is-single { background: #fff7e8; color: #b85c00; border: 1px solid #ffd591; }
    .audit-mode-pill.is-multi { background: #e8f3ff; color: var(--primary); border: 1px solid #adcbff; }
    .sig-safe-source-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .sig-safe-source-grid > .form-group { margin: 0; }
    @media (max-width: 1100px) {
      .sig-safe-split-cards { grid-template-columns: 1fr; }
      .sig-safe-source-grid { grid-template-columns: 1fr; }
    }
    .devspec-page details {
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: #fff;
      box-shadow: var(--shadow-sm);
      margin-bottom: 14px;
      overflow: hidden;
    }
    .devspec-page summary {
      list-style: none;
      cursor: pointer;
      padding: 14px 16px;
      background: #fafbfd;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 600;
      color: var(--text-primary);
    }
    .devspec-page summary::-webkit-details-marker { display: none; }
    .devspec-page .devspec-body {
      padding: 14px 16px;
      line-height: 1.7;
      color: var(--text-primary);
      font-size: var(--text-sm);
    }
    .devspec-page .devspec-body code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 12px;
      background: #f7f8fa;
      padding: 2px 6px;
      border-radius: 6px;
      border: 1px solid #edf0f3;
    }
    .devspec-page .devspec-body ul { margin: 8px 0 0 18px; }
    .devspec-page .devspec-tag {
      display: inline-flex;
      align-items: center;
      min-height: 22px;
      padding: 0 8px;
      border-radius: 999px;
      background: #e6f4ff;
      color: #0958d9;
      font-size: 12px;
      font-weight: 600;
    }
    .devspec-page .prd-h5 { margin: 14px 0 8px; font-size: 14px; font-weight: 600; color: var(--text-primary); }
    .devspec-page .prd-h5:first-child { margin-top: 0; }
    .devspec-page table.prd-field-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0 12px; }
    .devspec-page table.prd-field-table th,
    .devspec-page table.prd-field-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
    .devspec-page table.prd-field-table th { background: #f7f8fa; font-weight: 600; }
    .devspec-page .devspec-body details { margin-bottom: 10px; box-shadow: none; }
    .devspec-page .devspec-body details summary { background: #f3f4f6; font-size: 13px; padding: 10px 12px; }
    .devspec-page .devspec-body > details .devspec-body { font-size: 12px; }
    .devspec-page .devspec-body p { margin: 0 0 10px; }
    .devspec-page .devspec-body p:last-child { margin-bottom: 0; }
    .devspec-page .prd-ol { margin: 8px 0 0 20px; padding: 0; }
    .devspec-page .prd-ol li { margin-bottom: 6px; }
    .devspec-page .prd-mermaid-wrap {
      overflow-x: auto;
      margin: 10px 0 16px;
      padding: 12px 14px;
      background: #fafbfd;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
    }
    .devspec-page .prd-mermaid-wrap .mermaid { display: flex; justify-content: center; min-height: 60px; }
    .devspec-page .prd-mermaid-hint { font-size: 12px; color: var(--text-secondary); margin: 0 0 8px; }
    .sig-config-card .dynamic-fields .field-row input[disabled],
    .sig-config-card .dynamic-fields .field-row .input-readonly {
      background: #f7f8fa;
    }
    .status-pending-name { background: #fff7e6; color: #ad6800; padding: 2px 8px; border-radius: 4px; font-size: 12px; }


    /* ========== Responsive: Tablet & Mobile ========== */
    @media (max-width: 1200px) {
      .sig-summary-grid { grid-template-columns: 1fr; }
      .sig-single-grid { grid-template-columns: 1fr; }
      .token-detail-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .contract-info-grid { gap: 24px; }
      .issuer-cards, .token-dist-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 992px) {
      :root { --sidebar-width: 200px; }
      .token-detail-overview-grid { grid-template-columns: 1fr; }
      .issuer-cards, .token-dist-cards { grid-template-columns: 1fr; }
      .contract-info-grid { grid-template-columns: 1fr; }
      .form-row { flex-direction: column; gap: 0; }
      .form-row .form-group { width: 100%; }
      .sig-mode-switch { grid-template-columns: 1fr; }
      .sig-source-inline { flex-direction: column; gap: 6px; }
      .sig-unified-head { flex-direction: column; align-items: stretch; }
      .sig-mode-toggle { justify-content: flex-start; flex-wrap: wrap; }
      .safe-config-split { display:block; }
      .safe-section-title { max-width: none; }
      #page-safe-config .safe-config-toolbar,
      #page-safe-config .safe-config-filter-bar,
      #page-safe-config .safe-config-list-card { max-width: none; }
    }
    @media (max-width: 768px) {
      #main-app.active { flex-direction: column; }
      .main-header-bar { display: flex !important; }
      .sidebar {
        width: 100%;
        position: fixed;
        top: calc(56px + env(safe-area-inset-top));
        left: 0;
        right: 0;
        z-index: 100;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-right: none;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
      }
      .sidebar.open { max-height: calc(100vh - 56px - env(safe-area-inset-top)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
      .sidebar-logo { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
      .sidebar-logo .menu-toggle { display: block; width: 32px; height: 32px; border: none; background: none; font-size: 24px; cursor: pointer; color: var(--text-primary); }
      .main-content { padding: 16px; margin-top: calc(56px + env(safe-area-inset-top)); min-height: calc(100vh - 56px - env(safe-area-inset-top)); }
      .main-header-bar { display: flex; position: fixed; top: 0; left: 0; right: 0; min-height: 56px; height: calc(56px + env(safe-area-inset-top)); background: white; border-bottom: 1px solid var(--border); align-items: center; padding: env(safe-area-inset-top) 16px 0 16px; z-index: 99; }
      .page-title { font-size: var(--text-xl); margin-bottom: 16px; }
      .card { padding: 16px; margin-bottom: 16px; }
      .header-row { flex-direction: column; align-items: stretch; gap: 12px; }
      .filter-bar { flex-direction: column; align-items: stretch; }
      .filter-bar input, .filter-bar select { width: 100%; min-height: 44px; }
      .toolbar-spacer { margin-left: 0; }
      .control-select { width: 100%; min-height: 44px; }
      .kyc-toolbar { padding: 16px; }
      .kyc-toolbar .kyc-search-input { min-width: 0; max-width: none; }
      .kyc-actions { min-width: 140px; }
      .kyc-pagination { padding: 16px; }
      .safe-config-toolbar { padding:16px; flex-direction:column; align-items:stretch; }
      .safe-config-toolbar-actions { width:100%; justify-content:flex-start; }
      .safe-config-toolbar .btn { width:100%; }
      .safe-config-filter-bar { padding: 0; gap: 10px; }
      .safe-config-filter-title { width: 100%; text-align: left; }
      .safe-config-filter-controls { width: 100%; }
      .safe-list-tabs { max-width: none; gap: 16px; }
      .safe-list-actions {
        width: 100%;
        margin-left: 0;
        padding-bottom: 0;
      }
      .safe-list-actions .btn { width: auto; }
      .safe-config-filter-item { width: 100%; }
      .safe-config-filter-item select { width: 100%; min-width: 0; }
      .safe-config-filter-summary { width: 100%; margin-left: 0; }
      .safe-config-list-head, .safe-config-editor-head { padding:16px; }
      .safe-config-list-card .table-wrap { padding:0 16px 8px; }
      .safe-config-list-card table { min-width: 760px; }
      .safe-config-editor-body { padding:16px; }
      .data-summary-grid { grid-template-columns: 1fr; gap: 16px; }
      .data-token-title { font-size: var(--text-xl); }
      .btn { min-height: var(--btn-height-lg); padding: 10px var(--btn-padding-x); }
      .btn-sm { min-height: 36px; padding: 8px 14px; }
      .modal { width: 95%; max-width: none; max-height: 95vh; border-radius: 12px 12px 0 0; margin-top: auto; padding-bottom: env(safe-area-inset-bottom); }
      .modal-overlay.show { align-items: flex-end; padding: 0; }
      .modal.modal-lg { max-width: none; }
      .login-box { width: 90%; max-width: 400px; padding: 32px 24px; }
      .verify-box, .forgot-box, .reset-pwd-box { width: 90%; max-width: 400px; padding: 32px 24px; }
      .verify-header { padding: 16px 20px; }
      .breadcrumb { font-size: var(--text-xs); overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
      .token-detail-header { flex-direction: column; align-items: flex-start; }
      .contract-page-header { margin-bottom: 16px; }
      .form-actions { flex-direction: column; }
      .form-actions .btn { width: 100%; }
      .issuance-flow-step { width: 100%; justify-content: flex-start; }
      .contract-actions { flex-direction: column; }
      .contract-actions .btn { width: 100%; }
      .pagination { flex-wrap: wrap; justify-content: center; gap: 6px; }
      .pagination button { min-height: 40px; min-width: 40px; }
      th, td { padding: 12px 10px; font-size: var(--text-sm); }
      .project-table th, .project-table td { white-space: nowrap; }
      .table-wrap { -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
      .data-card .value { font-size: var(--text-lg); }
      .issuer-card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
      .section-header { flex-direction: column; align-items: stretch; } .section-header .btn { align-self: flex-start; }
      .issuer-card-body { grid-template-columns: 1fr; }
    }
    @media (max-width: 576px) {
      .main-content { padding: 12px; margin-top: calc(56px + env(safe-area-inset-top)); }
      .page-title { font-size: var(--section-title-size); }
      .card { padding: 12px; }
      .issuance-flow-step { font-size: 12px; padding: 7px 10px; }
      .list-tabs { gap: 16px; font-size: var(--text-sm); }
      .upload-zone { padding: 24px 16px; }
      .upload-zone .icon { font-size: 36px; }
      .modal-body { padding: 16px; }
      .modal-header, .modal-footer { padding: 16px; }
    }
    @media (min-width: 769px) {
      .menu-toggle { display: none !important; }
    }
    @media (min-width: 1400px) {
      .main-content { padding: 24px 40px; }
    }

    /* ===================== 订阅 / 套餐 / gating ===================== */
    /* 套餐 badge */
    .plan-badge { display:flex; align-items:center; gap:6px; margin-top:10px; padding:7px 10px; border-radius:8px; font-size:var(--text-xs); font-weight:600; cursor:pointer; border:1px solid var(--border); background:var(--bg-secondary); color:var(--text-secondary); }
    /* 会员中心 · 侧边栏紧凑入口 */
    .member-mini { margin-top:12px; padding:11px 12px; border:1px solid var(--border); border-radius:10px; background:var(--bg-secondary); cursor:pointer; transition:border-color .15s, background .15s; }
    .member-mini:hover { border-color:var(--primary); background:#fff; }
    .member-mini .mm-title { font-size:11px; font-weight:700; letter-spacing:.05em; color:var(--text-tertiary); margin-bottom:8px; }
    .member-mini .mm-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:5px; }
    .member-mini .mm-label { font-size:12px; color:var(--text-tertiary); }
    .member-mini .mm-val { font-size:12px; font-weight:600; color:var(--text-primary); }
    .member-mini .mm-more { margin-top:6px; font-size:11px; color:var(--primary); font-weight:600; text-align:right; }
    /* 我的订阅页 · Issuance Agent 卡片 */
    .sub-ai-card .ai-quota-card { margin-top:4px; }

    /* 会员统一区块（旧 · 保留兼容） */
    .member-panel { margin-top:12px; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--bg-secondary); }
    .member-panel-title { font-size:11px; font-weight:700; letter-spacing:.06em; color:var(--text-tertiary); margin-bottom:10px; }
    .member-row { margin-bottom:12px; }
    .member-row:last-child { margin-bottom:0; }
    .member-row-label { display:block; font-size:11px; color:var(--text-tertiary); margin-bottom:5px; }
    .member-panel .plan-badge { margin-top:0; width:100%; background:#fff; }
    .member-panel .ai-quota-card { padding:11px 12px; border-radius:8px; background:#fff; border-color:var(--border); }
    .member-panel .ai-quota-card.is-exhausted { background:var(--danger-bg); border-color:#ffc9c9; }
    .member-panel .ai-quota-name { font-size:12px; }
    .member-panel .ai-quota-num { font-size:13px; color:var(--primary); margin:2px 0 8px; }
    .member-panel .ai-quota-num b { font-size:16px; }
    .member-panel .ai-quota-card.is-exhausted .ai-quota-num { color:var(--danger); }
    .member-panel .ai-quota-bar { height:6px; }
    .member-panel .ai-quota-fill { background:var(--primary); }
    .member-panel .ai-quota-card .btn { width:100%; font-size:12px; padding:8px 10px; margin-top:10px; }
    .member-panel .ai-quota-tip { font-size:11px; margin-top:8px; }
    .plan-badge .plan-badge-dot { width:8px; height:8px; border-radius:50%; background:currentColor; flex:none; }
    .plan-badge .plan-badge-name { color:var(--text-primary); }
    .plan-badge .plan-badge-price { margin-left:auto; font-weight:500; opacity:.8; }
    .plan-badge-free { background:#f2f3f5; color:#86909c; border-color:#e5e6eb; }
    .plan-badge-basic { background:#eaf2ff; color:#165DFF; border-color:#bcd6ff; }
    .plan-badge-advanced { background:#e8fff0; color:#0e9f56; border-color:#b3ecca; }
    .plan-badge-institution { background:#eeeafc; color:#5a3fc0; border-color:#d3c8f2; }
    .demo-tier { display:flex; align-items:center; gap:8px; margin-top:10px; font-size:var(--text-xs); color:var(--text-tertiary); }
    .demo-tier label { flex:none; }
    .demo-tier select { flex:1; }

    /* gating 遮罩 */
    .page { position:relative; }
    .page.is-gated { min-height:420px; }
    .gate-overlay { position:absolute; inset:0; z-index:30; display:flex; align-items:flex-start; justify-content:center; padding-top:80px; background:linear-gradient(180deg, rgba(247,248,250,.55) 0%, rgba(247,248,250,.9) 40%); backdrop-filter:blur(1.5px); border-radius:var(--radius-lg); }
    .gate-card { width:min(460px,86%); background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:0 10px 30px rgba(20,40,80,.12); padding:26px 24px; text-align:center; }
    .gate-lock { width:52px; height:52px; margin:0 auto 12px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--primary-light); color:var(--primary); }
    .gate-title { font-size:var(--text-lg); font-weight:600; color:var(--text-primary); }
    .gate-sub { margin-top:8px; font-size:var(--text-sm); color:var(--text-secondary); line-height:1.6; }
    .gate-actions { margin-top:18px; display:flex; gap:10px; justify-content:center; }

    /* ===================== 套餐与定价页 ===================== */
    .pricing-section-title { font-size:var(--text-md); font-weight:600; color:var(--text-primary); margin:20px 0 12px; }
    .ai-pricing-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; max-width:640px; }
    .ai-pricing-card { border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px 18px; background:#fff; }
    .ai-pricing-card.ai-pricing-hot { border-color:#b3ecca; background:#f4fff8; }
    .ai-pricing-name { font-weight:600; color:var(--text-primary); }
    .ai-pricing-price { font-size:var(--text-2xl); font-weight:700; color:var(--success); margin:6px 0; }
    .ai-pricing-price span { font-size:var(--text-sm); font-weight:500; color:var(--text-tertiary); }
    .ai-pricing-desc { font-size:var(--text-xs); color:var(--text-secondary); line-height:1.6; }

    .pricing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
    .pricing-card { position:relative; border:1px solid var(--border); border-radius:var(--radius-lg); padding:22px 18px 18px; background:#fff; display:flex; flex-direction:column; transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
    .pricing-card:hover { box-shadow:0 8px 24px rgba(20,40,80,.08); transform:translateY(-2px); }
    .pricing-card-hot { border-color:#b3ecca; box-shadow:0 8px 24px rgba(14,159,86,.1); }
    .pricing-card.is-current { border-color:var(--primary); box-shadow:0 0 0 2px rgba(22,93,255,.15); }
    .pricing-ribbon { position:absolute; top:-11px; left:50%; transform:translateX(-50%); background:var(--success); color:#fff; font-size:var(--text-xs); font-weight:700; padding:3px 14px; border-radius:999px; }
    .pricing-name { font-size:var(--text-lg); font-weight:700; color:var(--text-primary); }
    .pricing-price { font-size:var(--text-3xl); font-weight:700; color:var(--success); margin:8px 0 2px; }
    .pricing-price span { font-size:var(--text-sm); font-weight:500; color:var(--text-tertiary); }
    .pricing-price.pricing-price-svc { font-size:var(--text-lg); color:var(--primary); }
    .ai-pricing-price.ai-pricing-svc { font-size:var(--text-lg); color:var(--primary); }
    .addon-price-svc { font-size:var(--text-sm); font-weight:600; color:var(--text-tertiary); }
    .pricing-tag { font-size:var(--text-xs); color:var(--text-tertiary); margin-bottom:12px; }
    .pricing-feats { list-style:none; padding:14px 0 0; margin:0 0 16px; border-top:1px solid var(--border-light); flex:1; }
    .pricing-feats li { position:relative; padding:0 0 8px 18px; font-size:var(--text-xs); color:var(--text-secondary); line-height:1.5; }
    .pricing-feats li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--success); font-weight:700; }
    .pricing-cta { width:100%; }
    .pricing-cta.is-current-cta { background:var(--bg-secondary); color:var(--text-tertiary); border:1px solid var(--border); box-shadow:none; cursor:default; }
    .pricing-preview { text-align:center; margin-top:10px; font-size:var(--text-xs); }

    .compare-table { width:100%; border-collapse:collapse; }
    .compare-table th, .compare-table td { padding:10px 12px; text-align:center; font-size:var(--text-sm); border-bottom:1px solid var(--border-light); }
    .compare-table th { background:var(--bg-secondary); color:var(--text-primary); font-weight:600; }
    .compare-table td:first-child, .compare-table th:first-child { text-align:left; color:var(--text-secondary); }
    .compare-note { margin:12px 4px 0; font-size:var(--text-xs); color:var(--text-tertiary); }

    /* ===================== 我的订阅页 ===================== */
    .sub-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:16px; }
    .sub-plan-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
    .sub-plan-name { font-size:var(--text-xl); font-weight:700; color:var(--text-primary); }
    .sub-plan-price { font-size:var(--text-md); color:var(--success); font-weight:600; margin-top:4px; }
    .sub-plan-head .plan-badge { margin-top:0; cursor:default; }
    .sub-plan-meta { margin:16px 0; font-size:var(--text-sm); color:var(--text-secondary); }
    .sub-cta-row { display:flex; gap:10px; }
    .sub-card-title { font-size:var(--text-md); font-weight:600; color:var(--text-primary); margin-bottom:14px; }
    .usage-item { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
    .usage-name { width:100px; flex:none; font-size:var(--text-sm); color:var(--text-secondary); }
    .usage-row { flex:1; display:flex; align-items:center; gap:10px; }
    .usage-bar { flex:1; height:8px; border-radius:999px; background:var(--bg-secondary); overflow:hidden; }
    .usage-fill { display:block; height:100%; background:var(--primary); border-radius:999px; }
    .usage-fill.is-warn { background:var(--warning); }
    .usage-label { width:96px; flex:none; text-align:right; font-size:var(--text-xs); color:var(--text-tertiary); }
    .sub-addon-card { margin-top:16px; }
    .addon-empty { font-size:var(--text-sm); color:var(--text-secondary); line-height:1.7; }

    /* ===================== Landing（Issuance Agent 入口） ===================== */
    #landing-screen { position:fixed; inset:0; z-index:2000; overflow-y:auto; background:radial-gradient(1200px 600px at 80% -10%, #e9f0ff 0%, rgba(233,240,255,0) 60%), linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%); }
    .lp-nav { display:flex; align-items:center; justify-content:space-between; padding:20px 48px; max-width:1200px; margin:0 auto; }
    .lp-logo { display:flex; align-items:baseline; gap:8px; }
    .lp-logo-main { font-size:20px; font-weight:800; letter-spacing:-.02em; color:#0f1f3d; }
    .lp-logo-sub { font-size:20px; font-weight:800; color:var(--primary); letter-spacing:-.01em; }
    .lp-nav-links { display:flex; align-items:center; gap:22px; }
    .lp-nav-links a { color:var(--text-secondary); font-size:14px; }
    .lp-nav-links a:hover { color:var(--primary); }
    .lp-login-btn { border:1px solid var(--primary); color:var(--primary); background:#fff; border-radius:8px; padding:8px 16px; font-size:14px; font-weight:600; cursor:pointer; }
    .lp-login-btn:hover { background:var(--primary); color:#fff; }
    .lp-bd-btn { border:none; background:var(--primary); color:#fff; border-radius:8px; padding:9px 18px; font-size:14px; font-weight:600; cursor:pointer; box-shadow:0 4px 12px rgba(46,95,232,.24); transition:filter .15s; }
    .lp-bd-btn:hover { filter:brightness(1.06); }
    /* 高意向直达 BD 入口 */
    .lp-bd-cta { display:flex; align-items:center; gap:14px; margin-top:8px; padding:14px 18px; background:linear-gradient(90deg,#eef3ff,#f7f9ff); border:1px solid #dbe6fb; border-radius:12px; max-width:512px; }
    .lp-bd-cta-txt { font-size:14.5px; font-weight:600; color:#0f1f3d; }
    .lp-bd-cta-btn { margin-left:auto; border:none; background:var(--primary); color:#fff; border-radius:9px; padding:10px 18px; font-size:14px; font-weight:600; cursor:pointer; white-space:nowrap; box-shadow:0 4px 12px rgba(46,95,232,.24); transition:filter .15s,transform .15s; }
    .lp-bd-cta-btn:hover { filter:brightness(1.06); transform:translateX(2px); }
    .lp-bd-cta-solo { margin-left:0; margin-top:4px; align-self:flex-start; }
    .lp-hero { display:grid; grid-template-columns:0.8fr 1.45fr; gap:48px; align-items:center; max-width:1400px; margin:0 auto; padding:64px 48px 72px; }
    .lp-badge { display:inline-block; background:#eaf1ff; color:var(--primary); font-size:13px; font-weight:600; padding:7px 15px; border-radius:999px; margin-bottom:24px; }
    .lp-title { font-size:50px; line-height:1.16; font-weight:800; color:#0f1f3d; letter-spacing:-.02em; margin:0 0 22px; }
    .lp-sub { font-size:16px; line-height:1.85; color:var(--text-secondary); max-width:512px; margin:0 0 28px; }
    .lp-cta-row { display:flex; gap:16px; margin-bottom:18px; }
    .lp-cta-primary { background:var(--primary); color:#fff; border:none; border-radius:10px; padding:14px 26px; font-size:15px; font-weight:700; cursor:pointer; box-shadow:0 8px 20px rgba(22,93,255,.25); transition:transform .15s ease, box-shadow .15s ease; }
    .lp-cta-primary:hover { transform:translateY(-2px); box-shadow:0 12px 26px rgba(22,93,255,.32); }
    .lp-cta-ghost { background:#fff; color:var(--text-primary); border:1px solid var(--border); border-radius:10px; padding:14px 24px; font-size:15px; font-weight:600; cursor:pointer; }
    .lp-cta-ghost:hover { border-color:var(--primary); color:var(--primary); }
    .lp-quota-hint { font-size:13px; color:var(--text-tertiary); margin-bottom:0; }
    .lp-quota-hint b { color:var(--success); }
    .lp-meta { margin-top:26px; padding-top:24px; border-top:1px solid rgba(20,40,80,.08); display:flex; flex-direction:column; gap:16px; }
    .lp-trust { display:flex; flex-wrap:wrap; gap:10px; }
    .lp-trust-item { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--text-secondary); background:#fff; border:1px solid var(--border); border-radius:999px; padding:6px 14px; font-weight:500; }
    .lp-trust-item::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--success); flex:none; }
    .lp-modules { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text-tertiary); flex-wrap:wrap; }
    .lp-modules > span { color:var(--text-tertiary); }
    .lp-modules i { font-style:normal; background:#fff; border:1px solid var(--border); border-radius:999px; padding:5px 13px; color:var(--text-secondary); }
    /* hero chat mock */
    .lp-hero-right { display:flex; justify-content:center; }
    .lp-chat { width:100%; max-width:420px; background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow:0 20px 50px rgba(20,40,80,.14); overflow:hidden; }
    .lp-chat-head { display:flex; align-items:center; gap:8px; padding:14px 18px; border-bottom:1px solid var(--border-light); font-weight:600; color:#0f1f3d; }
    .lp-dot { width:8px; height:8px; border-radius:50%; background:var(--success); box-shadow:0 0 0 3px rgba(0,180,42,.15); }
    .lp-chat-body { padding:18px; display:flex; flex-direction:column; gap:12px; background:#fbfcfe; min-height:230px; }
    .lp-msg { max-width:84%; padding:10px 14px; border-radius:12px; font-size:13.5px; line-height:1.6; }
    .lp-msg-user { align-self:flex-end; background:var(--primary); color:#fff; border-bottom-right-radius:4px; }
    .lp-msg-ai { align-self:flex-start; background:#fff; border:1px solid var(--border); color:var(--text-primary); border-bottom-left-radius:4px; }
    .lp-typing { color:var(--text-tertiary); font-style:italic; }
    .lp-chat-input { display:flex; align-items:center; gap:10px; padding:12px 16px; border-top:1px solid var(--border-light); }
    .lp-chat-input span { flex:1; color:var(--text-tertiary); font-size:13px; }
    .lp-chat-input button { background:var(--primary); color:#fff; border:none; border-radius:8px; padding:8px 16px; font-size:13px; font-weight:600; cursor:pointer; }

    /* Landing 首屏内嵌实时聊天（大窗口，参考豆包 / DeepSeek 体验） */
    .lp-chat-live { animation:none !important; max-width:860px; width:100%; border-radius:20px; box-shadow:0 24px 60px rgba(20,40,80,.16); }
    .lp-chat-live .lp-chat-head { justify-content:space-between; padding:18px 26px; font-size:16px; }
    .lp-chat-quota { margin-left:auto; font-size:12.5px; font-weight:600; color:var(--primary); background:var(--primary-light); padding:4px 12px; border-radius:999px; }
    .lp-chat-live .lp-chat-body { height:62vh; min-height:420px; max-height:720px; overflow-y:auto; scroll-behavior:smooth; padding:26px 28px; gap:16px; }
    /* 笔记本 / 矮屏适配：按视口比例固定高度（不塌缩），并收窄首屏留白，保证整窗完整可见 */
    @media (max-height: 900px) {
      .lp-hero { padding-top:36px; padding-bottom:40px; }
      .lp-chat-live .lp-chat-body { height:56vh; min-height:360px; }
      .lp-chat-live .lp-chat-head { padding:13px 22px; }
    }
    @media (max-height: 760px) {
      .lp-hero { padding-top:24px; padding-bottom:28px; }
      .lp-chat-live .lp-chat-body { height:52vh; min-height:300px; }
      .lp-chat-live .lp-chat-topics, .lp-chat-live .lp-chat-suggest { padding-top:8px; }
    }
    .lp-chat-live .lp-msg { max-width:82%; font-size:15px; line-height:1.7; padding:12px 16px; border-radius:14px; }
    .lp-chat-live .lp-chat-topics { padding:12px 26px 0; }
    .lp-chat-live .lp-chat-suggest { padding:12px 26px 0; }
    .lp-chat-live .lp-chat-input-live { padding:16px 22px; gap:10px; }
    .lp-chat-live .lp-chat-input-live input { padding:13px 16px; font-size:14.5px; border-radius:10px; }
    .lp-chat-live .lp-chat-input-live > button { padding:12px 22px; font-size:14px; border-radius:10px; }
    .lp-chat-live .lp-chat-trust { padding:12px 26px 18px; }
    /* 上传按钮：用更高优先级覆盖 .lp-chat-input button 的蓝色基础样式 */
    .lp-chat-live .lp-chat-input-live .lp-chat-attach { flex:none; width:42px; height:42px; display:flex; align-items:center; justify-content:center; background:#f4f6fb; color:var(--text-secondary); border:1px solid var(--border); border-radius:50%; cursor:pointer; padding:0; transition:background .15s,color .15s,transform .15s; }
    .lp-chat-live .lp-chat-input-live .lp-chat-attach svg { display:block; width:20px; height:20px; }
    .lp-chat-live .lp-chat-input-live .lp-chat-attach:hover { background:var(--primary-light); color:var(--primary); border-color:transparent; transform:translateY(-1px); }
    .lp-chat-live .lp-chat-input-live .lp-chat-attach:active { transform:scale(.94); }
    /* 发送按钮仅作用于最后一个按钮，避免影响上传按钮 */
    .lp-chat-live .lp-chat-input-live > button.lp-chat-attach { padding:0; border-radius:50%; }
    /* 上传文件卡片（对话内展示） */
    .lp-file-msg { display:flex !important; align-items:center; gap:10px; background:var(--primary) !important; color:#fff; padding:10px 14px !important; }
    .lp-file-ic { flex:none; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:8px; background:rgba(255,255,255,.18); color:#fff; }
    .lp-file-meta { display:flex; flex-direction:column; gap:2px; min-width:0; }
    .lp-file-meta b { font-size:13.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:220px; }
    .lp-file-meta i { font-size:11.5px; font-style:normal; opacity:.85; }
    /* 输入区限制提示 */
    .lp-chat-hint { display:flex; align-items:center; gap:6px; padding:0 22px 14px; font-size:12px; color:var(--text-tertiary); }
    .lp-chat-hint-ic { display:inline-flex; color:var(--text-tertiary); }
    /* 意图解析「思考」块（模拟 Claude thinking） */
    .lp-think { align-self:flex-start; max-width:88%; background:#f4f6fb; border:1px solid #e5e9f2; border-left:3px solid var(--primary); border-radius:10px; padding:12px 14px; margin:2px 0; }
    .lp-think-head { display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; color:var(--text-secondary); margin-bottom:8px; }
    .lp-think-dot { width:8px; height:8px; border-radius:50%; background:var(--primary); box-shadow:0 0 0 0 rgba(46,95,232,.5); animation:lpPulse 1.4s infinite; }
    .lp-think-line { font-size:13px; line-height:1.7; color:var(--text-tertiary); padding-left:18px; position:relative; }
    .lp-think-line.done::before { content:"✓"; position:absolute; left:0; color:#22c55e; font-weight:700; }
    .lp-think-line.cur { color:var(--text-secondary); }
    .lp-think-line.cur::before { content:""; position:absolute; left:2px; top:6px; width:9px; height:9px; border:2px solid var(--primary); border-top-color:transparent; border-radius:50%; animation:lpSpin .7s linear infinite; }
    @keyframes lpSpin { to { transform:rotate(360deg); } }
    .lp-chat-suggest { display:flex; flex-wrap:wrap; gap:8px; padding:10px 16px 0; }
    .lp-chat-suggest button { background:#eef3fb; color:var(--primary); border:1px solid #dbe6f7; border-radius:999px; padding:6px 12px; font-size:12.5px; cursor:pointer; transition:background .15s,border-color .15s; }
    .lp-chat-suggest button:hover { background:#e2ecfb; border-color:#c3d8f5; }
    .lp-chat-input-live { gap:8px; }
    .lp-chat-input-live input { flex:1; border:1px solid var(--border); border-radius:8px; padding:9px 12px; font-size:13px; outline:none; color:var(--text-primary); }
    .lp-chat-input-live input:focus { border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-light); }
    .lp-chat-topics { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:10px 20px 0; }
    .lp-chat-topics-label { font-size:12px; color:var(--text-tertiary); margin-right:2px; }
    .lp-chat-topics button { background:#fff; color:var(--text-secondary); border:1px solid var(--border); border-radius:999px; padding:4px 12px; font-size:12.5px; cursor:pointer; transition:all .15s; }
    .lp-chat-topics button:hover { border-color:var(--primary); color:var(--primary); }
    .lp-chat-topics button.active { background:var(--primary); color:#fff; border-color:var(--primary); }
    .lp-chat-trust { display:flex; flex-wrap:wrap; gap:14px; padding:10px 20px 16px; border-top:1px solid var(--border-light); }
    .lp-chat-trust span { position:relative; font-size:11.5px; color:var(--text-tertiary); padding-left:14px; }
    .lp-chat-trust span::before { content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); width:6px; height:6px; border-radius:50%; background:#22c55e; }
    .lp-how { max-width:1200px; margin:0 auto; padding:40px 48px; }
    .lp-how-title { text-align:center; font-size:24px; font-weight:800; color:#0f1f3d; margin-bottom:28px; }
    .lp-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
    .lp-step { background:#fff; border:1px solid var(--border); border-radius:14px; padding:24px; text-align:center; }
    .lp-step-no { width:40px; height:40px; margin:0 auto 14px; border-radius:50%; background:var(--primary-light); color:var(--primary); font-weight:800; font-size:18px; display:flex; align-items:center; justify-content:center; }
    .lp-step-name { font-size:16px; font-weight:700; color:#0f1f3d; margin-bottom:8px; }
    .lp-step-desc { font-size:13.5px; color:var(--text-secondary); line-height:1.6; }
    .lp-foot { max-width:1200px; margin:0 auto; padding:24px 48px 48px; display:flex; align-items:center; gap:16px; color:var(--text-tertiary); font-size:12.5px; }
    .lp-foot-note { flex:1; }
    @media (max-width:900px){ .lp-hero{ grid-template-columns:1fr; } .lp-title{ font-size:34px; } .lp-steps{ grid-template-columns:1fr; } .lp-nav,.lp-hero,.lp-how,.lp-foot{ padding-left:24px; padding-right:24px; } }

    /* ===================== HIP 介绍（Landing 专业内容） ===================== */
    .hip-sec-lead { max-width:900px; margin:0 auto; padding:28px 48px 4px; text-align:center; }
    .hip-sec-title { font-size:24px; font-weight:800; color:#0f1f3d; text-align:center; margin:36px 0 6px; }
    .hip-sec-sub { font-size:15px; color:var(--text-secondary); line-height:1.85; text-align:center; max-width:840px; margin:8px auto 0; }
    .hip-assets { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:22px 0 4px; }
    .hip-assets i { font-style:normal; background:#fff; border:1px solid var(--border); border-radius:999px; padding:8px 18px; font-size:14px; color:var(--text-primary); font-weight:600; }
    .hip-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; max-width:1160px; margin:20px auto 0; padding:0 48px; }
    .hip-stat { background:#fff; border:1px solid var(--border); border-radius:14px; padding:22px 18px; text-align:center; }
    .hip-stat-num { font-size:24px; font-weight:800; color:var(--primary); letter-spacing:-.01em; }
    .hip-stat-label { font-size:12.5px; color:var(--text-secondary); margin-top:8px; line-height:1.6; }
    .hip-why { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; max-width:1160px; margin:0 auto; padding:8px 48px; }
    .hip-why-card { background:#fff; border:1px solid var(--border); border-radius:14px; padding:22px 20px; }
    .hip-why-card h4 { font-size:16px; color:#0f1f3d; margin:0 0 10px; }
    .hip-why-card p { font-size:13px; color:var(--text-secondary); line-height:1.7; margin:0; }
    .hip-why-tags { margin-top:14px; display:flex; flex-wrap:wrap; gap:6px; }
    .hip-why-tags span { font-size:11px; background:var(--primary-light); color:var(--primary); border-radius:6px; padding:3px 8px; font-weight:600; }
    .hip-life { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; max-width:1160px; margin:0 auto; padding:8px 48px 12px; }
    .hip-life-step { background:#fff; border:1px solid var(--border); border-radius:14px; padding:18px 16px; }
    .hip-life-no { width:30px; height:30px; border-radius:8px; background:var(--primary-light); color:var(--primary); font-weight:800; display:flex; align-items:center; justify-content:center; font-size:14px; margin-bottom:10px; }
    .hip-life-step h5 { font-size:14px; color:#0f1f3d; margin:0 0 6px; }
    .hip-life-step p { font-size:12px; color:var(--text-secondary); line-height:1.6; margin:0; }
    @media (max-width:900px){
      .hip-stats { grid-template-columns:repeat(2,1fr); }
      .hip-why { grid-template-columns:1fr; }
      .hip-life { grid-template-columns:1fr; }
      .hip-sec-lead,.hip-stats,.hip-why,.hip-life { padding-left:24px; padding-right:24px; }
    }

    /* ===================== Landing 视觉 / 交互增强 ===================== */
    /* 粘性导航 + 滚动模糊 */
    .lp-nav { position:sticky; top:0; z-index:20; transition:background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease; }
    .lp-nav.scrolled { background:rgba(255,255,255,.82); backdrop-filter:saturate(180%) blur(10px); -webkit-backdrop-filter:saturate(180%) blur(10px); box-shadow:0 1px 0 rgba(20,40,80,.06), 0 8px 24px rgba(20,40,80,.05); }
    .lp-nav-links a { position:relative; }
    .lp-nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:var(--primary); transition:width .22s ease; }
    .lp-nav-links a:hover::after { width:100%; }

    /* 英雄区装饰光晕 */
    .lp-hero { position:relative; overflow:visible; }
    .lp-hero::before { content:""; position:absolute; right:-60px; top:-40px; width:460px; height:460px; background:radial-gradient(circle at 35% 35%, rgba(46,95,232,.16), rgba(46,95,232,0) 68%); pointer-events:none; z-index:0; }
    .lp-hero::after { content:""; position:absolute; left:-120px; bottom:-120px; width:360px; height:360px; background:radial-gradient(circle at 50% 50%, rgba(123,92,240,.12), rgba(123,92,240,0) 70%); pointer-events:none; z-index:0; }
    .lp-hero-left, .lp-hero-right { position:relative; z-index:1; }

    /* 徽标脉冲点 */
    .lp-badge::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--primary); margin-right:8px; vertical-align:middle; box-shadow:0 0 0 0 rgba(46,95,232,.5); animation:lpPulse 2s infinite; }
    @keyframes lpPulse { 0%{box-shadow:0 0 0 0 rgba(46,95,232,.45)} 70%{box-shadow:0 0 0 9px rgba(46,95,232,0)} 100%{box-shadow:0 0 0 0 rgba(46,95,232,0)} }

    /* 渐变标题重点词 */
    .lp-title .gr { background:linear-gradient(90deg,#2E5FE8,#7B5CF0); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

    /* CTA 箭头微交互 */
    .lp-cta-primary { position:relative; }
    .lp-cta-primary::after { content:"→"; margin-left:8px; display:inline-block; transition:transform .2s ease; }
    .lp-cta-primary:hover::after { transform:translateX(4px); }
    .lp-cta-ghost { transition:transform .15s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
    .lp-cta-ghost:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(20,40,80,.08); }

    /* 英雄聊天卡：浮动 + 打字呼吸 */
    .lp-chat { animation:lpFloat 6.5s ease-in-out infinite; }
    @keyframes lpFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
    .lp-typing { animation:lpBlink 1.5s ease-in-out infinite; }
    @keyframes lpBlink { 0%,100%{opacity:.5} 50%{opacity:1} }
    .lp-modules i { transition:border-color .2s ease, color .2s ease, transform .2s ease; }
    .lp-modules i:hover { border-color:var(--primary); color:var(--primary); transform:translateY(-2px); }

    /* 滚动渐入 */
    .reveal { opacity:0; transform:translateY(26px); transition:opacity .6s ease, transform .6s ease; }
    .reveal.in { opacity:1; transform:none; }
    .hip-stats.in .hip-stat, .hip-why.in .hip-why-card, .hip-life.in .hip-life-step { animation:lpUp .55s both; }
    .hip-stats.in .hip-stat:nth-child(2), .hip-why.in .hip-why-card:nth-child(2), .hip-life.in .hip-life-step:nth-child(2){ animation-delay:.08s }
    .hip-stats.in .hip-stat:nth-child(3), .hip-why.in .hip-why-card:nth-child(3), .hip-life.in .hip-life-step:nth-child(3){ animation-delay:.16s }
    .hip-stats.in .hip-stat:nth-child(4), .hip-why.in .hip-why-card:nth-child(4), .hip-life.in .hip-life-step:nth-child(4){ animation-delay:.24s }
    .hip-life.in .hip-life-step:nth-child(5){ animation-delay:.32s }
    @keyframes lpUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }

    /* 数字卡：渐变数字 + 悬停 */
    .hip-stat { transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
    .hip-stat:hover { transform:translateY(-4px); box-shadow:0 14px 30px rgba(20,40,80,.1); border-color:#bcd6ff; }
    .hip-stat-num { background:linear-gradient(90deg,#2E5FE8,#6b4ef0); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

    /* 为何选择卡：顶部渐变条 + 悬停浮起 */
    .hip-why-card { position:relative; overflow:hidden; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
    .hip-why-card::before { content:""; position:absolute; left:0; top:0; height:3px; width:100%; background:linear-gradient(90deg,#2E5FE8,#7B5CF0); transform:scaleX(0); transform-origin:left; transition:transform .3s ease; }
    .hip-why-card:hover { transform:translateY(-4px); box-shadow:0 16px 32px rgba(20,40,80,.1); border-color:#cfe0ff; }
    .hip-why-card:hover::before { transform:scaleX(1); }

    /* 生命周期：卡片悬停 + 步骤连接符 */
    .hip-life-step { position:relative; transition:transform .2s ease, box-shadow .2s ease; }
    .hip-life-step:hover { transform:translateY(-4px); box-shadow:0 12px 26px rgba(20,40,80,.08); }
    @media (min-width:901px){
      .hip-life-step:not(:last-child)::after { content:"›"; position:absolute; right:-9px; top:38px; transform:translateY(-50%); color:#c3d0e6; font-size:22px; font-weight:700; }
    }

    /* 售前三步卡悬停 */
    .lp-step { transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
    .lp-step:hover { transform:translateY(-4px); box-shadow:0 12px 26px rgba(20,40,80,.08); border-color:#cfe0ff; }
    .hip-assets i { transition:transform .2s ease, border-color .2s ease, color .2s ease; }
    .hip-assets i:hover { transform:translateY(-2px); border-color:var(--primary); color:var(--primary); }

    @media (prefers-reduced-motion: reduce){
      .lp-chat, .lp-badge::before, .lp-typing { animation:none !important; }
      .reveal { opacity:1; transform:none; transition:none; }
    }

    /* ===================== 统一 Section 结构 ===================== */
    .lp-section { padding:64px 0; }
    .lp-section.alt { background:#f4f7fc; }
    .lp-container { max-width:1160px; margin:0 auto; padding:0 48px; }
    .lp-head { text-align:center; max-width:780px; margin:0 auto 36px; }
    .lp-eyebrow { display:inline-block; font-size:12px; font-weight:700; letter-spacing:.08em; color:var(--primary); background:var(--primary-light); padding:5px 12px; border-radius:999px; margin-bottom:14px; }
    .lp-head h2 { font-size:28px; font-weight:800; color:#0f1f3d; margin:0 0 10px; letter-spacing:-.01em; }
    .lp-head p { font-size:15px; color:var(--text-secondary); line-height:1.8; margin:0; }
    .lp-section-cta { text-align:center; margin-top:32px; }
    /* 复用网格：外边距/内边距交由 .lp-container 统一控制 */
    .lp-section .hip-stats, .lp-section .hip-why, .lp-section .hip-life, .lp-section .lp-steps { max-width:none; margin:0; padding:0; }
    .lp-section .hip-assets { margin:0 0 4px; }
    .lp-section .ai-modules { justify-content:center; margin-bottom:20px; }
    @media (max-width:900px){ .lp-section { padding:46px 0; } .lp-container { padding:0 24px; } .lp-head h2 { font-size:23px; } }

    /* ===================== Issuance Agent 套餐（免费 vs 顾问版） ===================== */
    .ai-plans { max-width:760px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:stretch; }
    .ai-plan-card { position:relative; background:#fff; border:1.5px solid var(--border); border-radius:16px; padding:28px 26px; display:flex; flex-direction:column; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
    .ai-plan-card:hover { transform:translateY(-4px); box-shadow:0 16px 34px rgba(20,40,80,.1); }
    .ai-plan-card.ai-plan-hot { border-color:var(--primary); box-shadow:0 14px 34px rgba(22,93,255,.14); }
    .ai-plan-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--primary); color:#fff; font-size:12px; font-weight:700; padding:4px 16px; border-radius:999px; white-space:nowrap; }
    .ai-plan-name { font-size:16px; font-weight:700; color:#0f1f3d; }
    .ai-plan-price { font-size:34px; font-weight:800; color:var(--primary); margin:10px 0 2px; letter-spacing:-.01em; }
    .ai-plan-price span { font-size:14px; font-weight:600; color:var(--text-tertiary); }
    .ai-plan-price.is-free { color:#0f1f3d; }
    .ai-plan-note { font-size:12.5px; color:var(--text-tertiary); min-height:18px; }
    .ai-plan-feats { list-style:none; padding:16px 0 0; margin:16px 0 20px; border-top:1px solid var(--border-light); flex:1; }
    .ai-plan-feats li { position:relative; padding:0 0 10px 22px; font-size:13.5px; color:var(--text-secondary); line-height:1.5; }
    .ai-plan-feats li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--success); font-weight:700; }
    .ai-plan-card .btn { width:100%; }
    @media (max-width:640px){ .ai-plans { grid-template-columns:1fr; } }

    /* ===================== 独立 Issuance Agent 站点 ===================== */
    .ai-site-body { background:#fff; }
    .ai-site { min-height:100vh; background:radial-gradient(1200px 600px at 80% -10%, #e9f0ff 0%, rgba(233,240,255,0) 60%), linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%); }
    .ai-site-chat { max-width:1160px; margin:0 auto; padding:8px 48px 56px; }
    .ai-site-chat-title { font-size:24px; font-weight:800; color:#0f1f3d; margin:0 0 20px; }
    .ai-site .ai-chat { background:#fff; }
    @media (max-width:900px){ .ai-site-chat{ padding-left:24px; padding-right:24px; } }

    /* ===================== Issuance Agent 弹框 ===================== */
    /* 需高于 landing 覆盖层（z-index 2000），确保在 landing 上也能弹出 */
    #modal-ai-chat { z-index:5000; }
    #modal-ai-lead { z-index:5001; }
    #modal-register { z-index:5002; }
    #modal-ai-subscribe { z-index:5003; }

    /* AI 顾问版订阅支付 */
    .pay-summary { background:linear-gradient(135deg,#eef3ff,#f3effe); border:1px solid #dbe4fb; border-radius:var(--radius-lg); padding:16px 18px; text-align:center; }
    .pay-plan { font-size:var(--text-sm); color:var(--text-secondary); }
    .pay-price { display:flex; align-items:baseline; justify-content:center; gap:6px; font-size:32px; font-weight:800; color:var(--primary); line-height:1.1; margin:6px 0 8px; }
    .pay-price span { font-size:var(--text-sm); font-weight:600; color:var(--text-tertiary); }
    .pay-meta { display:inline-block; font-size:var(--text-xs); color:var(--primary); background:rgba(46,95,232,.09); border-radius:999px; padding:4px 12px; }
    .pay-section-title { font-size:var(--text-sm); font-weight:700; color:var(--text-primary); margin:18px 0 10px; }
    .pay-methods { display:flex; flex-direction:column; gap:10px; }
    .pay-method { position:relative; display:flex; align-items:center; gap:12px; border:1.5px solid var(--border); border-radius:var(--radius-md); padding:13px 15px; cursor:pointer; transition:border-color .15s ease, background .15s ease, box-shadow .15s ease; }
    .pay-method:hover { border-color:#bcd6ff; }
    .pay-method.selected { border-color:var(--primary); background:var(--primary-light); box-shadow:0 0 0 3px rgba(22,93,255,.12); }
    .pay-method input[type=radio] { width:16px; height:16px; accent-color:var(--primary); flex:none; }
    .pay-method-body { display:flex; flex-direction:column; }
    .pay-method-body b { font-size:var(--text-base); color:var(--text-primary); }
    .pay-method-body span { font-size:var(--text-xs); color:var(--text-tertiary); margin-top:2px; }
    .pay-method-tag { margin-left:auto; font-size:11px; font-weight:700; color:var(--success); background:var(--success-bg); border-radius:999px; padding:2px 10px; }
    .pay-note { margin-top:14px; font-size:var(--text-xs); color:var(--text-tertiary); line-height:1.65; background:var(--bg-secondary); border-radius:var(--radius-md); padding:10px 12px; }
    #modal-ai-subscribe .form-group { margin-top:16px; margin-bottom:0; }

    /* ===================== AI 运营页面 ===================== */
    .ai-ops-form-title { font-size:var(--text-md); font-weight:600; color:var(--text-primary); margin-bottom:14px; }
    .ai-ops-form { display:grid; grid-template-columns:1fr 1fr; gap:14px 16px; }
    .ai-ops-form .ai-ops-col2 { grid-column:1 / -1; }
    .ai-ops-form input, .ai-ops-form textarea, .ai-ops-textarea { width:100%; border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 12px; font-size:var(--text-base); font-family:inherit; }
    .ai-ops-form input:focus, .ai-ops-form textarea:focus, .ai-ops-textarea:focus { outline:none; border-color:var(--primary); }
    .ai-ops-textarea { line-height:1.7; color:var(--text-primary); }
    .ai-ops-ver { font-size:var(--text-xs); color:var(--text-tertiary); margin-right:12px; }
    .ai-ops-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
    .kb-tag { display:inline-block; font-size:11px; font-weight:600; padding:2px 8px; border-radius:999px; }
    .kb-ok { background:var(--success-bg); color:var(--success); }
    .kb-limit { background:var(--warning-bg); color:var(--warning); }
    .intent-result { margin-top:14px; }
    .intent-card { border:1px solid var(--border); border-radius:var(--radius-md); padding:16px 18px; background:var(--bg-secondary); }
    .intent-row { display:flex; align-items:center; gap:12px; padding:6px 0; font-size:var(--text-sm); }
    .intent-k { width:96px; flex:none; color:var(--text-tertiary); }
    .intent-chips span { display:inline-block; background:var(--primary-light); color:var(--primary); border-radius:6px; padding:2px 8px; margin-right:6px; font-size:12px; }
    .intent-chips .muted, .intent-row .muted { color:var(--text-tertiary); }
    .intent-bar { flex:1; max-width:200px; height:8px; border-radius:999px; background:#e5e9f0; overflow:hidden; }
    .intent-bar i { display:block; height:100%; background:var(--primary); border-radius:999px; }
    .intent-route { margin-top:10px; padding-top:10px; border-top:1px solid var(--border-light); font-size:var(--text-sm); color:var(--text-primary); }
    @media (max-width:900px){ .ai-ops-form { grid-template-columns:1fr; } .ai-ops-grid2 { grid-template-columns:1fr; } }

    /* 联系专属专家 */
    .expert-contact { background:var(--primary-light); border:1px solid #bcd6ff; border-radius:var(--radius-md); padding:14px 16px; margin-bottom:16px; }
    .expert-contact-title { font-size:var(--text-sm); font-weight:700; color:var(--primary); margin-bottom:6px; }
    .expert-contact-row { font-size:var(--text-sm); color:var(--text-primary); }
    .expert-contact-row a { color:var(--primary); font-weight:600; }

    /* 免费 Demo 顶部提示条 */
    .demo-banner { display:flex; align-items:center; gap:12px; margin:0 0 18px; padding:11px 16px; border:1px solid #ffe0a6; background:linear-gradient(90deg,#fff8ec,#fffdf8); border-radius:var(--radius-md); box-shadow:0 1px 3px rgba(180,120,20,.06); }
    .demo-banner-dot { width:8px; height:8px; border-radius:50%; background:#f5a623; box-shadow:0 0 0 4px rgba(245,166,35,.18); flex:none; }
    .demo-banner-txt { flex:1; font-size:var(--text-sm); color:#8a6414; font-weight:600; }
    .demo-banner .btn-sm { flex:none; }

    /* 升级引导弹窗 */
    #modal-upgrade { z-index:5200; }
    .upgrade-hero { display:flex; gap:14px; align-items:flex-start; margin-bottom:14px; }
    .upgrade-lock { width:44px; height:44px; border-radius:12px; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; flex:none; }
    .upgrade-title { font-size:var(--text-md); font-weight:700; color:var(--text-primary); margin-bottom:4px; }
    .upgrade-sub { font-size:var(--text-sm); color:var(--text-secondary); line-height:1.6; }
    .upgrade-note { font-size:var(--text-sm); color:var(--text-secondary); line-height:1.7; background:var(--bg-secondary); border-radius:var(--radius-md); padding:12px 14px; margin-bottom:16px; }

    /* AI 顾问 · 全屏二级页面（左侧记录 + 中间聊天） */
    #modal-ai-chat.modal-overlay { padding:24px; }
    .ai-page { width:100%; max-width:1180px; height:88vh; background:#fff; border-radius:16px; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 80px rgba(20,40,80,.25); }
    .ai-page-top { display:flex; align-items:center; justify-content:space-between; padding:15px 22px; border-bottom:1px solid var(--border); flex:none; }
    .ai-page-title { font-size:17px; font-weight:700; color:#0f1f3d; display:flex; align-items:center; gap:9px; }
    .ai-page-title .ai-live { width:8px; height:8px; border-radius:50%; background:var(--success); box-shadow:0 0 0 3px rgba(0,180,42,.15); }
    .ai-page-close { border:1px solid var(--border); background:#fff; border-radius:8px; padding:7px 14px; cursor:pointer; font-size:13px; color:var(--text-secondary); display:flex; align-items:center; gap:6px; }
    .ai-page-close:hover { border-color:var(--primary); color:var(--primary); }
    .ai-page-body { flex:1; display:flex; min-height:0; }
    /* 左侧：聊天记录 */
    .ai-hist { width:256px; flex:none; border-right:1px solid var(--border); display:flex; flex-direction:column; background:var(--bg-secondary); }
    .ai-new { margin:14px; padding:10px 12px; border:1px solid var(--primary); color:var(--primary); background:#fff; border-radius:9px; font-weight:600; font-size:13px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; }
    .ai-new:hover { background:var(--primary-light); }
    .ai-hist-label { padding:2px 20px 8px; font-size:11px; font-weight:700; letter-spacing:.05em; color:var(--text-tertiary); }
    .ai-hist-list { flex:1; overflow-y:auto; padding:0 10px; }
    .ai-hist-item { padding:10px 12px; border-radius:8px; font-size:13px; color:var(--text-secondary); cursor:pointer; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:background .15s ease; }
    .ai-hist-item:hover { background:#eaeff6; }
    .ai-hist-item.active { background:var(--primary-light); color:var(--primary); font-weight:600; }
    .ai-hist-foot { padding:12px; border-top:1px solid var(--border); }
    /* 会话栏增强：顶部行 / 折叠 / 搜索 / 条目操作 / 底部 */
    .ai-hist-top { display:flex; align-items:center; gap:8px; padding:12px 12px 8px; }
    .ai-hist-top .ai-new { margin:0; flex:1; }
    .ai-hist-toggle { flex:none; width:34px; height:34px; border:1px solid var(--border); background:#fff; border-radius:8px; color:var(--text-secondary); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:border-color .15s,color .15s,background .15s; }
    .ai-hist-toggle:hover { border-color:var(--primary); color:var(--primary); background:var(--primary-light); }
    .ai-hist-search { display:flex; align-items:center; gap:6px; margin:0 12px 8px; padding:0 10px; height:34px; border:1px solid var(--border); border-radius:8px; color:var(--text-tertiary); background:#fff; }
    .ai-hist-search:focus-within { border-color:var(--primary); }
    .ai-hist-search input { flex:1; border:none; outline:none; background:transparent; font-size:13px; color:var(--text-primary); }
    .ai-hist-item { display:flex; align-items:center; gap:6px; padding:9px 10px; border-radius:8px; font-size:13px; color:var(--text-secondary); cursor:pointer; margin-bottom:4px; transition:background .15s ease; }
    .ai-hist-item .ai-hist-t { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ai-hist-acts { display:none; align-items:center; gap:2px; }
    .ai-hist-item:hover .ai-hist-acts { display:flex; }
    .ai-hist-act { width:24px; height:24px; border-radius:6px; display:flex; align-items:center; justify-content:center; color:var(--text-tertiary); }
    .ai-hist-act:hover { background:#e4e9f2; color:var(--primary); }
    .ai-hist-act.dg:hover { background:var(--danger-bg,#ffece8); color:var(--danger,#f53f3f); }
    .ai-hist-empty { padding:16px 12px; font-size:12.5px; color:var(--text-tertiary); text-align:center; }
    .ai-hist-foot button { width:100%; display:flex; align-items:center; justify-content:center; gap:7px; height:36px; border:1px solid var(--border); background:#fff; border-radius:9px; font-size:13px; color:var(--text-secondary); cursor:pointer; transition:border-color .15s,color .15s; }
    .ai-hist-foot button:hover { border-color:var(--primary); color:var(--primary); }
    /* 折叠态：收成窄栏，仅留新建与展开 */
    #page-ai-consult .ai-page-body.hist-collapsed .ai-hist { width:56px; }
    .ai-page-body.hist-collapsed .ai-hist-search,
    .ai-page-body.hist-collapsed .ai-hist-label,
    .ai-page-body.hist-collapsed .ai-hist-list,
    .ai-page-body.hist-collapsed .ai-new-t,
    .ai-page-body.hist-collapsed .ai-foot-t { display:none; }
    .ai-page-body.hist-collapsed .ai-hist-top { flex-direction:column; padding:12px 8px; gap:8px; }
    .ai-page-body.hist-collapsed .ai-new { padding:9px 0; }
    .ai-page-body.hist-collapsed .ai-hist-foot button { padding:0; }
    .ai-page-body.hist-collapsed .ai-hist-toggle svg { transform:rotate(180deg); }
    .ai-hist { transition:width .18s ease; }
    .ai-hist-foot { display:flex; flex-direction:column; gap:8px; }
    /* 聊天交互增强：消息操作 / 回到底部 / 输入框 / 停止 */
    #page-ai-consult .ai-conv { position:relative; }
    .ai-msg-wrap { display:flex; flex-direction:column; }
    .ai-msg-wrap-user { align-items:flex-end; }
    .ai-msg-wrap-ai { flex-direction:row; align-items:flex-start; gap:10px; }
    .ai-av { flex:none; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(135deg,#2E5FE8,#7C5CFF); box-shadow:0 4px 12px rgba(94,74,220,.32); margin-top:2px; }
    .ai-msg-col { display:flex; flex-direction:column; min-width:0; max-width:84%; }
    /* 参考资料行（回答上方「搜索 N 个关键词，参考 M 篇资料」） */
    .ai-refs { margin-bottom:8px; }
    .ai-refs-sum { display:inline-flex; align-items:center; gap:6px; background:transparent; border:none; padding:3px 0; font-size:12.5px; color:var(--text-tertiary,#86909c); cursor:pointer; }
    .ai-refs-sum:hover { color:var(--primary); }
    .ai-refs-chev { transition:transform .15s ease; }
    .ai-refs-sum.open .ai-refs-chev { transform:rotate(90deg); }
    .ai-refs-list { margin:6px 0 4px; padding:10px 12px; background:#fff; border:1px solid var(--border); border-radius:10px; display:flex; flex-direction:column; gap:8px; max-width:520px; }
    .ai-ref-item { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text-secondary); }
    .ai-ref-item svg { flex:none; color:var(--primary); }
    /* 追问建议（回答后「你可能还想问」）· 紧凑胶囊自动换行 */
    .ai-followups { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:8px 0 2px 40px; max-width:84%; }
    .ai-fu-label { flex-basis:100%; font-size:12px; color:var(--text-tertiary,#86909c); margin-bottom:2px; }
    .ai-fu { display:inline-flex; align-items:center; gap:5px; text-align:left; background:#fff; border:1px solid var(--border); border-radius:999px; padding:6px 13px; font-size:13px; color:var(--text-secondary); cursor:pointer; transition:border-color .15s, box-shadow .15s, transform .15s, color .15s; }
    .ai-fu svg { flex:none; width:13px; height:13px; color:var(--text-tertiary,#c0c4cc); transition:color .15s, transform .15s; }
    .ai-fu:hover { border-color:#7C5CFF; color:var(--primary); box-shadow:0 4px 12px rgba(94,74,220,.14); transform:translateY(-1px); }
    .ai-fu:hover svg { color:var(--primary); transform:translateX(2px); }
    /* 醒目「生成方案报告」CTA：与普通追问胶囊显著区分（实心渐变 + 光晕），作为推荐的下一步行动 */
    .ai-fu.ai-fu-gen { flex-basis:100%; justify-content:center; gap:8px; background:linear-gradient(90deg,#6D4AFF 0%,#8A5CFF 100%); border:none; color:#fff; font-size:13.5px; font-weight:600; padding:10px 18px; border-radius:12px; box-shadow:0 8px 20px rgba(109,74,255,.28); order:-1; margin-bottom:2px; }
    .ai-fu.ai-fu-gen svg { color:#fff; }
    .ai-fu.ai-fu-gen:hover { color:#fff; border:none; box-shadow:0 12px 28px rgba(109,74,255,.4); transform:translateY(-1px); }
    .ai-fu.ai-fu-gen:hover svg { color:#fff; }
    @media (max-width:760px){ .ai-followups { margin-left:0; max-width:100%; } }
    /* 全屏沉浸 + 一体表面：聊天区与输入区同底色、无硬分割 */
    #page-ai-consult .ai-conv { padding:0; background:#f8fafc; }
    #page-ai-consult .ai-chat { background:#f8fafc; border:none; border-radius:0; padding:26px 0 10px; scrollbar-width:thin; scrollbar-color:rgba(15,31,61,.14) transparent; }
    .ai-thread { max-width:820px; margin:0 auto; padding:0 24px; display:flex; flex-direction:column; gap:14px; }
    /* 底部合一 composer（Cursor 模式：与消息区连成一体、无硬分割） */
    #page-ai-consult .ai-composer { flex:none; background:#f8fafc; border-top:none; padding:6px 0 12px; position:relative; }
    #page-ai-consult .ai-composer::before { content:''; position:absolute; left:0; right:0; top:-24px; height:24px; pointer-events:none; background:linear-gradient(to top, #f8fafc, rgba(248,250,252,0)); }
    #page-ai-consult .ai-composer .ai-input-row { max-width:820px; margin:0 auto; width:calc(100% - 48px); }
    #page-ai-consult .ai-quota-mini { max-width:820px; margin:0 auto; width:100%; padding:8px 24px 0; }
    /* composer 上方常驻免责声明 */
    #page-ai-consult .ai-disclaimer { max-width:820px; margin:0 auto 8px; width:calc(100% - 48px); text-align:center; font-size:12px; line-height:1.5; color:var(--text-tertiary,#86909c); }
    #page-ai-consult .ai-chat::-webkit-scrollbar { width:6px; }
    #page-ai-consult .ai-chat::-webkit-scrollbar-track { background:transparent; }
    #page-ai-consult .ai-chat::-webkit-scrollbar-thumb { background:rgba(15,31,61,.12); border-radius:8px; }
    #page-ai-consult .ai-chat::-webkit-scrollbar-thumb:hover { background:rgba(15,31,61,.22); }
    /* 气泡：AI 白底描边、用户渐变 */
    #page-ai-consult .ai-msg-ai { background:#fff; border:1px solid #e6ebf5; box-shadow:0 2px 10px rgba(20,40,80,.05); border-radius:14px 14px 14px 4px; }
    #page-ai-consult .ai-msg-user { background:linear-gradient(135deg,#2E5FE8,#5b6ef5); color:#fff; border:none; border-radius:14px 14px 4px 14px; box-shadow:0 4px 14px rgba(46,95,232,.25); }
    #page-ai-consult .ai-msg-col .ai-msg { max-width:100%; }
    /* 思考态：渐变旋转点 + 标题渐变 */
    #page-ai-consult .ai-process { border-color:#e2e8f6; }
    #page-ai-consult .ai-process-title { background:linear-gradient(90deg,#2E5FE8,#7C5CFF); -webkit-background-clip:text; background-clip:text; color:transparent; font-weight:700; }
    #page-ai-consult .ai-step.active .ai-step-ico { border-color:#7C5CFF; border-top-color:transparent; animation:aiSpin .7s linear infinite; }
    @keyframes aiSpin { to { transform:rotate(360deg); } }
    /* 底部发送键渐变 */
    #page-ai-consult .ai-input-row .btn-primary { background:linear-gradient(135deg,#2E5FE8,#7C5CFF); border:none; box-shadow:0 4px 14px rgba(94,74,220,.28); }
    #page-ai-consult .ai-input-row .btn-primary:hover { filter:brightness(1.05); }
    .ai-msg-acts { display:flex; gap:5px; margin:5px 2px 2px; opacity:1; }
    .ai-msg-act { display:inline-flex; align-items:center; gap:4px; height:26px; padding:0 8px; border:1px solid var(--border); background:#fff; border-radius:7px; color:var(--text-tertiary,#86909c); font-size:12px; cursor:pointer; transition:border-color .15s,color .15s,background .15s; }
    .ai-msg-act:hover { border-color:var(--primary); color:var(--primary); }
    .ai-msg-act.on { border-color:var(--primary); color:var(--primary); background:var(--primary-light,#eef3ff); }
    .ai-scroll-btn { position:absolute; right:22px; bottom:104px; width:36px; height:36px; border-radius:50%; border:1px solid var(--border); background:#fff; color:var(--text-secondary); cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(20,40,80,.14); z-index:5; }
    .ai-scroll-btn:hover { color:var(--primary); border-color:var(--primary); }
    #page-ai-consult .ai-input-row { align-items:flex-end; }
    .ai-input-wrap { flex:1; position:relative; display:flex; align-items:flex-end; }
    #page-ai-consult .ai-input-row textarea#ai-input { flex:1; width:100%; border:none; outline:none; resize:none; height:40px; max-height:140px; line-height:1.5; font-size:14px; font-family:inherit; background:transparent; padding:9px 56px 9px 8px; color:var(--text-primary); }
    .ai-char { position:absolute; right:10px; bottom:8px; font-size:11px; color:var(--text-tertiary,#c0c4cc); pointer-events:none; }
    #page-ai-consult .ai-input-row .btn-primary.is-stop { background:#fff; color:var(--danger,#f53f3f); border:1px solid var(--danger,#f53f3f); }
    .ai-quota-mini { display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--text-secondary); padding:4px 4px 8px; }
    .ai-quota-mini b { color:var(--text-primary); }
    .ai-quota-mini .ai-quota-dot { width:7px; height:7px; border-radius:50%; background:var(--ok,#00b42a); flex:none; }
    .ai-quota-mini.warn { color:var(--warn,#ff7d00); }
    .ai-quota-mini.warn .ai-quota-dot { background:var(--warn,#ff7d00); }
    .ai-quota-mini a { color:var(--primary); margin-left:2px; }
    /* 生成方案按钮（输入区，发送键旁） */
    #page-ai-consult .ai-genplan { flex:none; display:inline-flex; align-items:center; gap:5px; height:36px; padding:0 12px; border:1px solid #cfdcfb; border-radius:10px; background:linear-gradient(135deg,#eef3ff,#f3edff); color:#2E5FE8; font-size:13px; font-weight:700; cursor:pointer; transition:all .15s; }
    #page-ai-consult .ai-genplan:hover { border-color:#b6ccf7; box-shadow:0 3px 12px rgba(46,95,232,.16); transform:translateY(-1px); }
    #page-ai-consult .ai-genplan svg { color:#7C5CFF; flex:none; }
    @media (max-width:640px){ #page-ai-consult .ai-genplan .ai-genplan-t { display:none; } #page-ai-consult .ai-genplan { padding:0 10px; } }
    /* 额度行操作：充值 / 重置（演示） */
    .ai-quota-acts { margin-left:auto; display:inline-flex; align-items:center; gap:14px; }
    .ai-quota-acts a { color:var(--primary); font-weight:600; text-decoration:none; }
    .ai-quota-acts a:hover { text-decoration:underline; }
    .ai-quota-reset { color:var(--text-tertiary,#86909c) !important; font-weight:500 !important; display:inline-flex; align-items:center; gap:4px; }
    .ai-demo-tag { font-size:10px; font-weight:700; color:#8a6d00; background:#fff7e0; border:1px solid #ffe2a6; border-radius:4px; padding:0 4px; line-height:1.5; }
    /* 参考答法（一键填入） */
    .ai-eg { margin-top:9px; display:inline-flex; align-items:center; gap:6px; background:#f4f7ff; border:1px dashed #c7d6f7; color:#5b6b85; font-size:12.5px; padding:7px 12px; border-radius:9px; cursor:pointer; transition:all .15s; }
    .ai-eg:hover { background:#eaf0ff; border-color:#a9c2f5; color:#2E5FE8; }
    .ai-eg svg { color:#7C5CFF; flex:none; }
    /* 退出方案采集（对话内小链接） */
    .ai-quick-exit { display:block; margin-top:10px; background:none; border:none; padding:0; color:#8a97ad; font-size:12px; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
    .ai-quick-exit:hover { color:#5b6b85; }
    /* 企业识别结构化小表单 */
    .ai-cform { margin-top:6px; max-width:520px; background:#fff; border:1px solid var(--ai-card-bd,#e8ecf6); border-radius:12px; box-shadow:0 2px 10px rgba(20,40,80,.05); padding:14px 16px; }
    .ai-cf-row { display:block; margin-bottom:12px; }
    .ai-cf-lb { display:block; font-size:12.5px; font-weight:600; color:#42526b; margin-bottom:5px; }
    .ai-cf-lb i { color:#e5484d; font-style:normal; }
    .ai-cf-lb em { color:#8a97ad; font-style:normal; font-weight:500; }
    .ai-cf-in { width:100%; box-sizing:border-box; border:1px solid #d7e0ee; border-radius:9px; padding:9px 12px; font-size:14px; color:#0f1f3d; transition:border-color .15s, box-shadow .15s; font-family:inherit; }
    .ai-cf-in:focus { outline:none; border-color:#2E5FE8; box-shadow:0 0 0 3px rgba(46,95,232,.12); }
    .ai-cf-ta { resize:vertical; min-height:44px; line-height:1.5; }
    .ai-cf-sel { cursor:pointer; background-color:#fff; appearance:none; -webkit-appearance:none; -moz-appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a97ad' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat:no-repeat; background-position:right 10px center; padding-right:34px; }
    .ai-cf-sel:invalid, .ai-cf-sel option[value=""] { color:#9aa6ba; }
    .ai-cf-acts { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:2px; }
    .ai-cf-submit { border:none; background:linear-gradient(135deg,#2E5FE8,#7C5CFF); color:#fff; font-size:14px; font-weight:700; padding:10px 20px; border-radius:10px; cursor:pointer; box-shadow:0 4px 14px rgba(94,74,220,.26); transition:filter .15s; }
    .ai-cf-submit:hover { filter:brightness(1.06); }
    .ai-cf-up { display:inline-flex; align-items:center; gap:6px; border:1px solid #d7e0ee; background:#f6f8fd; color:#5b6b85; font-size:12.5px; padding:9px 12px; border-radius:9px; cursor:pointer; }
    .ai-cf-up:hover { border-color:#b6ccf7; color:#2E5FE8; }
    /* 必填齐备后的常驻「生成方案报告」入口（输入框上方，醒目不可错过） */
    #page-ai-consult .ai-gen-ready { max-width:820px; margin:0 auto 10px; width:calc(100% - 48px); display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:12px; background:linear-gradient(135deg,#ecfdf3,#eef3ff); border:1px solid #cde7d8; box-shadow:0 4px 14px rgba(47,125,79,.12); animation:aiPfIn .3s ease; }
    #page-ai-consult .ai-gen-ready .ai-gen-ready-t { display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:700; color:#2f7d4f; }
    #page-ai-consult .ai-gen-ready .ai-gen-ready-btn { margin-left:auto; display:inline-flex; align-items:center; gap:7px; border:none; border-radius:10px; background:linear-gradient(135deg,#2E5FE8,#7C5CFF); color:#fff; font-size:14px; font-weight:700; padding:9px 18px; cursor:pointer; box-shadow:0 6px 18px rgba(94,74,220,.28); animation:aiGenPulse 1.8s ease-in-out infinite; }
    #page-ai-consult .ai-gen-ready .ai-gen-ready-btn:hover { filter:brightness(1.06); }
    @media (max-width:640px){ #page-ai-consult .ai-gen-ready { width:calc(100% - 28px); } }
    /* 充值弹窗（钱包授权支付） */
    .rc-pkgs { display:flex; gap:10px; margin-bottom:16px; }
    .rc-pkg { flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:14px 8px; border:1.5px solid var(--border); border-radius:12px; background:#fff; cursor:pointer; transition:all .15s; }
    .rc-pkg:hover { border-color:#b6ccf7; }
    .rc-pkg.on { border-color:#2E5FE8; background:linear-gradient(180deg,#f4f7ff,#fff); box-shadow:0 4px 14px rgba(46,95,232,.14); }
    .rc-pkg b { font-size:20px; color:#0f1f3d; }
    .rc-pkg span { font-size:12px; color:#8a97ad; }
    .rc-pkg em { margin-top:4px; font-style:normal; font-size:13px; font-weight:700; color:#2E5FE8; }
    .rc-pay-line { display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-top:1px solid #eef2f8; font-size:14px; color:#42526b; }
    .rc-pay-line b { font-size:18px; color:#0f1f3d; }
    .rc-chain { display:flex; align-items:center; gap:6px; font-size:12px; color:#2f7d4f; margin-bottom:16px; }
    .rc-chain svg { color:#2f7d4f; flex:none; }
    .rc-wallet { font-size:12.5px; color:#5b6b85; margin-bottom:10px; }
    .rc-wallet b { font-family:ui-monospace,Menlo,monospace; color:#0f1f3d; }
    .rc-btn { width:100%; height:46px; border:none; border-radius:12px; background:linear-gradient(135deg,#2E5FE8,#7C5CFF); color:#fff; font-size:15px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; box-shadow:0 6px 18px rgba(94,74,220,.28); transition:filter .15s; }
    .rc-btn:hover { filter:brightness(1.06); }
    .rc-btn[disabled] { opacity:.7; cursor:default; filter:none; }
    .rc-spin { width:15px; height:15px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation:rcSpin .7s linear infinite; }
    @keyframes rcSpin { to { transform:rotate(360deg); } }
    .rc-done { text-align:center; padding:8px 0 4px; }
    .rc-done-ic { width:52px; height:52px; border-radius:50%; margin:0 auto 12px; display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(135deg,#2f7d4f,#37b26b); box-shadow:0 8px 20px rgba(47,125,79,.3); }
    .rc-done-t { font-size:18px; font-weight:800; color:#0f1f3d; margin-bottom:4px; }
    .rc-done-s { font-size:13px; color:#5b6b85; margin-bottom:18px; }
    .rc-done-s b { color:#2f7d4f; }
    .ai-mic-btn { flex:none; width:40px; height:40px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); background:#f4f6fb; color:var(--text-secondary); border-radius:50%; cursor:pointer; transition:background .15s,color .15s,border-color .15s; }
    .ai-mic-btn:hover { background:var(--primary-light,#eef3ff); color:var(--primary); border-color:transparent; }
    .ai-mic-btn.recording { background:var(--danger,#f53f3f); color:#fff; border-color:transparent; animation:aiMicPulse 1.2s ease-in-out infinite; }
    @keyframes aiMicPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(245,63,63,.45);} 50%{ box-shadow:0 0 0 7px rgba(245,63,63,0);} }
    /* 中间：聊天区 */
    .ai-conv { flex:1; display:flex; flex-direction:column; min-width:0; padding:18px 22px; }
    .ai-conv .ai-modules { margin-bottom:14px; }
    .ai-conv .ai-chat { flex:1; min-height:0; max-height:none; }
    /* Issuance Agent · 平台内嵌页面（与后台融合，非弹框、无卡中卡） */
    #page-ai-consult { display:flex; flex-direction:column; }
    #page-ai-consult .page-title { margin-bottom:16px; }
    .ai-page-embed { max-width:none; height:calc(100vh - 128px); box-shadow:none; border:1px solid var(--border); border-radius:12px; background:#fff; }
    /* 聊天记录侧栏与对话区统一白底，仅用分隔线，避免出现"第二个侧边栏" */
    #page-ai-consult .ai-hist { background:#fff; width:240px; }
    #page-ai-consult .ai-hist-item.active { background:var(--primary-light); }
    #page-ai-consult .ai-conv { background:#fff; }
    @media (max-width:1024px){ #page-ai-consult .ai-hist { width:210px; } }
    @media (max-width:820px){ .ai-hist { display:none; } .ai-page { height:92vh; } #modal-ai-chat.modal-overlay { padding:0; } .ai-page { border-radius:0; } }

    /* ===================== AI 售前咨询页 ===================== */
    .ai-modules { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
    .ai-mod { border:1px solid var(--border); background:#fff; color:var(--text-secondary); border-radius:999px; padding:7px 18px; font-size:13px; cursor:pointer; transition:all .15s ease; }
    .ai-mod:hover { border-color:var(--primary); color:var(--primary); }
    .ai-mod.active { background:var(--primary); color:#fff; border-color:var(--primary); }
    .ai-layout { display:grid; grid-template-columns:1fr 300px; gap:16px; align-items:start; }
    .ai-main { display:flex; flex-direction:column; }
    .ai-chat { background:var(--bg-secondary); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px; min-height:340px; max-height:460px; overflow-y:auto; display:flex; flex-direction:column; gap:12px; }
    .ai-msg { max-width:80%; padding:11px 15px; border-radius:12px; font-size:14px; line-height:1.65; white-space:pre-wrap; }
    .ai-msg-user { align-self:flex-end; background:var(--primary); color:#fff; border-bottom-right-radius:4px; }
    .ai-msg-ai { align-self:flex-start; background:#fff; border:1px solid var(--border); color:var(--text-primary); border-bottom-left-radius:4px; }
    .ai-input-row { display:flex; gap:10px; margin-top:14px; align-items:center; }
    .ai-input-row input[type=text] { flex:1; height:var(--btn-height); padding:0 14px; border:1px solid var(--border); border-radius:var(--radius-sm); font-size:14px; }
    .ai-input-row input[type=text]:focus { outline:none; border-color:var(--primary); }
    .ai-upload-btn { flex:none; width:var(--btn-height); height:var(--btn-height); display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:50%; background:#f4f6fb; color:var(--text-secondary); cursor:pointer; padding:0; transition:border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease; }
    .ai-upload-btn svg { width:20px; height:20px; display:block; }
    .ai-upload-btn:hover { border-color:transparent; color:var(--primary); background:var(--primary-light); transform:translateY(-1px); }
    .ai-upload-btn:active { transform:scale(.94); }
    /* AI 分析过程 */
    .ai-process { background:#fff !important; border:1px solid var(--border) !important; }
    .ai-process-title { font-size:12px; font-weight:700; color:var(--text-tertiary); margin-bottom:10px; }
    .ai-step { display:flex; align-items:center; gap:9px; font-size:13px; color:var(--text-tertiary); padding:3px 0; }
    .ai-step .ai-step-ico { width:15px; height:15px; border-radius:50%; border:2px solid var(--border); box-sizing:border-box; flex:none; }
    .ai-step.active { color:var(--text-primary); }
    .ai-step.active .ai-step-ico { border-color:var(--primary); border-top-color:transparent; animation:aiSpin .7s linear infinite; }
    .ai-step.done { color:var(--text-secondary); }
    .ai-step.done .ai-step-ico { border-color:var(--success); background:var(--success); position:relative; }
    .ai-step.done .ai-step-ico::after { content:"✓"; position:absolute; inset:0; color:#fff; font-size:9px; line-height:11px; text-align:center; font-weight:700; }
    @keyframes aiSpin { to { transform:rotate(360deg); } }
    /* 文档附件气泡 */
    .ai-file-chip { display:inline-flex; align-items:center; gap:8px; }
    .ai-msg-user .ai-file-chip svg { opacity:.9; }
    .ai-suggests { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
    .ai-suggest { border:1px dashed var(--border); background:#fff; color:var(--text-secondary); border-radius:999px; padding:6px 14px; font-size:12.5px; cursor:pointer; }
    .ai-suggest:hover { border-color:var(--primary); color:var(--primary); border-style:solid; }
    .ai-side { display:flex; flex-direction:column; gap:16px; }
    .ai-quota-card { background:var(--warning-bg); border:1px solid #ffd8a8; border-radius:var(--radius-lg); padding:16px 18px; }
    .ai-quota-name { font-size:13px; color:var(--text-secondary); }
    .ai-quota-num { font-size:16px; color:var(--warning); font-weight:700; margin:4px 0 10px; }
    .ai-quota-num b { font-size:20px; }
    .ai-quota-bar { height:8px; border-radius:999px; background:#fff; overflow:hidden; }
    .ai-quota-fill { display:block; height:100%; background:var(--warning); border-radius:999px; }
    .ai-quota-fill.is-warn { background:var(--danger); }
    .ai-quota-tip { font-size:12px; color:var(--text-tertiary); margin-top:10px; }
    .ai-quota-card.is-exhausted { background:var(--danger-bg); border-color:#ffc9c9; }
    .ai-quota-card.is-exhausted .ai-quota-num { color:var(--danger); }
    .ai-conclusion-title { font-size:var(--text-md); font-weight:600; color:var(--text-primary); margin-bottom:12px; }
    .ai-conclusion-list { list-style:none; padding:0; margin:0 0 16px; }
    .ai-conclusion-list li { font-size:13px; color:var(--text-secondary); padding:6px 0; border-bottom:1px solid var(--border-light); }
    .ai-conclusion-list b { color:var(--success); }
    @media (max-width:980px){ .ai-layout{ grid-template-columns:1fr; } }

    /* ===================== 增值服务商城 ===================== */
    /* 更多服务与能力（定价页 · 纯展示） */
    .svc-cat-title { display:flex; align-items:baseline; gap:10px; font-size:var(--text-base); font-weight:700; color:var(--text-primary); margin:20px 0 12px; }
    .svc-cat-note { font-size:var(--text-xs); color:var(--text-tertiary); font-weight:400; }
    .svc-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:8px; }
    .svc-card { border:1px solid var(--border); border-radius:var(--radius-lg); background:#fff; padding:15px 16px; }
    .svc-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; }
    .svc-name { font-size:var(--text-base); font-weight:600; color:var(--text-primary); }
    .svc-scope { flex:none; font-size:11px; color:var(--text-secondary); background:var(--bg-secondary); border:1px solid var(--border); border-radius:999px; padding:2px 8px; }
    .svc-desc { font-size:var(--text-xs); color:var(--text-secondary); line-height:1.6; }
    @media (max-width:1100px){ .svc-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
    @media (max-width:680px){ .svc-grid { grid-template-columns:1fr; } }

    .addon-cat-title { display:flex; align-items:baseline; gap:10px; font-size:var(--text-md); font-weight:600; color:var(--text-primary); margin:22px 0 12px; }
    .addon-cat-note { font-size:var(--text-xs); font-weight:400; color:var(--text-tertiary); }
    .addon-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
    .addon-card { border:1px solid var(--border); border-radius:var(--radius-lg); background:#fff; padding:16px 18px; display:flex; flex-direction:column; transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
    .addon-card:hover { box-shadow:0 8px 24px rgba(20,40,80,.08); transform:translateY(-2px); border-color:#bcd6ff; }
    .addon-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
    .addon-name { font-size:var(--text-base); font-weight:600; color:var(--text-primary); }
    .addon-scope { flex:none; font-size:11px; color:var(--text-secondary); background:var(--bg-secondary); border:1px solid var(--border); border-radius:999px; padding:2px 8px; }
    .addon-desc { font-size:var(--text-xs); color:var(--text-secondary); line-height:1.6; flex:1; margin-bottom:14px; }
    .addon-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:12px; border-top:1px solid var(--border-light); }
    .addon-price { font-size:var(--text-md); font-weight:700; color:var(--success); }

    @media (max-width: 1100px) { .addon-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
    @media (max-width: 980px) {
      .pricing-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
      .sub-grid { grid-template-columns:1fr; }
      .ai-pricing-row { grid-template-columns:1fr; }
      .addon-grid { grid-template-columns:1fr; }
    }

  /* ============================================================
   * 改版：顶部一级分类（Issuance Agent / 代币管理）+ 登录入口
   * ============================================================ */
  #main-app.active { display: flex; flex-direction: column; min-height: 100vh; }
  .hip-topbar { height: 58px; flex: none; display: flex; align-items: center; gap: 28px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 60; }
  .hip-topbar-brand { display: flex; align-items: baseline; gap: 8px; }
  .hip-topbar-brand .htb-logo { font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--text-primary); }
  .hip-topbar-brand .htb-sub { color: var(--primary); font-weight: 700; font-size: 14px; }
  .hip-topbar-tabs { display: flex; align-items: center; gap: 6px; flex: 1; }
  .hip-tab { appearance: none; border: none; background: none; font-size: 15px; font-weight: 600; color: var(--text-secondary); padding: 8px 16px; border-radius: 8px; cursor: pointer; position: relative; transition: color .15s, background .15s; }
  .hip-tab:hover { color: var(--primary); background: var(--primary-light, #eef3ff); }
  .hip-tab.active { color: var(--primary); background: var(--primary-light, #eef3ff); }
  .hip-tab.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }
  .hip-topbar-right { display: flex; align-items: center; gap: 12px; }
  .hip-topbar-right .lang-select { margin: 0; height: 32px; }
  .hip-login-btn { height: 34px; padding: 0 18px; border-radius: 8px; background: var(--primary); color: #fff; border: none; font-size: 13px; font-weight: 600; cursor: pointer; }
  .hip-login-btn:hover { background: var(--primary-hover, #2450c8); }
  .hip-user-box { display: flex; align-items: center; gap: 10px; }
  .hip-user-btn { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; transition: border-color .15s, background .15s; }
  .hip-user-btn:hover { border-color: var(--primary); background: var(--primary-light, #eef3ff); }
  .mc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .mc-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
  .mc-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
  .mc-sub { font-size: 13px; color: var(--text-secondary); }
  .mc-card { background: var(--bg-secondary, #f6f8fc); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
  .mc-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-secondary); padding: 4px 0; }
  .mc-row b { color: var(--text-primary); }
  .mc-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #f2f3f5; color: var(--text-secondary); }
  .mc-badge-ok { background: var(--ok-bg, #e8f9ec); color: var(--ok, #00b42a); }
  .mc-bar { height: 6px; border-radius: 999px; background: #eef0f4; overflow: hidden; margin-top: 8px; }
  .mc-bar > i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
  .mc-tip { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
  .mc-subhist { margin-top: 6px; }
  .mc-subhist-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
  .mc-subhist-scroll { border: 1px solid var(--border); border-radius: 10px; overflow: auto; max-height: 240px; }
  .mc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .mc-table th { text-align: left; font-weight: 600; color: var(--text-secondary); background: var(--bg-secondary, #f6f8fc); padding: 8px 10px; white-space: nowrap; position: sticky; top: 0; }
  .mc-table td { padding: 8px 10px; color: var(--text-primary); border-top: 1px solid var(--border); white-space: nowrap; }
  .mc-table td.mc-empty { text-align: center; color: var(--text-secondary); padding: 18px 10px; }
  .mc-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #f2f3f5; color: var(--text-secondary); }
  .mc-tag-ok { background: var(--ok-bg, #e8f9ec); color: var(--ok, #00b42a); }
  .hip-user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
  .hip-user-email { font-size: 13px; color: var(--text-secondary); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hip-user-caret { flex: none; color: var(--text-tertiary, #86909c); margin-left: 1px; transition: color .15s, transform .15s; }
  .hip-user-btn:hover .hip-user-caret { color: var(--primary); }
  .hip-shell { display: flex; flex: 1; min-height: 0; }
  .hip-shell .sidebar { position: sticky; top: 58px; height: calc(100vh - 58px); }
  /* Issuance Agent 模式：隐藏代币管理侧栏，聊天页占满，去掉多余层级 */
  #main-app.ai-mode .hip-shell .sidebar { display: none; }
  #main-app.ai-mode .main-content { padding: 0; }

  /* Issuance Agent：整页铺满、无外框，与顶栏无缝（避免"窗口内嵌窗口"） */
  #page-ai-consult { height: 100%; }
  #page-ai-consult .ai-page-embed { height: calc(100vh - 58px); border: none; border-radius: 0; box-shadow: none; overflow: hidden; }
  #page-ai-consult .ai-hist { width: 248px; background: #fbfcfe; border-right: 1px solid var(--border); }
  #page-ai-consult .ai-new { border-radius: 10px; box-shadow: 0 1px 2px rgba(46, 95, 232, .08); }
  #page-ai-consult .ai-conv { padding: 0; }
  #page-ai-consult .ai-chat { background: transparent; border: none; border-radius: 0; padding: 24px 0 8px; gap: 14px; }
  #page-ai-consult .ai-msg { max-width: 76%; }
  #page-ai-consult .ai-suggests { margin-top: 14px; }
  #page-ai-consult .ai-suggests button { border: 1px solid var(--border); background: #fff; color: var(--text-secondary); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all .15s ease; }
  #page-ai-consult .ai-suggests button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
  #page-ai-consult .ai-input-row { margin-top: 16px; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px 10px; box-shadow: 0 2px 8px rgba(20, 40, 80, .04); transition: border-color .15s ease, box-shadow .15s ease; }
  #page-ai-consult .ai-input-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46, 95, 232, .12); }
  #page-ai-consult .ai-input-row input[type=text] { border: none; height: 40px; background: transparent; }
  #page-ai-consult .ai-input-row input[type=text]:focus { border: none; outline: none; }
  #page-ai-consult .ai-input-row .btn-primary { border-radius: 10px; padding: 0 22px; height: 40px; }
  #page-ai-consult .ai-upload-btn { width: 40px; height: 40px; }

  /* Issuance Agent 启动页：精简 · Web3 + AI 质感（居中 · 光球 · 渐变 · chips） */
  #page-ai-consult .ai-launch { flex: 1; min-height: 0; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 24px 20px;
    background: radial-gradient(680px 280px at 50% 8%, rgba(124, 92, 255, .10), rgba(46, 95, 232, 0) 70%); }
  .ai-launch-inner { width: 100%; max-width: 720px; margin: 0 auto; text-align: center; }
  .ai-orb { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2E5FE8, #7C5CFF); box-shadow: 0 12px 34px rgba(94, 74, 220, .38), inset 0 0 0 1px rgba(255, 255, 255, .18); position: relative; }
  .ai-orb::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, .28), rgba(124, 92, 255, 0) 70%); z-index: -1; }
  .ai-hero-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px;
    background: linear-gradient(90deg, #1F3864, #2E5FE8 45%, #7C5CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .ai-hero-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
  .ai-hero-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 8px 10px; box-shadow: 0 10px 32px rgba(46, 95, 232, .10); margin-bottom: 18px; }
  .ai-hero-box:focus-within { border-color: transparent; box-shadow: 0 0 0 2px rgba(124, 92, 255, .35), 0 10px 32px rgba(46, 95, 232, .14); }
  .ai-hero-input { flex: 1; border: none; outline: none; height: 46px; font-size: 15px; background: transparent; padding: 0 8px; color: var(--text-primary); }
  .ai-hero-upload { flex: none; width: 42px; height: 42px; border: none; background: #f4f6fb; border-radius: 50%; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
  .ai-hero-upload:hover { background: var(--primary-light, #eef3ff); color: var(--primary); }
  .ai-hero-send { flex: none; width: 46px; height: 46px; border: none; border-radius: 12px; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2E5FE8, #7C5CFF); box-shadow: 0 6px 16px rgba(94, 74, 220, .35); transition: filter .15s, transform .15s; }
  .ai-hero-send:hover { filter: brightness(1.06); transform: translateY(-1px); }
  .ai-chip-hint { font-size: 12.5px; color: var(--text-tertiary, #86909c); margin-bottom: 12px; }
  .ai-chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .ai-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; color: var(--text-primary); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s, color .15s; }
  .ai-chip:hover { border-color: #7C5CFF; color: var(--primary); box-shadow: 0 6px 16px rgba(94, 74, 220, .16); transform: translateY(-1px); }
  .ai-chip-cat { font-size: 11px; color: var(--primary); background: var(--primary-light, #eef3ff); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
  @media (max-width: 760px) { .ai-hero-title { font-size: 22px; } }
  /* 登录等全屏遮罩置顶 */
  #login-screen, #verify-screen, #forgot-screen, #reset-pwd-screen { position: fixed; inset: 0; z-index: 3000; }

  @media (max-width: 768px) {
    .hip-topbar { gap: 12px; padding: 0 14px; height: 52px; }
    .hip-topbar-brand .htb-logo { font-size: 16px; }
    .hip-tab { font-size: 14px; padding: 6px 10px; }
    .hip-user-email { display: none; }
    .hip-shell .sidebar { position: static; height: auto; }
  }

/* ===== 顶部方案编排卡（统一列宽 820 · 规整卡片） ===== */
#page-ai-consult .ai-profile-card { max-width: 820px; width: calc(100% - 48px); margin: 16px auto 2px; padding: 14px 18px; background: #fff; border: 1px solid #e6ebf5; border-radius: 14px; box-shadow: 0 2px 10px rgba(20, 40, 80, .05); box-sizing: border-box; }
.ai-pf-head { display: flex; align-items: center; gap: 10px; }
.ai-pf-title { font-weight: 700; font-size: 13px; color: #0f1f3d; }
.ai-pf-prog { font-size: 12px; color: #5b6b85; }
.ai-pf-gen { margin-left: auto; border: none; background: linear-gradient(135deg, #2E5FE8, #6b46e8); color: #fff; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.ai-pf-gen.disabled { opacity: .5; cursor: not-allowed; }
.ai-pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-pf-chip { font-size: 11.5px; padding: 3px 9px; border-radius: 20px; background: #f2f5fb; color: #5b6b85; border: 1px solid #e6ecf6; }
.ai-pf-chip.on { background: #e8eefb; color: #2E5FE8; border-color: #cfdcfb; font-weight: 600; }
.ai-pf-chip.miss { background: #fff7ed; color: #b9770e; border-color: #f5e2c7; border-style: dashed; }
.ai-pf-bar { height: 4px; border-radius: 2px; background: #eef2f8; margin-top: 8px; overflow: hidden; }
.ai-pf-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2E5FE8, #6b46e8); border-radius: 2px; transition: width .3s; }
.ai-pf-tip { font-size: 11.5px; color: #8a97ad; margin-top: 6px; }
.ai-pf-hint { font-size: 11.5px; color: #8a97ad; margin-top: 8px; }
.ai-stages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.ai-stage { font-size: 11.5px; padding: 3px 9px; border-radius: 20px; background: #f2f5fb; color: #8a97ad; border: 1px solid #e6ecf6; white-space: nowrap; }
.ai-stage.done { background: #e7f3ec; color: #2f7d4f; border-color: #cfe8d8; }
.ai-stage.cur { background: #e8eefb; color: #2E5FE8; border-color: #cfdcfb; font-weight: 700; }
.ai-stage-sep { color: #c7d0de; font-size: 11px; }

/* 顶部进度条（stepper）：等分自适应，绝不溢出 */
.ai-flow-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-flow-title { font-weight: 700; font-size: 13.5px; color: #0f1f3d; }
.ai-flow-pct { font-size: 12px; color: #2E5FE8; font-weight: 800; }
.ai-flow-head .ai-pf-gen { margin-left: auto; }
.ai-stepper { display: flex; align-items: stretch; gap: 6px; margin-top: 12px; }
.ai-step-item { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 8px; border-radius: 8px; background: #f4f6fb; border: 1px solid #e6ecf6; transition: all .3s; }
.ai-step-ic { width: 16px; height: 16px; border-radius: 50%; background: #c7d0de; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.ai-step-nm { font-size: 11.5px; color: #8a97ad; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-step-item.done { background: #e7f3ec; border-color: #cfe8d8; }
.ai-step-item.done .ai-step-ic { background: #2f7d4f; }
.ai-step-item.done .ai-step-nm { color: #2f7d4f; }
.ai-step-item.cur { background: #e8eefb; border-color: #b6ccf7; }
.ai-step-item.cur .ai-step-ic { background: #2E5FE8; }
.ai-step-item.cur .ai-step-nm { color: #2E5FE8; font-weight: 700; }
.ai-flow-bar { height: 5px; border-radius: 3px; background: #eef2f8; margin-top: 12px; overflow: hidden; }
.ai-flow-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2E5FE8, #6b46e8); border-radius: 3px; transition: width .45s cubic-bezier(.4,0,.2,1); }
.ai-flow-bar.full i { background: linear-gradient(90deg, #2f7d4f, #37b26b); }
@media (max-width: 560px) { .ai-step-nm { display: none; } }
.ai-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.ai-sum-row { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ai-sum-dot { font-size: 10px; }
.ai-sum-l { color: #8a97ad; }
.ai-sum-v { color: #0f1f3d; font-weight: 600; }
.ai-sum-row.todo .ai-sum-v { color: #b8c0cf; font-weight: 400; }
.ai-sum-row.cur .ai-sum-v { color: #b9770e; }

/* 启动页 · 生成方案 CTA 卡 */
.ai-launch-cta { display: flex; align-items: center; gap: 16px; max-width: 520px; margin: 4px auto 20px; padding: 16px 18px; border: 1px solid #d7e0f5; border-radius: 14px; background: linear-gradient(135deg, #eef3ff, #f4efff); text-align: left; }
.ai-launch-cta-l { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ai-launch-cta-l b { font-size: 14px; color: #0f1f3d; }
.ai-launch-cta-l span { font-size: 12px; color: #5b6b85; line-height: 1.5; }
.ai-launch-cta-btn { flex: none; border: none; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 14px rgba(94, 74, 220, .28); transition: filter .15s; }
.ai-launch-cta-btn:hover { filter: brightness(1.06); }
@media (max-width: 560px) { .ai-launch-cta { flex-direction: column; align-items: stretch; text-align: center; } }

/* 生成报告入口（默认聊天时显示） */
#page-ai-consult .ai-plan-entry-wrap { max-width: 820px; margin: 0 auto 8px; width: calc(100% - 48px); display: flex; justify-content: center; }
.ai-plan-entry { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfdcfb; background: linear-gradient(135deg, #eef3ff, #f3edff); color: #2E5FE8; font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 20px; cursor: pointer; transition: all .15s; }
.ai-plan-entry:hover { border-color: #b6ccf7; box-shadow: 0 3px 12px rgba(46, 95, 232, .14); transform: translateY(-1px); }
/* 采集流程头部：退出 + 生成按钮靠右 */
.ai-flow-head .ai-pf-gen { margin-left: 0; }
.ai-flow-exit { margin-left: auto; font-size: 12px; color: #8a97ad; cursor: pointer; }
.ai-flow-exit:hover { color: #5b6b85; text-decoration: underline; }

/* 对话内快捷回复（选择题 + 上传） */
.ai-quick { margin: 10px 0 4px 42px; }
/* 问题块揭示：AI 文本打字机结束后，问题块（快捷回复 / 企业表单 / 追问）淡入上滑，避免整屏一次性弹出 */
#page-ai-consult .ai-quick,
#page-ai-consult .ai-followups { animation: aiQReveal .42s cubic-bezier(.22,1,.36,1) both; }
@keyframes aiQReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { #page-ai-consult .ai-quick, #page-ai-consult .ai-followups { animation: none; } }
.ai-quick-l { font-size: 11.5px; color: #8a97ad; margin-bottom: 8px; }
.ai-quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-qr { border: 1px solid #cfdcfb; background: #fff; color: #2E5FE8; font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 10px; cursor: pointer; transition: all .15s; }
.ai-qr:hover { background: #e8eefb; border-color: #b6ccf7; }
.ai-qr-up { color: #5b6b85; border-color: #d7e0ee; display: inline-flex; align-items: center; gap: 6px; }
.ai-qr-up:hover { background: #f2f5fb; }
.ai-gen-inline { display: inline-flex; align-items: center; gap: 7px; border: none; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); color: #fff; font-size: 14px; font-weight: 700; padding: 11px 22px; border-radius: 12px; cursor: pointer; box-shadow: 0 6px 18px rgba(94, 74, 220, .3); animation: aiGenPulse 1.8s ease-in-out infinite; }
.ai-gen-inline:hover { filter: brightness(1.06); }
@keyframes aiGenPulse { 0%, 100% { box-shadow: 0 6px 18px rgba(94, 74, 220, .3); } 50% { box-shadow: 0 6px 26px rgba(94, 74, 220, .5); } }
@media (max-width: 640px) { .ai-quick { margin-left: 8px; } }

/* 企业画像卡片（模拟全网检索结果） */
.ai-corp { margin: 10px 0 4px; border: 1px solid #dbe4f5; border-radius: 12px; background: linear-gradient(180deg, #f7faff, #fff); padding: 13px 15px; white-space: normal; }
.ai-corp-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ai-corp-nm { font-size: 14.5px; font-weight: 700; color: #0f1f3d; }
.ai-corp-tag { font-size: 11px; font-weight: 700; color: #2f7d4f; background: #e7f3ec; border: 1px solid #cfe8d8; border-radius: 999px; padding: 2px 9px; }
.ai-corp-tag.alt { color: #ad6800; background: #fff7e6; border-color: #ffe0a3; }
.ai-corp-row { display: flex; gap: 10px; padding: 6px 0; border-top: 1px dashed #e6ecf6; font-size: 13px; color: #42526b; line-height: 1.6; }
.ai-corp-row:first-of-type { border-top: none; }
.ai-corp-row > b { flex: none; width: 74px; color: #8a97ad; font-weight: 600; font-size: 12px; padding-top: 1px; }
.ai-corp-segs { margin: 0; padding-left: 16px; }
.ai-corp-segs li { margin: 1px 0; }
.ai-corp-note { margin: 8px 0 2px; padding: 8px 10px; background: #eef3ff; border-radius: 8px; font-size: 12.5px; color: #3a4a66; line-height: 1.6; }
.ai-corp-assets { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-corp-chip { font-size: 12px; font-weight: 600; color: #2E5FE8; background: #eaf0ff; border: 1px solid #cfdcfb; border-radius: 8px; padding: 3px 10px; }

/* 同类代币化案例列表 */
.ai-cases { margin: 10px 0 4px; display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.ai-case { border: 1px solid #e2e8f6; border-left: 3px solid #7C5CFF; border-radius: 10px; background: #fff; padding: 10px 13px; }
.ai-case-nm { font-size: 13.5px; font-weight: 700; color: #0f1f3d; margin-bottom: 4px; }
.ai-case-ft { font-size: 12.5px; color: #42526b; line-height: 1.65; }
.ai-pf-next { margin-top: 8px; font-size: 12px; color: #42526b; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ai-pf-next.ok { color: #2f7d4f; font-weight: 600; }
.ai-pf-next-q { font-weight: 700; color: #0f1f3d; margin-right: 2px; }
.ai-pf-opt { border: 1px solid #cfdcfb; background: #fff; color: #2E5FE8; font-size: 12px; padding: 4px 10px; border-radius: 16px; cursor: pointer; }
.ai-pf-opt:hover { background: #e8eefb; }
.ai-pf-next-tip { color: #8a97ad; font-size: 11px; }

/* ===== 发行方案报告 · 豆包式分栏面板（迭代 2.0） ===== */
/* 分栏：开启报告后左聊天列收窄、右侧报告面板出现（聊天可继续，不遮挡） */
#page-ai-consult .ai-page-body { position: relative; }
#page-ai-consult .ai-page-body.report-open .ai-conv { flex: 1 1 46%; min-width: 380px; border-right: 1px solid var(--ai-card-bd, #e8ecf6); }
.ai-report-panel { flex: 1 1 54%; min-width: 0; display: flex; flex-direction: column; background: #f4f6fb; overflow: hidden; animation: rpSlideIn .3s cubic-bezier(.22,1,.36,1) both; }
@keyframes rpSlideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
#page-ai-consult .ai-plan-report { flex: 1; overflow-y: auto; background: #f4f6fb; min-height: 0; }
/* 面板头工具条：标题 + 类型/篇幅/版本 + 操作 */
.rp-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 18px; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.1) blur(6px); border-bottom: 1px solid #e6ecf6; box-shadow: 0 1px 0 rgba(15,31,61,.02); flex-wrap: wrap; }
.rp-head-l { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.rp-head-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); box-shadow: 0 3px 9px rgba(94,74,220,.3); }
.rp-head-tt { min-width: 0; }
.rp-head-title { font-size: 14.5px; font-weight: 800; color: #0f1f3d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.rp-head-sub { font-size: 11.5px; color: #8a97ad; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-head-v { color: #2E5FE8; font-weight: 700; }
.rp-updated { flex: none; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: #2f7d4f; background: #e6f6ec; border: 1px solid #c6ecd3; border-radius: 999px; padding: 3px 9px; opacity: 1; transition: opacity .5s ease; }
.rp-updated.fade { opacity: 0; }
.rp-vers { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.rp-ver { border: 1px solid #d7e0ee; background: #fff; color: #5b6b85; font-size: 11.5px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 7px; cursor: pointer; font-family: ui-monospace, Menlo, Consolas, monospace; transition: all .15s; }
.rp-ver:hover { border-color: #b6ccf7; color: #2E5FE8; }
.rp-ver.on { background: linear-gradient(135deg, #eef3ff, #f3edff); border-color: #b6ccf7; color: #2E5FE8; box-shadow: 0 2px 6px rgba(46,95,232,.12); }
.rp-head-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.rp-abtn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d7e0ee; background: #fff; color: #42526b; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.rp-abtn svg { flex: none; color: #7C5CFF; }
.rp-abtn:hover { border-color: #b6ccf7; color: #2E5FE8; background: #f6f9ff; }
.rp-abtn.rp-close { color: #8a97ad; }
.rp-abtn.rp-close svg { color: #8a97ad; }
.rp-abtn.rp-close:hover { border-color: #f3c6d9; color: #b23a6b; background: #fff5f8; }
.rp-abtn.rp-close:hover svg { color: #b23a6b; }
/* 我的方案列表操作按钮沿用 pr-abtn 观感 */
.pr-abtn { border: 1px solid #d7e0ee; background: #fff; color: #2E5FE8; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.pr-abtn.dg { color: #b23a6b; }
.pr-abtn:hover { background: #eef3fb; }
.pr-doc { max-width: 780px; margin: 20px auto 56px; background: #fff; border: 1px solid #e6ecf6; border-radius: 14px; padding: 32px 38px; box-shadow: 0 6px 24px rgba(15, 31, 61, .06); }
.pr-doc.pr-swap { animation: prSwap .4s cubic-bezier(.22,1,.36,1) both; }
@keyframes prSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pr-cover { border-bottom: 1px solid #eef2f8; padding-bottom: 20px; margin-bottom: 8px; }
.pr-badge { display: inline-block; background: #fadfea; color: #b23a6b; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 16px; margin-bottom: 10px; }
.pr-title { font-size: 26px; font-weight: 800; color: #0f1f3d; margin: 0 0 6px; }
.pr-meta { font-size: 12.5px; color: #8a97ad; margin-bottom: 14px; }
.pr-summary { background: #f8fafc; border: 1px solid #e6ecf6; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #42526b; line-height: 1.7; }
.pr-disc { font-size: 12px; color: #8a97ad; line-height: 1.6; margin-top: 12px; }
.pr-sec { padding: 16px 0; border-bottom: 1px solid #f2f5fb; }
.pr-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #0f1f3d; margin: 0 0 8px; }
.pr-sn { width: 22px; height: 22px; border-radius: 6px; background: #2E5FE8; color: #fff; font-size: 12.5px; display: flex; align-items: center; justify-content: center; flex: none; }
.pr-lock { margin-left: auto; font-size: 11px; font-weight: 700; color: #b23a6b; background: #fadfea; border: 1px solid #f3c6d9; padding: 2px 8px; border-radius: 16px; }
.pr-sec p { font-size: 13.5px; color: #42526b; line-height: 1.8; margin: 0; white-space: pre-wrap; }
.pr-cta { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.pr-sn.dim { background: #cbd5e8; }
.pr-paywall { margin-top: 18px; border: 1px dashed #cfdcfb; background: linear-gradient(180deg, #f6f9ff, #eef3fd); border-radius: 12px; padding: 20px; text-align: center; }
.pr-paywall-t { font-size: 16px; font-weight: 800; color: #0f1f3d; }
.pr-paywall-s { font-size: 12.5px; color: #5b6b85; margin-top: 6px; line-height: 1.6; }
.pr-lock-list { display: flex; flex-direction: column; gap: 6px; margin: 14px auto 0; max-width: 460px; text-align: left; }
.pr-lockrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8a97ad; background: #fff; border: 1px solid #eef2f8; border-radius: 8px; padding: 8px 12px; }
.pr-lockrow span:nth-child(2) { flex: 1; }
.pr-lockic { font-size: 13px; }
.pr-paywall-btn { margin-top: 16px; }

/* ===== 报告「动态揭示」串流（仪式感 · AI 实时撰写观感） ===== */
/* 揭示动画：封面 / 模块 / 收尾依次淡入上滑 */
.pr-cover.pr-reveal,
.pr-sec.pr-reveal,
.pr-cta.pr-reveal,
.pr-paywall.pr-reveal { animation: prReveal .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes prReveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
/* 未揭示模块：收起真实内容，展示「正在生成」微光占位 */
.pr-doc.pr-streaming .pr-sec.pr-pending { border-bottom-color: transparent; padding: 14px 0; }
.pr-sec.pr-pending > h2,
.pr-sec.pr-pending > p { display: none; }
.pr-cta.pr-pending,
.pr-paywall.pr-pending { display: none; }
.pr-shimmer { display: flex; flex-direction: column; gap: 11px; padding: 4px 0; }
.pr-shimmer span { display: block; border-radius: 6px; background: linear-gradient(90deg,#eef2f8 25%,#dde5f2 37%,#eef2f8 63%); background-size: 400% 100%; animation: prShimmer 1.3s ease-in-out infinite; }
.pr-sh-h { height: 15px; width: 40%; }
.pr-sh-l { height: 11px; width: 100%; }
.pr-sh-l.short { width: 66%; }
@keyframes prShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
/* 工具条内「正在生成 N / M 模块」状态 */
.pr-composing { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 12.5px; font-weight: 600; color: #2E5FE8; white-space: nowrap; }
.pr-composing b { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-weight: 800; }
.pr-composing ~ .pr-acts { margin-left: 14px; }
.pr-composing-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg,#2E5FE8,#7C5CFF); animation: prPulseDot 1.1s ease-in-out infinite; }
@keyframes prPulseDot { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46,95,232,.45); } 50% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(46,95,232,0); } }
.pr-composing { flex: none; }
@media (max-width: 640px) { .pr-composing { display: none; } }

/* ===== 分栏面板 · 响应式 ===== */
/* 中等宽度：面板略宽于聊天，避免两栏都太窄 */
@media (max-width: 1180px) {
  #page-ai-consult .ai-page-body.report-open .ai-conv { flex-basis: 40%; min-width: 340px; }
  .pr-doc { padding: 28px 30px; margin: 16px auto 48px; }
  .rp-head-title { max-width: 220px; }
}
/* 窄屏（≤ 900px）：报告面板改为覆盖式全宽浮层（聊天保留在下层，点「关闭」返回） */
@media (max-width: 900px) {
  #page-ai-consult .ai-page-body.report-open .ai-conv { flex: 1 1 auto; min-width: 0; border-right: none; }
  .ai-report-panel { position: absolute; inset: 0; z-index: 40; flex-basis: auto; box-shadow: -8px 0 30px rgba(15,31,61,.14); }
  .rp-head { padding: 10px 12px; }
  .rp-head-acts .rp-abtn { padding: 6px 9px; }
}
@media (max-width: 640px) {
  .rp-head-acts .rp-abtn { font-size: 0; padding: 7px; }
  .rp-head-acts .rp-abtn svg { width: 16px; height: 16px; }
  .pr-doc { padding: 22px 18px; border-radius: 12px; }
}

/* ===== 我的方案列表 ===== */
.mp-empty { font-size: 13px; color: #8a97ad; line-height: 1.7; padding: 8px 2px; }
.mp-list { display: flex; flex-direction: column; gap: 8px; }
.mp-item { display: flex; align-items: center; gap: 10px; border: 1px solid #e6ecf6; border-radius: 10px; padding: 12px 14px; }
.mp-main { flex: 1; cursor: pointer; min-width: 0; }
.mp-t { font-weight: 700; font-size: 13.5px; color: #0f1f3d; }
.mp-sub { font-size: 12px; color: #5b6b85; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-time { font-size: 11px; color: #a3adbf; margin-top: 2px; }
.mp-acts { display: flex; gap: 6px; flex: none; }

/* ============================================================
 * Issuance Agent · Web3 / AI 视觉统一（清爽 · 科技感）
 * 目标：一套卡片语言（同圆角 / 同柔和阴影 / 同发丝描边），
 *      克制的蓝紫渐变点缀 + 淡雅栅格与光晕背景 + 进度扫描微光。
 *      不改任何交互逻辑，仅统一观感（后置覆盖，就近生效）。
 * ============================================================ */
#page-ai-consult {
  --ai-accent: #2E5FE8;
  --ai-accent-2: #7C5CFF;
  --ai-grad: linear-gradient(135deg, #2E5FE8, #7C5CFF);
  --ai-surface: #f6f8fd;
  --ai-card-bd: #e8ecf6;
  --ai-card-radius: 14px;
  --ai-card-shadow: 0 2px 10px rgba(20, 40, 80, .05);
  --ai-hair: linear-gradient(90deg, rgba(46,95,232,.35), rgba(124,92,255,.35));
}
/* 沉浸式表面：淡雅径向光晕 + 极细栅格（web3 底纹，克制不喧宾夺主） */
#page-ai-consult .ai-conv {
  background:
    radial-gradient(820px 380px at 50% -6%, rgba(124, 92, 255, .09), rgba(124, 92, 255, 0) 60%),
    radial-gradient(680px 320px at 88% 4%, rgba(46, 95, 232, .07), rgba(46, 95, 232, 0) 55%),
    linear-gradient(0deg, rgba(15,31,61,.018) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, rgba(15,31,61,.018) 1px, transparent 1px) 0 0 / 40px 100%,
    var(--ai-surface);
}
#page-ai-consult .ai-composer { background: transparent; }
#page-ai-consult .ai-composer::before { background: linear-gradient(to top, var(--ai-surface), rgba(246, 248, 253, 0)); }

/* ---- 消息气泡：呼吸感 + 柔和层次 ---- */
/* 固定会话列宽度：避免「思考态内容窄→加载后变宽」导致整列水平错位跳动 */
#page-ai-consult .ai-thread { gap: 16px; width: 100%; box-sizing: border-box; }
#page-ai-consult .ai-msg-wrap { width: 100%; box-sizing: border-box; }
#page-ai-consult .ai-msg { padding: 12px 16px; line-height: 1.72; }
#page-ai-consult .ai-msg-ai { border-color: var(--ai-card-bd); box-shadow: var(--ai-card-shadow); border-radius: 14px 14px 14px 5px; }
#page-ai-consult .ai-msg-user { border-radius: 14px 14px 5px 14px; }
#page-ai-consult .ai-caret { display:inline-block; width:6px; height:1.02em; margin-left:2px; vertical-align:-2px; border-radius:1px; background:linear-gradient(180deg,#2E5FE8,#7C5CFF); animation:aiCaretBlink 1s step-end infinite; }
@keyframes aiCaretBlink { 0%,100%{opacity:1;} 50%{opacity:0;} }
#page-ai-consult .ai-think-live { color:var(--text-tertiary,#8a93a6); font-size:13px; background:linear-gradient(90deg,#2E5FE8,#7C5CFF,#2E5FE8); background-size:200% auto; -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; animation:aiThinkShimmer 1.6s linear infinite; }
@keyframes aiThinkShimmer { to { background-position:200% center; } }
#page-ai-consult .ai-av { box-shadow: 0 6px 16px rgba(94, 74, 220, .30); }
#page-ai-consult .ai-av::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.35), rgba(124,92,255,0) 70%); z-index: -1; }
#page-ai-consult .ai-av { position: relative; }

/* ---- 思考态：文档式（无卡片框），与答复正文同列同左缘对齐，加载→完成无跳动 ---- */
#page-ai-consult .ai-process { background: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 2px 0 0 !important; max-width: 100%; }
#page-ai-consult .ai-process-title { font-size: 13px; letter-spacing: .02em; margin-bottom: 9px; }
#page-ai-consult .ai-process-title::after { content: '···'; margin-left: 3px; color: var(--ai-accent-2); -webkit-text-fill-color: var(--ai-accent-2); animation: aiDots 1.4s steps(1) infinite; }
@keyframes aiDots { 0% { content: '·'; } 33% { content: '··'; } 66%, 100% { content: '···'; } }

/* ---- 折叠式「深度思考」块（Claude / DeepSeek 风格）：默认收起，点击展开查看模型推理 ---- */
#page-ai-consult .ai-think-block { margin: 2px 0 10px; }
#page-ai-consult .ai-think-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #e6e9f2; border-radius: 999px; background: #f6f7fb; color: #7b8394; font-size: 12.5px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
#page-ai-consult .ai-think-toggle:hover { background: #eef0f7; border-color: #dce0ec; color: #5b6478; }
#page-ai-consult .ai-think-block .ai-think-spark { color: #7C5CFF; opacity: .85; flex: none; }
#page-ai-consult .ai-think-block .ai-think-chev { flex: none; opacity: .6; transition: transform .25s ease; }
#page-ai-consult .ai-think-block.open .ai-think-chev { transform: rotate(90deg); }
#page-ai-consult .ai-think-block .ai-think-body { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .3s ease, margin .3s ease, padding .3s ease;
  margin: 0; padding: 0 12px; border-left: 2px solid #ececf4; color: #98a1b3; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
#page-ai-consult .ai-think-block.open .ai-think-body { max-height: 1600px; opacity: 1; margin: 8px 0 2px 6px; padding: 4px 12px; }
/* 进行中：思考标签轻微流光 */
#page-ai-consult .ai-think-block.live .ai-think-label { background: linear-gradient(90deg, #7b8394, #b7a6ff, #7b8394); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: aiThinkShimmer 1.8s linear infinite; }

/* ---- 推理轨迹：逐条柔和浮现 + 左侧时间线，替代死板的勾选清单 ---- */
#page-ai-consult .ai-process .ai-step { position: relative; font-size: 12.5px; line-height: 1.5; color: #aab2c2; padding: 3px 0 3px 2px; gap: 10px; align-items: flex-start;
  opacity: 0; max-height: 0; transform: translateY(3px); overflow: hidden;
  transition: opacity .4s ease, max-height .4s ease, transform .4s ease, color .3s ease; }
/* 仅展示已完成 + 进行中，未到的步骤先隐藏，形成逐条推进的节奏 */
#page-ai-consult .ai-process .ai-step.done,
#page-ai-consult .ai-process .ai-step.active { opacity: 1; max-height: 44px; transform: none; }
/* 图标：细点/微光旋转/淡勾，去掉刺眼的绿色实心圆 */
#page-ai-consult .ai-process .ai-step .ai-step-ico { width: 13px; height: 13px; margin-top: 3px; border: none; background: transparent; position: relative; box-sizing: border-box; }
#page-ai-consult .ai-process .ai-step .ai-step-ico::before { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #cfd6e3; transform: translate(-50%, -50%); }
#page-ai-consult .ai-process .ai-step.active { color: #5b6478; }
#page-ai-consult .ai-process .ai-step.active .ai-step-ico { border: 1.6px solid rgba(124, 92, 255, .55); border-top-color: transparent; border-radius: 50%; animation: aiSpin .7s linear infinite; }
#page-ai-consult .ai-process .ai-step.active .ai-step-ico::before { display: none; }
#page-ai-consult .ai-process .ai-step.done { color: #8a93a6; }
#page-ai-consult .ai-process .ai-step.done .ai-step-ico::before { display: none; }
#page-ai-consult .ai-process .ai-step.done .ai-step-ico::after { content: '✓'; position: absolute; inset: 0; color: #7C5CFF; opacity: .7; font-size: 12px; line-height: 13px; text-align: center; font-weight: 700; }
/* 进行中的那行文字带一层缓慢流光，暗示 AI 正在思考（旋转只作用于图标） */
#page-ai-consult .ai-process .ai-step.active { background: linear-gradient(90deg, #7b8394, #b7a6ff, #7b8394); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: aiThinkShimmer 2s linear infinite; }

/* ---- 统一卡片语言：企业画像 / 案例 / 尽调清单 / 快捷回复 / 参考资料 ---- */
#page-ai-consult .ai-corp,
#page-ai-consult .ai-docs { border: 1px solid var(--ai-card-bd); border-radius: var(--ai-card-radius); background: #fff; box-shadow: var(--ai-card-shadow); padding: 14px 16px; }
#page-ai-consult .ai-corp { background: linear-gradient(180deg, #f8faff, #fff); position: relative; overflow: hidden; }
#page-ai-consult .ai-corp::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ai-hair); }
#page-ai-consult .ai-corp-chip { background: #eef3ff; border-color: #d8e2fb; }
#page-ai-consult .ai-corp-note { background: #f5f8ff; }
#page-ai-consult .ai-cases { gap: 10px; }
#page-ai-consult .ai-case { border: 1px solid var(--ai-card-bd); border-left: none; border-radius: var(--ai-card-radius); box-shadow: var(--ai-card-shadow); padding: 12px 14px 12px 16px; position: relative; overflow: hidden; }
#page-ai-consult .ai-case::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ai-grad); }

/* ---- 代币化所需资料 / 尽调清单卡 ---- */
.ai-docs { margin: 12px 0 4px; white-space: normal; }
.ai-docs-hd { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.ai-docs-hd svg { flex: none; color: #2f7d4f; }
.ai-docs-t { font-size: 13px; font-weight: 700; color: #0f1f3d; }
.ai-docs-cls { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ai-accent); background: #eef3ff; border: 1px solid #d8e2fb; border-radius: 999px; padding: 2px 9px; }
.ai-docs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; }
.ai-docs-list li { position: relative; padding-left: 20px; font-size: 12.5px; color: #42526b; line-height: 1.55; }
.ai-docs-list li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 6px; height: 6px; border-radius: 2px; background: var(--ai-grad); }
.ai-docs-tip { margin-top: 11px; padding-top: 10px; border-top: 1px dashed #e6ecf6; font-size: 11.5px; color: #8a97ad; line-height: 1.55; }
@media (max-width: 640px) { .ai-docs-list { grid-template-columns: 1fr; } }

/* ---- 快捷回复：与卡片统一，选项按钮清爽 ---- */
#page-ai-consult .ai-qr { border-radius: 10px; border-color: #d8e2fb; }
#page-ai-consult .ai-refs-list { border-color: var(--ai-card-bd); border-radius: 12px; box-shadow: var(--ai-card-shadow); }
#page-ai-consult .ai-fu { border-radius: 999px; }

/* ---- 顶部进度卡：紧凑「扫描仪」+ 微光扫描进度条 ---- */
#page-ai-consult .ai-profile-card { border: 1px solid var(--ai-card-bd); border-radius: var(--ai-card-radius); box-shadow: var(--ai-card-shadow); position: relative; overflow: hidden; }
#page-ai-consult .ai-profile-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ai-hair); }
/* 内联进度卡：置于会话线程首位并 sticky 吸顶 —— 滚动时始终可见、不遮挡消息（消息在其下方滚动，卡片不透明遮住穿过部分） */
@keyframes aiPfIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
/* 纤细吸顶进度条（明显、常驻、不遮挡对话） */
#page-ai-consult .ai-pbar { position: sticky; top: 8px; z-index: 30; width: 100%; max-width: none; margin: 0 0 16px; box-sizing: border-box; background: linear-gradient(180deg,#ffffff,#f7f9ff); border: 1px solid var(--ai-card-bd,#e8ecf6); border-radius: 12px; box-shadow: 0 6px 18px rgba(20,40,80,.10); padding: 10px 14px; animation: aiPfIn .3s ease; }
.ai-pbar-head { display: flex; align-items: center; gap: 10px; }
.ai-pbar-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#2E5FE8,#7C5CFF); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(94,74,220,.3); }
.ai-pbar.done .ai-pbar-ic { background: linear-gradient(135deg,#2f7d4f,#37b26b); }
.ai-pbar-lb { font-size: 13px; font-weight: 700; color: #0f1f3d; white-space: nowrap; }
.ai-pbar-dots { display: flex; align-items: center; gap: 5px; margin-left: 4px; }
.ai-pbar-dot { width: 7px; height: 7px; border-radius: 50%; background: #d7deea; transition: all .3s; }
.ai-pbar-dot.done { background: #2f7d4f; }
.ai-pbar-dot.cur { background: #2E5FE8; box-shadow: 0 0 0 3px rgba(46,95,232,.18); }
.ai-pbar-pct { margin-left: auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 800; color: #2E5FE8; }
.ai-pbar.done .ai-pbar-pct { color: #2f7d4f; }
.ai-pbar-exit { font-size: 12px; color: #8a97ad; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ai-pbar-exit:hover { color: #5b6b85; }
.ai-pbar-track { display: block; height: 6px; border-radius: 4px; background: #eef2f8; overflow: hidden; margin-top: 9px; }
.ai-pbar-track i { display: block; height: 100%; background: linear-gradient(90deg,#2E5FE8,#7C5CFF); border-radius: 4px; transition: width .5s cubic-bezier(.4,0,.2,1); position: relative; }
.ai-pbar.done .ai-pbar-track i { background: linear-gradient(90deg,#2f7d4f,#37b26b); }
.ai-pbar-track i::after { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 40px; background: linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent); animation: aiScan 1.8s ease-in-out infinite; }
.ai-pbar.done .ai-pbar-track i::after { animation: none; }
@media (max-width: 640px) { .ai-pbar-dots { display: none; } }
/* 顶部类型标题栏（豆包式，位于对话区顶部随布局排布 · flex 流内不遮挡消息） */
#page-ai-consult .ai-topbar { flex: none; padding: 13px 24px 14px; border-bottom: 1px solid var(--ai-card-bd,#e8ecf6); background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.74)); backdrop-filter: saturate(1.18) blur(9px); -webkit-backdrop-filter: saturate(1.18) blur(9px); }
.ai-tb-row { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.ai-tb-title { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; color: #0f1f3d; white-space: nowrap; letter-spacing: .01em; }
.ai-tb-mod { font-size: 11px; font-weight: 700; letter-spacing: .01em; color: #6a4bff; background: #f2ecff; border: 1px solid #e2d8ff; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ai-tb-ic { display: inline-flex; width: 25px; height: 25px; border-radius: 8px; align-items: center; justify-content: center; font-size: 12.5px; background: linear-gradient(135deg,#2E5FE8,#7C5CFF); color: #fff; box-shadow: 0 3px 9px rgba(94,74,220,.30); }
/* 右侧 meta 群组：篇幅 + 资料完整度（单一进度指标，取代原「核心要素 6/6」与冗余百分比） */
.ai-tb-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.ai-tb-len { font-size: 12px; font-weight: 600; color: #8a97ad; white-space: nowrap; }
.ai-tb-prog { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.ai-tb-prog-lb { font-size: 12px; font-weight: 600; color: #5b6b85; }
.ai-tb-pct { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; font-weight: 800; color: #2E5FE8; font-variant-numeric: tabular-nums; transition: color .3s; }
.ai-topbar.full .ai-tb-pct { color: #2f9e56; }
.ai-tb-sub { font-size: 12.5px; color: #8a97ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-tb-bar { max-width: 820px; margin: 10px auto 0; height: 5px; border-radius: 999px; background: #e9eef6; overflow: hidden; }
.ai-tb-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#2E5FE8,#7C5CFF); border-radius: 999px; transition: width .6s cubic-bezier(.22,1,.36,1); position: relative; overflow: hidden; }
.ai-tb-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: aiTbScan 1.9s ease-in-out infinite; }
.ai-tb-bar.full i { background: linear-gradient(90deg,#2f7d4f,#37b26b); }
.ai-tb-bar.full i::after { animation: none; }
@keyframes aiTbScan { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
@media (max-width: 640px) { .ai-tb-mod, .ai-tb-len, .ai-tb-sub { display: none; } }
/* 侧边栏类型入口（Issuance Agent / 去生成代币化方案） */
.ai-hist-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #0f1f3d; letter-spacing: .01em; }
.ai-hist-logo { flex: none; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg,#2E5FE8,#7C5CFF); box-shadow: 0 3px 9px rgba(94,74,220,.32); }
.ai-modes { display: flex; flex-direction: column; gap: 5px; padding: 6px 10px 12px; border-bottom: 1px solid #eef2f8; margin-bottom: 8px; }
.ai-mode-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; color: var(--text2,#5b6b85); font-size: 13.5px; font-weight: 600; padding: 9px 12px; border-radius: 10px; cursor: pointer; transition: all .15s; }
.ai-mode-item svg { flex: none; color: #8a97ad; transition: color .15s; }
.ai-mode-item:hover { background: #f2f5fb; color: #0f1f3d; }
.ai-mode-item:hover svg { color: #5b6b85; }
.ai-mode-item.active { background: linear-gradient(135deg,#eef3ff,#f3edff); border-color: #d7e0f5; color: #2E5FE8; box-shadow: 0 2px 8px rgba(46,95,232,.08); }
.ai-mode-item.active svg { color: #2E5FE8; }
/* 「去生成代币化方案」= 转化主入口，作强调处理 */
.ai-mode-item.ai-mode-plan { color: #2E5FE8; }
.ai-mode-item.ai-mode-plan svg { color: #7C5CFF; }
.ai-mode-item.ai-mode-plan:not(.active) { border-color: #e0e8fb; background: linear-gradient(135deg,#f6f9ff,#faf8ff); }
.ai-mode-item.ai-mode-plan:hover { border-color: #cfdcfb; box-shadow: 0 3px 12px rgba(94,74,220,.14); }
.ai-hist-tag { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1.5; color: #7C5CFF; background: #f0ecff; border: 1px solid #e2daff; border-radius: 5px; padding: 0 5px; margin-right: 6px; vertical-align: 1px; }
.hist-collapsed .ai-mode-t { display: none; }
.hist-collapsed .ai-hist-brand { font-size: 0; gap: 0; }
.hist-collapsed .ai-modes { padding: 4px 6px 10px; }
.hist-collapsed .ai-mode-item { justify-content: center; padding: 10px 0; }
/* 生成方案「仪式感」加载 */
.ai-gen-wrap { max-width: 460px; margin: 8vh auto 0; text-align: center; padding: 0 24px; animation: aiPfIn .4s ease; }
.ai-gen-orb { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg,#2E5FE8,#7C5CFF); box-shadow: 0 12px 34px rgba(94,74,220,.4); animation: aiGenPulse 1.6s ease-in-out infinite; position: relative; }
.ai-gen-orb::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(124,92,255,.35); border-top-color: transparent; animation: rcSpin 1.1s linear infinite; }
@keyframes aiGenPulse { 0%,100% { transform: scale(1); box-shadow: 0 12px 34px rgba(94,74,220,.4); } 50% { transform: scale(1.06); box-shadow: 0 16px 40px rgba(94,74,220,.55); } }
.ai-gen-title { font-size: 20px; font-weight: 800; color: #0f1f3d; margin-bottom: 8px; }
.ai-gen-sub { font-size: 13px; color: #5b6b85; line-height: 1.6; margin-bottom: 22px; }
.ai-gen-bar { height: 6px; border-radius: 4px; background: #eef2f8; overflow: hidden; margin-bottom: 20px; }
.ai-gen-fill { display: block; height: 100%; background: linear-gradient(90deg,#2E5FE8,#7C5CFF); border-radius: 4px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.ai-gen-steps { text-align: left; display: flex; flex-direction: column; gap: 11px; }
.ai-gen-step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #a4adbd; transition: color .3s; }
.ai-gen-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d7deea; box-sizing: border-box; position: relative; transition: all .3s; }
.ai-gen-step.active { color: #2E5FE8; font-weight: 600; }
.ai-gen-step.active .ai-gen-dot { border-color: #2E5FE8; border-top-color: transparent; animation: rcSpin .9s linear infinite; }
.ai-gen-step.done { color: #2f7d4f; }
.ai-gen-step.done .ai-gen-dot { border-color: #2f7d4f; background: #2f7d4f; animation: none; }
.ai-gen-step.done .ai-gen-dot::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
#page-ai-consult .ai-flow-pct { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; }
.ai-flow-bar { position: relative; }
.ai-flow-bar i { position: relative; overflow: hidden; }
.ai-flow-bar i::after { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 42px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: aiScan 1.8s ease-in-out infinite; }
@keyframes aiScan { 0% { transform: translateX(-46px); } 100% { transform: translateX(320px); } }
.ai-flow-bar.full i::after { animation: none; }
.ai-step-item.cur { box-shadow: 0 0 0 3px rgba(46, 95, 232, .10); }

/* ---- 本环节「采集标准」清单（必填 ✓ / 待采集 · 选填可跳过） ---- */
.ai-std { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e6ecf6; display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.ai-std-l { font-size: 11.5px; font-weight: 700; color: #5b6b85; flex: none; padding-top: 3px; }
.ai-std .ai-pf-chips { margin-top: 0; flex: 1; }
.ai-std-opt { margin-left: 4px; font-size: 10px; color: #a3adbf; font-weight: 400; }
/* 「跳过（选填）」按钮：低调、区别于选项按钮 */
.ai-qr-skip { display: inline-flex; align-items: center; gap: 5px; color: #8a97ad; border-color: #e2e8f2; background: #fbfcff; font-weight: 600; }
.ai-qr-skip:hover { color: #5b6b85; background: #f2f5fb; border-color: #d7e0ee; }
.ai-qr-skip svg { flex: none; }

/* ---- 编号 / 技术参数：等宽科技感 ---- */
#page-ai-consult .pr-meta { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; letter-spacing: .01em; }

/* ---- 启动页：与整体一致的 web3 底纹 + 轻微浮动光球 ---- */
#page-ai-consult .ai-launch {
  background:
    radial-gradient(680px 300px at 50% 6%, rgba(124, 92, 255, .12), rgba(46, 95, 232, 0) 66%),
    linear-gradient(0deg, rgba(15,31,61,.02) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(15,31,61,.02) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--ai-surface);
}
.ai-orb { animation: aiFloat 4.5s ease-in-out infinite; }
@keyframes aiFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ai-launch-cta { box-shadow: 0 6px 20px rgba(94, 74, 220, .10); }

/* ---- 侧栏：与主表面协调、克制 ---- */
#page-ai-consult .ai-hist { background: #fbfcff; }

/* ---- 输入区：清爽发丝描边 + 聚焦渐变环 ---- */
#page-ai-consult .ai-input-row { border-color: var(--ai-card-bd); box-shadow: var(--ai-card-shadow); }
#page-ai-consult .ai-input-row:focus-within { border-color: transparent; box-shadow: 0 0 0 2px rgba(124, 92, 255, .30), var(--ai-card-shadow); }

/* ============================================================
 * 技能条（豆包式 skill composer）：composer 顶部技能 chips / 激活态 chip + 报告类型·篇幅选择器
 * ============================================================ */
#page-ai-consult .ai-skillbar { max-width: 820px; margin: 0 auto 8px; width: calc(100% - 48px); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ai-skill-label { font-size: 11.5px; font-weight: 700; color: #8a97ad; letter-spacing: .02em; margin-right: 2px; }
.ai-skill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ai-card-bd, #e6ebf5); background: #fff; color: #42526b; font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: border-color .15s, box-shadow .15s, color .15s, transform .12s, background .15s; }
.ai-skill:hover { border-color: #b6ccf7; color: #2E5FE8; box-shadow: 0 3px 10px rgba(46, 95, 232, .12); transform: translateY(-1px); }
.ai-skill:active { transform: translateY(0) scale(.97); box-shadow: none; }
.ai-skill:hover .ai-skill-ic { color: #2E5FE8; }
/* 主技能（生成方案报告）= 填充渐变主按钮，与轻量技能形成清晰层级 */
.ai-skill.primary { border: none; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); color: #fff; box-shadow: 0 4px 12px rgba(94, 74, 220, .24); }
.ai-skill.primary:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 6px 16px rgba(94, 74, 220, .30); }
.ai-skill.primary .ai-skill-ic { color: #fff; }
.ai-skill-ic { color: #7C5CFF; font-size: 13.5px; line-height: 1; }
/* 激活态：技能 chip（可 ×）+ 选择器 + 直接生成 */
.ai-skillbar.active { padding: 8px 12px; border: 1px solid #d7e0f5; border-radius: 12px; background: linear-gradient(135deg, rgba(238, 243, 255, .8), rgba(243, 237, 255, .7)); box-shadow: 0 2px 10px rgba(94, 74, 220, .08); }
.ai-skill-chip { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 6px 5px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(94, 74, 220, .28); }
.ai-skill-chip .ai-skill-ic { color: #fff; }
.ai-skill-x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: none; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; transition: background .15s; padding: 0; }
.ai-skill-x:hover { background: rgba(255, 255, 255, .4); }
.ai-skill-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #5b6b85; font-weight: 600; }
.ai-skill-sel > span { white-space: nowrap; }
.ai-skill-sel select { border: 1px solid #d7e0ee; background: #fff; color: #0f1f3d; font-size: 12.5px; font-weight: 600; padding: 5px 26px 5px 10px; border-radius: 8px; cursor: pointer; font-family: inherit; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a97ad' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 7px center; transition: border-color .15s, box-shadow .15s; }
.ai-skill-sel select:focus { outline: none; border-color: #2E5FE8; box-shadow: 0 0 0 3px rgba(46, 95, 232, .12); }
.ai-skill-gen { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 10px; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(94, 74, 220, .28); transition: filter .15s; }
.ai-skill-gen:hover { filter: brightness(1.06); }
.ai-skill-gen svg { flex: none; }
/* 技能条横向滚动容器：技能增多时横向滑动，保持一行简洁 */
.ai-skill-scroll { display: flex; align-items: center; gap: 8px; overflow-x: auto; flex: 1 1 auto; padding-bottom: 2px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ai-skill-scroll::-webkit-scrollbar { height: 4px; }
.ai-skill-scroll::-webkit-scrollbar-thumb { background: #d7e0ee; border-radius: 4px; }
.ai-skill-scroll .ai-skill { flex: none; white-space: nowrap; }
.ai-skill-hint { font-size: 11.5px; color: #8a97ad; font-weight: 500; }
@media (max-width: 640px) {
  #page-ai-consult .ai-skillbar { width: calc(100% - 28px); }
  .ai-skill-gen { margin-left: 0; width: 100%; justify-content: center; }
  .ai-skill-sel { flex: 1 1 44%; }
  .ai-skill-hint { display: none; }
}
/* 专项技能回复：联系专属专家 CTA / 对标分析 / 尽调清单 */
.ai-expert-cta { margin-top: 10px; }
.ai-expert-cta button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfdcfb; background: #fff; color: #2E5FE8; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ai-expert-cta button:hover { border-color: #b6ccf7; box-shadow: 0 3px 10px rgba(46, 95, 232, .14); }
.ai-cmp { margin: 10px 0 2px; border: 1px solid #e2e8f6; border-radius: 12px; background: linear-gradient(135deg, #f7f9ff, #fbfaff); padding: 10px 12px; }
.ai-cmp-hd { font-size: 12.5px; font-weight: 700; color: #42526b; margin-bottom: 8px; }
.ai-cmp-row { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.6; padding: 4px 0; border-top: 1px dashed #e6ecf6; }
.ai-cmp-row:first-of-type { border-top: none; }
.ai-cmp-row b { flex: none; width: 68px; color: #2E5FE8; font-weight: 700; }
.ai-cmp-row span { color: #4a5670; }
.ai-dd { margin: 10px 0 2px; border: 1px solid #e2e8f6; border-radius: 12px; background: #fff; padding: 12px 14px; }
.ai-dd-hd { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #1f2d4d; }
.ai-dd-hd svg { color: #2f7d4f; flex: none; }
.ai-dd-cls { font-weight: 500; font-size: 11.5px; color: #8a97ad; background: #f1f5ff; border: 1px solid #e2e8f6; border-radius: 20px; padding: 2px 10px; }
.ai-dd-tip { font-size: 11.5px; color: #8a97ad; margin: 6px 0 10px; }
.ai-dd-grp { margin-bottom: 10px; }
.ai-dd-gt { font-size: 12px; font-weight: 700; color: #2E5FE8; margin-bottom: 6px; }
.ai-ddc { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #42526b; line-height: 1.55; padding: 3px 0; cursor: pointer; }
.ai-ddc input { margin-top: 2px; flex: none; accent-color: #2E5FE8; cursor: pointer; }
.ai-ddc.done span { text-decoration: line-through; color: #a3adbf; }
.ai-dd-foot { margin-top: 8px; padding-top: 10px; border-top: 1px dashed #e6ecf6; }
.ai-dd-gen { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 10px; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); color: #fff; font-size: 12.5px; font-weight: 700; padding: 8px 15px; cursor: pointer; box-shadow: 0 4px 14px rgba(94, 74, 220, .24); transition: filter .15s; }
.ai-dd-gen:hover { filter: brightness(1.06); }
.ai-dd-gen svg { flex: none; }
/* 已知信息 chips（对话内，可编辑 / 清除） */
.ai-known { margin: 10px 0 4px 42px; padding: 10px 12px; border: 1px solid #e2e8f6; border-radius: 12px; background: linear-gradient(135deg, #f7f9ff, #fbfaff); animation: aiPfIn .3s ease; }
.ai-known-hd { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #42526b; margin-bottom: 8px; }
.ai-known-hd svg { color: #2f7d4f; flex: none; }
.ai-known-tip { font-weight: 400; color: #a3adbf; font-size: 11px; }
.ai-known-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-known-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #2E5FE8; background: #e8eefb; border: 1px solid #cfdcfb; border-radius: 20px; padding: 4px 6px 4px 11px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ai-known-chip:hover { border-color: #b6ccf7; box-shadow: 0 2px 8px rgba(46, 95, 232, .14); }
.ai-known-x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(46, 95, 232, .12); color: #2E5FE8; font-size: 13px; font-weight: 700; line-height: 1; }
.ai-known-x:hover { background: rgba(229, 72, 77, .16); color: #e5484d; }
@media (max-width: 640px) { .ai-known { margin-left: 8px; } }
/* 对话内「直接生成报告」入口 */
.ai-gennow-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-gen-now { display: inline-flex; align-items: center; gap: 7px; border: none; border-radius: 10px; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); color: #fff; font-size: 13.5px; font-weight: 700; padding: 9px 18px; cursor: pointer; box-shadow: 0 6px 18px rgba(94, 74, 220, .28); animation: aiGenPulse 1.8s ease-in-out infinite; }
.ai-gen-now:hover { filter: brightness(1.06); }
.ai-gen-now svg { flex: none; }
.ai-gennow-tip { font-size: 11.5px; color: #8a97ad; }

/* ============================================================
 * 描述式采集：示例 chips + 「需求确认」卡（统一卡片语言：同圆角 / 描边 / 间距）
 * ============================================================ */
.ai-egs { margin: 10px 0 4px 42px; animation: aiPfIn .3s ease; }
.ai-egs-l { font-size: 11.5px; color: #8a97ad; margin-bottom: 8px; }
.ai-egs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-eg-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; text-align: left; border: 1px dashed #cfdaf0; background: #f7f9ff; color: #4a5670; font-size: 12.5px; line-height: 1.35; padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.ai-eg-chip:hover { border-color: #a9c2f5; background: #eef3ff; color: #2E5FE8; box-shadow: 0 3px 10px rgba(46, 95, 232, .10); }
.ai-eg-chip.up { border-style: solid; border-color: #dbe3f2; color: #5b6b85; font-weight: 600; }
.ai-eg-chip.up svg { flex: none; color: #7C5CFF; }
/* 新手一键起步：更醒目的实心场景卡（点一下直接发送，无需组织语言） */
.ai-egs-lead { font-size: 12.5px; color: #46546e; font-weight: 600; margin-bottom: 9px; }
.ai-egs-starters { margin-bottom: 12px; }
.ai-eg-chip.start { border-style: solid; border-color: #cdbaff; background: #f4efff; color: #4a3f75; font-weight: 600; }
.ai-eg-chip.start:hover { border-color: #7C5CFF; background: #ede4ff; color: #5a3fd6; box-shadow: 0 4px 12px rgba(124, 92, 255, .16); }
@media (max-width: 640px) { .ai-egs { margin-left: 8px; } }

/* 需求确认卡 */
.ai-cc { margin: 12px 0 4px 42px; padding: 13px 14px; border: 1px solid #e2e8f6; border-radius: 14px; background: linear-gradient(135deg, #f7f9ff, #fbfaff); box-shadow: 0 2px 10px rgba(46, 95, 232, .05); animation: aiPfIn .3s ease; }
.ai-cc-hd { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; color: #0f1f3d; }
.ai-cc-hi { display: inline-flex; width: 22px; height: 22px; border-radius: 7px; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); flex: none; }
.ai-cc-hi svg { width: 13px; height: 13px; }
.ai-cc-meta { margin-left: auto; font-size: 11px; font-weight: 600; color: #8a97ad; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ai-cc-tip { font-size: 12px; color: #5b6b85; line-height: 1.5; margin: 7px 0 10px; }
.ai-cc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ai-cc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #2b3a55; background: #fff; border: 1px solid #dbe3f2; border-radius: 20px; padding: 5px 8px 5px 11px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ai-cc-chip:hover { border-color: #b6ccf7; box-shadow: 0 2px 8px rgba(46, 95, 232, .12); }
.ai-cc-chip b { font-weight: 700; color: #7688a5; font-size: 11px; margin-right: 2px; }
.ai-cc-chip.assume { border-style: dashed; border-color: #e3d8ff; background: #faf7ff; color: #5b4b86; }
.ai-cc-chip.assume:hover { border-color: #c9b6ff; box-shadow: 0 2px 8px rgba(124, 92, 255, .14); }
.ai-cc-chip.assume b { color: #9585c0; }
.ai-cc-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .02em; color: #7C5CFF; background: #efe9ff; border: 1px solid #e0d6ff; border-radius: 5px; padding: 1px 4px; }
.ai-cc-x { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: rgba(46, 95, 232, .10); color: #2E5FE8; font-size: 12px; font-weight: 700; line-height: 1; font-style: normal; }
.ai-cc-x:hover { background: rgba(229, 72, 77, .16); color: #e5484d; }
.ai-cc-empty { font-size: 12px; color: #a3adbf; }
.ai-cc-ask { margin-top: 10px; font-size: 12px; color: #5b6b85; line-height: 1.55; background: #eef3ff; border: 1px solid #dbe6ff; border-radius: 9px; padding: 8px 11px; }
.ai-cc-ask b { color: #2E5FE8; font-weight: 700; }
/* 新手安抚 + 「你将得到」微文案 */
.ai-cc-note { margin-top: 9px; font-size: 11.5px; color: #6b7890; line-height: 1.55; display: flex; gap: 6px; }
.ai-cc-note::before { content: "💡"; flex: none; }
.ai-cc-get { margin-top: 10px; font-size: 11.5px; color: #46546e; line-height: 1.6; background: #f4f7ff; border: 1px dashed #d5e0f7; border-radius: 9px; padding: 8px 11px; }
.ai-cc-get b { color: #2E5FE8; font-weight: 700; }
.ai-cc-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-cc-gen { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 10px; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); color: #fff; font-size: 13.5px; font-weight: 700; padding: 9px 18px; cursor: pointer; box-shadow: 0 6px 18px rgba(94, 74, 220, .26); transition: filter .15s, transform .15s; }
.ai-cc-gen:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ai-cc-gen svg { flex: none; }
.ai-cc-star { display: inline-flex; }
.ai-cc-more, .ai-cc-up { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dbe3f2; background: #fff; color: #5b6b85; font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: 10px; cursor: pointer; transition: border-color .15s, color .15s, box-shadow .15s; }
.ai-cc-more:hover, .ai-cc-up:hover { border-color: #b6ccf7; color: #2E5FE8; box-shadow: 0 2px 8px rgba(46, 95, 232, .10); }
.ai-cc-more svg, .ai-cc-up svg { flex: none; color: #7C5CFF; }
/* 资料完整度进度条（核心要素向解锁生成推进） */
.ai-cc-bar { height: 5px; border-radius: 999px; background: #e5ecfb; overflow: hidden; margin: 6px 0 2px; }
.ai-cc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2E5FE8, #7C5CFF); transition: width .4s ease; }
.ai-cc-meta.ok { color: #17936b; }
.ai-cc-meta.todo { color: #c67a12; }
/* 已识别的核心要素 chip 高亮（区别于普通已填项；不再有「假设」态） */
.ai-cc-chip.core { border-color: #bcd0fb; background: #f2f6ff; }
.ai-cc-chip.core b { color: #2E5FE8; }
/* 一步步引导：下一个待补齐核心问题（内嵌快捷选项卡） */
.ai-cc-guide { margin-top: 11px; padding: 10px 11px 4px; border: 1px solid #dbe6ff; border-radius: 11px; background: #f5f8ff; }
.ai-cc-guide-hd { font-size: 12px; color: #46546e; line-height: 1.5; margin-bottom: 4px; }
.ai-cc-guide-hd b { color: #2E5FE8; font-weight: 700; }
.ai-cc-guide-step { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); border-radius: 5px; padding: 1px 6px; margin-right: 6px; vertical-align: middle; }
.ai-cc-guide-left { color: #8a97ad; font-weight: 500; margin-left: 4px; }
.ai-cc-guide .ai-quick { margin: 4px 0 6px; }
/* 分组提醒（按环节成组列出仍缺项 + 一次性补充）——非一问一答 */
.ai-gg .ai-gg-lines { display: inline; }
.ai-gg-line { display: inline; margin-right: 2px; }
.ai-gg-line:not(:last-child)::after { content: '；'; color: #b3bdcf; }
.ai-gg-tag { display: inline-block; font-weight: 700; color: #2E5FE8; margin-right: 3px; }
/* 扁平清单：把仍缺的关键项「按名字」一行说清（配合「一次性补充」）*/
.ai-gg-scope { margin: 8px 0 2px; padding: 8px 11px; background: #fff7ed; border: 1px solid #fcd9a8; border-radius: 10px; font-size: 13px; line-height: 1.6; color: #7a4b12; }
.ai-gg-scope-lb { font-weight: 800; color: #b45309; }
.ai-gg-scope-names { font-weight: 700; color: #92400e; }
.ai-gg-scope-hint { color: #a8763a; font-weight: 500; }
.ai-gg-batch { font-size: 12px; color: #46546e; line-height: 1.6; margin: 6px 0 8px; }
.ai-gg-eg { display: inline; border: 1px dashed #b9caf5; background: #fff; color: #2E5FE8; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 8px; cursor: pointer; margin-left: 2px; }
.ai-gg-eg:hover { background: #eef3ff; border-color: #97b3f0; }
.ai-gg-rows { display: flex; flex-direction: column; gap: 7px; margin-bottom: 6px; }
.ai-gg-row { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.ai-gg-lab { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: #46546e; background: #eaf0ff; border: 1px solid #d7e2fb; border-radius: 7px; padding: 4px 8px; margin-top: 1px; white-space: nowrap; }
.ai-gg-btns { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; align-items: center; }
.ai-gg-btns .ai-qr { padding: 6px 11px; font-size: 12.5px; }
.ai-gg-btns .ai-eg { font-size: 12px; color: #2E5FE8; background: #fff; border: 1px dashed #b9caf5; border-radius: 8px; padding: 5px 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.ai-gg-btns .ai-eg:hover { background: #eef3ff; border-color: #97b3f0; }
.ai-gg-free { font-size: 12px; color: #8a97ad; }
/* 顾问式追问块（聚焦当前缺失环节、问出细节）——替代旧的快捷选项 chips + 浅示例 */
.ai-gg-probe { background: #eef3ff; border: 1px solid #cfe0ff; border-radius: 10px; padding: 10px 12px; margin: 8px 0 6px; }
.ai-gg-probe-hd { font-size: 11px; color: #3b62c9; font-weight: 700; letter-spacing: .02em; margin-bottom: 5px; }
.ai-gg-probe-q { font-size: 13px; color: #33415c; line-height: 1.7; }
.ai-gg-probe-q b, .ai-gg-probe-q strong { color: #2E5FE8; font-weight: 700; }
.ai-gg-probe .ai-gg-free { margin-top: 7px; color: #5b6b85; font-size: 12px; line-height: 1.6; }
.ai-gg-probe .ai-gg-free b, .ai-gg-probe .ai-gg-free strong { color: #46546e; font-weight: 700; }
/* 锦上添花（可选环节）提示：关键项已齐后展示 */
.ai-cc-opt { margin-top: 10px; padding: 8px 11px; border: 1px dashed #e2e8f2; border-radius: 10px; background: #fbfcff; font-size: 12px; color: #7688a5; line-height: 1.55; }
@media (max-width: 640px) { .ai-gg-lab { white-space: normal; } }
/* 6 环节微型 stepper（确认卡顶部）：已采齐 ✓ / 进行中高亮 / 未开始灰 */
.ai-cc-steps { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; flex-wrap: wrap; }
.ai-cc-dot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 800; color: #97a2b6; background: #eef1f7; border: 1px solid #e0e6f1; flex: 0 0 auto; }
.ai-cc-dot.done { color: #fff; background: linear-gradient(135deg, #17936b, #1eb37f); border-color: transparent; }
.ai-cc-dot.cur { color: #fff; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); border-color: transparent; box-shadow: 0 0 0 3px rgba(46,95,232,.15); }
/* 生成按钮锁定态（核心信息未齐）：视觉上「待解锁」，点击引导补齐而非臆造生成 */
.ai-cc-gen.is-locked { background: #eef1f7; color: #97a2b6; box-shadow: none; cursor: pointer; }
.ai-cc-gen.is-locked:hover { filter: none; transform: none; background: #e7ebf3; color: #6b7890; }
.ai-cc-gen.is-locked svg { color: #97a2b6; }
@media (max-width: 640px) { .ai-cc { margin-left: 8px; } .ai-cc-gen { flex: 1 1 100%; justify-content: center; } }

/* ---- 小屏适配：线程留白、快捷回复换行、步骤名折叠已在上文处理 ---- */
@media (max-width: 640px) {
  #page-ai-consult .ai-thread { padding: 0 14px; }
  #page-ai-consult .ai-composer .ai-input-row,
  #page-ai-consult .ai-disclaimer,
  #page-ai-consult .ai-plan-entry-wrap { width: calc(100% - 28px); }
}

/* ============================================================
 * 聊天窗口现代化（对标 Cursor / DeepSeek / Claude / 豆包）
 *   · AI 回复 Markdown 渲染 + 文档式排版；用户消息保留右侧气泡
 *   · 悬停显现的操作条 + tooltip；等宽代码块 + 复制
 *   · 更克制的表面与阅读列宽（~780）
 * ============================================================ */
/* 统一阅读列宽 ~780（消息 / 输入 / 进度卡 / 提示同宽居中，视觉对齐） */
#page-ai-consult .ai-thread,
#page-ai-consult .ai-composer .ai-input-row,
#page-ai-consult .ai-quota-mini,
#page-ai-consult .ai-disclaimer,
#page-ai-consult .ai-plan-entry-wrap,
#page-ai-consult .ai-profile-card { max-width: 780px; }

/* 助手消息 = 文档式（无气泡框、近满列宽、强可读排版）；用户消息 = 紧凑右侧气泡 */
#page-ai-consult .ai-msg-wrap-ai { gap: 12px; align-items: flex-start; }
#page-ai-consult .ai-msg-wrap-ai .ai-msg-col { max-width: 100%; flex: 1 1 auto; }
#page-ai-consult .ai-msg-ai.ai-md,
#page-ai-consult .ai-msg-ai.ai-rich,
#page-ai-consult .ai-msg-ai.ai-stream {
  background: transparent; border: none; box-shadow: none; border-radius: 0;
  padding: 1px 0 0; max-width: 100%; color: var(--text-primary);
  font-size: 14.5px; line-height: 1.75;
}
#page-ai-consult .ai-msg-user { padding: 10px 15px; font-size: 14.5px; line-height: 1.6; }

/* Markdown 排版（标题 / 段落 / 列表 / 引用 / 行内代码 / 链接） */
#page-ai-consult .ai-md { white-space: normal; }
#page-ai-consult .ai-md > :first-child { margin-top: 0; }
#page-ai-consult .ai-md > :last-child { margin-bottom: 0; }
#page-ai-consult .ai-md p { margin: 0 0 10px; }
#page-ai-consult .ai-md .ai-md-h { margin: 16px 0 8px; color: #0f1f3d; font-weight: 700; line-height: 1.4; }
#page-ai-consult .ai-md h2.ai-md-h { font-size: 17px; }
#page-ai-consult .ai-md h3.ai-md-h { font-size: 15.5px; }
#page-ai-consult .ai-md h4.ai-md-h, #page-ai-consult .ai-md h5.ai-md-h { font-size: 14px; }
#page-ai-consult .ai-md .ai-md-list { margin: 8px 0 12px; }
#page-ai-consult .ai-md .ai-md-list li { margin: 4px 0; line-height: 1.7; }
#page-ai-consult .ai-md ul.ai-md-list { list-style: none; padding-left: 6px; }
#page-ai-consult .ai-md ul.ai-md-list li { position: relative; padding-left: 18px; }
#page-ai-consult .ai-md ul.ai-md-list li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ai-grad); }
#page-ai-consult .ai-md ol.ai-md-list { padding-left: 22px; }
#page-ai-consult .ai-md ol.ai-md-list li { padding-left: 3px; }
#page-ai-consult .ai-md strong { color: #0f1f3d; font-weight: 700; }
#page-ai-consult .ai-md a { color: var(--ai-accent); text-decoration: none; border-bottom: 1px solid rgba(46, 95, 232, .35); }
#page-ai-consult .ai-md a:hover { border-bottom-color: var(--ai-accent); }
#page-ai-consult .ai-md-quote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid #7C5CFF; background: #f5f8ff; border-radius: 0 8px 8px 0; color: #42526b; font-size: 13.5px; }
/* 分隔线 */
#page-ai-consult .ai-md-hr { border: none; border-top: 1px solid #e6ecf6; margin: 14px 0; }
/* 反馈原因面板（豆包式）：点 👍/👎 后出现 */
#page-ai-consult .ai-fb-panel { margin: 8px 0 2px; background: #f7f9fc; border: 1px solid var(--border, #e6ecf6); border-radius: 12px; padding: 10px 12px; max-width: 660px; animation: aiFbIn .18s ease; }
@keyframes aiFbIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
#page-ai-consult .ai-fb-hd { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-secondary, #5b6b85); margin-bottom: 9px; }
#page-ai-consult .ai-fb-x { border: none; background: none; cursor: pointer; color: #9aa7bd; font-size: 17px; line-height: 1; padding: 0 2px; }
#page-ai-consult .ai-fb-x:hover { color: #5b6b85; }
#page-ai-consult .ai-fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#page-ai-consult .ai-fb-chip { border: 1px solid var(--border, #dbe2ee); background: #fff; border-radius: 999px; padding: 5px 13px; font-size: 12.5px; cursor: pointer; color: var(--text-primary, #1b2440); transition: all .12s; }
#page-ai-consult .ai-fb-chip:hover { border-color: #b9c6e6; }
#page-ai-consult .ai-fb-chip.on { border-color: #2E5FE8; background: #eef3fe; color: #2E5FE8; font-weight: 600; }
#page-ai-consult .ai-fb-submit { margin-left: auto; border: none; border-radius: 8px; padding: 6px 18px; font-size: 13px; font-weight: 600; cursor: pointer; color: #fff; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); }
#page-ai-consult .ai-fb-submit:hover { filter: brightness(1.06); }
/* 表格：卡片式、可横向滚动、表头浅蓝 */
#page-ai-consult .ai-md-tablewrap { margin: 10px 0 12px; overflow-x: auto; border: 1px solid #e6ecf6; border-radius: 10px; }
#page-ai-consult .ai-md-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#page-ai-consult .ai-md-table th, #page-ai-consult .ai-md-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #eef2f8; vertical-align: top; }
#page-ai-consult .ai-md-table th { background: #f4f7fd; color: #0f1f3d; font-weight: 700; white-space: nowrap; }
#page-ai-consult .ai-md-table tr:last-child td { border-bottom: none; }
#page-ai-consult .ai-md-table tbody tr:nth-child(even) td { background: #fafbfe; }
/* 首行标题与列表更紧凑、层级更清晰 */
#page-ai-consult .ai-md h2.ai-md-h { font-size: 16.5px; }
#page-ai-consult .ai-md h3.ai-md-h { font-size: 15px; }
#page-ai-consult .ai-md > .ai-md-h:first-child { margin-top: 2px; }
.ai-code-inline { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; background: #eef1f7; border: 1px solid #e2e8f2; border-radius: 5px; padding: 1px 6px; font-size: .9em; color: #3a4a66; }

/* 等宽代码块（深色 · web3 质感）+ 头部复制 */
.ai-codeblock { margin: 12px 0; border-radius: 12px; overflow: hidden; border: 1px solid #1e2940; background: #0e1526; box-shadow: 0 4px 16px rgba(15, 23, 42, .18); }
.ai-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 7px 14px; background: #131d33; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ai-code-lang { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8ea2c9; }
.ai-code-copy { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 1px solid rgba(255, 255, 255, .16); color: #c4d0e8; border-radius: 6px; padding: 3px 9px; font-size: 11.5px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ai-code-copy:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.ai-code-copy.done { color: #37d67a; border-color: rgba(55, 214, 122, .45); }
.ai-code-pre { margin: 0; padding: 13px 15px; overflow-x: auto; }
.ai-code-pre code { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; color: #e6ecf7; white-space: pre; }

/* 悬停显现的消息操作条（幽灵按钮 + 轻量 tooltip，Claude 风格） */
#page-ai-consult .ai-msg-acts { gap: 3px; margin: 8px 0 2px; }
#page-ai-consult .ai-msg-act { position: relative; height: 28px; width: 28px; padding: 0; justify-content: center; border: 1px solid transparent; background: transparent; color: var(--text-tertiary, #86909c); border-radius: 8px; }
#page-ai-consult .ai-msg-act:hover { background: #eef1f7; border-color: transparent; color: var(--ai-accent); }
#page-ai-consult .ai-msg-act.on { background: var(--primary-light, #eef3ff); color: var(--ai-accent); border-color: transparent; }
#page-ai-consult .ai-msg-act.done { color: #2f9e56; }
#page-ai-consult .ai-msg-regen { width: auto; padding: 0 10px; gap: 5px; font-size: 12px; }
.ai-msg-act[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(2px); background: #1d2129; color: #fff; font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease; z-index: 6; }
.ai-msg-act[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Composer：图标发送键（→ 生成中变停止），空输入禁用，圆润容器 */
#page-ai-consult .ai-input-row { border-radius: 16px; padding: 8px 8px 8px 12px; }
#page-ai-consult .ai-send { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: none; border-radius: 12px; color: #fff; cursor: pointer; background: linear-gradient(135deg, #2E5FE8, #7C5CFF); box-shadow: 0 4px 14px rgba(94, 74, 220, .28); transition: filter .15s, transform .12s, background .15s, box-shadow .15s; }
#page-ai-consult .ai-send:hover { filter: brightness(1.06); transform: translateY(-1px); }
#page-ai-consult .ai-send:active { transform: scale(.94); }
#page-ai-consult .ai-send.is-empty, #page-ai-consult .ai-send:disabled { background: #cbd5e8; box-shadow: none; cursor: default; transform: none; filter: none; }
#page-ai-consult .ai-send.is-stop { background: #fff; color: var(--danger, #f53f3f); border: 1px solid var(--danger, #f53f3f); box-shadow: none; }
#page-ai-consult .ai-send.is-stop:hover { background: #fff5f5; filter: none; transform: none; }

/* 小屏：助手文档列与列宽适配 */
@media (max-width: 640px) {
  #page-ai-consult .ai-msg-user { max-width: 86%; }
}

/* P2：匿名第 2 次发送登录门槛 —— 半透明浮层（不遮挡/不销毁背后对话，保留已输入问题） */
#page-ai-consult.page { position: relative; }
.ai-anon-gate { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; }
.ai-anon-dim { position: absolute; inset: 0; background: rgba(20, 26, 41, 0.28); backdrop-filter: blur(1.5px); }
.ai-anon-card { position: relative; z-index: 1; width: min(420px, 88%); background: #fff; border: 1px solid var(--border, #e5e6eb); border-radius: 16px; box-shadow: 0 18px 48px rgba(20, 26, 41, 0.22); padding: 24px 22px 20px; text-align: center; }
.ai-anon-x { position: absolute; top: 10px; right: 12px; border: none; background: transparent; font-size: 22px; line-height: 1; color: var(--text-tertiary, #86909c); cursor: pointer; }
.ai-anon-x:hover { color: var(--text-primary, #1d2129); }
.ai-anon-ic { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary, #165dff); background: var(--primary-light, #e8f3ff); }
.ai-anon-t { font-size: 17px; font-weight: 600; color: var(--text-primary, #1d2129); }
.ai-anon-sub { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--text-secondary, #4e5969); }
.ai-anon-q { margin: 12px 0 4px; padding: 8px 12px; background: var(--bg-secondary, #f7f8fa); border-radius: 10px; font-size: 13px; color: var(--text-secondary, #4e5969); text-align: left; }
.ai-anon-acts { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ai-anon-acts .btn { width: 100%; }

/* ============================================================
 * MVP（阶段一）模式：隐藏阶段二功能（仅 html.mvp 生效，full demo 不受影响）
 * 逻辑关闭在 JS 中以 isMVP() 短路；此处只做纯 UI 隐藏。
 * ============================================================ */
/* ① 多语言：隐藏语言切换下拉（MVP 只用简体中文） */
html.mvp .lang-select { display: none !important; }
/* ④ 订阅弹窗：隐藏「信用卡 / Visa」支付方式（仅保留加密货币支付） */
html.mvp #modal-ai-subscribe .pay-method-card { display: none !important; }

