/* ============================================================
   灯塔志愿 · 冲稳保方案页（plan.html）
   ============================================================ */

/* ---------- 页头 ---------- */
.plan-head { margin-bottom: 18px; }
.plan-head h1 {
  font-size: 28px; font-weight: 800; color: var(--navy-900);
  margin: 10px 0 8px; letter-spacing: -.5px;
}
.plan-head p { color: var(--muted); font-size: 14.5px; max-width: 620px; line-height: 1.7; }
.badge-gold {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: #8a6a22; background: rgba(212,175,106,.16);
  border: 1px solid rgba(201,164,92,.4);
  padding: 4px 12px; border-radius: 99px;
}
.text-gradient-gold {
  background: linear-gradient(135deg, #b8860b, #d4af6a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 输入区微调 ---------- */
.plan-input {
  grid-template-columns: .8fr .65fr 1.3fr .75fr .9fr .7fr 1fr;
}
.plan-input .pi-gen { display: flex; flex-direction: column; justify-content: flex-end; }
.plan-input .pi-gen .btn { padding: 11px 16px; font-size: 14px; }
.plan-input .pi-gen .pi-hint { text-align: center; margin-top: 7px; }

/* ---------- 加载态 ---------- */
.plan-loading {
  text-align: center; padding: 56px 20px; color: var(--muted);
}
.plan-loading-spinner {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border: 3px solid rgba(19,89,60,.15);
  border-top-color: var(--navy-700);
  border-radius: 50%;
  animation: plan-spin .8s linear infinite;
}
@keyframes plan-spin { to { transform: rotate(360deg); } }
.plan-loading p { font-size: 14px; }

/* ---------- 结果摘要 ---------- */
.plan-summary {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(19,89,60,.06), rgba(212,175,106,.08));
  border: 1px solid rgba(11,36,25,.08);
  border-radius: 14px; padding: 16px 22px; margin-bottom: 20px;
}
.ps-item { display: flex; flex-direction: column; gap: 3px; }
.ps-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.ps-value { font-size: 18px; font-weight: 800; color: var(--navy-900); }
.ps-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- 三栏布局 ---------- */
.plan-columns {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan-col {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  border-top: 3px solid var(--line);
}
.plan-col-reach { border-top-color: #e0604b; }
.plan-col-stable { border-top-color: #3d8b6a; }
.plan-col-safe { border-top-color: #4a7fb8; }

.plan-col-head h3 {
  font-size: 17px; font-weight: 800; color: var(--navy-900);
  margin: 4px 0 2px;
}
.plan-col-head p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.pch-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  font-size: 15px; font-weight: 800; color: #fff;
}
.pch-reach { background: linear-gradient(135deg, #e8725c, #d4553f); }
.pch-stable { background: linear-gradient(135deg, #4aa37e, #2f7d5c); }
.pch-safe { background: linear-gradient(135deg, #5c93c7, #3d6f9e); }

.plan-cards { display: flex; flex-direction: column; gap: 11px; }

/* ---------- 院校卡片 ---------- */
.plan-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; background: var(--white);
  transition: box-shadow .18s, transform .18s;
  position: relative;
}
.plan-card:hover {
  box-shadow: 0 6px 18px rgba(11,36,25,.1);
  transform: translateY(-2px);
}
.pc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pc-name { font-size: 15px; font-weight: 700; color: var(--navy-900); line-height: 1.4; }
.pc-name a { color: inherit; text-decoration: none; }
.pc-name a:hover { color: var(--navy-700); text-decoration: underline; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pc-tag {
  font-size: 10.5px; font-weight: 600; padding: 2px 7px;
  border-radius: 5px; background: rgba(19,89,60,.08); color: var(--navy-700);
}
.pc-prob {
  flex-shrink: 0; text-align: center; min-width: 54px;
}
.pc-prob-num { font-size: 20px; font-weight: 800; line-height: 1; }
.pc-prob-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; }
.plan-col-reach .pc-prob-num { color: #d4553f; }
.plan-col-stable .pc-prob-num { color: #2f7d5c; }
.plan-col-safe .pc-prob-num { color: #3d6f9e; }

.pc-prob-bar {
  height: 4px; border-radius: 3px; background: rgba(11,36,25,.08);
  margin-top: 8px; overflow: hidden;
}
.pc-prob-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }
.plan-col-reach .pc-prob-fill { background: linear-gradient(90deg, #e8725c, #d4553f); }
.plan-col-stable .pc-prob-fill { background: linear-gradient(90deg, #4aa37e, #2f7d5c); }
.plan-col-safe .pc-prob-fill { background: linear-gradient(90deg, #5c93c7, #3d6f9e); }

.pc-meta {
  display: flex; gap: 14px; margin-top: 10px;
  font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.pc-meta b { color: var(--ink-2); font-weight: 600; }
.pc-rank-diff { font-weight: 700; }
.pc-rank-diff.diff-up { color: #d4553f; }
.pc-rank-diff.diff-down { color: #2f7d5c; }

.pc-major {
  margin-top: 10px; padding: 9px 11px;
  background: rgba(19,89,60,.04); border-radius: 8px;
  font-size: 12.5px; line-height: 1.6;
}
.pc-major-label { font-weight: 700; color: var(--navy-700); margin-bottom: 3px; }
.pc-major-name { color: var(--ink-2); }
.pc-major-req { font-size: 11px; color: var(--muted); }

.pc-risk {
  margin-top: 8px; font-size: 11.5px; line-height: 1.5;
  color: #8a6a22; padding: 7px 10px;
  background: rgba(212,175,106,.1); border-radius: 7px;
  display: flex; gap: 6px; align-items: flex-start;
}
.pc-risk::before { content: '⚠'; flex-shrink: 0; }

.pc-actions { display: flex; gap: 8px; margin-top: 12px; }
.pc-actions .btn { flex: 1; justify-content: center; padding: 7px 10px; font-size: 12.5px; }

/* ---------- 空态 ---------- */
.plan-empty {
  text-align: center; padding: 70px 20px; color: var(--muted);
}
.plan-empty-icon { font-size: 52px; margin-bottom: 16px; opacity: .6; }
.plan-empty h3 { font-size: 17px; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.plan-empty p { font-size: 13.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .plan-input { grid-template-columns: 1fr 1fr; }
  .plan-input .pi-gen { grid-column: 1 / -1; }
  .plan-columns { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .plan-head h1 { font-size: 22px; }
  .plan-input { grid-template-columns: 1fr; }
  .plan-summary { gap: 16px; }
  .ps-value { font-size: 16px; }
}

/* ---------- 暗色模式 ---------- */
html[data-theme="dark"] .plan-col {
  background: #15221a; border-color: #25362b;
}
html[data-theme="dark"] .plan-card {
  background: #111c16; border-color: #25362b;
}
html[data-theme="dark"] .plan-summary {
  background: linear-gradient(135deg, rgba(19,89,60,.12), rgba(212,175,106,.08));
  border-color: rgba(240,224,182,.1);
}
html[data-theme="dark"] .pc-major { background: rgba(19,89,60,.12); }
html[data-theme="dark"] .pc-risk { background: rgba(212,175,106,.08); color: #d4b87a; }
html[data-theme="dark"] .pc-tag { background: rgba(19,89,60,.18); color: #8fd6b0; }
