/* ============ 模块子页面 ============ */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy-950);
}

/* 顶栏 */
.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 22px;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-dark-2);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar__brand .brand-logo { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.topbar__brand .brand-text { font-size: 16px; font-weight: 700; letter-spacing: 1px; line-height: 1; }
.topbar__brand:hover .brand-text { color: var(--sonar-400); }
.topbar__nav { display: flex; gap: 4px; margin-left: 10px; }
.topbar__nav a { padding: 6px 12px; border-radius: var(--radius-md); font-size: 12.5px; color: var(--text-mid); }
.topbar__nav a:hover { color: var(--text-hi); background: var(--navy-850); }
.topbar__nav a.is-active { color: var(--sonar-400); background: var(--sonar-dim); }

.page__body { flex: 1; padding: 18px 22px 26px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page__head { margin-bottom: 16px; }
.page__title { font-size: 21px; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.page__title .icon { color: var(--sonar-400); }
.page__sub { margin-top: 6px; font-size: 12.5px; color: var(--text-low); }

.card {
  background: var(--navy-900);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-panel);
}
.card + .card { margin-top: 14px; }
.card__title { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card__title .aux { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--text-low); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- 作战包：双栏对照 ---------- */
.review-item {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px; padding: 13px 0;
  border-bottom: 1px dashed var(--line-dark-2);
}
.review-item:last-child { border-bottom: none; }
.review-item__point { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-item__detail { margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--text-mid); }
.review-item__ref {
  align-self: start; text-align: center;
  padding: 10px 8px; border-radius: var(--radius-md);
  background: var(--navy-850); border: 1px solid var(--line-dark);
}
.review-item__ref .pg { font-family: var(--font-mono); font-size: 14px; color: var(--sonar-400); }
.review-item__ref .lbl { margin-top: 3px; font-size: 11px; color: var(--text-low); }
.risk-tag { font-size: 11px; padding: 1px 7px; border-radius: 9px; }
.risk-tag--high { color: var(--amber-400); background: var(--amber-dim); }
.risk-tag--mid { color: var(--blue-400); background: rgba(61, 125, 216, 0.16); }
.risk-tag--low { color: var(--ok-500); background: var(--ok-dim); }

.stance-card { padding: 13px 14px; border-radius: var(--radius-md); border: 1px solid var(--line-dark-2); background: var(--navy-850); }
.stance-card__level { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stance-card__level .dot { width: 8px; height: 8px; border-radius: 50%; }
.stance-card__desc { margin-top: 7px; font-size: 12px; line-height: 1.65; color: var(--text-mid); }
.dot--ok { background: var(--ok-500); }
.dot--blue { background: var(--blue-500); }
.dot--amber { background: var(--amber-500); }

/* ---------- 权利日历：潮汐到期线 ---------- */
.right-entry {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 14px; align-items: start;
  padding: 13px 4px; border-bottom: 1px dashed var(--line-dark-2);
}
.right-entry:last-child { border-bottom: none; }
.right-entry__date { font-family: var(--font-mono); font-size: 13px; color: var(--sonar-400); }
.right-entry__date .tideline { margin-top: 6px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--sonar-500), transparent); }
.right-entry.is-overdue .right-entry__date { color: var(--amber-400); }
.right-entry.is-overdue .tideline { background: linear-gradient(90deg, var(--amber-500), transparent); }
.right-entry__what { font-size: 13.5px; font-weight: 600; }
.right-entry__co { font-size: 12px; color: var(--text-mid); margin-top: 2px; }
.right-entry__note { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--text-low); }
.right-entry__source { font-size: 11px; color: var(--text-low); margin-top: 4px; }

/* ---------- 信号哨：声呐扫描 ---------- */
.sonar-scope {
  position: relative; width: 190px; height: 190px; margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 191, 196, 0.1), rgba(7, 21, 39, 0.2) 70%);
  border: 1px solid rgba(47, 191, 196, 0.35);
}
.sonar-scope::before, .sonar-scope::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(47, 191, 196, 0.2);
}
.sonar-scope::before { transform: scale(0.66); }
.sonar-scope::after { transform: scale(0.33); }
.sonar-scope__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(47, 191, 196, 0.45), transparent 22%);
  animation: sonar-sweep 4s linear infinite;
}
.sonar-scope__blip { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-400); box-shadow: 0 0 8px var(--amber-400); }
.signal-card__head { display: flex; align-items: center; gap: 8px; }
.signal-card__head .icon { color: var(--amber-400); width: 16px; height: 16px; flex: none; }
.signal-card__type { font-size: 13px; font-weight: 600; }
.signal-card__badge { margin-left: auto; }
.signal-detail { border-left: 2px solid rgba(217, 164, 65, 0.4); padding: 4px 0 4px 14px; margin-top: 10px; }
.signal-detail__brief { font-size: 12.5px; line-height: 1.75; color: var(--text-mid); }
.signal-detail__meta { margin-top: 8px; display: flex; gap: 10px; font-size: 11.5px; color: var(--text-low); flex-wrap: wrap; }
.verify-btn {
  margin-top: 10px; padding: 5px 14px; border-radius: var(--radius-md);
  border: 1px solid rgba(47, 191, 196, 0.45); color: var(--sonar-400); font-size: 12px;
}
.verify-btn:hover { background: var(--sonar-dim); }

/* ---------- 健康度：分级矩阵 ---------- */
.health-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.health-table th {
  text-align: left; padding: 8px 10px; font-weight: 500; font-size: 11.5px;
  color: var(--text-low); border-bottom: 1px solid var(--line-dark-2);
}
.health-table td { padding: 10px; border-bottom: 1px dashed var(--line-dark); }
.health-table tr:last-child td { border-bottom: none; }
.meter { display: flex; align-items: center; gap: 8px; }
.meter__bar { flex: 1; height: 5px; border-radius: 3px; background: var(--navy-800); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 3px; background: var(--sonar-500); }
.meter__fill.is-low { background: var(--amber-500); }
.meter__val { width: 26px; text-align: right; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mid); }
.grade-chip {
  display: inline-flex; width: 26px; height: 26px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
}
.grade-A { background: var(--ok-dim); color: var(--ok-500); }
.grade-B { background: rgba(61, 125, 216, 0.16); color: var(--blue-400); }
.grade-C { background: var(--amber-dim); color: var(--amber-400); }
.grade-D { background: rgba(217, 164, 65, 0.3); color: var(--amber-400); }

.obstacle-item { padding: 12px 0; border-bottom: 1px dashed var(--line-dark-2); }
.obstacle-item:last-child { border-bottom: none; }
.obstacle-item__co { font-size: 13px; font-weight: 600; }
.obstacle-item__txt { margin-top: 5px; font-size: 12px; color: var(--text-mid); line-height: 1.6; }
.obstacle-item__prog { margin-top: 6px; font-size: 11.5px; color: var(--text-low); }
.stage-dots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.stage-dots span { width: 16px; height: 4px; border-radius: 2px; background: var(--navy-700); }
.stage-dots span.is-done { background: var(--sonar-500); }

/* ---------- 履职档案 ---------- */
.person-card { display: flex; flex-direction: column; gap: 12px; }
.person-card__head { display: flex; align-items: center; gap: 12px; }
.person-card__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--navy-800); color: var(--sonar-400);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.person-card__name { font-size: 15px; font-weight: 700; }
.person-card__role { font-size: 12px; color: var(--text-mid); margin-top: 2px; }
.person-card__score { margin-left: auto; text-align: center; }
.person-card__score .val { font-family: var(--font-mono); font-size: 21px; font-weight: 700; color: var(--sonar-400); }
.person-card__score .lbl { font-size: 10.5px; color: var(--text-low); }
.person-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.person-stats div { text-align: center; padding: 8px 4px; border-radius: var(--radius-md); background: var(--navy-850); }
.person-stats .num { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.person-stats .lbl { margin-top: 2px; font-size: 10.5px; color: var(--text-low); }
.record-line { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-dark); font-size: 12px; }
.record-line:last-child { border-bottom: none; }
.record-line .d { font-family: var(--font-mono); color: var(--text-low); flex: none; }
.record-line .k { color: var(--sonar-400); flex: none; }
.record-line .t { color: var(--text-mid); line-height: 1.5; }
.record-line .tag { margin-left: auto; flex: none; }

/* ---------- AI 现场试用 ---------- */
.ai-card { position: relative; }
.ai-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: linear-gradient(180deg, var(--sonar-400), transparent);
  border-radius: 2px 0 0 2px;
}
.ai-source {
  width: 100%; min-height: 120px; resize: vertical;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--navy-850); border: 1px solid var(--line-dark);
  color: var(--text-mid); line-height: 1.7; font-size: 12.5px;
}
.ai-source:focus { border-color: rgba(47, 191, 196, 0.45); color: var(--text-hi); }
.ai-toolbar { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ai-hint { font-size: 11.5px; color: var(--text-low); }
.ai-run {
  padding: 6px 16px; border-radius: var(--radius-md);
  background: var(--sonar-dim); border: 1px solid rgba(47, 191, 196, 0.45);
  color: var(--sonar-400); font-size: 12.5px; font-weight: 600;
}
.ai-run:hover { background: rgba(47, 191, 196, 0.24); }
.ai-run:disabled { opacity: 0.55; cursor: wait; }
.ai-run--sm { padding: 4px 12px; font-size: 12px; font-weight: 500; }
.ai-run.is-busy { box-shadow: 0 0 0 1px rgba(47, 191, 196, 0.25); }
.ai-chip {
  display: inline-flex; align-items: center;
  padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--sonar-400);
  border: 1px solid rgba(47, 191, 196, 0.4);
}
.ai-result-head {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 4px; font-size: 13px; font-weight: 600;
}
.ai-result-head .aux { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--text-low); }
.ai-busy, .ai-error { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; }
.ai-busy { color: var(--sonar-400); }
.ai-error { color: var(--amber-400); }
.ai-busy__ring {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(47, 191, 196, 0.25);
  border-top-color: var(--sonar-400);
  animation: ai-spin 0.8s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-ask { margin-top: 8px; }
.ai-ask-btn {
  padding: 3px 10px; border-radius: var(--radius-md);
  border: 1px solid var(--line-dark-2); color: var(--text-low); font-size: 11.5px;
}
.ai-ask-btn:hover { color: var(--sonar-400); border-color: rgba(47, 191, 196, 0.4); }
.ai-ask__box { margin-top: 8px; }
.ai-ask-row { display: flex; gap: 8px; }
.ai-input {
  flex: 1; min-width: 0; padding: 6px 10px; border-radius: var(--radius-md);
  background: var(--navy-850); border: 1px solid var(--line-dark);
  color: var(--text-hi); font-size: 12.5px;
}
.ai-input:focus { border-color: rgba(47, 191, 196, 0.45); }
.ai-ask__ans { margin-top: 8px; }
.ai-prose { font-size: 12.5px; line-height: 1.75; color: var(--text-mid); }
.ai-prose b { color: var(--text-hi); font-weight: 600; }
.ai-actions { margin-top: 8px; padding-left: 16px; list-style: disc; }
.ai-actions li { font-size: 12px; line-height: 1.7; color: var(--text-mid); }
.ai-struct {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px;
}
.ai-struct > div { padding: 10px 12px; border-radius: var(--radius-md); background: var(--navy-850); border: 1px solid var(--line-dark); }
.ai-struct .k { font-size: 11px; color: var(--sonar-400); font-weight: 600; }
.ai-struct .v { margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--text-mid); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .ai-struct { grid-template-columns: 1fr; }
}
