:root {
  --primary: #6098f2;
  --primary-light: #eef5ff;
  --primary-dark: #2f67c8;
  --ai-purple: #8a84e8;
  --ai-cyan: #61d0dd;
  --ai-ink: #222633;
  --ai-surface: rgba(255,255,255,.82);
  --ai-line: rgba(96,152,242,.18);
  --success: #10b981;
  --success-bg: #d1fae5;
  --success-text: #059669;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --warning-text: #d97706;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --danger-text: #ef4444;
  --info: #6098f2;
  --info-bg: #eef5ff;
  --info-text: #2f67c8;
  --bg: #f6f9ff;
  --card: rgba(255,255,255,.9);
  --border: #dbe7fb;
  --secondary-bg: #f2f7ff;
  --row-alt: #f8fbff;
  --text: #222633;
  --text-2: #66758f;
  --text-3: #9aa9c0;
  --radius-btn: 10px;
  --radius-input: 12px;
  --radius-card: 14px;
  --radius-modal: 12px;
  --shadow-card: 0 12px 36px rgba(59,95,160,.08), 0 1px 2px rgba(79,119,190,.06);
  --shadow-hover: 0 18px 46px rgba(59,95,160,.14), 0 0 0 1px rgba(96,152,242,.18);
  --shadow-modal: 0 22px 60px rgba(34,38,51,.18);
  --sidebar-w: 232px;
  --topbar-h: 56px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.login-mode {
  background:
    radial-gradient(ellipse 70% 50% at 18% 22%, rgba(60,120,220,.45), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 78%, rgba(120,90,220,.35), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(60,180,220,.25), transparent 60%),
    linear-gradient(160deg, #050d22 0%, #081536 38%, #0a1a45 70%, #050b1f 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(96,152,242,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,152,242,.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
}
body.login-mode::before { display: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--primary); text-decoration: none; }
.hidden { display: none !important; }

/* ===== 通用元素 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 150ms cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--ai-purple));
  color: #fff;
  box-shadow: 0 8px 18px rgba(96,152,242,.22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #6f68d8);
  box-shadow: 0 10px 24px rgba(96,152,242,.28);
}
.btn-outline { border-color: rgba(96,152,242,.2); background: rgba(255,255,255,.74); color: var(--text); }
.btn-outline:hover { border-color: rgba(96,152,242,.46); color: var(--primary-dark); background: rgba(238,245,255,.84); box-shadow: 0 0 0 3px rgba(97,208,221,.12); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--secondary-bg); color: var(--text); }
.btn-danger { background: var(--danger-bg); color: var(--danger-text); }
.btn-danger:hover { background: #fecaca; }
.btn-success { background: var(--success-bg); color: var(--success-text); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; height: 40px; font-size: 15px; }
.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-btn); color: var(--text-2);
  transition: all 150ms cubic-bezier(.4,0,.2,1); position: relative;
}
.icon-btn:hover { background: var(--secondary-bg); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); }
.input, .select, textarea.input {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: rgba(255,255,255,.86);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96,152,242,.18), 0 0 0 6px rgba(97,208,221,.08);
}
.input::placeholder, textarea.input::placeholder { color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
  background: var(--ai-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  backdrop-filter: blur(14px);
  transition: box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.card.hoverable:hover { box-shadow: var(--shadow-hover); border-color: rgba(96,152,242,.24); transform: translateY(-1px); }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 600; line-height: 1.4; color: #203d7c; }
.card-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.page-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.page-title { font-size: 20px; font-weight: 700; line-height: 1.3; color: #203d7c; }
.page-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; max-width: 760px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 12px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-green { background: var(--success-bg); color: var(--success-text); }
.tag-yellow { background: var(--warning-bg); color: var(--warning-text); }
.tag-red { background: var(--danger-bg); color: var(--danger-text); }
.tag-blue { background: var(--info-bg); color: var(--info-text); }
.tag-gray { background: var(--secondary-bg); color: var(--text-2); }
.tag-plain::before { display: none; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--success); }
.dot-yellow { background: var(--warning); }
.dot-red { background: var(--danger); }
.dot-blue { background: var(--info); }
.dot-gray { background: var(--text-3); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.table th {
  background: var(--secondary-bg);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}
.role-th { color: var(--primary-dark) !important; font-weight: 600 !important; }
.role-th:hover { color: var(--primary) !important; text-decoration: underline; }
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.5;
}
.table tbody tr:nth-child(even) { background: var(--row-alt); }
.table tbody tr:hover { background: var(--primary-light); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.table .link { color: var(--primary); cursor: pointer; }
.table .link:hover { text-decoration: underline; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 16px;
  display: flex; align-items: center; gap: 14px;
}
.kpi-ico {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.kpi-ico svg { width: 20px; height: 20px; }
.kpi-meta { min-width: 0; }
.kpi-label { font-size: 12px; color: var(--text-2); }
.kpi-value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi-delta { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.kpi-delta.up { color: var(--success-text); }
.kpi-delta.down { color: var(--danger-text); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.section { margin-bottom: 16px; }

.bar { height: 8px; border-radius: 4px; background: var(--secondary-bg); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--ai-purple), var(--primary), var(--ai-cyan)); }
.bar-green > i { background: var(--success); }
.bar-yellow > i { background: var(--warning); }
.bar-red > i { background: var(--danger); }

.progress-steps { display: flex; align-items: flex-start; gap: 0; }
.pstep { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.pstep::before {
  content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--border);
}
.pstep:first-child::before { display: none; }
.pstep.done::before { background: var(--success); }
.pstep-ico {
  width: 28px; height: 28px; border-radius: 50%; background: var(--secondary-bg);
  color: var(--text-3); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; z-index: 1; border: 2px solid var(--border);
}
.pstep.done .pstep-ico { background: var(--success-bg); color: var(--success-text); border-color: var(--success); }
.pstep.active .pstep-ico { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.pstep-label { font-size: 12px; color: var(--text-2); }
.pstep.done .pstep-label { color: var(--success-text); }
.pstep.active .pstep-label { color: var(--primary); font-weight: 600; }

.filter-bar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 16px; margin-bottom: 16px;
}
.filter-bar .field { min-width: 150px; flex: 1; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab {
  padding: 8px 12px; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 150ms ease;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.agent-steps {
  background: linear-gradient(90deg, rgba(238,245,255,.96), rgba(245,243,255,.96)); border: 1px solid rgba(96,152,242,.2); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--primary-dark);
  margin-bottom: 12px;
}
.agent-steps .spin { width: 16px; height: 16px; border: 2px solid rgba(96,152,242,.25); border-top-color: var(--ai-cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { border-radius: 6px; background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 40px 16px; color: var(--text-3); text-align: center;
}
.empty svg { width: 40px; height: 40px; opacity: .55; }

/* ===== 登录页（深色科技风 · AI 智库中枢） ===== */
.login-view { min-height: 100vh; display: block; background: transparent; }
.login-view--tech {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 18% 22%, rgba(60,120,220,.45), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 78%, rgba(120,90,220,.35), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(60,180,220,.25), transparent 60%),
    linear-gradient(160deg, #050d22 0%, #081536 38%, #0a1a45 70%, #050b1f 100%);
  color: #cfe0ff;
}

/* 星空层 */
.login-stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.stars-layer { position: absolute; inset: 0; }
.stars-layer--1 {
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 72%, #cfe0ff, transparent),
    radial-gradient(1.2px 1.2px at 47% 32%, #fff, transparent),
    radial-gradient(1px 1px at 63% 58%, #b9d6ff, transparent),
    radial-gradient(1px 1px at 78% 22%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 88% 68%, #fff, transparent),
    radial-gradient(1px 1px at 8% 88%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 35% 12%, #fff, transparent),
    radial-gradient(1px 1px at 92% 38%, #b9d6ff, transparent),
    radial-gradient(1px 1px at 22% 48%, #fff, transparent);
  background-size: 100% 100%;
  animation: starsTwinkle 6s ease-in-out infinite;
  opacity: .9;
}
.stars-layer--2 {
  background-image:
    radial-gradient(1.4px 1.4px at 16% 64%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 54% 8%, #cfe0ff, transparent),
    radial-gradient(1.4px 1.4px at 70% 86%, #fff, transparent),
    radial-gradient(1px 1px at 38% 44%, #b9d6ff, transparent),
    radial-gradient(1.4px 1.4px at 84% 50%, #fff, transparent);
  background-size: 100% 100%;
  animation: starsTwinkle 9s ease-in-out infinite reverse;
  opacity: .75;
}
.stars-layer--3 {
  background-image:
    radial-gradient(2px 2px at 32% 28%, rgba(186,220,255,.9), transparent 60%),
    radial-gradient(1.6px 1.6px at 72% 18%, rgba(186,220,255,.85), transparent 60%),
    radial-gradient(1.8px 1.8px at 18% 80%, rgba(186,220,255,.85), transparent 60%),
    radial-gradient(1.6px 1.6px at 90% 88%, rgba(186,220,255,.9), transparent 60%);
  background-size: 100% 100%;
  animation: starsTwinkle 5s ease-in-out infinite;
  opacity: .9;
}
@keyframes starsTwinkle {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* 装饰光斑 */
.login-glow {
  position: absolute; pointer-events: none; z-index: 0; border-radius: 50%;
  filter: blur(60px); opacity: .55;
}
.login-glow--tl { width: 380px; height: 380px; top: -120px; left: -120px; background: radial-gradient(circle, #3a7df0 0%, transparent 70%); }
.login-glow--br { width: 480px; height: 480px; bottom: -160px; right: -120px; background: radial-gradient(circle, #6a5dd0 0%, transparent 70%); }

/* 内容容器 */
.login-tech-inner {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  padding: 56px 72px;
  align-items: center;
}
.login-tech-foot {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: rgba(207,224,255,.5); z-index: 1; letter-spacing: .5px;
}

/* ===== 左侧品牌区 ===== */
.login-tech-left { color: #e7f1ff; max-width: 560px; }
.login-tech-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.tech-logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #4f8ef7, #7b6cdf);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 20px rgba(79,142,247,.45);
}
.tech-logo-text { font-size: 14px; color: rgba(207,224,255,.85); letter-spacing: .5px; }

/* 中央舞台 */
.hub-stage {
  position: relative; width: 320px; height: 320px; margin: 12px 0 28px;
  display: flex; align-items: center; justify-content: center;
}
.hub-book { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(106,180,255,.55)); animation: hubFloat 6s ease-in-out infinite; }
@keyframes hubFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hub-orbit {
  position: absolute; border-radius: 50%; border: 1px solid rgba(154,213,255,.25);
  pointer-events: none;
}
.hub-orbit--outer { width: 320px; height: 320px; border-color: rgba(154,213,255,.18); border-style: dashed; animation: orbitSpin 28s linear infinite; }
.hub-orbit--mid { width: 240px; height: 240px; border-color: rgba(154,213,255,.32); animation: orbitSpin 18s linear infinite reverse; }
.hub-orbit--inner { width: 180px; height: 180px; border-color: rgba(154,213,255,.5); animation: orbitSpin 12s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* 文案 */
.tech-title {
  font-size: 44px; font-weight: 800; line-height: 1.2; color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 0 24px rgba(106,180,255,.4);
  margin-bottom: 10px;
}
.tech-subtitle {
  font-size: 16px; color: rgba(207,224,255,.78); margin-bottom: 24px;
  letter-spacing: .5px;
}

/* 智能体标签 */
.tech-agents { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tech-agent-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(60,120,220,.18);
  border: 1px solid rgba(106,180,255,.45);
  color: #dceeff; font-size: 13px;
  backdrop-filter: blur(6px);
  transition: all 200ms ease;
}
.tech-agent-chip:hover { background: rgba(60,120,220,.32); border-color: rgba(154,213,255,.7); transform: translateY(-1px); }
.tech-agent-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, #5eead4);
  box-shadow: 0 0 8px var(--c, #5eead4);
  animation: agentDotPulse 2.4s ease-in-out infinite;
}
@keyframes agentDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .65; }
}

.tech-foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(207,224,255,.55); margin-top: 12px;
}
.tech-foot-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
  animation: agentDotPulse 2s ease-in-out infinite;
}

/* ===== 右侧登录卡（玻璃拟态） ===== */
.login-tech-card {
  position: relative;
  width: 100%; max-width: 420px;
  margin-left: auto;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(106,180,255,.65), rgba(122,108,223,.5) 50%, rgba(58,209,221,.45));
  box-shadow:
    0 30px 80px rgba(0,10,40,.55),
    0 0 0 1px rgba(154,213,255,.15) inset;
  animation: cardFloat 8s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.login-tech-card-glow {
  position: absolute; inset: -1px; border-radius: 22px; pointer-events: none;
  background: linear-gradient(135deg, rgba(106,180,255,.4), transparent 50%, rgba(122,108,223,.3));
  filter: blur(20px); opacity: .55; z-index: -1;
}
.login-tech-card-inner {
  position: relative;
  background: linear-gradient(160deg, rgba(20,40,90,.78), rgba(10,20,55,.85));
  border-radius: 21px;
  padding: 36px 32px 28px;
  backdrop-filter: blur(20px);
  color: #e7f1ff;
}

/* 卡片顶部光纹 */
.login-tech-card-inner::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154,213,255,.7), transparent);
  pointer-events: none;
}

.login-tech-head h2 {
  font-size: 26px; font-weight: 700; color: #ffffff; text-align: center;
  text-shadow: 0 0 20px rgba(106,180,255,.35);
  letter-spacing: 1px;
}
.login-tech-head p {
  font-size: 13px; color: rgba(207,224,255,.7); text-align: center;
  margin-top: 6px; margin-bottom: 24px;
}

.login-tech-form { display: flex; flex-direction: column; gap: 14px; }

.tech-field { display: flex; flex-direction: column; gap: 6px; }
.tech-field-label { font-size: 12px; color: rgba(207,224,255,.7); padding-left: 4px; }
.tech-field-input {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px;
  background: rgba(20,40,90,.45);
  border: 1px solid rgba(106,180,255,.28);
  border-radius: 12px;
  transition: all 200ms ease;
}
.tech-field-input:hover { border-color: rgba(106,180,255,.5); }
.tech-field-input:focus-within {
  border-color: rgba(154,213,255,.85);
  background: rgba(20,40,90,.65);
  box-shadow: 0 0 0 3px rgba(106,180,255,.18);
}
.tech-field-icon { width: 17px; height: 17px; color: rgba(154,213,255,.85); flex: none; }
.tech-field-input input,
.tech-field-input .tech-select {
  flex: 1; height: 100%; background: transparent; border: none; outline: none;
  color: #ffffff; font-size: 14px; letter-spacing: .3px;
}
.tech-field-input input::placeholder { color: rgba(207,224,255,.45); }
.tech-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%239ad5ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 14px;
  padding-right: 18px;
  cursor: pointer;
}
.tech-select option { background: #0a1a45; color: #ffffff; }

/* 登录按钮 */
.tech-login-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; margin-top: 8px;
  border-radius: 12px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #ffffff;
  background: linear-gradient(135deg, #4f8ef7 0%, #7b6cdf 50%, #5ad7e3 100%);
  background-size: 200% 200%;
  box-shadow:
    0 10px 30px rgba(79,142,247,.4),
    0 0 0 1px rgba(154,213,255,.3) inset;
  transition: all 250ms ease;
  position: relative;
  animation: btnGradientShift 6s ease infinite;
}
@keyframes btnGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.tech-login-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 40px rgba(79,142,247,.55),
    0 0 0 1px rgba(154,213,255,.5) inset,
    0 0 30px rgba(106,180,255,.45);
}
.tech-login-btn:active { transform: translateY(0); }
.tech-login-btn svg { width: 17px; height: 17px; }

/* 链接/元信息 */
.login-tech-meta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 12px; margin-top: 6px;
}
.tech-link { color: rgba(154,213,255,.85); cursor: pointer; transition: color 150ms ease; background: none; border: none; padding: 0; }
.tech-link:hover { color: #ffffff; text-shadow: 0 0 8px rgba(106,180,255,.6); }
.tech-divider { color: rgba(154,213,255,.3); }

/* 角色快选 */
.login-tech-roles { margin-top: 6px; }
.tech-roles-label { font-size: 11px; color: rgba(207,224,255,.5); display: block; margin-bottom: 6px; }
.login-tech-roles .role-chip {
  height: 30px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; margin-right: 6px; margin-bottom: 6px;
  background: rgba(20,40,90,.45);
  border: 1px solid rgba(106,180,255,.28);
  color: rgba(207,224,255,.7);
  transition: all 200ms ease;
}
.login-tech-roles .role-chip:hover {
  border-color: rgba(106,180,255,.6);
  color: #ffffff;
  background: rgba(60,120,220,.32);
}
.login-tech-roles .role-chip.active {
  background: linear-gradient(135deg, rgba(79,142,247,.45), rgba(123,108,223,.45));
  border-color: rgba(154,213,255,.7);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(79,142,247,.35);
}

.login-tech-hint {
  font-size: 11px; color: rgba(207,224,255,.45);
  text-align: center; margin-top: 8px;
}

/* ===== 主框架 ===== */
.app-shell { min-height: 100vh; display: flex; background: transparent; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: rgba(255,255,255,.78); border-right: 1px solid rgba(96,152,242,.16);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  box-shadow: 8px 0 30px rgba(59,95,160,.06);
  backdrop-filter: blur(18px);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid rgba(96,152,242,.14); background: linear-gradient(180deg, rgba(238,245,255,.8), rgba(255,255,255,.55)); }
.brand-name { font-size: 14px; font-weight: 700; }
.brand-sub { font-size: 11px; color: var(--text-2); }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-group { margin-bottom: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 6px; font-size: 14px; color: var(--text-2);
  transition: all 150ms ease; text-align: left;
}
.nav-item svg { width: 17px; height: 17px; flex: none; }
.nav-item:hover { background: rgba(96,152,242,.08); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(96,152,242,.16), rgba(138,132,232,.1)); color: var(--primary-dark); font-weight: 600; border: 1px solid rgba(96,152,242,.18); }
.nav-chevron { margin-left: auto; width: 14px; height: 14px; transition: transform 150ms ease; }
.nav-chevron.open { transform: rotate(90deg); }
.nav-sub { padding-left: 34px; display: none; }
.nav-sub.open { display: block; }
.nav-sub-item {
  display: block; width: 100%; text-align: left; padding: 7px 10px;
  border-radius: 6px; font-size: 13px; color: var(--text-2); transition: all 150ms ease;
}
.nav-sub-item:hover { background: rgba(96,152,242,.08); color: var(--text); }
.nav-sub-item.active { color: var(--primary-dark); font-weight: 600; background: rgba(238,245,255,.84); }
.side-user {
  border-top: 1px solid var(--border); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--ai-purple)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.side-user-name { font-size: 13px; font-weight: 600; }
.side-user-role { font-size: 12px; color: var(--text-2); }
.side-user .icon-btn { margin-left: auto; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); background: rgba(255,255,255,.78); border-bottom: 1px solid rgba(96,152,242,.16);
  display: flex; align-items: center; gap: 16px; padding: 0 20px; position: sticky; top: 0; z-index: 30;
  box-shadow: 0 10px 26px rgba(59,95,160,.05);
  backdrop-filter: blur(18px);
}
.crumb { font-size: 14px; font-weight: 600; white-space: nowrap; }
.top-search { flex: 1; max-width: 440px; display: flex; gap: 8px; margin-left: auto; }
.top-search .input { height: 32px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.top-user { display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.top-user-name { font-size: 13px; font-weight: 600; }
.top-user-role { font-size: 12px; color: var(--text-2); }
.notify-dot {
  position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); border: 1.5px solid var(--card);
}
.menu-btn { display: none; }
.dropdown {
  position: absolute; top: 48px; right: 8px; width: 320px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-modal);
  z-index: 60; overflow: hidden;
}
.dropdown-head { padding: 12px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); }
.dropdown-list { max-height: 360px; overflow-y: auto; }
.drop-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.drop-item:last-child { border-bottom: none; }
.drop-item:hover { background: var(--secondary-bg); }
.drop-item .dot { margin-top: 6px; }
.drop-item b { font-size: 13px; display: block; }
.drop-item span { font-size: 12px; color: var(--text-2); display: block; }
.drop-item time { font-size: 11px; color: var(--text-3); display: block; margin-top: 2px; }

.view { padding: 24px; flex: 1; position: relative; isolation: isolate; }
.view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(97,208,221,.1) 50%, transparent 52%),
    linear-gradient(180deg, rgba(138,132,232,.06), transparent 45%);
  opacity: .65;
}

/* ===== 组件：聊天 / 时间线 / 详情抽屉 / 模态 ===== */
.chat-box {
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  max-height: 520px; overflow-y: auto; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px;
}
.msg { display: flex; gap: 10px; max-width: 92%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.msg.user .msg-avatar { background: var(--primary); }
.msg.agent .msg-avatar { background: linear-gradient(135deg, #7c3aed, var(--primary)); }
.msg-body {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; font-size: 14px; line-height: 1.7; box-shadow: var(--shadow-card);
}
.msg.user .msg-body { background: var(--primary); border-color: var(--primary); color: #fff; }
.cite-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cite-chip {
  display: inline-flex; align-items: center; gap: 5px; background: var(--primary-light);
  color: var(--primary-dark); border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer;
}
.cite-chip:hover { background: #dbe7fb; }
.msg-actions { display: flex; gap: 8px; margin-top: 12px; }
.chat-input { display: flex; gap: 8px; margin-top: 12px; }
.qa-chat-input { position: relative; }
.qa-chat-input .input { width: 100%; resize: none; padding-right: 52px; }
.qa-send-btn {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center;
  transition: all 180ms ease; box-shadow: 0 2px 8px rgba(96,152,242,.35);
}
.qa-send-btn svg { width: 17px; height: 17px; }
.qa-send-btn:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(96,152,242,.5); }
.qa-send-btn:active { transform: scale(.95); }
.chat-suggests { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.suggest-chip {
  font-size: 12px; color: var(--primary); background: var(--primary-light);
  border: 1px solid transparent; border-radius: 14px; padding: 5px 10px; transition: all 150ms ease;
}
.suggest-chip:hover { border-color: var(--primary); }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--card); border: 3px solid var(--primary);
}
.tl-date { font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  width: 100%; max-width: 640px; max-height: 86vh; overflow-y: auto;
  background: var(--card); border-radius: var(--radius-modal); box-shadow: var(--shadow-modal);
  padding: 24px;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.drawer-mask { position: fixed; inset: 0; background: rgba(15,23,42,.32); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 94vw;
  background: var(--card); box-shadow: var(--shadow-modal); z-index: 95;
  display: flex; flex-direction: column; animation: slideIn .18s ease;
}
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

.toast-root { position: fixed; top: 68px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--text); color: #fff; border-radius: 8px; padding: 10px 14px;
  font-size: 13px; box-shadow: var(--shadow-modal); display: flex; align-items: center; gap: 8px;
  animation: toastIn .2s ease; max-width: 360px;
}
.toast.success { background: var(--success-text); }
.toast.warning { background: var(--warning-text); }
.toast.error { background: var(--danger-text); }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

.score-ring { position: relative; width: 120px; height: 120px; border-radius: 50%; }
.score-ring .ring-inner {
  position: absolute; inset: 12px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-ring b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.score-ring span { font-size: 11px; color: var(--text-2); }

.diff-orig { background: var(--danger-bg); border-radius: 3px; padding: 0 2px; }
.diff-new { background: var(--success-bg); border-radius: 3px; padding: 0 2px; }
.doc-preview {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; font-size: 13px; line-height: 1.9; max-height: 480px; overflow-y: auto;
}
.doc-preview h3 { font-size: 15px; margin: 14px 0 8px; color: #153b7a; }
.doc-preview p { margin-bottom: 8px; }
.doc-preview .cite { color: var(--info-text); font-size: 11px; }
.eval-report-scroll {
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(96,152,242,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96,152,242,.05) 1px, transparent 1px),
    #f7faff;
  background-size: 28px 28px;
}
.eval-report-paper {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 42px 42px;
  background: #fff;
  border: 1px solid #d8e2f1;
  box-shadow: 0 18px 42px rgba(20, 48, 92, .12);
  color: #1f2937;
  font-size: 14px;
  line-height: 1.9;
}
.eval-report-title {
  margin: 0 0 22px;
  text-align: center;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}
.eval-report-intro {
  margin-bottom: 18px;
  text-indent: 2em;
}
.eval-report-section {
  margin-top: 18px;
}
.eval-report-section h4 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}
.eval-report-paper p {
  margin: 0 0 10px;
  text-indent: 2em;
}
.eval-report-paper b {
  color: #111827;
}
.eval-report-table {
  width: 100%;
  margin: 10px 0 14px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}
.eval-report-table th,
.eval-report-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  vertical-align: top;
}
.eval-report-table th {
  background: #f3f6fb;
  color: #334155;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.eval-report-meta th {
  width: 16%;
}
.eval-report-note {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  background: #f8fbff;
  border-radius: 0 8px 8px 0;
  color: #334155;
  text-indent: 0 !important;
}

.slide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.slide-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 150ms ease; background: #fff; }
.slide-card:hover { box-shadow: var(--shadow-hover); }
.slide-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,115,232,.2); }
.slide-thumb { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #f4f8ff, #e8f0fe); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.slide-thumb i { display: block; height: 6px; border-radius: 3px; background: rgba(26,115,232,.25); }
.slide-thumb i:first-child { width: 55%; height: 9px; background: var(--primary); }
.slide-thumb i:nth-child(2) { width: 90%; }
.slide-thumb i:nth-child(3) { width: 82%; }
.slide-thumb i:nth-child(4) { width: 70%; }
.slide-name { padding: 8px 12px; font-size: 12px; border-top: 1px solid var(--border); color: var(--text-2); }

.switch { position: relative; width: 38px; height: 22px; border-radius: 12px; background: var(--border); transition: background 150ms ease; flex: none; }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left 150ms ease;
}
.switch.on { background: var(--primary); }
.switch.on::after { left: 19px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: none; }
.setting-row b { font-size: 14px; display: block; }
.setting-row span { font-size: 12px; color: var(--text-2); display: block; margin-top: 2px; }

.qa-drawer { }
.qa-block { margin-bottom: 16px; }
.qa-block-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.qa-text { font-size: 13px; color: var(--text); background: var(--bg); border-radius: 8px; padding: 12px; line-height: 1.8; border: 1px solid var(--border); }

.agent-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); transition: all 200ms ease; }
.agent-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(96,152,242,.12); }
.agent-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.agent-ico.agent-busy { background: #fff4e6; color: #e88000; animation: agentPulse 2s ease-in-out infinite; }
@keyframes agentPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,128,0,.3); } 50% { box-shadow: 0 0 0 6px rgba(232,128,0,0); } }
.agent-meta { flex: 1; min-width: 0; }
.agent-meta b { font-size: 14px; display: block; }
.agent-meta span { font-size: 12px; color: var(--text-2); display: block; }
.agent-stats b { color: var(--primary); }
.agent-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px; border-radius: 14px; font-weight: 600; flex: none; }
.agent-badge-green { background: #e6f9ed; color: #1a8a4a; }
.agent-badge-orange { background: #fff4e6; color: #e88000; }
.agent-summary { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.agent-summary b { color: var(--primary); font-size: 15px; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--secondary-bg); font-size: 12px; color: var(--text-2); }
.chip-blue { background: var(--primary-light); color: var(--primary-dark); }

.kb-lib { cursor: pointer; transition: box-shadow 150ms ease, border-color 150ms ease; }
.kb-lib:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.kb-lib-head { display: flex; gap: 12px; align-items: flex-start; }
.kb-lib-head .kpi-ico { width: 40px; height: 40px; }
.kb-lib-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
}
.kb-lib-foot .link { font-size: 13px; }
.folder-row { display: flex; flex-wrap: wrap; gap: 8px; }
.folder-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--card);
  font-size: 13px; color: var(--text-2); transition: all 150ms ease;
}
.folder-chip svg { width: 14px; height: 14px; }
.folder-chip:hover { border-color: var(--primary); color: var(--primary); }
.folder-chip.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }

.seg { display: inline-flex; gap: 4px; padding: 3px; background: var(--secondary-bg); border-radius: 6px; }
.seg-btn {
  height: 26px; padding: 0 10px; border-radius: 4px; font-size: 12px; color: var(--text-2);
  transition: all 150ms ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--card); color: var(--primary); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.doc-chat { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.doc-chat .chat-box { margin-bottom: 10px; }
#doc-settings .qa-block { margin-bottom: 12px; }
.doc-field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.doc-field-head .qa-block-title { margin-bottom: 0; }
.ai-writer-logo {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #7c3aed, #1a73e8); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(124,58,237,.28);
}
.ai-writer-logo svg { width: 22px; height: 22px; }
.doc-composer { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card); }
.doc-composer textarea { border: none; border-radius: 0; box-shadow: none; min-height: 150px; padding: 12px 46px 46px 46px; }
.doc-composer textarea:focus { box-shadow: none; }
.doc-attach-btn { position: absolute; left: 10px; bottom: 10px; background: var(--card); border: 1px solid var(--border); }
.doc-send-btn { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.doc-send-btn svg { width: 17px; height: 17px; }
.doc-file-summary { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #f8fbff; }
.doc-file-summary .qa-block-title { font-size: 12px; margin-bottom: 4px; }
.reviewer-logo { display: inline-flex; align-items: center; margin-right: 2px; }
.reviewer-logo svg { width: 15px; height: 15px; }
.reviewer-effect { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0 6px; }
.reviewer-ring {
  width: 118px; height: 118px; border-radius: 50%; position: relative;
  background: conic-gradient(#7c3aed, #1a73e8, #10b981, #7c3aed);
  animation: reviewerSpin 1.4s linear infinite;
  box-shadow: 0 0 24px rgba(124,58,237,.35);
}
.reviewer-ring-inner {
  position: absolute; inset: 10px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.reviewer-ring-inner b { font-size: 26px; font-variant-numeric: tabular-nums; color: #7c3aed; }
.reviewer-ring-inner span { font-size: 11px; color: var(--text-2); }
.reviewer-dims { font-size: 13px; color: var(--text-2); text-align: center; }
@keyframes reviewerSpin { to { transform: rotate(360deg); } }

.notice-banner {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--primary-light); border: 1px solid #c7d7f7; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 16px; color: var(--primary-dark); font-size: 13px;
}
.notice-banner svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.eval-anim { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 0; }
.eval-radar { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.eval-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(26,115,232,.35); }
.eval-ring.r1 { inset: 0; animation: evalPulse 1.6s ease-out infinite; }
.eval-ring.r2 { inset: 18px; animation: evalPulse 1.6s ease-out .4s infinite; }
.eval-core {
  width: 56px; height: 56px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #1a73e8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 26px rgba(26,115,232,.45);
}
.eval-core svg { width: 26px; height: 26px; }
.eval-step { font-size: 15px; font-weight: 600; color: var(--primary-dark); }
.eval-progress { width: 280px; max-width: 100%; height: 6px; border-radius: 3px; background: var(--secondary-bg); overflow: hidden; }
.eval-progress i { display: block; height: 100%; width: 8%; border-radius: 3px; background: linear-gradient(90deg, #7c3aed, #1a73e8); transition: width .5s ease; }
.eval-dims { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.eval-dim { font-size: 12px; color: var(--text-3); padding: 4px 10px; border-radius: 12px; background: var(--secondary-bg); transition: all .3s ease; }
.eval-dim.done { color: var(--success-text); background: var(--success-bg); }
@keyframes evalPulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

.qa-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: stretch; height: 100%; }
.qa-side { position: relative; top: 0; display: flex; flex-direction: column; padding: 12px; }
.qa-side .compact-head { padding: 2px 4px 8px; margin-bottom: 4px; }
.qa-side .card-title { font-size: 15px; }
.qa-new-btn { height: 34px; min-height: 34px; margin-bottom: 10px; border-radius: 8px; font-size: 13px; }
.qa-new-btn svg { width: 14px; height: 14px; }
.qa-conv-list { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; padding-right: 2px; }
.qa-conv {
  display: flex; align-items: center; text-align: left; width: 100%;
  min-height: 34px; padding: 0 10px; border-radius: 7px; border: 1px solid transparent; background: transparent;
  color: var(--text); transition: all 120ms ease;
}
.qa-conv:hover { background: rgba(26,115,232,.06); border-color: rgba(26,115,232,.08); }
.qa-conv.active { background: rgba(26,115,232,.12); border-color: rgba(26,115,232,.16); }
.qa-conv-ico {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--secondary-bg); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.qa-conv.active .qa-conv-ico { background: var(--primary); color: #fff; }
.qa-conv-ico svg { width: 15px; height: 15px; }
.qa-conv-meta { min-width: 0; width: 100%; }
.qa-conv-meta b {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; line-height: 32px; font-weight: 500;
}
.qa-conv-meta span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.qa-main .chat-box { margin-bottom: 10px; }
.qa-main { display: flex; flex-direction: column; }
.qa-main .chat-box { flex: 1; overflow-y: auto; }
.qa-main .card-head { flex: none; }
.qa-main .qa-scope-row { flex: none; }
.qa-main .chat-suggests { flex: none; }
.qa-main .chat-input { flex: none; }
.view:has(.qa-layout) { display: flex; flex-direction: column; }
.qa-scope-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; margin-bottom: 12px;
}
.qa-scope-label { font-size: 12px; color: var(--text-2); font-weight: 600; }

/* 企业筛选 Agent */
.company-agent-panel { display: flex; flex-direction: column; gap: 12px; }
.company-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(26,115,232,.16);
  background: rgba(238,245,255,.86); color: var(--primary-dark); font-size: 13px; font-weight: 600;
}
.filter-pill:hover { border-color: rgba(26,115,232,.35); background: rgba(226,239,255,.95); }
.company-agent-input { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: stretch; }
.agent-company-list { display: flex; flex-direction: column; gap: 8px; }
.agent-company-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(90deg, #fff, #f8fbff);
}
.agent-company-row b { display: block; font-size: 14px; }
.agent-company-row span { display: block; margin-top: 4px; color: var(--text-2); font-size: 12px; line-height: 1.4; }
.agent-company-score { text-align: center; color: var(--primary); }
.agent-company-score b { font-size: 20px; line-height: 1; }
.agent-company-score span { margin-top: 2px; font-size: 11px; }

/* ===== 文书智写项目工作台 ===== */
.app-alert-board {
  position: sticky;
  top: calc(var(--topbar-h) + 8px);
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #fffbeb, #f8fbff);
  box-shadow: var(--shadow-card);
}
.app-alert-board > svg { width: 20px; height: 20px; color: var(--warning-text); flex: none; margin-top: 2px; }
.app-alert-title { font-size: 14px; font-weight: 700; color: #92400e; margin-bottom: 6px; }
.app-alert-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text); margin-top: 4px; }
.app-alert-item .dot { margin-top: 7px; flex: none; }
.app-alert-float {
  position: fixed;
  right: 20px;
  top: 128px;
  width: 360px;
  max-width: calc(100vw - 40px);
  z-index: 70;
  border: 1px solid #c7d7f7;
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}
.app-alert-float.collapsed { width: 128px; }
.app-alert-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.app-alert-toggle:hover { background: var(--secondary-bg); color: var(--primary); }
.app-alert-toggle svg { width: 15px; height: 15px; }
.app-alert-float-body { display: flex; gap: 12px; padding: 14px 40px 14px 14px; }
.app-alert-mini { display: flex; align-items: center; gap: 8px; padding: 10px 34px 10px 10px; font-size: 12px; color: var(--primary-dark); font-weight: 600; }
.app-year { margin-bottom: 20px; }
.app-year-title { font-size: 16px; font-weight: 700; color: #153b7a; margin: 8px 0 12px; }
.app-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-project-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: all 150ms cubic-bezier(.4,0,.2,1);
}
.app-project-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.app-project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-company { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--text); }
.app-project-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.app-progress-line { margin-top: 16px; }
.app-progress-line > div:first-child { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.app-progress-line b { font-size: 20px; color: var(--primary); font-variant-numeric: tabular-nums; }
.app-progress-line span { font-size: 12px; color: var(--text-2); }
.app-card-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.app-summary { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); line-height: 1.7; }
.app-workspace-head {
  margin-bottom: 12px;
  padding: 8px 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  box-shadow: var(--shadow-card);
}
.app-workspace-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 6px; }
.app-workspace-head .page-title { font-size: 16px; }
.app-workspace-head .page-sub { font-size: 12px; margin-top: 2px; }
.app-top-progress { width: 220px; max-width: 100%; }
.app-top-progress span { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.score-global-actions { display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end; }
.app-main-tabs { margin-bottom: 0; margin-top: 8px; }
.app-section { margin-bottom: 16px; }
.ai-side-panel { position: relative; overflow: hidden; }
.ai-side-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 12%, rgba(124,58,237,.12), transparent 28%), radial-gradient(circle at 20% 22%, rgba(26,115,232,.1), transparent 26%);
  pointer-events: none;
}
.ai-side-panel > * { position: relative; z-index: 1; }
.ai-orbit {
  width: 128px;
  height: 128px;
  margin: 4px auto 18px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #fff 0 38%, #e8f0fe 39% 42%, transparent 43%);
}
.ai-orbit span, .ai-orbit i {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(26,115,232,.32);
  border-radius: 50%;
  animation: reviewerSpin 3.2s linear infinite;
}
.ai-orbit i { inset: 24px; border-color: rgba(124,58,237,.28); animation-duration: 2.2s; animation-direction: reverse; }
.ai-orbit b {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, var(--primary));
  box-shadow: 0 0 24px rgba(26,115,232,.35);
}
.ai-orbit.tiny {
  width: 46px;
  height: 46px;
  margin: 0;
  flex: none;
}
.ai-orbit.tiny span, .ai-orbit.tiny i { display: none; }
.ai-orbit.tiny b {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.ai-insight {
  border: 1px solid rgba(26,115,232,.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.82);
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.ai-insight-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.outline-list { display: flex; flex-direction: column; gap: 8px; }
.outline-row {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 38px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  transition: all 150ms ease;
}
.outline-row:hover { border-color: var(--primary); background: #f8fbff; }
.outline-row.active { border-color: var(--primary); background: var(--primary-light); }
.outline-row b { display: block; font-size: 13px; line-height: 1.4; }
.outline-row span { display: block; font-size: 12px; color: var(--text-2); margin-top: 3px; }
.outline-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--danger-bg);
  color: var(--danger-text);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #fecaca;
}
.outline-row .outline-badge {
  display: inline-flex;
  color: var(--danger-text);
  margin-top: 0;
}
.mini-bar { height: 5px; border-radius: 3px; background: rgba(148,163,184,.28); overflow: hidden; margin-top: 8px; }
.mini-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7c3aed, var(--primary)); }
.writer-layout { align-items: start; grid-template-columns: 360px minmax(0, 1fr); }
.app-doc-preview { max-height: 520px; }
.app-doc-preview section { position: relative; border-left: 3px solid transparent; padding: 4px 12px 0; margin-bottom: 14px; }
.app-doc-preview section.located { border-left-color: #7c3aed; background: #f5f3ff; border-radius: 6px; padding: 8px 12px; }
.doc-pin-btn {
  position: absolute;
  right: 8px;
  top: 4px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  opacity: 0;
  transition: all 150ms ease;
}
.doc-pin-btn svg { width: 13px; height: 13px; }
.app-doc-preview section:hover .doc-pin-btn { opacity: 1; }
.doc-pin-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.app-doc-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}
.ai-generate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 16px;
  border: 1px solid #c7d7f7;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef2ff);
}
.score-issue {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 10px;
}
.score-issue p { font-size: 13px; margin-top: 6px; }
.score-issue span { display: block; font-size: 12px; color: var(--primary-dark); margin-top: 4px; }
.folder-index-upload {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px dashed #c7d7f7;
  border-radius: 8px;
  background: #f8fbff;
}
.folder-index-upload svg { width: 24px; height: 24px; color: var(--primary); flex: none; }
.folder-index-upload b { display: block; font-size: 14px; }
.folder-index-upload span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.readonly-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 12px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
}
.readonly-banner svg { width: 18px; height: 18px; flex: none; }
.readonly-banner b { display: block; font-size: 13px; }
.readonly-banner span { display: block; font-size: 12px; color: #3b5f9b; margin-top: 2px; }
.writer-doc-card .card-head { align-items: flex-start; }
.doc-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.locate-top-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.writer-bottom-chat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #c7d7f7;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #ffffff, #f3f7ff);
  box-shadow: var(--shadow-card);
}
.writer-doc-card .writer-bottom-chat { margin-top: 14px; box-shadow: none; }
.tune-workbench, .score-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 16px;
  align-items: start;
}
.tune-side { display: flex; flex-direction: column; gap: 16px; }
.score-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.doc-edit-area { min-height: 520px; line-height: 1.8; font-family: inherit; }
.ai-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  font-size: 12px;
  color: var(--primary-dark);
}
.ai-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(26,115,232,.12);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.similarity-card, .proof-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.88);
  margin-bottom: 10px;
}
.similarity-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.similarity-head > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.similarity-head span { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.similarity-card p { margin-top: 8px; font-size: 13px; line-height: 1.6; }
.similarity-meter { height: 5px; margin-top: 10px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.similarity-meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ef4444, #f59e0b, #1a73e8); }
.compare-select-btn { margin-bottom: 10px; }
.compare-source-note {
  margin-bottom: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(26,115,232,.14);
  border-radius: 8px;
  background: rgba(238,245,255,.75);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}
.compare-source-note b { color: var(--primary-dark); }
.compare-text-option { cursor: pointer; }
.ai-suggestion {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f5f3ff;
  color: #4338ca;
  font-size: 12px;
  line-height: 1.6;
}
.ai-suggestion svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.compact-chat { max-height: 190px; min-height: 120px; }
.history-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.history-row:last-child { border-bottom: 0; }
.history-row b { display: block; font-size: 13px; }
.history-row span { display: block; margin-top: 3px; color: var(--text-2); font-size: 12px; }
.score-hero { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: center; }
.score-hero.compact { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.score-ring-wrap { position: relative; width: 160px; }
.score-hero.compact .score-ring-wrap { width: 120px; }
.ai-scan-beam {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border-top: 2px solid rgba(26,115,232,.7);
  animation: reviewerSpin 2s linear infinite;
}
.score-report h3 { font-size: 16px; color: #153b7a; margin-bottom: 8px; }
.score-report p { font-size: 13px; line-height: 1.7; color: var(--text); }
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.adv-grid div { padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #f8fbff; }
.adv-grid b { display: block; font-size: 13px; margin-bottom: 4px; }
.adv-grid span { display: block; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.chart-bars { display: flex; flex-direction: column; gap: 9px; margin: 14px 0; }
.chart-bars.compact { gap: 7px; margin: 12px 0 0; }
.chart-bars div { display: grid; grid-template-columns: 72px minmax(0, 1fr) 32px; gap: 8px; align-items: center; font-size: 12px; }
.chart-bars i { height: 7px; border-radius: 6px; background: linear-gradient(90deg, #7c3aed, var(--primary), #46c58a); }
.chart-bars b { text-align: right; color: var(--primary); }
.score-ai-card.collapsed { padding-bottom: 12px; }
.score-proof-panel { overflow: hidden; }
.proof-scroll {
  max-height: 480px;
  overflow: auto;
  padding-right: 4px;
}
.score-doc-preview { max-height: 660px; }
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.72); opacity: .65; }
}
@keyframes dataSweep {
  0%, 45% { transform: translateX(-100%); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* ===== AI 智能体视觉母版增强：浅底雾蓝科技风 ===== */
.brand-mark {
  background: linear-gradient(135deg, var(--primary), var(--ai-purple));
  box-shadow: 0 10px 22px rgba(96,152,242,.22);
}
.app-alert-float {
  border-color: rgba(96,152,242,.28);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
}
.app-project-card {
  border-color: rgba(96,152,242,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,255,.88));
}
.app-project-card::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, transparent, rgba(97,208,221,.5), transparent);
}
.app-year-title,
.app-company {
  color: #203d7c;
}
.app-workspace-head {
  border-color: rgba(96,152,242,.2);
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(238,245,255,.8));
  backdrop-filter: blur(18px);
}
.app-main-tabs .tab.active {
  background: linear-gradient(180deg, rgba(96,152,242,.12), rgba(138,132,232,.08));
  border-radius: 10px 10px 0 0;
}
.doc-preview {
  border-color: rgba(96,152,242,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.doc-preview h3 {
  color: #203d7c;
}
.doc-preview .cite {
  color: var(--info-text);
  font-size: 12px;
  background: rgba(238,245,255,.8);
  border-left: 2px solid rgba(97,208,221,.6);
  padding: 4px 8px;
  border-radius: 6px;
}
.doc-preview.eval-report-scroll {
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(96,152,242,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96,152,242,.05) 1px, transparent 1px),
    #f7faff;
  background-size: 28px 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.doc-preview.eval-report-scroll .cite {
  display: inline;
}
.ai-side-panel::before {
  background:
    radial-gradient(circle at 80% 12%, rgba(138,132,232,.12), transparent 28%),
    radial-gradient(circle at 20% 22%, rgba(96,152,242,.1), transparent 26%),
    linear-gradient(135deg, transparent 0 48%, rgba(97,208,221,.12) 49% 50%, transparent 51%);
}
.ai-orbit {
  background: radial-gradient(circle, #fff 0 38%, #eef5ff 39% 42%, transparent 43%);
  box-shadow: inset 0 0 28px rgba(96,152,242,.12), 0 0 38px rgba(97,208,221,.18);
}
.ai-orbit span,
.ai-orbit i {
  border-color: rgba(96,152,242,.36);
}
.ai-orbit i {
  border-color: rgba(138,132,232,.28);
}
.ai-orbit b {
  background: linear-gradient(135deg, var(--ai-purple), var(--primary), var(--ai-cyan));
  box-shadow: 0 0 24px rgba(96,152,242,.35);
}
.ai-insight,
.similarity-card,
.proof-card,
.score-issue {
  border-color: rgba(96,152,242,.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,255,.86));
}
.outline-row:hover {
  border-color: rgba(96,152,242,.48);
  background: rgba(248,251,255,.92);
}
.outline-row.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(238,245,255,.96), rgba(245,243,255,.88));
}
.mini-bar i,
.eval-progress i,
.chart-bars i {
  background: linear-gradient(90deg, var(--ai-purple), var(--primary), var(--ai-cyan));
}
.ai-generate {
  border-color: rgba(96,152,242,.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(248,251,255,.92), rgba(238,242,255,.92));
}
.writer-bottom-chat {
  border-color: rgba(96,152,242,.26);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(238,245,255,.86));
  position: relative;
  overflow: hidden;
}
.writer-bottom-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(97,208,221,.12), transparent);
  transform: translateX(-100%);
  animation: dataSweep 4.8s ease-in-out infinite;
}
.writer-bottom-chat > * {
  position: relative;
  z-index: 1;
}
.ai-line {
  border-color: rgba(96,152,242,.22);
  background: linear-gradient(90deg, rgba(238,245,255,.95), rgba(245,243,255,.9));
}
.ai-line span {
  background: var(--ai-cyan);
  box-shadow: 0 0 0 6px rgba(96,152,242,.12);
}
.similarity-meter i {
  background: linear-gradient(90deg, #ef4444, #f59e0b, var(--primary), var(--ai-cyan));
}
.ai-suggestion {
  background: rgba(245,243,255,.86);
}
.score-report h3 {
  color: #203d7c;
}
.proof-scroll {
  scrollbar-color: rgba(96,152,242,.45) transparent;
}
.industry-card {
  cursor: pointer;
}
.industry-card:hover .card-title {
  color: var(--primary-dark);
}
.ind-alert {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #e8364f; font-weight: 600;
  background: #fef2f4; border: 1px solid #fecdd3;
  border-radius: 8px; padding: 6px 12px; margin-bottom: 12px;
}
.ind-alert-none { color: var(--text-3); background: var(--secondary-bg); border-color: var(--border); font-weight: 400; }
.ind-news-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ind-news-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
.ind-news-tag {
  flex: none; font-size: 11px; padding: 2px 7px; border-radius: 4px;
  background: var(--primary-light); color: var(--primary-dark); font-weight: 600; margin-top: 2px;
}
.ind-news-title { color: var(--text); flex: 1; min-width: 0; }
.ind-news-empty { font-size: 13px; color: var(--text-3); padding: 12px 0; }
.ind-enter { font-size: 12px; color: var(--primary); text-align: right; padding-top: 8px; border-top: 1px solid var(--border); }

/* ===== 登录页改版：浅色 AI 智库中枢参考风格 ===== */
body.login-mode {
  background: #f7faff;
}
.login-view--tech {
  min-height: 100vh;
  color: #090d22;
  background:
    radial-gradient(circle at 80% 16%, rgba(177,137,255,.28), transparent 18%),
    radial-gradient(circle at 8% 70%, rgba(186,212,255,.22), transparent 30%),
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(239,246,255,.88) 46%, rgba(230,238,255,.92));
}
.login-view--tech::before,
.login-view--tech::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
}
.login-view--tech::before {
  background:
    linear-gradient(150deg, transparent 0 24%, rgba(255,255,255,.92) 24.4%, transparent 25%),
    linear-gradient(162deg, transparent 0 34%, rgba(112,195,255,.28) 34.4%, transparent 36%),
    linear-gradient(174deg, transparent 0 45%, rgba(156,132,255,.22) 45.4%, transparent 47%),
    linear-gradient(27deg, transparent 0 58%, rgba(255,255,255,.8) 58.4%, transparent 59%),
    linear-gradient(20deg, transparent 0 64%, rgba(97,208,221,.24) 64.4%, transparent 66%);
  opacity: .95;
}
.login-view--tech::after {
  background:
    radial-gradient(circle at 10% 55%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 8%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 67% 86%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.95) 0 3px, transparent 4px);
  filter: drop-shadow(0 0 10px rgba(96,152,242,.45));
}
.login-stars,
.login-glow,
.login-tech-logo,
.tech-foot,
.login-tech-foot,
.login-tech-head p,
.tech-field-label,
.tech-field-icon,
.login-tech-roles,
.login-tech-hint,
.tech-divider,
.login-tech-meta a,
.tech-login-btn svg {
  display: none !important;
}
.login-tech-inner {
  min-height: 100vh;
  grid-template-columns: minmax(520px, .92fr) minmax(430px, 560px);
  align-items: center;
  gap: clamp(48px, 8vw, 150px);
  padding: clamp(42px, 6vw, 92px) clamp(84px, 10vw, 190px);
}
.login-tech-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  color: #080c20;
}
.tech-title {
  order: 1;
  margin: 0;
  font-size: clamp(54px, 5.2vw, 84px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  color: #080c20;
  text-shadow: none;
}
.tech-subtitle {
  order: 2;
  margin: 18px 0 46px;
  font-size: clamp(25px, 2.2vw, 38px);
  line-height: 1.22;
  color: #15192a;
  letter-spacing: 0;
}
.hub-stage {
  order: 3;
  width: clamp(360px, 31vw, 560px);
  height: clamp(320px, 28vw, 490px);
  margin: 0 0 24px;
  overflow: visible;
}
.hub-book {
  display: none;
}
.hub-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,1) 0 4%, rgba(125,235,255,.96) 5%, transparent 10%),
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.96) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.82), transparent 16%),
    radial-gradient(circle at 70% 78%, rgba(107,225,241,.72), transparent 28%),
    radial-gradient(circle at 20% 78%, rgba(180,116,244,.66), transparent 28%),
    linear-gradient(145deg, rgba(235,244,255,.94), rgba(89,179,235,.78) 52%, rgba(115,98,224,.76));
  box-shadow:
    inset 18px 24px 38px rgba(255,255,255,.68),
    inset -20px -22px 52px rgba(42,98,190,.2),
    0 30px 70px rgba(74,125,196,.28),
    0 0 0 1px rgba(255,255,255,.7);
  animation: hubFloat 6s ease-in-out infinite;
}
.hub-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 78%;
  height: 24%;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.88) 0 34%, transparent 35%),
    repeating-radial-gradient(ellipse at center, rgba(100,152,242,.32) 0 2px, transparent 3px 19px),
    linear-gradient(90deg, rgba(145,94,234,.5), rgba(97,208,221,.5));
  filter: drop-shadow(0 20px 22px rgba(89,123,196,.2));
}
.hub-orbit {
  display: block;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  border-color: rgba(80,139,191,.42);
}
.hub-orbit--outer {
  width: 92%;
  height: 52%;
  border-style: solid;
  border-color: rgba(56,132,186,.42);
  animation: none;
}
.hub-orbit--mid {
  width: 70%;
  height: 38%;
  border-color: rgba(138,132,232,.26);
  animation: none;
}
.hub-orbit--inner {
  width: 50%;
  height: 50%;
  border-color: rgba(255,255,255,.65);
  animation: none;
}
.tech-agents {
  order: 4;
  justify-content: center;
  gap: 14px;
  margin: 0;
  width: 100%;
}
.tech-agent-chip {
  min-width: 150px;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(210,216,232,.92);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 22px rgba(80,103,160,.16), inset 0 0 0 1px rgba(255,255,255,.72);
  color: #1c2030;
  font-size: 18px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.tech-agent-chip:hover {
  background: rgba(255,255,255,.86);
  border-color: rgba(138,132,232,.32);
  transform: translateY(-1px);
}
.tech-agent-dot {
  display: none;
}
.login-tech-card {
  width: min(100%, 520px);
  max-width: 560px;
  margin: 0;
  padding: 0;
  border-radius: 42px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 34px 78px rgba(80,103,160,.2), inset 0 0 0 1px rgba(255,255,255,.78);
  animation: none;
  backdrop-filter: blur(22px);
}
.login-tech-card-glow {
  display: none;
}
.login-tech-card-inner {
  min-height: 560px;
  border-radius: 42px;
  padding: 68px 62px 58px;
  background: rgba(255,255,255,.58);
  color: #090d22;
  backdrop-filter: blur(18px);
}
.login-tech-card-inner::before {
  display: none;
}
.login-tech-head h2 {
  margin: 0 0 54px;
  text-align: left;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 800;
  color: #090d22;
  letter-spacing: 0;
  text-shadow: none;
}
.login-tech-form {
  gap: 30px;
}
.tech-field:nth-of-type(3) {
  display: none;
}
.tech-field-input {
  height: 70px;
  padding: 0 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(142,149,169,.48);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62);
}
.tech-field-input:hover,
.tech-field-input:focus-within {
  border-color: rgba(138,132,232,.48);
  background: rgba(255,255,255,.86);
  box-shadow: 0 0 0 5px rgba(138,132,232,.09), inset 0 0 0 1px rgba(255,255,255,.76);
}
.tech-field-input input {
  color: #1a1d2b;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
}
.tech-field-input input::placeholder {
  color: #606574;
}
.tech-login-btn {
  height: 70px;
  margin-top: 28px;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(90deg, #b582ee 0%, #755cf0 55%, #413cd9 100%);
  box-shadow: 0 16px 32px rgba(99,79,220,.28), inset 0 0 0 1px rgba(255,255,255,.18);
  animation: none;
}
.tech-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(99,79,220,.34), inset 0 0 0 1px rgba(255,255,255,.22);
}
.login-tech-meta {
  margin-top: 10px;
  font-size: 18px;
}
.tech-link {
  color: #4b4f5f;
  font-size: 18px;
  font-weight: 500;
}
.tech-link:hover {
  color: #413cd9;
  text-shadow: none;
}

@media (max-width: 1180px) {
  .login-tech-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 28px;
  }
  .login-tech-card {
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .tech-title { font-size: 40px; }
  .tech-subtitle { font-size: 21px; margin-bottom: 28px; }
  .hub-stage { width: 300px; height: 270px; }
  .tech-agent-chip { min-width: auto; font-size: 14px; padding: 8px 14px; }
  .login-tech-card-inner { min-height: auto; padding: 42px 28px 34px; border-radius: 30px; }
  .login-tech-card { border-radius: 30px; }
  .login-tech-head h2 { font-size: 30px; margin-bottom: 32px; }
  .tech-field-input, .tech-login-btn { height: 58px; }
  .tech-field-input input, .tech-login-btn { font-size: 18px; }
}

/* 登录页最终视觉：按参考图整屏呈现，透明表单保持可点击 */
/* 登录页最终版：参考视觉手写实现，保留真实输入与点击交互 */
.login-view--tech {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 16%, rgba(176,139,255,.22), transparent 18%),
    radial-gradient(circle at 22% 64%, rgba(107,225,241,.22), transparent 24%),
    radial-gradient(circle at 8% 16%, rgba(255,255,255,.82), transparent 20%),
    linear-gradient(118deg, #fbfdff 0%, #eef6ff 48%, #f6f8ff 100%) !important;
}
.login-view--tech::before,
.login-view--tech::after {
  display: block !important;
  content: "";
  position: absolute;
  inset: -14%;
  z-index: 0;
  pointer-events: none;
}
.login-view--tech::before {
  background:
    linear-gradient(158deg, transparent 0 24%, rgba(255,255,255,.9) 24.3%, transparent 24.8%),
    linear-gradient(164deg, transparent 0 36%, rgba(112,195,255,.35) 36.2%, transparent 37%),
    linear-gradient(171deg, transparent 0 45%, rgba(160,140,255,.27) 45.2%, transparent 46.2%),
    linear-gradient(23deg, transparent 0 58%, rgba(255,255,255,.86) 58.2%, transparent 58.7%),
    linear-gradient(17deg, transparent 0 65%, rgba(97,208,221,.3) 65.2%, transparent 66.3%);
  opacity: .95;
}
.login-view--tech::after {
  background:
    radial-gradient(circle at 9% 55%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 36% 8%, rgba(255,255,255,.96) 0 4px, transparent 5px),
    radial-gradient(circle at 67% 86%, rgba(255,255,255,.96) 0 4px, transparent 5px),
    radial-gradient(circle at 89% 18%, rgba(255,255,255,.96) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 10%, rgba(151,222,255,.7) 0 2px, transparent 3px);
  filter: drop-shadow(0 0 12px rgba(96,152,242,.38));
}
.login-tech-inner {
  position: relative;
  z-index: 1;
  display: grid !important;
  min-height: 100vh;
  grid-template-columns: minmax(560px, 1fr) minmax(440px, 560px);
  align-items: center;
  gap: clamp(58px, 9vw, 150px);
  padding: clamp(38px, 5.4vw, 78px) clamp(88px, 10vw, 188px) 42px !important;
}
.login-tech-left {
  opacity: 1 !important;
  pointer-events: auto !important;
  min-width: 0;
}
.hub-stage {
  width: clamp(360px, 29vw, 480px) !important;
  height: clamp(270px, 23vw, 380px) !important;
  margin: -10px 0 14px !important;
}
.hub-stage::before {
  display: none !important;
}
.hub-stage::after {
  z-index: 1;
  bottom: 16% !important;
  width: 70% !important;
  height: 22% !important;
}
.hub-globe {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 41%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 3%, rgba(113,232,255,.96) 4%, transparent 10%),
    radial-gradient(circle at 34% 25%, rgba(255,255,255,.86), transparent 17%),
    radial-gradient(circle at 70% 77%, rgba(92,214,236,.74), transparent 30%),
    radial-gradient(circle at 22% 77%, rgba(185,113,239,.66), transparent 30%),
    linear-gradient(145deg, rgba(240,248,255,.95), rgba(89,178,235,.8) 52%, rgba(114,98,224,.76));
  box-shadow:
    inset 18px 24px 40px rgba(255,255,255,.72),
    inset -22px -20px 54px rgba(44,98,190,.18),
    0 30px 68px rgba(74,125,196,.28),
    0 0 0 1px rgba(255,255,255,.72);
  animation: hubFloat 6s ease-in-out infinite;
}
.hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0 28%, rgba(121,234,255,.95) 30%, rgba(116,101,231,.18) 70%, transparent 72%);
  box-shadow: 0 0 32px rgba(121,234,255,.9);
}
.hub-line {
  position: absolute;
  left: 28%;
  top: 48%;
  width: 46%;
  height: 1px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 10px rgba(255,255,255,.65);
  transform-origin: center;
}
.hub-line--a { transform: rotate(34deg); }
.hub-line--b { transform: rotate(-28deg); }
.hub-cardlet,
.hub-chip,
.hub-bubble {
  position: absolute;
  z-index: 2;
}
.hub-cardlet {
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 2px rgba(101,160,255,.18), 0 8px 18px rgba(76,114,185,.18);
}
.hub-cardlet--doc {
  left: 31%;
  top: 29%;
  width: 15%;
  height: 21%;
}
.hub-cardlet--doc::before,
.hub-cardlet--paper::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 18%;
  top: 25%;
  height: 50%;
  background: repeating-linear-gradient(to bottom, rgba(78,132,214,.55) 0 3px, transparent 3px 9px);
}
.hub-cardlet--paper {
  left: 26%;
  top: 55%;
  width: 18%;
  height: 25%;
  border-radius: 10px;
}
.hub-cardlet--chart {
  right: 26%;
  bottom: 20%;
  width: 21%;
  height: 24%;
}
.hub-cardlet--chart::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 16%;
  bottom: 18%;
  height: 56%;
  background:
    linear-gradient(to top, rgba(116,101,231,.7) 24%, transparent 25% 100%),
    linear-gradient(to right, transparent 0 20%, rgba(255,255,255,.55) 20% 25%, transparent 25% 45%, rgba(255,255,255,.55) 45% 50%, transparent 50% 70%, rgba(255,255,255,.55) 70% 75%, transparent 75%);
}
.hub-chip {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(135deg, #8c7cff, #38bdf8);
  box-shadow: 0 8px 20px rgba(75,113,205,.25);
}
.hub-chip--a { right: 18%; top: 50%; }
.hub-chip--b { right: 31%; top: 24%; transform: scale(.75); }
.hub-bubble {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff, rgba(142,129,235,.55) 42%, rgba(98,196,237,.25) 70%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}
.hub-bubble--a { left: 10%; top: 28%; }
.hub-bubble--b { right: 10%; top: 40%; width: 22px; height: 22px; }
.hub-bubble--c { left: 19%; bottom: 18%; width: 18px; height: 18px; }
.login-tech-card {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  width: min(100%, 520px) !important;
  max-width: 560px !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  opacity: 1 !important;
  border-radius: 42px;
  background: rgba(255,255,255,.7) !important;
  box-shadow: 0 34px 78px rgba(80,103,160,.2), inset 0 0 0 1px rgba(255,255,255,.78) !important;
  pointer-events: auto;
}
.login-tech-card-inner {
  width: auto !important;
  height: auto !important;
  min-height: 560px !important;
  padding: 68px 62px 58px !important;
  border-radius: 42px;
  background: rgba(255,255,255,.58) !important;
}
.login-tech-form {
  height: auto !important;
}
.login-tech-card .tech-field-input,
.login-tech-card .tech-login-btn,
.login-tech-card .tech-link {
  pointer-events: auto;
}
.tech-agents {
  flex-wrap: nowrap !important;
  gap: 12px !important;
}
.tech-agent-chip {
  min-width: 132px !important;
  padding: 9px 16px !important;
  font-size: 16px !important;
}
.ai-doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(96,152,242,.22);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(238,245,255,.95), rgba(245,243,255,.88));
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.ai-doc-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ai-cyan);
  box-shadow: 0 0 0 5px rgba(97,208,221,.13);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.login-brand::before,
.login-brand::after {
  border-color: rgba(96,152,242,.18);
}
.login-brand h1,
.app-year-title,
.doc-preview h3,
.score-report h3 {
  color: #203d7c;
}
.login-flow,
.login-stats > div,
.slide-card.active {
  border-color: rgba(96,152,242,.18);
}
.msg.agent .msg-avatar,
.reviewer-logo,
.eval-core {
  background: linear-gradient(135deg, var(--ai-purple), var(--primary));
}
.reviewer-logo,
.reviewer-ring,
.eval-core {
  box-shadow: 0 8px 22px rgba(96,152,242,.22);
}
.reviewer-ring {
  background: conic-gradient(var(--ai-purple), var(--primary), var(--ai-cyan), var(--ai-purple));
}
.reviewer-ring-inner b {
  color: var(--ai-purple);
}
.notice-banner,
.folder-index-upload {
  border-color: rgba(96,152,242,.24);
  background: linear-gradient(135deg, rgba(238,245,255,.94), rgba(248,251,255,.92));
}
.eval-ring {
  border-color: rgba(96,152,242,.35);
}
.slide-thumb i {
  background: rgba(96,152,242,.25);
}
.app-doc-preview section.located {
  border-left-color: var(--ai-purple);
  border-radius: 8px;
}
.ai-scan-beam {
  border-top-color: rgba(96,152,242,.7);
}

@media (max-width: 1200px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .app-project-grid { grid-template-columns: repeat(2, 1fr); }
  .tune-workbench, .score-workbench { grid-template-columns: 1fr; }
  .login-tech-inner { padding: 40px 36px; gap: 24px; grid-template-columns: 1fr 1fr; }
  .hub-stage { width: 260px; height: 260px; }
  .tech-title { font-size: 36px; }
}
@media (max-width: 960px) {
  .login-view--tech { display: block; }
  .login-tech-inner { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; }
  .login-tech-left { text-align: center; margin: 0 auto; }
  .login-tech-card { margin: 0 auto; }
  .hub-stage { margin-left: auto; margin-right: auto; }
  .tech-agents { justify-content: center; }
  .login-tech-foot { position: static; padding: 18px 0; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 80; transform: translateX(-100%); transition: transform 180ms ease; box-shadow: var(--shadow-modal); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .top-search { display: none; }
  .grid-2, .grid-1-2, .grid-2-1 { grid-template-columns: 1fr; }
  .qa-layout { grid-template-columns: 1fr; height: auto; }
  .qa-side { position: static; max-height: 280px; }
  .view { padding: 16px; }
  .slide-grid { grid-template-columns: repeat(2, 1fr); }
  .app-project-grid { grid-template-columns: 1fr; }
  .writer-layout { grid-template-columns: 1fr; }
  .app-alert-float { right: 12px; top: 118px; }
  .app-workspace-title { flex-direction: column; }
  .app-top-progress { width: 100%; }
  .writer-bottom-chat { grid-template-columns: 1fr; }
  .score-hero, .adv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpi-row, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .top-user > div:last-child { display: none; }
  .login-tech-inner { padding: 28px 18px; }
  .tech-title { font-size: 30px; }
  .tech-subtitle { font-size: 14px; }
  .hub-stage { width: 220px; height: 220px; }
  .login-tech-card-inner { padding: 28px 22px 22px; }
  .login-tech-head h2 { font-size: 22px; }
}

/* ===== 内页智能化元素（保留淡色底色） ===== */

/* 顶栏 · 智库中枢在线状态 */
.ai-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(96,152,242,.08), rgba(138,132,232,.08));
  border: 1px solid rgba(96,152,242,.22);
  font-size: 12px; color: var(--primary-dark);
  white-space: nowrap;
  transition: all 200ms ease;
}
.ai-status:hover { box-shadow: 0 0 0 3px rgba(96,152,242,.1); }
.ai-status-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: aiStatusPulse 2s ease-in-out infinite;
}
@keyframes aiStatusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

/* 页面标题旁的 AI 脉冲条 */
.ai-pulse-strip {
  display: flex; align-items: center; gap: 3px;
  height: 16px; margin: 0 12px;
  align-self: center;
}
.ai-pulse-strip span {
  width: 2px; height: 8px; border-radius: 1px;
  background: linear-gradient(180deg, var(--primary), var(--ai-cyan));
  opacity: .4;
  animation: aiPulseBar 1.4s ease-in-out infinite;
}
.ai-pulse-strip span:nth-child(2) { animation-delay: .15s; }
.ai-pulse-strip span:nth-child(3) { animation-delay: .3s; }
.ai-pulse-strip span:nth-child(4) { animation-delay: .45s; }
.ai-pulse-strip span:nth-child(5) { animation-delay: .6s; }
.ai-pulse-strip span:nth-child(6) { animation-delay: .75s; }
.ai-pulse-strip span:nth-child(7) { animation-delay: .9s; }
.ai-pulse-strip span:nth-child(8) { animation-delay: 1.05s; }
@keyframes aiPulseBar {
  0%, 100% { transform: scaleY(.4); opacity: .3; }
  50% { transform: scaleY(1.4); opacity: 1; }
}

/* 悬浮 AI 智库助手 */
.ai-orb {
  position: fixed; right: 24px; bottom: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--ai-purple) 60%, var(--ai-cyan));
  color: #fff; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow:
    0 12px 32px rgba(96,152,242,.35),
    0 0 0 1px rgba(255,255,255,.5) inset;
  z-index: 70;
  transition: all 250ms cubic-bezier(.4,0,.2,1);
  overflow: visible;
}
.ai-orb:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 16px 40px rgba(96,152,242,.5),
    0 0 24px rgba(106,180,255,.4),
    0 0 0 1px rgba(255,255,255,.6) inset;
}
.ai-orb:active { transform: scale(.97); }
.ai-orb svg { width: 24px; height: 24px; position: relative; z-index: 2; }
.ai-orb-label {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: rgba(34,38,51,.92); color: #fff;
  font-size: 12px; padding: 5px 10px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.ai-orb-label::after {
  content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; background: rgba(34,38,51,.92);
}
.ai-orb:hover .ai-orb-label { opacity: 1; }

.ai-orb-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(96,152,242,.5);
  animation: orbPulseRing 2.4s ease-out infinite;
  pointer-events: none;
}
.ai-orb-pulse--2 { animation-delay: 1.2s; }
@keyframes orbPulseRing {
  0% { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* 内页响应式调整 */
@media (max-width: 720px) {
  .ai-status .ai-status-text { display: none; }
  .ai-status { padding: 5px 8px; }
  .ai-pulse-strip { display: none; }
  .ai-orb { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .ai-orb svg { width: 20px; height: 20px; }
  .ai-orb-label { display: none; }
}
