/* ==========================================================================
 * 金矢 · 客户规划方案生成系统 —— 样式表
 * ========================================================================== */

:root {
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --blue-light: #E3F0FB;
  --ink: #1F2937;
  --sub: #6B7280;
  --line: #E5E7EB;
  --bg: #F4F6F9;
  --card: #FFFFFF;
  --green: #2E7D32;
  --amber: #B45309;
  --red: #C0392B;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 13px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  display: flex; align-items: center; gap: 20px;
  height: 62px; padding: 0 22px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: #fff; position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600;
}
.brand-text h1 { font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.brand-text p { font-size: 11.5px; opacity: .75; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  border: 1px solid transparent; border-radius: 7px;
  padding: 7px 14px; font-size: 13px; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: #fff; color: var(--blue-dark); font-weight: 600; }
.btn-primary:hover { background: #EAF2FC; }
.btn-outline { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.22); }
.btn-ghost { background: transparent; color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-danger { background: #FDECEA; color: var(--red); border-color: #F5C6C0; }
.btn-plain { background: #fff; color: var(--blue); border-color: #C7DAF0; }

/* ---------------- 布局 ---------------- */
.layout {
  display: grid; grid-template-columns: 430px 1fr;
  gap: 16px; padding: 16px; height: calc(100vh - 62px);
}
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden;
}
.panel-head { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.panel-head h2 { font-size: 14px; font-weight: 600; color: var(--ink); }
.panel-head .hint { font-size: 12px; color: var(--sub); margin-top: 5px; line-height: 1.55; }

/* 简版方案 · 文档标题行与阶段合并列 */
.ga-doc-title { font-size: 17px; font-weight: 700; color: #2f5b9e; text-align: center; padding: 6px 0 2px; }
.stage-cell { font-size: 8.5pt; line-height: 1.6; color: #1F3B66; background: #EFF4FA; vertical-align: middle !important; word-break: break-all; }

/* 学位层次切换 */
.degree-switch {
  display: inline-flex; margin-top: 9px; padding: 3px; gap: 3px;
  background: #EEF2F8; border: 1px solid var(--line); border-radius: 8px;
}
.degree-switch .deg-btn {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--sub);
  padding: 5px 14px; border-radius: 6px; transition: all .15s;
}
.degree-switch .deg-btn:hover { color: var(--brand); }
.degree-switch .deg-btn.on {
  background: #fff; color: var(--brand); font-weight: 600;
  box-shadow: 0 1px 3px rgba(47, 91, 158, .18);
}
.panel-foot {
  padding: 12px 18px 14px; border-top: 1px solid var(--line);
  background: #FAFBFD; flex-shrink: 0;
}
.foot-hint { font-size: 11.5px; color: var(--sub); margin-top: 8px; text-align: center; }
.form-panel form { overflow-y: auto; padding: 14px 18px 18px; flex: 1; }
.preview-panel { min-width: 0; }
.preview-tools { margin-top: 6px; }
.badge {
  display: inline-block; font-size: 11.5px; color: var(--sub);
  background: #F1F3F6; border-radius: 20px; padding: 2px 10px;
}
.preview-scroll { overflow-y: auto; flex: 1; background: #EDF0F4; padding: 18px; }

/* ---------------- 表单 ---------------- */
.fgroup { margin-bottom: 20px; }
.fgroup > h3 {
  font-size: 12.5px; font-weight: 600; color: var(--blue-dark);
  padding-bottom: 7px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 7px;
}
.fgroup > h3::before {
  content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--blue);
}
.frow { margin-bottom: 11px; }
.frow > label { display: block; font-size: 12.5px; color: #4B5563; margin-bottom: 5px; }
.frow .req { color: var(--red); margin-left: 3px; }
.frow input[type="text"], .frow input[type="number"], .frow select, .frow textarea {
  width: 100%; padding: 7px 10px; border: 1px solid #D5DAE1; border-radius: 7px;
  background: #fff; color: var(--ink); transition: border-color .15s;
}
.frow input:focus, .frow select:focus, .frow textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.08);
}
.frow textarea { resize: vertical; min-height: 62px; line-height: 1.55; }
.fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chk-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chk {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; padding: 5px 11px; border: 1px solid #D5DAE1;
  border-radius: 20px; background: #fff; cursor: pointer; user-select: none; transition: all .15s;
}
.chk:hover { border-color: #A9C4E4; }
.chk input { display: none; }
.chk.on { background: var(--blue-light); border-color: var(--blue); color: var(--blue-dark); font-weight: 500; }
.radios { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- 方案文档 ---------------- */
.doc {
  background: #fff; max-width: 900px; margin: 0 auto;
  padding: 40px 48px 52px; border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  font-size: 13.5px; line-height: 1.75; color: #24292F;
}
.doc-empty { text-align: center; padding: 70px 20px; color: var(--sub); }
.empty-mark {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 14px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 600;
}
.doc-empty h3 { font-size: 15px; color: var(--ink); margin-bottom: 10px; font-weight: 500; }
.doc-empty p { font-size: 13px; max-width: 460px; margin: 0 auto 10px; }
.doc-empty .dim-hint { color: var(--blue); }

.doc-cover { border-bottom: 2px solid var(--blue); padding-bottom: 20px; margin-bottom: 26px; }
.doc-cover .kicker { font-size: 11.5px; letter-spacing: 3px; color: var(--blue); margin-bottom: 10px; }
.doc-cover h1 { font-size: 24px; font-weight: 600; color: #14243A; letter-spacing: .5px; }
.doc-cover .sub { font-size: 13px; color: var(--sub); margin-top: 8px; }
.doc-cover .meta-line { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 12.5px; color: #4B5563; }
.doc-cover .meta-line b { color: var(--ink); font-weight: 500; }

.doc h2 {
  font-size: 15.5px; font-weight: 600; color: var(--blue-dark);
  margin: 30px 0 14px; padding-left: 11px; border-left: 4px solid var(--blue);
  line-height: 1.4;
}
.doc h3 { font-size: 13.5px; font-weight: 600; margin: 18px 0 8px; color: #1F2937; }
.doc p { margin-bottom: 9px; }
.doc ul { margin: 6px 0 10px 18px; }
.doc li { margin-bottom: 5px; }

.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 12.5px; }
.doc th, .doc td { border: 1px solid #E1E6EC; padding: 7px 10px; text-align: left; vertical-align: top; }
.doc th { background: #F5F8FC; font-weight: 600; color: #35435A; }
.doc tr:nth-child(even) td { background: #FBFCFD; }

.mod-card { border: 1px solid #E1E6EC; border-radius: 9px; padding: 16px 18px; margin-bottom: 16px; }
.mod-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.mod-no {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px;
  background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.mod-title { flex: 1; min-width: 0; }
.mod-title h3 { margin: 0 0 2px; font-size: 14px; }
.mod-title .sub { font-size: 11.5px; color: var(--sub); }
.tag {
  flex-shrink: 0; font-size: 11.5px; padding: 3px 10px; border-radius: 20px; font-weight: 500;
}
.tag.high { background: #E8F5E9; color: #2E7D32; }
.tag.good { background: #E3F0FB; color: #1565C0; }
.tag.mid  { background: #FEF3E2; color: #B45309; }
.tag.low  { background: #FDECEA; color: #C0392B; }

.mod-obj {
  font-size: 12.5px; color: #35435A; background: #F6F9FC;
  border-left: 3px solid #B9D3EE; padding: 8px 12px; border-radius: 0 6px 6px 0;
  margin-bottom: 12px;
}
.mod-diag { font-size: 13px; color: #35435A; margin-bottom: 12px; }
.act-list { list-style: none; margin: 0; }
.act-list li {
  display: flex; gap: 9px; padding: 9px 0; border-top: 1px dashed #E8ECF1; font-size: 13px;
}
.act-list li:first-child { border-top: none; }
.act-list .dot {
  flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); margin-top: 9px;
}
.act-body { flex: 1; min-width: 0; }
.act-body .t { font-weight: 500; color: #1B2733; }
.act-body .t .when {
  display: inline-block; font-size: 11px; font-weight: 400; color: var(--blue-dark);
  background: var(--blue-light); border-radius: 4px; padding: 1px 7px; margin-left: 7px;
  vertical-align: 1px;
}
.act-body .d { color: #4B5563; font-size: 12.5px; margin-top: 3px; }

.res-box { margin-top: 12px; background: #FAFCFE; border: 1px dashed #CFDCEC; border-radius: 7px; padding: 10px 13px; }
.res-box .rl { font-size: 12px; font-weight: 600; color: var(--blue-dark); margin-bottom: 5px; }
.res-box .ri { font-size: 12.5px; color: #4B5563; }
.mile { margin-top: 10px; font-size: 12.5px; color: #4B5563; }
.mile b { color: #35435A; font-weight: 500; }
.mile span {
  display: inline-block; background: #EEF2F7; border-radius: 20px;
  padding: 2px 10px; margin: 3px 5px 0 0; font-size: 11.5px;
}

.doc-foot {
  margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--sub); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed; inset: 0; background: rgba(17,24,39,.45);
  display: none; align-items: center; justify-content: center; z-index: 60;
}
.modal.show { display: flex; }
.modal-box {
  background: #fff; border-radius: 12px; width: min(680px, 92vw);
  max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { font-size: 14px; font-weight: 600; }
.modal-close { border: none; background: none; font-size: 22px; color: var(--sub); line-height: 1; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.cust-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px;
}
.cust-row .ci { flex: 1; min-width: 0; }
.cust-row .cn { font-size: 13.5px; font-weight: 500; }
.cust-row .cm { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.cust-row .deg-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; vertical-align: 1px;
  font-size: 10.5px; font-weight: 500; color: var(--brand);
  background: #EDF3FB; border: 1px solid #D3E1F3; border-radius: 4px;
}

/* ---------------- 打印 ---------------- */
@media print {
  .topbar, .form-panel, .panel-head, .modal { display: none !important; }
  body { background: #fff; }
  .layout { display: block; padding: 0; height: auto; }
  .preview-panel { border: none; }
  .preview-scroll { overflow: visible; padding: 0; background: #fff; }
  .doc { box-shadow: none; padding: 0; max-width: none; }
  .mod-card { break-inside: avoid; page-break-inside: avoid; }
  .doc h2 { break-after: avoid; }
  .ga-ch { page-break-before: always; padding: 0 !important; border: none !important; }
  .ga-cover { page-break-after: always; }
}

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; height: auto; }
  .panel { max-height: none; }
  .form-panel form { overflow: visible; }
  .preview-scroll { overflow: visible; }
}

/* ==========================================================================
   金矢 VIP 规划方案 · 范本版式
   ========================================================================== */
:root {
  --ga-blue: #2f5b9e;
  --ga-blue-head: #C9D8EA;
  --ga-blue-row: #EFF4FA;
  --ga-line: #B9C7DB;
  --ga-gray: #8a9bb5;
}

.ga-cover {
  min-height: 640px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 20px;
}
.ga-cover-brand { margin-bottom: 46px; }
.ga-cover-logo { margin-bottom: 18px; }
.ga-cover-brandname {
  font-size: 56px; font-weight: 800; color: var(--ga-blue);
  letter-spacing: 16px; text-indent: 16px; line-height: 1.15;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
.ga-cover-brandname-en {
  margin-top: 12px; font-size: 11px; font-weight: 600; color: #C99A2E;
  letter-spacing: 5.6px; text-indent: 5.6px;
  font-family: Georgia, "Times New Roman", serif;
}
.ga-cover-logo .ga-cover-brandname-en {
  border-top: 3px solid #E7B429; display: inline-block;
  padding: 12px 6px 0; margin-top: 14px;
}
.ga-cover-slogan {
  margin-top: 10px; font-size: 14px; letter-spacing: 6px;
  color: #fff; background: var(--ga-blue); display: inline-block;
  padding: 4px 18px; border-radius: 3px;
}
.ga-cover-web { margin-top: 12px; font-size: 11px; letter-spacing: 4px; color: var(--ga-gray); }
.ga-cover-student { font-size: 18px; font-weight: 600; color: #14243A; margin-top: 30px; }
.ga-cover-title { font-size: 19px; font-weight: 700; color: #14243A; margin: 18px 0 26px; letter-spacing: 1px; }
.ga-cover-center { font-size: 14px; font-weight: 600; color: #14243A; margin-bottom: 46px; }
.ga-cover-people p { font-size: 13.5px; color: #3A4A5E; margin: 9px 0; letter-spacing: 1px; }

.ga-brand {
  display: flex; align-items: baseline; gap: 2px;
  font-weight: 700; color: var(--ga-blue); font-size: 15px;
  padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--ga-blue);
}
.ga-logo-arrow { color: #F5B301; font-size: 13px; margin: 0 1px; }
.ga-logo-zh { font-size: 12px; font-weight: 600; margin-left: 8px; color: #3A4A5E; }

.ga-h2 {
  text-align: center; font-size: 17px; font-weight: 600;
  color: var(--ga-blue); margin: 18px 0 14px; letter-spacing: 1px;
}
.ga-h3 { font-size: 14px; font-weight: 600; color: var(--ga-blue); margin: 16px 0 8px; }
.ga-blue { color: var(--ga-blue); }

.ga-body { font-size: 13px; line-height: 1.85; color: #1a1a1a; }
.ga-body p { margin-bottom: 8px; }

.ga-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 12.5px; }
.ga-table th, .ga-table td {
  border: 1px solid var(--ga-line); padding: 6px 9px;
  text-align: left; vertical-align: top; line-height: 1.7;
}
.ga-table th { background: var(--ga-blue-head); font-weight: 600; color: #1F3B66; text-align: center; }
.ga-table tr:nth-child(even) td { background: var(--ga-blue-row); }
.ga-table td.c { text-align: center; vertical-align: middle; }
.ga-table .ga-ul { margin: 0; padding-left: 15px; }
.ga-table .ga-ul li { margin-bottom: 3px; }

.ga-timeline td { font-size: 12px; }
.ga-timeline .ga-ul { padding-left: 14px; }

.ga-letter { font-size: 13px; line-height: 1.95; }
.ga-letter p { margin-bottom: 9px; }
.ga-toc {
  text-align: center; margin: 14px auto; font-size: 13.5px;
  display: flex; justify-content: center; gap: 60px;
  line-height: 2.1; color: #14243A;
}
.ga-toc > div { text-align: left; }

.ga-ol { margin: 4px 0 10px 0; padding-left: 20px; }
.ga-ol li { margin-bottom: 4px; }
.ga-ul { margin: 4px 0 10px 0; padding-left: 18px; }
.ga-ul li { margin-bottom: 5px; }

.ga-note { color: var(--red); font-size: 12.5px; }

.ga-foot {
  margin-top: 26px; padding-top: 7px; border-top: 1px solid var(--ga-line);
  font-size: 10.5px; color: var(--ga-gray); text-align: center; letter-spacing: .5px;
}

.ga-ch {
  padding: 18px 6px 8px; border-bottom: 1px dashed var(--line);
}

/* ---------------- 方案内编辑 ---------------- */
.preview-tools { display: flex; align-items: center; gap: 8px; }
#btnEdit { background: #fff; color: #2f5b9e; border: 1px solid #C9D8EA; }
#btnEdit:hover { border-color: #2f5b9e; }
#btnEdit.on { background: #2f5b9e; color: #fff; border-color: #2f5b9e; }
.edit-notice {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 16px 8px; padding: 8px 12px; border: 1px solid #C9D8EA;
  border-radius: 8px; background: #F0F5FB; font-size: 12px; color: #1F3B66;
}
.edit-notice .btn-sm { background: #fff; color: #2f5b9e; border: 1px solid #C9D8EA; }
.edit-notice .btn-ghost { background: transparent; color: var(--sub); border: 1px solid var(--line); }
/* 方向自检栏：告诉使用者「系统把学生判成什么方向、这个方向的数据命中了吗」。
   方向判错时后面七章全错，所以这条信息要一直显眼地挂在预览区顶部。 */
.field-diag {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 16px 8px; padding: 7px 12px; border: 1px solid #C9D8EA;
  border-radius: 8px; background: #F7FAFD; font-size: 12px; color: #1F3B66;
}
.field-diag b { color: #2f5b9e; }
.field-diag .fd-ok { color: #1a7f5a; }
.field-diag .fd-warn { color: #b3261e; }
.field-diag .fd-dim { color: var(--sub); }
.doc[contenteditable="true"] {
  outline: 2px dashed #7FA6D9; outline-offset: 4px; cursor: text;
}
.doc[contenteditable="true"] :is(p, td, th, li, h2, h3, h4, div):hover {
  background: rgba(47, 91, 158, .06);
}
.doc[contenteditable="true"] :focus {
  outline: none; background: rgba(47, 91, 158, .10); border-radius: 2px;
}
@media print {
  .edit-notice { display: none !important; }
  .field-diag { display: none !important; }
  .doc[contenteditable="true"] :is(p, td, th, li, h2, h3, h4, div):hover,
  .doc[contenteditable="true"] :focus { background: transparent; }
}

/* 方案内官网链接 */
.ga-body a, .ga-table a { color: #2f5b9e; text-decoration: underline; word-break: break-all; }
@media print { .ga-body a, .ga-table a { color: #2f5b9e; } }

/* ---------------- 云端共享层 ---------------- */
.user-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 20px;
  background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 12px; white-space: nowrap; line-height: 1.4;
}
.cloud-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 22px; font-size: 12.5px; line-height: 1.5;
  border-bottom: 1px solid var(--line); background: #fff; color: var(--sub);
}
.cloud-bar.ok   { background: #F0F7F1; color: #2F7D46; border-bottom-color: #D6E9DA; }
.cloud-bar.warn { background: #FDF6EC; color: #9A6516; border-bottom-color: #F3E2C4; }
.cloud-bar.info { background: #F2F7FD; color: #2F5B9E; border-bottom-color: #DCE8F7; }
.cust-row .deg-tag.tg-edit { background: #FDF6EC; color: #9A6516; }
@media print { .cloud-bar { display: none !important; } }

/* ==========================================================================
 * 云端资料库页（archive.html）
 * 与主页面共用顶栏、卡片、弹窗样式，这里只补资料库特有的部分。
 * ========================================================================== */
.archive-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 22px 60px; }

.ar-stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ar-stat {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 92px; padding: 9px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); color: var(--ink);
  transition: all .15s;
}
.ar-stat:hover { border-color: #9FBEE4; }
.ar-stat b { font-size: 18px; color: var(--blue); line-height: 1.2; }
.ar-stat span { font-size: 11.5px; color: var(--sub); }
.ar-stat-all b { color: var(--blue-dark); }
.ar-stat-note {
  flex: 1; min-width: 220px; font-size: 12px; color: var(--sub); line-height: 1.6;
  padding-left: 6px;
}
.ar-stat-note .ar-reject { color: var(--red); font-size: 13px; }

.ar-intro {
  border: 1px solid #DCE8F7; background: #F6FAFE; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px; font-size: 12.5px; line-height: 1.8; color: #2C3E50;
}
.ar-intro p + p { margin-top: 6px; }
.ar-tag-type {
  display: inline-block; padding: 1px 8px; margin: 0 2px; border-radius: 20px;
  background: #E3F0FB; color: var(--blue-dark); font-size: 12px;
}
.ar-dim { color: var(--sub); font-size: 12px; }

.ar-filter { margin-bottom: 14px; }
.ar-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ar-chip {
  padding: 5px 13px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; color: var(--sub); font-size: 12.5px; transition: all .15s;
}
.ar-chip:hover { border-color: #9FBEE4; color: var(--blue); }
.ar-chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.ar-selects { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ar-selects select, .ar-selects input[type="search"] {
  height: 34px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 7px; background: #fff; color: var(--ink); outline: none;
}
.ar-selects input[type="search"] { flex: 1; min-width: 200px; }
.ar-selects select:focus, .ar-selects input:focus { border-color: var(--blue); }
.ar-selects .ar-reset { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.ar-count { font-size: 12px; color: var(--sub); margin-left: auto; }

.ar-list { display: flex; flex-direction: column; gap: 10px; }
.ar-empty {
  padding: 44px 20px; text-align: center; color: var(--sub); font-size: 13px;
  border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; line-height: 1.8;
}

.ar-card {
  border: 1px solid var(--line); border-left: 3px solid #C9D8EA;
  border-radius: var(--radius); background: var(--card); padding: 12px 16px;
  cursor: pointer; transition: all .15s;
}
.ar-card:hover { border-color: #9FBEE4; box-shadow: 0 2px 10px rgba(31, 59, 102, .07); }
.ar-card-rej { border-left-color: #E0A9A2; }
.ar-card-head { display: flex; align-items: center; gap: 9px; }
.ar-card-head h3 { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); min-width: 0; }
.ar-time { font-size: 11.5px; color: var(--sub); white-space: nowrap; }

.ar-type {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; white-space: nowrap; border: 1px solid transparent;
}
.ar-type.t-case   { background: #E8F1FB; color: #1F5FA8; }
.ar-type.t-offer  { background: #E9F6EC; color: #2E7D32; }
.ar-type.t-reject { background: #FDECEA; color: #C0392B; }
.ar-type.t-plan   { background: #F1EAFB; color: #6A3FB5; }
.ar-type.t-choice { background: #FDF6E7; color: #9A6516; }

.ar-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.ar-pill {
  padding: 1px 9px; border-radius: 4px; background: #F3F6FA;
  color: #4A5A70; font-size: 11.5px;
}
.ar-detail { margin-top: 8px; }
.ar-row { font-size: 12.5px; color: #33415C; line-height: 1.75; }
.ar-row > span {
  display: inline-block; min-width: 68px; color: var(--sub); font-size: 11.5px;
}
.ar-result { font-weight: 600; }
.ar-result.rej { color: var(--red); }
.ar-result.adm { color: var(--green); }
.ar-brief {
  margin-top: 8px; font-size: 12px; color: var(--sub); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ar-tags { margin-top: 7px; display: flex; gap: 8px; flex-wrap: wrap; }
.ar-tags span { font-size: 11.5px; color: #6A7A92; }
.ar-actions {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding-top: 9px; border-top: 1px dashed var(--line);
}
.ar-actions .btn-outline { color: var(--blue); border-color: #C9D8EA; background: #fff; }
.ar-actions .btn-outline:hover { border-color: var(--blue); }
.ar-by { margin-left: auto; font-size: 11.5px; color: var(--sub); }

/* 弹窗内：详情与表单 */
.ar-kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.ar-kv th {
  width: 108px; text-align: left; font-weight: 400; color: var(--sub);
  padding: 5px 8px 5px 0; vertical-align: top;
}
.ar-kv td { padding: 5px 0; color: var(--ink); word-break: break-all; }
.ar-h4 { margin: 16px 0 6px; font-size: 13px; color: var(--blue-dark); }
.ar-content {
  max-height: 46vh; overflow: auto; padding: 12px 14px; margin: 0;
  background: #FAFBFD; border: 1px solid var(--line); border-radius: 8px;
  font-family: "PingFang SC", "Microsoft YaHei", monospace;
  font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; color: #22303F;
}
.ar-modal-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.ar-modal-foot .btn-primary { background: var(--blue); color: #fff; }
.ar-modal-foot .btn-primary:hover { background: var(--blue-dark); }
.ar-msg { font-size: 12px; color: var(--red); }

.ar-form .ar-f { display: block; margin-bottom: 11px; }
.ar-form .ar-f > span { display: block; font-size: 12px; color: var(--sub); margin-bottom: 5px; }
.ar-form input[type="text"], .ar-form select, .ar-form textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #CED8E6; border-radius: 7px;
  background: #FBFCFE; outline: none; color: var(--ink);
}
.ar-form textarea { line-height: 1.7; resize: vertical; font-size: 12.5px; }
.ar-form input:focus, .ar-form select:focus, .ar-form textarea:focus {
  border-color: var(--blue); background: #fff;
}
.ar-f-row { display: flex; gap: 10px; }
.ar-f-row .ar-f { flex: 1; min-width: 0; }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 10px; }
.ar-type-hint {
  font-size: 12px; color: var(--blue-dark); background: #F2F7FD;
  border: 1px solid #DCE8F7; border-radius: 7px; padding: 7px 11px; margin-bottom: 11px;
}
.ar-preview { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; }
.ar-preview th, .ar-preview td {
  border: 1px solid var(--line); padding: 5px 8px; text-align: left;
}
.ar-preview th { background: #F3F6FA; font-weight: 600; color: #33415C; }

@media (max-width: 720px) {
  .archive-wrap { padding: 14px 12px 40px; }
  .ar-f-row { flex-direction: column; gap: 0; }
  .ar-count { margin-left: 0; }
  .ar-stat { min-width: 78px; padding: 7px 10px; }
}

/* ==========================================================================
 * 重点突出体系（2026-11-10 隆尼口径）
 * 方案篇幅较长，用「章首导语条 + 关键结论框 + 数字着色 + 荧光划重点 + 档位标签
 * + 表格首列沉淀 + 整体目标行 + 风险条目」形成可扫读的视觉层级。
 * 原则：颜色只用于「判断」与「行动」，正文大面积保持黑白，避免满页彩色。
 * ========================================================================== */
:root {
  --ga-emph: #B3261E;      /* 风险 / 冲刺 / 截止 */
  --ga-emph-bg: #FDECEA;
  --ga-warn: #9A6516;      /* 提醒 / 关键结论 */
  --ga-warn-bg: #FFF8E6;
  --ga-ok: #2E7D32;
  --ga-ok-bg: #E8F5E9;
  --ga-num: #1F5FA8;       /* 数字与目标分数 */
}

/* ---- 章节标题：编号徽章 + 标题 + 渐变分隔线 ---- */
.ga-h2 {
  display: flex; align-items: center; gap: 11px;
  justify-content: flex-start; text-align: left;
  margin: 20px 0 14px; padding: 0;
}
.ga-h2 .chno {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #3D6FAE, var(--ga-blue));
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(47, 91, 158, .28);
}
.ga-h2 .chtitle {
  font-size: 17.5px; font-weight: 700; color: #14243A;
  letter-spacing: .6px; line-height: 1.35;
}
.ga-h2 .chrule {
  flex: 1; min-width: 24px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(47,91,158,.45), rgba(47,91,158,0));
}

/* ---- 章首导语条：把每章 intro 变成本章「先读这一段」的锚点 ---- */
.ga-lead {
  font-size: 13px; line-height: 1.85; color: #1B3352;
  background: linear-gradient(100deg, #E9F1FA 0%, #F7FAFD 78%);
  border-left: 4px solid var(--ga-blue);
  border-radius: 0 7px 7px 0;
  padding: 10px 14px; margin: 2px 0 15px;
}
.ga-lead b, .ga-lead strong { color: var(--ga-blue); font-weight: 700; }

/* ---- 关键结论框：一章只放 1-2 处，用于「结论 / 顺序 / 底线」 ---- */
.ga-key {
  background: var(--ga-warn-bg); border: 1px solid #F0DCA8;
  border-left: 4px solid #D89B00; border-radius: 0 8px 8px 0;
  padding: 11px 15px; margin: 13px 0; font-size: 13px; line-height: 1.8; color: #4A3410;
}
.ga-key .kt {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--ga-warn); margin-bottom: 5px;
}
.ga-key b { color: #7A4F00; }

/* ---- 行内强调 ---- */
.ga-num { color: var(--ga-num); font-weight: 700; }            /* 分数 / 排名 / 达标线 */
.ga-hl  {                                                        /* 荧光划重点（==文字==） */
  background: linear-gradient(transparent 56%, #FFE390 56%);
  font-weight: 700; color: #1B2733; padding: 0 1px;
}
.ga-strong { color: var(--ga-emph); font-weight: 700; }          /* 红线 / 不可逆事项 */

/* ---- 档位标签（冲刺 / 主申 / 保底） ---- */
.ga-pill {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px; white-space: nowrap;
}
.ga-pill.p1 { background: var(--ga-emph-bg); color: var(--ga-emph); }
.ga-pill.p2 { background: #E3F0FB; color: #1565C0; }
.ga-pill.p3 { background: var(--ga-ok-bg); color: var(--ga-ok); }
.ga-pill.p0 { background: #EEF2F7; color: #4A5A70; }

/* ---- 要素分析：每个因素独立成块，编号做成徽章 ---- */
.ga-factor {
  border-left: 3px solid #D6E3F2; padding: 2px 0 2px 12px;
  margin: 11px 0 0 !important; line-height: 1.8;
}
.ga-factor > .fn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; margin-right: 7px; border-radius: 5px;
  background: #E3F0FB; color: var(--ga-blue);
  font-size: 11.5px; font-weight: 700; vertical-align: 1px;
}
.ga-factor > .ft { font-weight: 700; color: #14243A; }
.ga-factor.is-good { border-left-color: #A8D5B5; }
.ga-factor.is-warn { border-left-color: #F0C88A; }

/* ---- 风险条目：左侧红条 + 浅底色，风险名红色加粗 ---- */
.ga-risk {
  border-left: 3px solid #E2A9A2; background: #FEFAF9;
  border-radius: 0 6px 6px 0; padding: 9px 13px; margin: 0 0 9px !important;
  line-height: 1.8;
}
.ga-risk b { color: var(--ga-emph); font-weight: 700; }

/* ---- 表格强化：表头加深、首列沉淀、整体目标行 ---- */
.ga-table th {
  background: linear-gradient(180deg, #D7E5F4, var(--ga-blue-head));
  color: #12305A; font-weight: 700;
}
.ga-table td:first-child { background: #F3F8FD; font-weight: 600; color: #1B3352; }
.ga-table tr:nth-child(even) td:first-child { background: #EAF2FA; }
.ga-table tr.ga-goal td {
  background: #FFF8E6 !important; font-weight: 600; color: #4A3410;
  border-top: 2px solid #E0B44A;
}
.ga-table tr.ga-goal td:first-child { background: #FDEFC9 !important; color: #7A4F00; }
.ga-table td.ga-cell-key { background: #FBFDFF; }

/* ---- 方案速览页（一页纸结论，放在致家长信之后） ---- */
.ga-brief-facts {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px;
}
.ga-brief-facts .bf {
  flex: 1 1 150px; min-width: 140px;
  border: 1px solid #DCE7F4; background: #F7FAFD; border-radius: 8px;
  padding: 8px 12px;
}
.ga-brief-facts .bf span { display: block; font-size: 11px; color: #7A8CA3; letter-spacing: .5px; }
.ga-brief-facts .bf b { display: block; font-size: 13px; color: #14243A; margin-top: 3px; font-weight: 700; line-height: 1.5; }

.ga-brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.ga-goalcard {
  border: 1px solid #E1E9F3; border-top: 3px solid var(--ga-blue);
  border-radius: 8px; padding: 10px 13px; background: #fff;
}
.ga-goalcard .gk {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--ga-blue); margin-bottom: 5px;
}
.ga-goalcard .gv { font-size: 12.5px; line-height: 1.75; color: #26313F; }
.ga-goalcard.g1 { border-top-color: #3D6FAE; }
.ga-goalcard.g2 { border-top-color: #C77D00; }
.ga-goalcard.g3 { border-top-color: #2E7D32; }
.ga-goalcard.g4 { border-top-color: #8E5BB5; }

.ga-brief-tier { margin: 4px 0 10px; font-size: 12.5px; line-height: 1.9; }
.ga-brief-tier .row { margin-bottom: 2px; }
.ga-brief-tier .row b { display: inline-block; min-width: 58px; }

@media print {
  .ga-brief .ga-goalcard, .ga-brief-facts .bf {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* ---- 打印：保留底色与强调，避免重点丢失 ---- */
@media print {
  .ga-h2 .chno, .ga-lead, .ga-key, .ga-pill, .ga-risk, .ga-hl,
  .ga-table th, .ga-table td:first-child, .ga-table tr.ga-goal td {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .ga-factor, .ga-risk, .ga-key { break-inside: avoid; page-break-inside: avoid; }
}

/* 资料库分页脚（万条量级列表） */
.ar-more {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 0 4px; font-size: 12.5px; color: var(--sub);
}
.ar-more .btn { color: var(--blue); border-color: #C9D8EA; background: #fff; }
.ar-more .btn:hover { border-color: var(--blue); }
.ar-more .btn:disabled { opacity: .6; cursor: default; }

/* ============================ 智能导入（AI 解析填表） ============================ */
.ai-import{
  margin:14px 0 4px;padding:12px 14px;border:1px solid #C9D8EA;border-radius:12px;
  background:linear-gradient(135deg,#F5F9FF 0%,#F0F4FF 100%);
  flex-shrink:0;
}
.ai-import.dragover{border-color:var(--blue);box-shadow:0 0 0 3px rgba(21,101,192,.15)}
.ai-import.collapsed{padding:8px 14px}
.ai-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.ai-import.collapsed .ai-head{margin-bottom:0}
.ai-title{font-size:14px;font-weight:700;color:var(--blue-dark)}
.ai-sub{font-size:12px;color:var(--sub)}
.ai-toggle{
  margin-left:auto;cursor:pointer;user-select:none;white-space:nowrap;
  border:1px solid #B9CFE8;background:#fff;color:var(--blue);
  font-family:inherit;font-size:12px;font-weight:600;
  padding:3px 12px;border-radius:16px;transition:all .15s;
}
.ai-toggle:hover{border-color:var(--blue);background:var(--blue-light)}
/* 收起时隐藏主体；展开时主体区域限高内滚，防止挤占下方表单 */
.ai-import .ai-body{margin-top:10px}
.ai-import.collapsed .ai-body{display:none}
.ai-import:not(.collapsed) .ai-body{
  max-height:46vh;overflow-y:auto;
}
#aiText{
  width:100%;box-sizing:border-box;min-height:84px;resize:vertical;
  border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:13px;
  background:#fff;color:var(--ink);font-family:inherit;line-height:1.6;outline:none;
}
#aiText:focus{border-color:var(--blue)}
.ai-row{display:flex;align-items:center;gap:10px;margin-top:9px;flex-wrap:wrap}
.ai-file-btn{
  cursor:pointer;padding:7px 14px;border-radius:9px;border:1px dashed #9DB6D8;
  background:#fff;color:var(--blue);font-size:12.5px;font-weight:600;white-space:nowrap;
}
.ai-file-btn:hover{border-color:var(--blue);background:var(--blue-light)}
.ai-files{font-size:12px;color:var(--sub)}
.ai-flex{flex:1}
.ai-hint{margin:8px 0 0;font-size:12px;color:var(--sub);line-height:1.6}
.ai-hint.ok{color:var(--green)}
.ai-hint.err{color:var(--red)}
.ai-hint.busy{color:var(--amber)}
/* AI 已填写字段高亮 */
.frow.ai-fill{position:relative}
.frow.ai-fill input,.frow.ai-fill textarea,.frow.ai-fill select{
  border-color:#7C5CF0;background:#F7F5FF;
}
.frow.ai-fill > label::after{
  content:"AI";display:inline-block;margin-left:5px;padding:0 5px;border-radius:6px;
  background:#7C5CF0;color:#fff;font-size:9.5px;font-weight:700;vertical-align:1.5px;
}

/* ============================ 嵌入模式（CRM iframe 铺满显示） ============================ */
html.embed .topbar { display: none; }
html.embed .layout { height: 100vh; padding: 10px; gap: 12px; }
html.embed .embed-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
}
html.embed .embed-bar .btn { font-size: 12px; padding: 6px 12px; }
html.embed .embed-bar .btn-ghost { color: var(--blue); border: 1px solid #C7DAF0; background: #fff; }
html.embed .embed-bar .btn-ghost:hover { background: var(--blue-light); color: var(--brand); }
html.embed .embed-bar .btn-primary { background: var(--blue); color: #fff; }
html.embed .embed-bar .btn-outline { color: var(--blue); border-color: #C7DAF0; background: #fff; }

/* ============================ 嵌入模式 · 与 CRM 视觉统一（2026-11-13） ============================ */
/* 仅 ?embed=1（CRM iframe）生效；独立打开仍为深蓝商务风 */
html.embed {
  --blue: #3d6cf5;
  --blue-dark: #2b57e0;
  --blue-light: #eaf1fe;
  --brand: #3d6cf5;
  --ink: #182235;
  --sub: #5a6478;
  --line: #e7ebf3;
  --radius: 16px;
}
html.embed body { background: linear-gradient(180deg, #f7f9fe 0%, #f1f5fc 45%, #f4f2fb 100%); }
html.embed .layout { height: 100vh; padding: 14px; gap: 14px; }
html.embed .panel {
  border-radius: 16px; border-color: #e7ebf3;
  box-shadow: 0 1px 2px rgba(24,39,75,.04), 0 2px 8px rgba(24,39,75,.05);
}
html.embed .panel-head { padding: 16px 20px 13px; }
html.embed .degree-switch { background: #eef2fb; border-color: #e7ebf3; }
html.embed .degree-switch .deg-btn.on { box-shadow: 0 1px 3px rgba(61,108,245,.2); }
html.embed .frow input:focus, html.embed .frow select:focus, html.embed .frow textarea:focus {
  border-color: #3d6cf5; box-shadow: 0 0 0 3px rgba(61,108,245,.1);
}
html.embed .fgroup > h3 { color: #2b57e0; }
html.embed .fgroup > h3::before { background: linear-gradient(180deg, #3d6cf5, #7c5cf0); }
html.embed .panel-foot { background: #fafbff; }
html.embed .preview-scroll { background: #eef1f8; }
html.embed .embed-bar { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #dfe6f3; }
html.embed .embed-bar .btn { border-radius: 8px; }
html.embed .embed-bar .btn-primary {
  background: linear-gradient(135deg, #3d6cf5, #7c5cf0);
  color: #fff; border: none; font-weight: 600;
}
html.embed .embed-bar .btn-primary:hover { filter: brightness(1.06); }
html.embed .embed-bar .btn-ghost, html.embed .embed-bar .btn-outline {
  color: #3d6cf5; border: 1px solid #d5defb; background: #fff;
}
html.embed .embed-bar .btn-ghost:hover, html.embed .embed-bar .btn-outline:hover { background: #eaf1fe; }
html.embed .ai-import { border-color: #dbe3f4; background: linear-gradient(135deg, #f6f8ff 0%, #f3f0ff 100%); }
html.embed .ai-import.dragover { border-color: #3d6cf5; box-shadow: 0 0 0 3px rgba(61,108,245,.12); }
html.embed .ai-toggle { border-color: #cdd9f2; color: #3d6cf5; }
html.embed .ai-toggle:hover { border-color: #3d6cf5; background: #eaf1fe; }
html.embed .ai-file-btn { border-color: #b9c6ea; color: #3d6cf5; }
html.embed .ai-file-btn:hover { border-color: #3d6cf5; background: #eaf1fe; }

/* ==========================================================================
   硕士 VIP 方案 · 新版式（周思羽模板，2026-11-26 定稿）—— .pgv-doc 命名空间
   Hero 头部 + 五章卡片（基础信息/规划思路/事项清单/时间表·资源/院校专业参考）
   ========================================================================== */
.pgv-doc { --primary:#C05621; --primary-deep:#9C4221; --primary-soft:#FDF2E9; --primary-line:#F6C89F;
  --accent:#B7791F; --ink:#27303E; --ink2:#4A5568; --muted:#7B8794;
  --line:#E6E2DC; --bg:#F6F4F0; --card:#FFFFFF; }
.pgv-doc { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.75;
  padding: 0 0 0; text-align: left; }
.pgv-doc .progress { position: fixed; top: 0; left: 0; height: 3px; z-index: 99; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .1s; }
.pgv-doc .toc { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex;
  justify-content: center; gap: 6px; padding: 9px 16px; flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.pgv-doc .toc a { color: var(--ink2); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 16px; transition: .2s; white-space: nowrap; }
.pgv-doc .toc a:hover { background: var(--primary-soft); color: var(--primary-deep); }
.pgv-doc .hero { background: linear-gradient(125deg,#FFFDFB 0%,#FDF3EA 55%,#FCE9D6 100%);
  border-bottom: 3px solid var(--primary); position: relative; overflow: hidden; }
.pgv-doc .hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 340px;
  height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,86,33,.10), transparent 70%); }
.pgv-doc .hero-inner { max-width: 1120px; margin: 0 auto; padding: 46px 32px 30px;
  display: flex; align-items: center; gap: 30px; position: relative; z-index: 1; }
.pgv-doc .hero-logo { width: 150px; height: auto; flex: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.08)); }
.pgv-doc .hero-eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.pgv-doc .hero h1 { font-size: 34px; line-height: 1.25; margin: 0 0 8px; color: #2B2018;
  letter-spacing: .02em; font-weight: 800; }
.pgv-doc .hero-sub { font-size: 15px; color: var(--ink2); margin-bottom: 18px; }
.pgv-doc .hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pgv-doc .hero-tags span { background: #fff; border: 1px solid var(--primary-line);
  color: var(--primary-deep); font-size: 12px; padding: 5px 12px; border-radius: 20px; font-weight: 600; }
.pgv-doc .hero-meta { max-width: 1120px; margin: 0 auto; padding: 0 32px 26px; display: flex;
  flex-wrap: wrap; gap: 0; position: relative; z-index: 1; }
.pgv-doc .hero-meta div { flex: 1; min-width: 150px; padding: 14px 18px;
  border-left: 1px solid var(--primary-line); }
.pgv-doc .hero-meta div:first-child { border-left: none; padding-left: 0; }
.pgv-doc .hero-meta b { display: block; font-size: 18px; color: var(--primary-deep); line-height: 1.3; }
.pgv-doc .hero-meta small { font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.pgv-doc .chapter { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 4px 16px rgba(60,45,30,.06); margin: 26px; overflow: hidden; }
.pgv-doc .chapter-head { display: flex; align-items: center; gap: 16px; padding: 22px 28px;
  background: linear-gradient(100deg,#FFF9F4,#FFFFFF); border-bottom: 1px solid var(--line); }
.pgv-doc .chapter-num { font-family: Georgia, "Times New Roman", serif; font-size: 34px;
  font-weight: 700; color: var(--primary); line-height: 1; min-width: 44px; }
.pgv-doc .chapter-head h2 { font-size: 21px; margin: 0; color: #2B2018;
  letter-spacing: .03em; font-weight: 700; }
.pgv-doc .chapter-body { padding: 24px 28px 30px; }
.pgv-doc .subhead { font-size: 16px; margin: 26px 0 14px; color: var(--primary-deep);
  font-weight: 700; display: flex; align-items: center; gap: 2px; }
.pgv-doc .subhead:first-child { margin-top: 4px; }
.pgv-doc .subhead-bracket { color: var(--primary); opacity: .55; }
.pgv-doc .item-title { font-size: 15px; margin: 24px 0 10px; color: var(--ink);
  display: flex; align-items: center; gap: 9px; font-weight: 700; }
.pgv-doc .item-num { background: var(--primary); color: #fff; width: 24px; height: 24px;
  border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; flex: none; }
.pgv-doc .para { margin: 8px 0 12px; color: var(--ink2); }
.pgv-doc .analysis { background: #FFFAF5; border: 1px solid var(--primary-line);
  border-radius: 10px; padding: 12px 16px; margin: 10px 0 4px; }
.pgv-doc .analysis-head { font-weight: 700; color: var(--primary-deep); font-size: 13px;
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; letter-spacing: .02em; }
.pgv-doc .analysis-mark { width: 7px; height: 7px; background: var(--primary);
  border-radius: 50%; display: inline-block; }
.pgv-doc .analysis-list { margin: 0; padding-left: 20px; }
.pgv-doc .analysis-list li { margin: 4px 0; color: var(--ink2); font-size: 14px; padding-left: 2px; }
.pgv-doc .analysis-list li::marker { color: var(--primary); }
.pgv-doc .check-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
  margin: 7px 0; background: #FBFBFA; border: 1px solid var(--line); border-radius: 9px; }
.pgv-doc .check-dot { width: 8px; height: 8px; border: 2px solid var(--primary);
  border-radius: 2px; margin-top: 7px; flex: none; }
.pgv-doc .check-key { font-weight: 700; color: var(--primary-deep); min-width: 64px; flex: none; }
.pgv-doc .check-val { color: var(--ink2); }
.pgv-doc .time-note { padding: 10px 14px; margin: 7px 0; background: #FBFBFA;
  border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; color: var(--ink2);
  font-size: 14px; }
.pgv-doc .time-note.time-sub { margin-left: 26px; padding-left: 16px;
  border-left-color: var(--primary); background: #FFF9F4; font-size: 13.5px; }
.pgv-doc .time-note.time-sub::before { content: "↳ "; color: var(--primary); font-weight: 700; }
.pgv-doc .note-box { margin: 14px 0; padding: 12px 16px; background: #F8FAFC;
  border: 1px dashed #CBD5E0; border-radius: 9px; color: var(--ink2);
  font-size: 13.5px; line-height: 1.7; }
.pgv-doc .note-key { font-weight: 700; color: #3C4A5A; }
.pgv-doc .table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 4px 16px rgba(60,45,30,.05); }
.pgv-doc table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13.5px; }
.pgv-doc th, .pgv-doc td { padding: 11px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); line-height: 1.65; color: var(--ink); }
.pgv-doc thead th, .pgv-doc table tr:first-child th { background: #EDEAE5; color: #3A4452;
  font-weight: 700; white-space: nowrap; font-size: 13px; }
.pgv-doc tbody tr:last-child td, .pgv-doc tbody tr:last-child th { border-bottom: none; }
.pgv-doc tbody tr:nth-child(even) { background: #FBFAF8; }
.pgv-doc .label-cell { background: var(--primary-soft) !important; color: var(--primary-deep) !important;
  font-weight: 700; white-space: nowrap; width: 118px; }
.pgv-doc .info-table td, .pgv-doc .info-table th { vertical-align: middle; }
.pgv-doc .timeline-table { table-layout: fixed; }
.pgv-doc .timeline-table th:nth-child(1), .pgv-doc .timeline-table td:nth-child(1) { width: 20%; }
.pgv-doc .timeline-table th:nth-child(2), .pgv-doc .timeline-table td:nth-child(2) { width: 30%; }
.pgv-doc .timeline-table th:nth-child(3), .pgv-doc .timeline-table td:nth-child(3) { width: 32%; }
.pgv-doc .timeline-table th:nth-child(4), .pgv-doc .timeline-table td:nth-child(4) { width: 18%; }
.pgv-doc .time-cell { white-space: normal; overflow-wrap: anywhere; font-weight: 600; }
.pgv-doc .phase-cell { background: #F4F1EC !important; color: var(--ink2); font-weight: 600;
  vertical-align: middle; }
.pgv-doc .task-list, .pgv-doc .goal-list { margin: 0; padding-left: 0; list-style: none; }
.pgv-doc .task-list li, .pgv-doc .goal-list li { margin: 2px 0; }
.pgv-doc .kp-dot { color: var(--primary); font-weight: 700; margin-right: 5px; }
.pgv-doc .book-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; margin: 12px 0;
  box-shadow: 0 3px 12px rgba(60,45,30,.04); }
.pgv-doc .book-num { width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-family: Georgia, serif; font-weight: 700; font-size: 15px; display: flex;
  align-items: center; justify-content: center; }
.pgv-doc .book-title { font-weight: 700; color: var(--ink); font-size: 14.5px;
  margin-bottom: 5px; line-height: 1.5; }
.pgv-doc .book-metas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.pgv-doc .book-meta-item { font-size: 11.5px; color: var(--primary-deep);
  background: var(--primary-soft); border-radius: 5px; padding: 2px 8px; }
.pgv-doc .book-desc { font-size: 13.5px; color: var(--ink2); }
.pgv-doc .podcast-card { background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 14px 18px;
  margin: 12px 0; box-shadow: 0 3px 12px rgba(60,45,30,.04); }
.pgv-doc .podcast-head { font-weight: 700; color: var(--ink); font-size: 14.5px; margin-bottom: 5px; }
.pgv-doc .podcast-body { font-size: 13.5px; color: var(--ink2); }
.pgv-doc .course-table td:first-child { font-weight: 600; color: var(--ink); }
.pgv-doc .tint-fff2cc { background: #FFF2CC !important; }
.pgv-doc .tint-e2efda { background: #E2EFDA !important; }
.pgv-doc .tint-ddebf7 { background: #DDEBF7 !important; }
.pgv-doc .tint-f2f2f2 { background: #F2F2F2 !important; }
.pgv-doc .to-top { position: fixed; right: 26px; bottom: 26px; width: 42px; height: 42px;
  border: none; border-radius: 50%; background: var(--primary); color: #fff; font-size: 18px;
  cursor: pointer; box-shadow: 0 6px 18px rgba(192,86,33,.35); opacity: 0;
  pointer-events: none; transition: .25s; }
.pgv-doc .to-top.show { opacity: 1; pointer-events: auto; }
.pgv-doc .footer { text-align: center; color: var(--muted); font-size: 12px;
  padding: 10px 20px 40px; letter-spacing: .03em; }
@media (max-width: 760px) {
  .pgv-doc .hero-inner { flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 32px 22px 22px; }
  .pgv-doc .chapter { margin: 14px; }
  .pgv-doc .chapter-body { padding: 18px 16px 24px; }
  .pgv-doc .chapter-head { padding: 18px 16px; }
}
@media print {
  .pgv-doc { background: #fff !important; font-size: 10.5px; }
  .pgv-doc .progress, .pgv-doc .toc, .pgv-doc .to-top { display: none !important; }
  .pgv-doc .chapter { box-shadow: none; border: 1px solid #ddd; border-radius: 8px;
    margin-bottom: 10px; break-inside: auto; page-break-inside: auto; }
  .pgv-doc .chapter-head { padding: 8px 14px; background: #FFF9F4 !important;
    break-after: avoid; page-break-after: avoid; }
  .pgv-doc .chapter-num { font-size: 24px; }
  .pgv-doc .chapter-head h2 { font-size: 16px; }
  .pgv-doc .chapter-body { padding: 10px 14px 14px; }
  .pgv-doc .subhead, .pgv-doc .item-title { break-after: avoid; page-break-after: avoid; margin-top: 12px; }
  .pgv-doc .book-card, .pgv-doc .podcast-card, .pgv-doc .analysis, .pgv-doc .check-item,
  .pgv-doc .note-box, .pgv-doc .time-note { break-inside: avoid; page-break-inside: avoid; }
  .pgv-doc .hero { border-bottom-width: 2px; }
  .pgv-doc .hero-inner { padding: 24px 16px 16px; }
  .pgv-doc .hero h1 { font-size: 22px; }
  .pgv-doc .footer { padding: 6px 0 0; font-size: 9px; }
  .pgv-doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
