/* 诊断报告页专属样式（融合全栈 11 章节 + AIVO SVG 图表组件） */
:root { --p:#0d9488; --ok:#059669; --warn:#d97706; --bad:#dc2626; --card:#fff; --bd:#e5e7eb; --t1:#0f172a; --t2:#334155; --t3:#64748b; }
.wrap { flex: 1; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 16px 0 36px; color: var(--t2); }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.btn { text-decoration: none; background: #fff; color: var(--t1); border: 1px solid var(--bd); padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: #1d68c4; color: #1d68c4; }
.btn-teal { background: #eff6ff; color: #1d68c4; border-color: #bfdbfe; }
.btn-teal:hover { background: #dbeafe; color: #1d68c4; }
.btn-dark { background: #0f172a; color: #fff; border-color: #0f172a; }
.btn-dark:hover { background: #1e293b; color: #fff; }

/* 右侧悬浮章节导航 */
.sidenav { position: fixed; right: 12px; top: 52%; transform: translateY(-50%); background: rgba(255,255,255,0.95); border: 1px solid var(--bd); border-radius: 14px; padding: 8px 6px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 2px; z-index: 99; }
.sidenav a { text-decoration: none; font-size: 11px; color: var(--t3); padding: 4px 9px 4px 5px; border-radius: 8px; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: all 0.15s; }
.sidenav a:hover, .sidenav a.active { background: #eff6ff; color: #1d68c4; font-weight: 600; }
.sidenav b { width: 19px; height: 19px; border-radius: 5px; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.sidenav a.active b { background: #1d68c4; color: #fff; }

/* 头部总评卡 */
.hero { background: #fff; border: 1px solid var(--bd); border-radius: 16px; padding: 28px 32px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; box-shadow: 0 4px 20px rgba(15,23,42,0.04); }
.hero h1 { font-size: 25px; color: var(--t1); margin: 8px 0 6px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #f0fdfa; color: var(--p); border: 1px solid #99f6e4; margin-right: 6px; }
.chip-gray { background: #f1f5f9; color: var(--t3); border-color: #e2e8f0; }
.chip-warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.hero-rings { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ring { position: relative; width: 116px; height: 116px; display: flex; align-items: center; justify-content: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }

/* 通用章节容器 */
.sec { background: var(--card); border: 1px solid var(--bd); border-radius: 14px; padding: 24px 26px; margin-bottom: 18px; scroll-margin-top: 16px; }
.sec-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.sec-num { background: #eff6ff; color: #1d68c4; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.sec-h h2 { margin: 0; font-size: 18.5px; color: var(--t1); }
.sec-tag { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--p); background: #f0fdfa; padding: 3px 10px; border-radius: 999px; border: 1px solid #99f6e4; }
.sec-tag-warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }

/* 栅格与统计卡 */
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 14px 16px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--bd); border-left: 3px solid var(--p); }
.stat .v { font-size: 24px; font-weight: 700; color: var(--t1); }
.stat .l { font-size: 12px; color: var(--t3); }

/* 进度条 */
.bar-row { display: flex; align-items: center; gap: 12px; margin: 9px 0; font-size: 13px; }
.bar-track { flex: 1; height: 9px; background: #e2e8f0; border-radius: 999px; position: relative; overflow: hidden; }
.bar-proj { position: absolute; inset: 0 auto 0 0; background: #a7f3d0; }
.bar-cur { position: absolute; inset: 0 auto 0 0; background: var(--p); border-radius: 999px; }

/* AIVO 雷达与维度区 */
.aivo-box { display: flex; gap: 24px; align-items: center; padding: 18px; background: #f8fafc; border: 1px solid var(--bd); border-radius: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.aivo-radar-wrap { width: 220px; flex-shrink: 0; margin: 0 auto; }
.aivo-info { flex: 1; min-width: 240px; }
.aivo-bench { display: inline-flex; gap: 12px; align-items: center; padding: 7px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--bd); font-size: 12.5px; margin-top: 10px; }

/* 8 大 AI 平台卡片与点阵 */
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.plat-card { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--bd); background: #f8fafc; }
.plat-card.high { background: #f0fdf4; border-color: #a7f3d0; }
.plat-card.mid  { background: #fffbeb; border-color: #fde68a; }
.plat-card.low  { background: #fef2f2; border-color: #fecaca; }
.plat-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; font-size: 13.5px; color: var(--t1); }
.q-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; font-size: 10.5px; font-weight: 700; margin: 1px; }
.q-dot.yes { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.q-dot.no  { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; }

/* 舆情环形图与驱动标签 */
.sen-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.sen-donut-wrap { width: 140px; flex-shrink: 0; padding: 8px; background: #f8fafc; border: 1px solid var(--bd); border-radius: 12px; }
.sen-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sen-tag-pos { padding: 2px 10px; border-radius: 6px; font-size: 12px; background: #f0fdf4; color: #059669; border: 1px solid #a7f3d0; }
.sen-tag-neg { padding: 2px 10px; border-radius: 6px; font-size: 12px; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* 竞品水平柱状图与优势卡 */
.chart-panel { padding: 16px 20px; background: #f8fafc; border: 1px solid var(--bd); border-radius: 12px; margin-bottom: 16px; }
.threat-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.threat-high   { background: #fef2f2; color: #dc2626; }
.threat-medium { background: #fffbeb; color: #d97706; }
.threat-low    { background: #f0fdf4; color: #059669; }
.adv-card { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--bd); border-top: 3px solid #cbd5e1; }
.adv-card.brand { background: #f0fdfa; border-color: #99f6e4; border-top-color: #0d9488; }

/* 用户画像雷达组合 */
.profile-top { display: flex; gap: 24px; align-items: center; padding: 16px 20px; background: #f8fafc; border: 1px solid var(--bd); border-radius: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.profile-radar-wrap { width: 220px; flex-shrink: 0; margin: 0 auto; }
.profile-bars { flex: 1; min-width: 220px; }

/* 实施路线图 P1/P2/P3 */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.rm-card { padding: 16px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--bd); border-top: 3px solid #0d9488; }
.rm-card.p1 { border-top-color: #dc2626; }
.rm-card.p2 { border-top-color: #d97706; }
.rm-card.p3 { border-top-color: #059669; }
.rm-card ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12.5px; }
.rm-card li { padding: 4px 0; border-bottom: 1px dashed #e2e8f0; }
.rm-card li:last-child { border-bottom: none; }

/* 表格与代码块 */
.wrap table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.wrap th, .wrap td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.wrap th { background: #f8fafc; color: var(--t3); font-weight: 700; }
.pri { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pri-P0 { background: #fef2f2; color: #dc2626; } .pri-P1 { background: #fff7ed; color: #ea580c; } .pri-P2 { background: #fffbeb; color: #d97706; }

.codebox { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; font-size: 12px; line-height: 1.55; overflow-x: auto; max-height: 240px; white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; margin: 0; }
.copy-bar { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--t1); }
.qw { padding: 14px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; }
.box-ok { padding: 14px; border-radius: 12px; background: #f0fdf4; border: 1px solid #a7f3d0; }
.box-warn { padding: 14px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; }
.box-ok ul, .box-warn ul { list-style: none; font-size: 12.5px; margin: 6px 0 0; padding: 0; }
.box-ok li, .box-warn li { padding: 3px 0; }
.rep-note { text-align: center; font-size: 12px; color: var(--t3); margin-top: 16px; }

/* SVG 图表字体 */
.dr-svg-label { font-size: 11px; fill: #475569; font-weight: 600; }
.dr-svg-val { font-size: 11.5px; fill: #0f172a; font-weight: 700; }

@media (max-width: 960px) { .sidenav { display: none; } .g4, .plat-grid { grid-template-columns: repeat(2, 1fr); } .g3, .roadmap-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g4, .plat-grid { grid-template-columns: 1fr; } .hero { padding: 20px; } .sec { padding: 18px 15px; } }
@media print { .sidenav, .topbar, .no-print { display: none !important; } body { background: #fff; } .sec { break-inside: avoid; } }