:root {
  --ink: #1d2a35;
  --muted: #5f6d78;
  --line: #d7e0e5;
  --paper: #ffffff;
  --wash: #f4f7f8;
  --navy: #17324d;
  --teal: #087f8c;
  --orange: #c7682e;
  --green: #2d7c61;
  --shadow: 0 14px 38px rgba(23, 50, 77, 0.10);
  --sidebar: 214px;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--wash); font: 14px/1.75 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 8px 13px; transition: background .16s, border-color .16s, box-shadow .16s; }
button:hover { background: #e7f1f2; border-color: #b9d5d8; }
button:disabled { cursor: wait; opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #6db8be; outline-offset: 3px; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: 26px; line-height: 1.45; letter-spacing: -.6px; font-weight: 700; margin: 5px 0 6px; color: var(--navy); }
h2 { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.5; color: var(--navy); }
h3 { font-size: 14px; font-weight: 700; margin: 20px 0 10px; color: var(--teal); }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; background: var(--navy); border: 1px solid var(--navy); color: #fff; box-shadow: 0 3px 8px rgba(23,50,77,.16); padding: 11px 16px; border-radius: 7px; }
.primary:hover { background: #1f4268; color: #fff; border-color: #1f4268; }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 12px; background: #fff; padding: 9px 13px; }
.secondary .icon { width: 15px; height: 15px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); background: none; border: 0; font-size: 12px; padding: 4px 0; }
.text-button:hover { background: none; color: #065f68; }
.text-button .icon { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #eef8f2; color: #268361; border-radius: 5px; padding: 4px 9px; font-size: 11px; white-space: nowrap; }
.pill:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill[data-status=running], .pill[data-status=queued] { color: var(--teal); background: #edf8f8; }
.pill[data-status=waiting], .pill[data-status=interrupted] { color: #9b681c; background: #fff5df; }
.pill[data-status=blocked], .pill[data-status=failed], .pill[data-status=cancelled] { color: #ba524b; background: #fff0ee; }

/* Application shell（沿用 V1 结构，换旧手册 navy 配色） */
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 30; background: var(--navy); color: #b2c3d4; display: flex; flex-direction: column; padding: 26px 14px 18px; }
.product-brand { display: flex; gap: 11px; align-items: center; padding: 0 8px 26px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 37px; background: var(--teal); color: white; border-radius: 10px; font-size: 19px; font-weight: 700; box-shadow: inset 0 1px 0 #ffffff30; }
.product-brand strong { display: block; color: #fff; font-size: 18px; letter-spacing: 1px; }
.product-brand > div > span { display: block; font-size: 7px; letter-spacing: 1.1px; color: #8fd2d5; margin-top: 3px; }
.org-switch { display: flex; align-items: center; gap: 9px; position: relative; background: #223a58; border: 1px solid #33527a; padding: 11px 9px; border-radius: 8px; margin: 0 2px 28px; cursor: pointer; }
.org-switch:hover, .org-switch[aria-expanded="true"] { border-color: #4a6d9e; }
.org-avatar { display: grid; place-items: center; width: 27px; height: 29px; background: #3a5780; border-radius: 5px; font-size: 12px; color: #dce8f7; }
.org-switch b { font-size: 11px; color: #d7e3f1; font-weight: 500; }
.org-switch small { display: block; font-size: 9px; color: #8fa9c9; }
.project-caret { margin-left: auto; color: #8fa9c9; transition: transform .18s; }
.org-switch[aria-expanded="true"] .project-caret { transform: rotate(180deg); }
.project-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: #16283f; border: 1px solid #33527a; border-radius: 9px; padding: 8px; box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.project-menu-title { font-size: 10px; color: #8fa9c9; padding: 4px 8px 8px; }
.project-menu-item { display: flex; gap: 9px; align-items: flex-start; width: 100%; padding: 9px 8px; border: 0; border-radius: 7px; background: transparent; color: #d7e3f1; text-align: left; cursor: pointer; }
.project-menu-item:hover { background: #23405f; }
.project-menu-item.selected { background: #2c4a70; }
.project-menu-item .mi-avatar { display: grid; place-items: center; flex: none; width: 26px; height: 26px; background: #3a5780; border-radius: 6px; font-size: 12px; color: #dce8f7; }
.project-menu-item b { display: block; font-size: 12px; font-weight: 600; }
.project-menu-item small { display: block; font-size: 9px; color: #8fa9c9; margin-top: 2px; }
.org-chevron { margin-left: auto; color: #8fa9c9; }
.nav-section-label { color: #7c93b4; font-size: 10px; padding: 0 13px; margin: 0 0 9px; letter-spacing: .8px; }
.app-sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.app-sidebar nav > .nav-section-label { margin-top: 27px; }
.nav-tab { display: flex; align-items: center; gap: 11px; position: relative; width: 100%; padding: 11px 13px; border: 0; border-radius: 7px; background: transparent; color: #a9bcd2; font-size: 12px; text-align: left; }
.nav-tab:hover { background: #23405f; color: #fff; text-decoration: none; }
.nav-tab.active { color: #fff; background: #2d4f78; }
.nav-tab .icon { width: 17px; height: 17px; color: #93a9c7; }
.nav-tab.active .icon { color: #a5d4da; }
.nav-active-dot { display: none; width: 5px; height: 5px; border-radius: 50%; background: #8fd2d5; margin-left: auto; }
.nav-tab.active .nav-active-dot { display: block; }
.sidebar-bottom { margin-top: auto; padding: 24px 8px 0; }
.local-indicator { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #9fb2c8; }
.local-indicator i { width: 5px; height: 5px; background: #5bb39b; border-radius: 50%; }
.version { margin-left: auto; font-size: 9px; color: #7188a6; }
.sidebar-bottom p { font-size: 9px; color: #6f87a4; margin: 9px 0 0; }
.app-shell { margin-left: var(--sidebar); min-height: 100vh; }

/* 登录态：未登录时只显示居中的登录卡，隐藏侧栏/顶栏/所有视图，防止外人查看项目内容 */
body.logged-out .app-sidebar,
body.logged-out .app-header,
body.logged-out .footer,
body.logged-out main > section:not(#login-card) { display: none !important; }
body.logged-out .app-shell { margin-left: 0; }
body.logged-out main { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
body.logged-out .login-card { margin: 0; }
.app-header { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); gap: 14px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.breadcrumb strong { color: var(--navy); font-weight: 600; }
.breadcrumb .icon { width: 11px; height: 11px; color: #b8c2d0; }
.header-actions { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.environment-tag { font: 9px Consolas, monospace; color: #8190a7; letter-spacing: .8px; border: 1px solid #e0e7f0; padding: 3px 6px; border-radius: 3px; }
.header-divider { height: 20px; width: 1px; background: var(--line); margin: 0 7px; }
.user-avatar { width: 27px; height: 27px; background: #eef3f5; color: #6383c7; display: grid; place-items: center; border-radius: 50%; font-size: 11px; }
.header-actions #logout { border: 0; background: none; color: #8390a4; font-size: 11px; padding: 4px; }
.header-actions #who { color: #5d6b80; }
main { max-width: 1640px; padding: 26px 32px 40px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.page-overline { font-size: 9px; font-weight: 700; letter-spacing: 1.6px; color: var(--teal); text-transform: uppercase; }
.page-heading p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.heading-actions { display: flex; align-items: center; gap: 12px; }
.date-chip { font-size: 10px; color: var(--muted); display: flex; gap: 7px; align-items: center; white-space: nowrap; }
.date-chip .icon { width: 14px; height: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 5px 18px rgba(23,50,77,.04); }
.card-heading, .split { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.card-heading { padding-bottom: 14px; border-bottom: 1px solid #eef3f5; margin-bottom: 14px; }
.heading-title { display: flex; align-items: center; gap: 9px; }
.section-icon { color: var(--teal); display: inline-flex; }
.section-icon .icon { width: 17px; height: 17px; }
.panel-description { font-size: 11px; color: var(--muted); margin: -3px 0 16px; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--teal); text-transform: uppercase; }

/* 旧手册组件：hero / callout / story / case / resume / tag / flow */
.hero { padding: 26px 30px; color: #fff; background: var(--navy); border-radius: 10px; box-shadow: var(--shadow); }
.hero .eyebrow { color: #8fd2d5; }
.hero h1 { margin: 8px 0 10px; color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.hero p { max-width: 850px; margin: 0; color: #d9e7ef; font-size: 14px; }
.hero-note { border-left: 3px solid #8fd2d5; padding-left: 15px; color: #c8dce7; font-size: 13px; }
.callout { margin: 14px 0; padding: 12px 15px; border-left: 4px solid var(--teal); background: #edf8f8; font-size: 12px; border-radius: 4px; }
.callout.warn { border-left-color: var(--orange); background: #fff5ed; }
.callout.good { border-left-color: var(--green); background: #eef8f2; }
.tag { display: inline-block; margin: 0 5px 5px 0; padding: 2px 8px; border-radius: 99px; color: #245d65; background: #e2f2f3; font-size: 12px; }
.score { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 5px; color: #315848; background: #e5f4eb; font-weight: 700; font-size: 12px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.flow span { padding: 7px 10px; border: 1px solid #b9d5d8; border-radius: 5px; color: var(--navy); background: #f0fbfb; font-weight: 700; font-size: 12px; }
.flow b { color: var(--orange); }
.resume { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; }
.resume-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.resume-head .who { font-size: 17px; font-weight: 800; color: var(--navy); }
.resume-head .who span { color: var(--teal); }
.resume p { margin: 8px 0; font-size: 13px; }
.resume .k { color: var(--navy); font-weight: 700; }
.metrics-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* 模块1：工作项横向标签 + 简历卡 */
.tabs-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.work-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; }
.work-tab:hover { border-color: #9fb8c2; background: #eef3f5; }
.work-tab.active { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 4px 12px rgba(8,127,140,.22); }
.work-tab .wi-no { font: 10px Consolas, monospace; opacity: .75; }
.work-tab.active .wi-no { opacity: .9; }

/* 模块2：分析执行图（压缩高度） */
.exec-graph { overflow: auto; max-height: 245px; background: #fbfefe; border: 1px solid #e3ebee; border-radius: 8px; padding: 10px; }
.exec-graph svg { width: 100%; height: auto; min-width: 620px; max-height: 225px; }
.exec-graph .graph-fallback { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 12px; }
.graph-legend { display: flex; align-items: center; gap: 14px; font-size: 10px; color: var(--muted); margin: 8px 0 0; flex-wrap: wrap; }
.graph-legend > span { display: flex; align-items: center; gap: 5px; }
.graph-legend i { width: 6px; height: 6px; border-radius: 2px; background: #dbe3ef; display: inline-block; }
.graph-legend .legend-done { background: #83b8a3; }
.graph-legend .legend-current { background: #dfb977; }

/* 模块3：全链路节点图（压缩高度） */
.node-chain { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden; max-height: none; padding: 4px 2px 8px; }
.node-chain .node-card { width: 100%; min-width: 0; max-width: none; }
.node-card { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; min-width: 168px; max-width: 220px; border: 1px solid #cfe0e2; border-radius: 8px; padding: 10px 12px; background: #fbfdfd; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.node-card:hover { border-color: var(--teal); background: #f0fbfb; }
.node-card.active { border-color: var(--teal); background: #e7f7f7; box-shadow: 0 3px 9px rgba(8,127,140,.14); }
.node-card .node-badge { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: #e2f2f3; color: #245d65; font: 11px Consolas, monospace; font-weight: 700; }
.node-card.active .node-badge { background: var(--teal); color: #fff; }
.node-card .node-card-body { min-width: 0; }
.node-card h3 { font-size: 13px; margin: 0 0 3px; color: var(--navy); font-weight: 700; }
.node-card p { font-size: 10px; color: var(--muted); margin: 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.node-card .node-index { font: 9px Consolas, monospace; color: #9db0bd; margin-left: auto; flex-shrink: 0; }
.node-chain .node-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 12px; border: 1px dashed #dfe6ea; border-radius: 8px; background: #fbfcfc; }

/* 模块4：七段式内容（核心） */
.story-content { overflow: visible; }
.story { margin: 0 0 18px; border: 1px solid #b8d5d8; border-radius: 10px; overflow: hidden; background: #fbfefe; }
.story-head { padding: 11px 15px; background: #dff1f2; color: var(--navy); font-weight: 800; font-size: 13px; }
.story-head small { margin-left: 8px; color: var(--teal); font-weight: 650; }
.story-body { padding: 13px 16px 15px; }
.story-step { display: grid; grid-template-columns: 96px 1fr; gap: 11px; padding: 9px 0; border-bottom: 1px dashed #d8e5e7; }
.story-step:last-child { border-bottom: 0; }
.story-step .badge { height: fit-content; padding: 3px 7px; border-radius: 4px; text-align: center; font-size: 12px; font-weight: 800; background: #e9f5f5; color: #245d65; }
.story-step.problem .badge { background: #fbe7d9; color: #9c4a1e; }
.story-step.action .badge { background: #e5eef8; color: #315d84; }
.story-step.result .badge { background: #e5f4eb; color: #315848; }
.story-step.interview .badge { background: #f4ebfa; color: #6b4682; }
.story-step .step-text { font-size: 13px; line-height: 1.85; color: #2c3b46; }
.story-script { margin-top: 12px; padding: 12px 14px; border-left: 4px solid var(--orange); background: #fff8f2; border-radius: 4px; font-size: 12px; }
.subtopic-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.subtopic-tab { padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 600; }
.subtopic-tab.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.qa-list { margin-top: 6px; }
.qa-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.qa-item:last-child { border-bottom: 0; }
.qa-item strong { color: var(--navy); }
.qa-item p { font-size: 12px; color: #2c3b46; line-height: 1.8; margin: 5px 0 0; }

/* 节点浮窗 dialog */
.node-dialog { padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); width: min(1060px, 94vw); max-height: 88vh; box-shadow: 0 24px 80px rgba(23,50,77,.28); }
.node-dialog::backdrop { background: rgba(23,50,77,.45); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; background: var(--navy); color: #fff; border-radius: 14px 14px 0 0; }
.dialog-head h2 { margin: 0; color: #fff; font-size: 15px; }
.dialog-head .dialog-close { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; border-radius: 6px; padding: 5px 10px; font-size: 12px; }
.dialog-head .dialog-close:hover { background: rgba(255,255,255,.22); }
.dialog-body { padding: 16px 20px 20px; overflow: auto; max-height: calc(88vh - 60px); }
.io-block { border: 1px solid #cfe0e2; border-radius: 9px; margin-bottom: 13px; overflow: hidden; background: #fbfefe; }
.io-block summary { padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--navy); background: #eef3f5; border-bottom: 1px solid #d8e5e7; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.io-block summary .io-tag { font: 10px Consolas, monospace; color: var(--teal); background: #e2f2f3; border-radius: 4px; padding: 2px 7px; }
.io-block .io-body { padding: 12px 14px; }
.io-block .io-body h4 { font-size: 10px; color: var(--muted); margin: 10px 0 5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.io-block .io-body pre { font: 12px/1.7 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: #f6f8fc; border: 1px solid #e3ebee; border-radius: 7px; padding: 12px; max-height: 240px; overflow: auto; margin: 0; color: #2c3b46; }
.io-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.8; }
.code-block { border: 1px solid #cfe0e2; border-radius: 9px; overflow: hidden; margin-top: 12px; background: #fff; }
.code-block .code-head { padding: 9px 13px; background: #eef3f5; border-bottom: 1px solid #d8e5e7; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code-block .code-head .code-path { font: 11px/1.6 "SFMono-Regular", Consolas, monospace; color: var(--teal); overflow-wrap: anywhere; }
.code-block .code-head .code-range { font: 10px Consolas, monospace; color: var(--muted); margin-left: auto; }
.code-block .code-head button { font-size: 10px; padding: 4px 8px; margin-left: 6px; }
.code-scroll { overflow: auto; max-height: 320px; }
.code-lines { font: 12px/1.8 "SFMono-Regular", Consolas, monospace; min-width: 100%; width: max-content; padding: 11px 0; background: linear-gradient(to right, #eef3f5 46px, #fafcff 46px); }
.code-line { display: flex; min-height: 22px; padding-right: 18px; }
.code-line .ln { display: inline-block; flex: 0 0 46px; width: 46px; text-align: right; padding-right: 11px; color: #a6b4cb; user-select: none; font-size: 9px; }
.code-line code { white-space: pre; tab-size: 4; padding-left: 13px; color: #1d2a35; }
.token-comment { color: #8193aa; }
.token-string { color: #ac8056; }
.token-keyword { color: #8a6dad; font-weight: 600; }
.token-number { color: #5b8eb4; }
.code-empty { padding: 24px; text-align: center; font-size: 12px; color: var(--muted); border: 1px dashed #dfe6ea; border-radius: 9px; background: #fbfcfc; margin-top: 12px; }
.dialog-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }

/* 面试题布局（同主题换肤） */
.interview-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.interview-sidebar { position: sticky; top: 20px; margin-bottom: 0; }
.interview-cats { display: flex; flex-direction: column; gap: 5px; }
.interview-cats button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; padding: 9px 11px; border-radius: 8px; font-size: 12px; color: var(--ink); }
.interview-cats button:hover { border-color: #9fb8c2; background: #eef3f5; }
.interview-cats button.active { border-color: var(--teal); background: var(--teal); color: #fff; font-weight: 600; }
.interview-cats button .cat-count { font: 9px Consolas, monospace; color: var(--muted); margin-left: auto; }
.interview-cats button.active .cat-count { color: #dff1f2; }
/* V4.1：子题库平铺在页面顶部（顺序：项目面试题→高频面试题→Agent→RAG→LLM） */
.interview-cats-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.interview-cats-h button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; padding: 9px 15px; border-radius: 999px; font-size: 12.5px; color: var(--ink); cursor: pointer; transition: all .15s ease; }
.interview-cats-h button:hover { border-color: #9fb8c2; background: #eef3f5; }
.interview-cats-h button.active { border-color: var(--teal); background: var(--teal); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(21,103,112,.18); }
.interview-cats-h button .cat-count { font: 10px Consolas, monospace; color: var(--muted); }
.interview-cats-h button.active .cat-count { color: #dff1f2; }
.interview-sidebar #interview-shuffle { width: 100%; margin-top: 18px; }
.interview-card { margin-bottom: 0; min-height: 320px; }
.question-card { border: 1px solid #cfe0e2; border-radius: 10px; padding: 18px 20px; background: #fbfefe; margin-bottom: 14px; }
.question-card .q-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.question-card .q-cat { font: 10px Consolas, monospace; color: #245d65; background: #e2f2f3; border-radius: 4px; padding: 2px 7px; }
.question-card .q-no { font: 9px Consolas, monospace; color: var(--muted); }
.question-card h3 { font-size: 15px; color: var(--navy); margin: 0; line-height: 1.7; }
.question-card .q-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.question-card .q-toolbar button { font-size: 11px; padding: 7px 12px; }
.q-reveal { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 13px; }
.q-reveal h4 { font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; }
.q-reveal p { font-size: 12px; color: #2c3b46; line-height: 1.9; margin: 0; }
.q-reveal .q-tips { color: #8a6d3a; background: #fffaf0; border: 1px solid #ead3a6; border-radius: 8px; padding: 12px 14px; margin-bottom: 11px; }
.q-reveal .q-answer { color: #2c3b46; background: #f7fafb; border: 1px solid #d8e5e7; border-radius: 8px; padding: 12px 14px; }

/* 登录 */
.login-card { max-width: 440px; margin: 42px auto 90px; padding: 30px; }
.login-card .page-overline { margin: 20px 0 9px; }
.login-card > h2 { font-size: 20px; }
.login-card > .muted { font-size: 12px; margin-top: 10px; }
.login-card .primary { width: 100%; margin-top: 22px; }
.login-emblem { width: 46px; height: 46px; border-radius: 12px; background: #eef3f5; display: grid; place-items: center; color: var(--teal); }
.login-emblem .icon { width: 25px; height: 25px; }
.login-foot { font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
#login-error { font-size: 12px; color: #bf6659; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin: 16px 0 7px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 10px 11px; font-size: 13px; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { outline: 2px solid #dceef0; outline-offset: 0; border-color: #6db8be; }
textarea { min-height: 120px; resize: vertical; line-height: 1.9; background: #fbfefe; padding: 13px; color: #2c3b46; }

/* 通用元素 */
.empty { padding: 40px 10px 38px; text-align: center; }
.empty h3 { font-size: 17px; color: var(--navy); font-weight: 600; margin: 20px 0 9px; }
.empty p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.learning-error { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: #bf6659; }
[contenteditable="true"] { outline: 1px dashed rgba(8,127,140,.28); outline-offset: 2px; cursor: text; }
[contenteditable="true"]:focus { outline: 2px solid #6db8be; background: #fffef5; }
.footer { border-top: 1px solid #e6ebf2; margin-top: 30px; padding-top: 16px; display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 9px; }

/* 响应式 */
@media (min-width: 1650px) { :root { --sidebar: 232px; } main { padding: 32px 38px 46px; } }
@media (max-width: 1250px) {
  :root { --sidebar: 184px; }
  .product-brand { padding-left: 5px; gap: 8px; }
  .product-brand strong { font-size: 16px; }
  .product-brand > div > span { font-size: 6px; }
  .nav-tab { padding: 10px; font-size: 11px; }
  main { padding: 22px 24px; }
  .app-header { padding: 0 24px; }
  .heading-actions .date-chip { display: none; }
}
@media (max-width: 1000px) {
  :root { --sidebar: 72px; }
  .app-sidebar { padding: 22px 10px 15px; }
  .product-brand { padding: 0 6px 26px; }
  .product-brand > div, .org-switch, .app-sidebar > .nav-section-label, .app-sidebar nav > .nav-section-label, .nav-tab > span, .nav-active-dot, .sidebar-bottom { display: none !important; }
  .nav-tab { padding: 13px; justify-content: center; margin-bottom: 4px; }
  .nav-tab .icon { width: 19px; height: 19px; }
  .app-sidebar nav { gap: 10px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 24px; }
}
@media (max-width: 780px) {
  main { padding: 20px 16px; }
  .app-header { padding: 0 18px; height: 59px; }
  .environment-tag, .header-divider { display: none; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .story-step { grid-template-columns: 1fr; gap: 4px; }
  .story-step .badge { width: fit-content; }
  .interview-layout { grid-template-columns: 1fr; }
  .interview-sidebar { position: static; }
  .interview-cats { flex-direction: row; flex-wrap: wrap; }
  .interview-cats button { width: auto; }
}
@media (max-width: 480px) {
  :root { --sidebar: 0px; }
  .app-sidebar { width: 100%; height: 58px; inset: auto 0 0; flex-direction: row; padding: 3px 12px; justify-content: center; background: #fff; border-top: 1px solid var(--line); }
  .product-brand { display: none; }
  .app-sidebar nav { display: flex; flex-direction: row; justify-content: space-around; width: 100%; gap: 3px; }
  .app-sidebar .nav-tab { margin: 0; padding: 8px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; font-size: 8px; flex: 1; border-radius: 5px; }
  .app-sidebar .nav-tab > span { display: block !important; font-size: 8px; }
  .app-sidebar .nav-tab .icon { width: 15px; height: 15px; color: inherit; }
  .app-sidebar .nav-tab.active { background: #e7f7f7; color: var(--teal); }
  main { padding: 20px 13px 76px; }
  .app-header { padding: 0 14px; height: 55px; }
  .page-heading h1 { font-size: 22px; }
  .work-tab { padding: 8px 12px; font-size: 12px; }
  .node-dialog { width: 96vw; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* ===== V3：hero 卡片、并排布局、项目导读、手册组件渲染 ===== */
.tutorial-hero { margin-bottom: 18px; padding: 30px 34px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: center; }
.hero-actions { margin-top: 18px; display: flex; gap: 10px; align-items: center; }
.hero-actions .secondary { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.hero-actions .secondary:hover { background: rgba(255,255,255,.22); }
.hero-actions .secondary .icon { width: 15px; height: 15px; }
.hero-actions .secondary:disabled { opacity: .55; cursor: wait; }
.hero-facts { display: grid; gap: 10px; }
.hero-fact { border-left: 3px solid #8fd2d5; padding: 9px 13px; background: rgba(255,255,255,.07); border-radius: 6px; }
.hero-fact span { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8fd2d5; font-weight: 700; margin-bottom: 3px; }
.hero-fact b { font-size: 12.5px; color: #eaf3f7; font-weight: 600; line-height: 1.6; }

/* 模块2+3 并排 */
.exec-row { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: stretch; margin-bottom: 18px; }
.exec-row .exec-panel { margin-bottom: 0; min-width: 0; height: 500px; display: flex; flex-direction: column; }
.exec-row .exec-panel .card-heading { flex: 0 0 auto; }
.exec-row .exec-panel .panel-description { flex: 0 0 auto; }
.exec-row .exec-panel .exec-graph, .exec-row .exec-panel .node-chain { flex: 1 1 auto; min-height: 0; }
.exec-graph { max-height: none; }
.exec-row .exec-panel .graph-legend { flex: 0 0 auto; }
.exec-graph { max-height: 260px; }
.exec-graph svg { width: 840px; height: auto; max-height: 250px; display: block; }
.graph-legend .legend-active { background: var(--teal); }

/* 项目导读布局 */
.guide-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.guide-sidebar { position: sticky; top: 20px; margin-bottom: 0; }
.guide-cats { display: flex; flex-direction: column; gap: 4px; }
.guide-cat { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; padding: 9px 11px; border-radius: 8px; font-size: 12px; color: var(--ink); line-height: 1.5; }
.guide-cat:hover { border-color: #9fb8c2; background: #eef3f5; }
.guide-cat.active { border-color: var(--teal); background: var(--teal); color: #fff; font-weight: 600; }
.guide-cat .g-no { font: 10px Consolas, monospace; opacity: .7; flex-shrink: 0; }
.guide-content { min-height: 420px; }
.guide-chapter-head { padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 14px; }
.guide-chapter-head h2 { font-size: 20px; color: var(--navy); margin-top: 6px; line-height: 1.4; }

/* 手册组件渲染（guide-html 与内容介绍共用）：mini / grid / case / truth-note / qa / table / pre / code */
.guide-html { font-size: 13px; line-height: 1.9; color: #2c3b46; }
.guide-html h3 { font-size: 16px; color: var(--teal); margin: 26px 0 8px; }
.guide-html h4 { font-size: 14px; color: var(--orange); margin: 20px 0 7px; }
.guide-html p { margin: 9px 0; }
.guide-html ul, .guide-html ol { margin: 9px 0 13px 22px; padding: 0; }
.guide-html li { margin: 5px 0; }
.guide-html code { padding: 1px 5px; border-radius: 4px; color: #8c431d; background: #fff1e8; font-family: "SFMono-Regular", Consolas, monospace; font-size: .92em; }
.guide-html pre { overflow: auto; margin: 13px 0; padding: 15px 17px; color: #e9f2f5; background: #172833; border-radius: 6px; font: 12.5px/1.65 "SFMono-Regular", Consolas, monospace; white-space: pre; }
.guide-html pre code { padding: 0; background: none; color: inherit; }
.guide-html table { width: 100%; border-collapse: collapse; margin: 13px 0; font-size: 12.5px; }
.guide-html th, .guide-html td { padding: 9px 10px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.guide-html th { color: var(--navy); background: #eef3f5; font-weight: 700; }
.guide-html .mini { padding: 14px 15px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfc; margin: 13px 0; }
.guide-html .mini strong { color: var(--navy); }
.guide-html .grid-2, .guide-html .grid-3 { display: grid; gap: 14px; margin: 13px 0; }
.guide-html .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-html .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-html .case { margin: 15px 0; border: 1px solid #cfe0e2; border-radius: 8px; background: #fbfdfd; overflow: hidden; }
.guide-html .case-title { padding: 10px 14px; background: #e7f1f2; color: var(--navy); font-weight: 800; border-bottom: 1px solid #cfe0e2; }
.guide-html .case-title small { font-weight: 600; color: var(--teal); }
.guide-html .case-body { padding: 8px 16px 12px; }
.guide-html .case-body .row { display: flex; gap: 10px; margin: 9px 0; }
.guide-html .case-body .lbl { flex: 0 0 84px; height: fit-content; padding: 2px 8px; border-radius: 4px; background: #e2f2f3; color: #245d65; font-size: 12px; font-weight: 700; text-align: center; }
.guide-html .case-body .lbl.warn { background: #fbe6d6; color: #9c4a1e; }
.guide-html .case-body .row > div:last-child { flex: 1; min-width: 0; }
.guide-html .truth-note { margin: 16px 0; padding: 12px 15px; border: 1px solid #ead3a6; border-radius: 6px; background: #fffaf0; color: #6d5528; font-size: 12.5px; }
.guide-html .qa details { padding: 10px 0; border-bottom: 1px solid var(--line); }
.guide-html .qa summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.guide-html .qa summary::marker { color: var(--orange); }
.guide-html .answer { margin: 9px 0 2px; padding: 12px 14px; background: #f7fafb; border-left: 3px solid #9ab5be; border-radius: 4px; font-size: 12.5px; }
.guide-html mark { padding: 0 2px; background: #ffe18e; }
.guide-html .score, .guide-html .tag { font-size: 11px; }
.guide-html a { color: var(--teal); }
.guide-html blockquote { margin: 13px 0; padding: 10px 14px; border-left: 3px solid #b9d5d8; color: #4a5c66; background: #f2fafb; border-radius: 4px; }
@media (max-width: 1100px) { .exec-row { grid-template-columns: 1fr; } .guide-layout { grid-template-columns: 1fr; } .guide-sidebar { position: static; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .guide-html .grid-2, .guide-html .grid-3 { grid-template-columns: 1fr; }
  .guide-html .case-body .row { flex-direction: column; gap: 3px; }
}
@media (max-width: 480px) { .tutorial-hero { padding: 22px 18px; } .hero-fact b { font-size: 11.5px; } }

/* 执行图放大 */
.graph-zoom { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid #b9d5d8; border-radius: 6px; background: #f0fbfb; color: var(--teal); font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background .15s; }
.graph-zoom:hover { background: #dff1f2; }
.graph-zoom .icon { width: 13px; height: 13px; }
#graph-dialog { width: min(94vw, 1100px); }
#graph-dialog .dialog-body { padding: 12px; background: #fff; overflow: auto; }
#graph-dialog .dialog-body svg { width: 840px; height: auto; max-height: none; display: block; margin: 0 auto; }
#graph-dialog .graph-zoom-tip { font-size: 11px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 12px; }
@media (max-width: 1100px) { .exec-row .exec-panel { height: auto; } }

/* 量化指标：可点击查看设计思路与数据来源 */
.metric-chip { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid #cfe0e2; border-radius: 7px; background: #f7fafb; color: var(--teal); font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; box-shadow: none; line-height: 1.5; }
.metric-chip:hover:not(:disabled) { border-color: var(--teal); background: #e7f7f7; transform: translateY(-1px); }
.metric-chip:disabled { opacity: .55; cursor: default; }
.metric-tip { margin-top: 8px; }
#metric-dialog .metric-title { font-size: 16px; color: var(--navy); margin: 0 0 14px; }
#metric-dialog .metric-block { margin: 0 0 14px; padding: 12px 15px; background: #f7fafb; border-left: 3px solid var(--teal); border-radius: 5px; }
#metric-dialog .metric-block strong { display: block; font-size: 12px; color: var(--teal); margin-bottom: 6px; letter-spacing: .03em; }
#metric-dialog .metric-block p { font-size: 13px; color: #2c3b46; line-height: 1.85; margin: 0; }

/* ===== V4 面试题库 ===== */
.interview-sidebar-note { margin-top: 18px; font-size: 11px; line-height: 1.8; color: var(--muted); background: #f7fafb; border: 1px dashed #cfdde1; border-radius: 8px; padding: 10px 12px; }
.answer-template { margin-bottom: 16px; padding: 14px 16px; border: 1px solid #cfe0e2; border-radius: 9px; background: #fbfefe; }
.answer-template-title b { display: inline-block; font-size: 13px; color: var(--navy); margin-right: 10px; }
.tmpl-step { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; margin: 3px 6px 3px 0; border-radius: 5px; font-size: 12px; color: #245d65; background: #e2f2f3; }
.tmpl-step b { font: 10px Consolas, monospace; color: var(--teal); }
.answer-template-hint { margin: 9px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.interview-group-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.group-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; color: var(--ink); cursor: pointer; }
.group-tab:hover { border-color: #9fb8c2; background: #eef3f5; }
.group-tab.active { border-color: var(--teal); background: var(--teal); color: #fff; font-weight: 600; }
.group-tab .cat-count { font: 9px Consolas, monospace; color: var(--muted); }
.group-tab.active .cat-count { color: #dff1f2; }
.iq-list { display: flex; flex-direction: column; gap: 10px; }
.iq-card { border: 1px solid #cfe0e2; border-radius: 10px; background: #fff; overflow: hidden; }
.iq-details { border: 0; }
.iq-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; user-select: none; }
.iq-head::-webkit-details-marker { display: none; }
.iq-head:hover { background: #f4f9fa; }
.iq-no { font: 11px Consolas, monospace; color: var(--teal); background: #e2f2f3; border-radius: 4px; padding: 2px 6px; }
.iq-type { flex: none; font-size: 10.5px; color: #315d84; background: #e5eef8; border: 1px solid #c6d8ea; border-radius: 99px; padding: 1px 8px; }
.iq-title { flex: 1; font-size: 13.5px; color: var(--navy); font-weight: 600; line-height: 1.6; }
.iq-toggle { font-size: 11px; color: var(--muted); white-space: nowrap; }
.iq-details[open] .iq-toggle { color: var(--teal); }
.iq-body { padding: 4px 16px 16px; border-top: 1px dashed #d8e5e7; background: #fbfefe; }
.iq-section { margin-top: 13px; }
.iq-section h4 { margin: 0 0 7px; font-size: 12px; color: var(--teal); font-weight: 700; }
.iq-points ul { margin: 0; padding-left: 18px; }
.iq-points li { font-size: 12.5px; line-height: 1.85; color: #2c3b46; margin: 4px 0; }
.iq-pair { padding: 10px 0; border-bottom: 1px solid #e6eef0; }
.iq-pair:last-child { border-bottom: 0; }
.iq-qtext { margin: 0 0 5px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.iq-atext { margin: 0; font-size: 12.5px; line-height: 1.85; color: #2c3b46; background: #f7fafb; border-left: 3px solid #9ab5be; border-radius: 4px; padding: 9px 12px; }
/* 六段式答案分段小节 */
.iq-steps { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.iq-step { display: flex; gap: 8px; align-items: flex-start; background: #f7fafb; border-left: 3px solid var(--teal); border-radius: 4px; padding: 8px 12px; }
.iq-step-no { font: 11px Consolas, monospace; color: var(--teal); padding-top: 2px; flex: none; }
.iq-step-label { flex: none; font-size: 12px; font-weight: 700; color: #1d4a52; background: #e2f2f3; border-radius: 5px; padding: 1px 8px; margin-top: 1px; height: fit-content; }
.iq-step-text { margin: 0; font-size: 12.5px; line-height: 1.85; color: #2c3b46; }
.iq-step-text-only { padding-top: 2px; }
.muted { color: var(--muted); font-size: 12px; }

/* —— 账号体系：创建子账号面板 —— */
.header-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid #c7d6d4; border-radius: 7px; padding: 7px 12px; cursor: pointer; }
.header-btn:hover { background: #eef4f3; }
.account-panel { width: min(620px, 92vw); }
.account-intro p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.8; color: #2c3b46; }
.account-batch { margin: 10px 0 16px; }
.account-batch label { display: block; font-size: 12px; font-weight: 700; color: #1d4a52; margin-bottom: 8px; }
.batch-controls { display: flex; align-items: center; gap: 8px; }
.batch-controls .step-btn { width: 34px; height: 34px; padding: 0; font-size: 16px; }
.batch-controls input { width: 64px; height: 34px; border: 1px solid #c7d6d4; border-radius: 7px; text-align: center; font-size: 14px; }
.cred-list { border: 1px solid #d9e5e2; border-radius: 10px; background: #f7faf9; padding: 12px 14px; margin-bottom: 16px; }
.cred-list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cred-list-head strong { font-size: 12.5px; color: #1d4a52; }
.cred-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #d9e5e2; }
.cred-line:last-child { border-bottom: none; }
.cred-line code { font: 13px Consolas, Menlo, monospace; color: #123; user-select: all; }
.account-draft { margin-bottom: 16px; }
.draft-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #e2ecea; }
.draft-id { font: 12px Consolas, Menlo, monospace; color: #2c3b46; }
.account-export { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-export .primary { margin-top: 0; }
.account-export p { width: 100%; }
.account-export code { font-family: Consolas, Menlo, monospace; background: #eef4f3; border-radius: 4px; padding: 1px 5px; }

/* ===== V5：自我介绍/反问 + 模版简历 ===== */
.intro-steps { display: flex; flex-direction: column; gap: 10px; }
.intro-step { display: grid; grid-template-columns: 34px 92px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid #cfe0e2; border-radius: 9px; background: #fbfefe; }
.intro-step-no { font: 11px Consolas, monospace; color: var(--teal); background: #e2f2f3; border-radius: 5px; padding: 3px 6px; text-align: center; }
.intro-step-label { font-size: 12.5px; font-weight: 800; color: #1d4a52; background: #e2f2f3; border-radius: 99px; padding: 3px 11px; text-align: center; height: fit-content; }
.intro-step-text { margin: 0; font-size: 13px; line-height: 1.85; color: #2c3b46; }
.ask-list { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: ask; }
.ask-item { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eef3f5; font-size: 13.5px; line-height: 1.75; color: #2c3b46; }
.ask-item:last-child { border-bottom: 0; }
.ask-no { flex: none; font: 11px Consolas, monospace; color: var(--teal); background: #e2f2f3; border-radius: 5px; padding: 2px 8px; margin-top: 2px; }
.ask-text em { font-style: normal; font-size: 12px; color: #9b681c; background: #fff5df; border-radius: 5px; padding: 2px 8px; margin-left: 8px; }
.hr-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.hr-group { border: 1px solid #cfe0e2; border-radius: 10px; padding: 13px 16px; background: #fbfefe; }
.hr-group.hr-warn { border-color: #ead3a6; background: #fffdf7; }
.hr-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.hr-group-head b { font-size: 13.5px; color: var(--navy); }
.hr-group-head .pill { font-size: 10px; }
.hr-ask-list .ask-item { font-size: 12.5px; padding: 8px 0; }
.hr-ask-list .ask-no { font-size: 10px; padding: 1px 7px; }
@media (max-width: 900px) { .hr-groups { grid-template-columns: 1fr; } .intro-step { grid-template-columns: 1fr; gap: 4px; } }

/* 模版简历网页版 */
.resume-doc { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 30px 34px; box-shadow: var(--shadow); }
.resume-headbar { border-bottom: 2.5px solid var(--navy); padding-bottom: 13px; margin-bottom: 16px; }
.resume-name { margin: 0 0 3px; font-size: 24px; color: var(--navy); letter-spacing: 1px; }
.resume-intent { font-size: 14px; font-weight: 700; color: var(--teal); }
.resume-contact { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.resume-sec { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #e6eef0; }
.resume-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 9px; }
.resume-sec-head h3 { margin: 0; font-size: 16px; color: var(--navy); border-left: 4px solid var(--teal); padding-left: 9px; }
.resume-sec-note { font-size: 10px; color: var(--muted); }
.edu-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
.edu-line b { color: var(--navy); }
.edu-tag { font-size: 11px; color: var(--teal); background: #e2f2f3; border-radius: 99px; padding: 2px 9px; }
.edu-range { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.award-row { margin-top: 7px; }
.skill-list { display: flex; flex-direction: column; gap: 5px; }
.skill-row { font-size: 12.8px; line-height: 1.8; color: #2c3b46; }
.skill-row b { color: var(--navy); }
.org-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.org-line b { color: var(--navy); }
.rwi-bg { font-size: 12.5px; color: #2c3b46; background: #f7fafb; border-left: 3px solid #9ab5be; border-radius: 4px; padding: 8px 12px; line-height: 1.8; }
.rwi { margin: 9px 0; }
.rwi-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rwi-no { font: 11px Consolas, monospace; color: var(--teal); background: #e2f2f3; border-radius: 5px; padding: 2px 8px; }
.rwi-title { font-size: 13.5px; color: var(--navy); }
.rwi-metric { font-size: 11.5px; color: #268361; background: #eef8f2; border-radius: 99px; padding: 2px 10px; margin-left: auto; }
.rwi-desc { margin: 5px 0 0; font-size: 12.8px; line-height: 1.85; color: #2c3b46; }
.rwi-ps { margin-top: 7px; border: 1px solid #ead3a6; border-radius: 8px; background: #fffaf0; overflow: hidden; }
.rwi-ps summary { padding: 8px 12px; font-size: 12px; font-weight: 700; color: #8a6d3a; cursor: pointer; list-style: none; }
.rwi-ps summary::before { content: '▶ '; font-size: 10px; }
.rwi-ps[open] summary::before { content: '▼ '; }
.rwi-ps p { margin: 0; padding: 0 12px 10px; font-size: 12px; line-height: 1.85; color: #6d5528; }
.rwi-stack { font-size: 11.8px; color: #4a5c66; margin: 8px 0 0; }
.rwi-stack b { color: var(--navy); }
.proj-list { margin: 8px 0 0; padding: 0; list-style: none; }
.proj-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e6eef0; font-size: 12.8px; line-height: 1.85; color: #2c3b46; }
.proj-item:last-child { border-bottom: 0; }
.proj-no { flex: none; font: 10px Consolas, monospace; color: var(--teal); background: #e2f2f3; border-radius: 5px; padding: 1px 7px; height: fit-content; margin-top: 4px; }
.proj-result { margin: 10px 0 0; font-size: 12.3px; line-height: 1.85; color: #315848; background: #eef8f2; border-left: 3px solid #5bb39b; border-radius: 4px; padding: 9px 13px; }
.proj-result b { color: #1d4a52; }

/* 导出 PDF：打印容器 + 打印样式（仅打印「模版简历」内容） */
#print-host { display: none; }
@media print {
  .app-sidebar, .app-header, .footer, main > section, dialog { display: none !important; }
  body { background: #fff !important; }
  #print-host { display: block !important; }
  #print-host * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 14mm 12mm; }
}
