/* =========================================================
   ZDKHot 工具模块 + 试用/关注解锁闸门
   沿用 style.css 的设计变量，保持与主站一致的观感
   ========================================================= */

/* ---------------- 视图骨架 ---------------- */

.tools-view { padding-bottom: 60px; }

.tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.trial-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-line);
  cursor: pointer;
  transition: background .14s;
}
.trial-chip:hover { background: #e3edff; }
.trial-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.trial-chip.is-warn {
  background: #fff6ed;
  color: #b25b00;
  border-color: #ffe2c6;
}
.trial-chip.is-warn::before { background: #f76b15; }
.trial-chip.is-lock {
  background: #fdeef0;
  color: #c0392b;
  border-color: #f8d7db;
}
.trial-chip.is-lock::before { background: #e5484d; }
.trial-chip.is-ok {
  background: #eafaf1;
  color: #1a7f4b;
  border-color: #cdeedd;
}
.trial-chip.is-ok::before { background: #30a46c; }

.tool-back {
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 9px;
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--text-2);
  transition: background .14s, color .14s;
}
.tool-back:hover { background: var(--bg-hover); color: var(--text); }

/* ---------------- 工具分组（按学段：初中 / 高中 / 初高中通用） ----------------
   容器不再是网格本身 —— 外层按学段分段，每段内部才是卡片网格。
   这样加一组不用动布局，某段没有工具时整段（含标题）都不渲染。 */

.tool-groups { display: block; }

/* 顶部学段筛选标签 */
.tool-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tool-fbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.tool-fbtn:hover { border-color: var(--brand-line); color: var(--text); }
.tool-fbtn.on {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.tool-fn {
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.tool-fbtn.on .tool-fn { color: var(--brand); opacity: .75; }

/* 每个学段一段 */
.tool-sec { margin-bottom: 26px; }
.tool-sec:last-child { margin-bottom: 0; }
.tool-sec-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.tool-sec-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.tool-sec-hint { font-size: 12px; color: var(--text-3); }
.tool-sec-n {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* 侧栏工具导航里的学段小标题 */
.nav-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .04em;
  padding: 8px 10px 3px;
}

/* ---------------- 工具卡片网格 ---------------- */

.tool-grid {
  display: grid;
  /* 236px 起跳，宽屏下每列约 250px；比原来的 268px 更紧凑，
     一屏能多放一列，卡片也不会横向拉太宽 */
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 12px;
  /* 关键：卡片高度各自独立。默认的 stretch 会让一行里最高的那张
     （描述特别长的）把所有兄弟都拉到同样高度，出现大片空白 */
  align-items: start;
}

.tool-card {
  position: relative;
  /* 关键：<button> 的内容会被浏览器包进匿名 flex 并垂直居中 ——
     卡片一旦被拉高，图标和文字就飘到正中间、上下全是空洞。
     显式声明纵向 flex，内容才会老老实实贴着顶部排 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px 15px 13px;
  min-height: 168px;      /* 描述短的卡片不至于塌成一条，整体更齐 */
  transition: border-color .15s, box-shadow .15s, transform .15s;
  box-shadow: var(--shadow-sm);
}
.tool-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
/* 右下角的进入提示：hover 时向右滑一下 */
.tool-card::after {
  content: '→';
  position: absolute;
  right: 14px; bottom: 11px;
  font-size: 13px;
  line-height: 1;
  color: #c9cdd6;
  transition: color .15s, transform .15s;
}
.tool-card:hover::after { color: var(--brand); transform: translateX(3px); }

.tool-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 9px;
}
.tool-icon svg { width: 16px; height: 16px; }

.tool-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 5px;
  /* 名字最多两行，超长的不会把卡片顶开 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
  margin: 0;
  padding-right: 15px;    /* 给右下角的箭头留位 */
  /* 描述最多四行。config/site.json 里「高考志愿智能诊断」那条写了
     1192 字的省份清单，全铺出来会把卡片撑成一根柱子 —— 卡片只用
     第一句，完整描述留给工具页内部的副标题 */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.tool-badge.is-warn { background: #fff6ed; color: #b25b00; border-color: #ffe2c6; }
.tool-badge.is-lock { background: #fdeef0; color: #c0392b; border-color: #f8d7db; }
.tool-badge.is-ok   { background: #eafaf1; color: #1a7f4b; border-color: #cdeedd; }

.tool-card.is-locked .tool-icon { background: #fdeef0; color: #e5484d; }

/* ---------------- 工具舞台 ---------------- */

.tool-stage {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.tool-stage iframe {
  width: 100%;
  height: 620px;          /* 兜底高度；真实高度由 tools.js 按内容自动调整 */
  border: 0;
  border-radius: var(--radius-sm);
  background: #f2f6fb;    /* 与内嵌工具页 body 同色，避免加载瞬间闪一下 */
  display: block;
  transition: height .18s ease;
}
.stage-head { margin-bottom: 16px; position: relative; }
.stage-title { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.stage-sub { font-size: 12.5px; color: var(--text-3); margin: 0; }

/* ---------------- 通用表单件 ---------------- */

.f-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: flex-end; }
.f-field { display: flex; flex-direction: column; gap: 5px; }
.f-label { font-size: 11.5px; color: var(--text-3); }
.f-input {
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 11px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.f-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 111, 235, .12); }
.f-input::placeholder { color: #b9bfca; }

.btn {
  height: 34px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0 15px;
  font-size: 13px;
  color: var(--text-2);
  transition: background .14s, border-color .14s, color .14s;
}
.btn:hover { background: var(--bg-hover); color: var(--text); }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-3); }
.btn-ghost:hover { background: var(--bg-hover); color: #e5484d; }

/* ---------------- 倒计时 ---------------- */

.cd-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.cd-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--bg-soft);
}
.cd-item.is-urgent { background: #fff8f8; border-color: #f8d7db; }
.cd-item.is-past { opacity: .62; }
.cd-name { font-size: 13.5px; font-weight: 500; flex: 1; min-width: 0; }
.cd-date { font-size: 11.5px; color: var(--text-3); display: block; font-weight: 400; margin-top: 2px; }
.cd-num { font-variant-numeric: tabular-nums; text-align: right; }
.cd-days { font-size: 22px; font-weight: 700; color: var(--brand); line-height: 1.15; }
.cd-item.is-urgent .cd-days { color: #e5484d; }
.cd-item.is-past .cd-days { color: var(--text-3); font-size: 16px; }
.cd-clock { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cd-empty { color: var(--text-3); font-size: 13px; padding: 18px 0; text-align: center; }

/* ---------------- 梯度计算 ---------------- */

.gd-row {
  display: grid;
  grid-template-columns: 1fr 108px 74px 30px;
  gap: 9px;
  align-items: center;
  margin-bottom: 8px;
}
.gd-head {
  font-size: 11.5px;
  color: var(--text-3);
  margin-bottom: 7px;
}
.gd-tag {
  font-size: 12px;
  text-align: center;
  border-radius: 999px;
  padding: 4px 0;
  font-weight: 600;
}
.gd-chong { background: #fdeef0; color: #c0392b; }
.gd-wen   { background: #fff6ed; color: #b25b00; }
.gd-bao   { background: #eafaf1; color: #1a7f4b; }
.gd-none  { background: var(--bg-soft); color: var(--text-3); font-weight: 400; }

.gd-summary {
  margin-top: 16px;
  border-top: 1px dashed var(--border-strong);
  padding-top: 14px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
}
.gd-summary b { color: var(--text); }
.gd-warn { color: #b25b00; }

/* ---------------- 材料清单 ---------------- */

.ck-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin: 12px 0 4px;
}
.ck-progress i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width .25s;
}
.ck-meta { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }

.ck-list { display: flex; flex-direction: column; gap: 2px; }
.ck-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background .12s;
}
.ck-item:hover { background: var(--bg-hover); }
.ck-item input { width: 15px; height: 15px; accent-color: var(--brand); flex: none; cursor: pointer; }
.ck-text { font-size: 13px; flex: 1; cursor: pointer; }
.ck-item.is-done .ck-text { color: var(--text-3); text-decoration: line-through; }

/* ---------------- 解锁面板 ---------------- */

.gate-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .42);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 90;
  animation: gateIn .16s ease-out;
}
@keyframes gateIn { from { opacity: 0 } to { opacity: 1 } }

.gate-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 26px 20px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
  animation: gateUp .2s ease-out;
}
@keyframes gateUp { from { transform: translateY(10px); opacity: .6 } to { transform: none; opacity: 1 } }

.gate-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1;
}
.gate-close:hover { background: var(--bg-hover); color: var(--text); }

.gate-title { font-size: 17px; font-weight: 600; margin: 0 0 7px; }
.gate-desc { font-size: 13px; color: var(--text-2); margin: 0 0 18px; line-height: 1.7; }

.gate-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gate-ch {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  background: var(--bg-soft);
}
.gate-ch img {
  width: 100%;
  max-width: 168px;
  border-radius: var(--radius-sm);
  background: #fff;
  display: block;
  margin: 0 auto 10px;
}
.gate-ch-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.gate-ch-account {
  font-size: 13px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  margin-bottom: 3px;
}
.gate-ch-hint { font-size: 11.5px; color: var(--text-3); margin-bottom: 9px; }

.gate-action { margin-top: 18px; display: flex; gap: 9px; flex-wrap: wrap; }
.gate-action .f-input { flex: 1; min-width: 150px; }
.gate-foot { font-size: 11.5px; color: var(--text-3); margin: 14px 0 0; line-height: 1.6; }
.gate-msg { font-size: 12.5px; margin-top: 9px; min-height: 18px; }
.gate-msg.is-err { color: #c0392b; }
.gate-msg.is-ok { color: #1a7f4b; }

@media (max-width: 640px) {
  .gate-channels { grid-template-columns: 1fr; }
  .gd-row { grid-template-columns: 1fr 84px 62px 28px; }
}

/* =========================================================
   规划类工具（少年班 / 选科 / 河南中考时间节点）
   内容由 data/plans/<id>.json 驱动，这里是通用排版
   ========================================================= */

.pl { font-size: 13.5px; color: var(--text-2); }

.pl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 4px;
}
.pl-title { font-size: 19px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.pl-sub { font-size: 12.5px; color: var(--text-3); margin: 0 0 10px; }
.pl-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.pl-chip-tag {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-line);
}
.pl-refresh { flex: none; margin-top: 4px; }

.pl-body { padding-top: 6px; }
.pl-block { margin: 24px 0; }

/* ---- v0.122：付费前先给预览，后半段虚化 ---- */
.pl-lock {
  position: relative;
  margin: 22px 0 6px;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.pl-lock-blur {
  padding: 22px;
  min-height: 300px;
  filter: blur(4px);
  opacity: .62;
  pointer-events: none;
  user-select: none;
}
.pl-lock-row { padding: 11px 4px; border-bottom: 1px dashed #f0f2f6; }
.pl-lock-row:last-child { border-bottom: 0; }
.pl-lock-row b {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 9px;
  font-weight: 600;
}
.pl-lock-row i {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: #e6eaf2;
  margin-bottom: 7px;
}
.pl-lock-row i:last-child { margin-bottom: 0; }
.pl-lock--frame .pl-lock-blur { min-height: 340px; }

.pl-lock-cta {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: radial-gradient(ellipse 72% 58% at 50% 50%,
    rgba(255, 255, 255, .975) 0%, rgba(255, 255, 255, .95) 46%,
    rgba(255, 255, 255, .48) 78%, rgba(255, 255, 255, .08) 100%);
}
.pl-lock-ico {
  width: 46px; height: 46px; border-radius: 23px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; background: #eef4ff;
}
.pl-lock-cta b { font-size: 16px; color: var(--text); }
.pl-lock-cta span {
  font-size: 12.5px; color: var(--text-3);
  max-width: 420px; text-align: center; line-height: 1.6;
}
.pl-lock-btn {
  margin-top: 6px;
  font-style: normal;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .18);
}

.pl-h {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--text);
  line-height: 1.4;
}
.pl-h em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-3);
  margin-top: 3px;
}
.pl-note { font-size: 12px; color: var(--text-3); margin: 8px 0 0; line-height: 1.7; }
.pl-src {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  margin-top: 26px;
  padding-top: 14px;
}

/* ---------------- 提示块 ---------------- */

.pl-callout {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
}
.pl-callout.is-warn { border-left-color: #e5484d; background: #fdeef0; }
.pl-callout.is-key  { border-left-color: #f76b15; background: #fff6ed; }
.pl-callout-t { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pl-callout p { margin: 0; line-height: 1.8; color: var(--text-2); }
.pl-callout.is-warn p { color: #8b2e24; }
.pl-callout.is-key  p { color: #6a4423; }
.pl-callout b { color: var(--text); }

/* ---------------- 表格 ---------------- */

.pl-tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pl-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
.pl-tbl th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.pl-tbl td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-2);
  line-height: 1.7;
}
.pl-tbl tr:last-child td { border-bottom: none; }
.pl-tbl tbody tr:nth-child(even) td { background: #fbfcfd; }
.pl-tbl td b, .pl-tbl th b { color: var(--text); font-weight: 600; }

/* ---------------- 步骤 ---------------- */

.pl-steps { display: flex; flex-direction: column; gap: 12px; }
.pl-step { display: flex; gap: 12px; align-items: flex-start; }
.pl-step-n {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #f76b15;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.pl-step-txt b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 3px; }
.pl-step-txt p { margin: 0; line-height: 1.75; }

/* ---------------- 卡片 ---------------- */

.pl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.pl-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  background: #fff;
}
.pl-card.is-danger { border-color: #f8d7db; background: #fffafa; }
.pl-card.is-good   { border-color: #cdeedd; background: #fbfefc; }
.pl-card-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pl-card-hd b { font-size: 13.5px; color: var(--text); }
.pl-card-hd span { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.pl-card ul { margin: 0; padding: 0; list-style: none; }
.pl-card li {
  position: relative;
  padding: 3px 0 3px 13px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.pl-card li::before {
  content: '';
  position: absolute;
  left: 2px; top: 11px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}
.pl-card-warn {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: #8b2e24;
  line-height: 1.7;
}
.pl-card.is-good .pl-card-warn { color: #1a7f4b; }

/* ---------------- 阶梯图 ---------------- */

.pl-bars {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 2px 0;
}
.pl-bar-col { flex: 1 1 0; min-width: 84px; display: flex; flex-direction: column; }
.pl-bar-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  min-height: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
}
.pl-bar-box {
  border: 1px solid var(--border-strong);
  border-radius: 9px 9px 4px 4px;
  background: var(--bg-soft);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.pl-bar-chip {
  font-size: 10.5px;
  line-height: 1.45;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .78);
  text-align: center;
  color: var(--text-2);
}
.pl-bar-pct {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-strong);
}
.pl-bar-col.is-teal  .pl-bar-box { background: #e1f5ee; border-color: #0f6e56; }
.pl-bar-col.is-teal  .pl-bar-chip { color: #04342c; }
.pl-bar-col.is-teal  .pl-bar-pct { color: #0f6e56; }
.pl-bar-col.is-amber .pl-bar-box { background: #faeeda; border-color: #854f0b; }
.pl-bar-col.is-amber .pl-bar-chip { color: #412402; }
.pl-bar-col.is-amber .pl-bar-pct { color: #854f0b; }
.pl-bar-col.is-blue  .pl-bar-box { background: #e6f1fb; border-color: #185fa5; }
.pl-bar-col.is-blue  .pl-bar-chip { color: #042c53; }
.pl-bar-col.is-blue  .pl-bar-pct { color: #185fa5; }

/* ---------------- 时间轴 ---------------- */

.pl-tl { list-style: none; margin: 0; padding: 0 0 0 5px; }
.pl-tl li {
  position: relative;
  padding: 0 0 14px 22px;
  border-left: 2px solid var(--border-strong);
  margin-left: 5px;
}
.pl-tl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.pl-tl li::before {
  content: '';
  position: absolute;
  left: -7px; top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border-strong);
}
.pl-tl li.is-key::before { background: #f76b15; }
.pl-tl-when { display: block; font-weight: 600; color: var(--text); font-size: 12.5px; }
.pl-tl li.is-key .pl-tl-when { color: #b25b00; }
.pl-tl-txt { font-size: 12.5px; line-height: 1.7; }

/* ---------------- 链接 ---------------- */

.pl-links { list-style: none; margin: 0; padding: 0; }
.pl-links li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.pl-links li:last-child { border-bottom: none; }
.pl-links a { color: var(--brand-dark); font-weight: 600; font-size: 13px; }
.pl-links a:hover { text-decoration: underline; }
.pl-link-note { font-size: 12px; color: var(--text-3); flex: 1 1 auto; }
.pl-link-url {
  font-family: Consolas, Menlo, monospace;
  font-size: 11px;
  color: var(--text-3);
  word-break: break-all;
  flex: 1 1 100%;
}

/* ---------------- 清单 ---------------- */

.pl-check { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; background: #fff; }
.pl-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--border);
  font-size: 12.5px;
  cursor: pointer;
  line-height: 1.65;
}
.pl-check-item:last-of-type { border-bottom: none; }
.pl-check-item input { width: 15px; height: 15px; accent-color: var(--brand); flex: none; margin-top: 3px; cursor: pointer; }
.pl-check-item input:checked + span { color: var(--text-3); text-decoration: line-through; }
.pl-check-meta { font-size: 11.5px; color: var(--text-3); padding: 8px 4px 4px; }

/* ---------------- 倒计时 ---------------- */

.pl-cd { display: grid; grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); gap: 12px; }
.pl-cd-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #fff;
  min-height: 92px;
}
.pl-cd-num { font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1.15; font-variant-numeric: tabular-nums; }
.pl-cd-num.is-soon { color: #f76b15; }
.pl-cd-num.is-over { color: var(--text-3); font-size: 18px; }
.pl-cd-label { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.pl-cd-date { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
/* 倒计时下方那行说明：讲清天数怎么算、数据什么时候更新 */
.pl-cd-foot { font-size: 11.5px; color: var(--text-3); line-height: 1.7; margin-top: 10px; }

/* ---------------- 要点列表 ---------------- */

.pl-notes { margin: 0; padding-left: 20px; }
.pl-notes li { margin: 6px 0; line-height: 1.75; font-size: 12.5px; }
.pl-notes b { color: var(--text); }

/* ---------------- 后台自动抽取的两块 ---------------- */

.pl-nodes { list-style: none; margin: 0; padding: 0; }
.pl-node {
  display: grid;
  grid-template-columns: 92px 62px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12.5px;
}
.pl-node:last-child { border-bottom: none; }
.pl-node-date { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.pl-node-tag {
  font-size: 11px;
  text-align: center;
  border-radius: 999px;
  padding: 1px 7px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-line);
}
.pl-node-t a { color: var(--text); }
.pl-node-t a:hover { color: var(--brand-dark); text-decoration: underline; }
.pl-node-src { font-size: 11px; color: var(--text-3); white-space: nowrap; }

.pl-notices { list-style: none; margin: 0; padding: 0; }
.pl-notices li { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.pl-notices li:last-child { border-bottom: none; }
.pl-notices a { color: var(--text); font-size: 12.5px; line-height: 1.65; }
.pl-notices a:hover { color: var(--brand-dark); text-decoration: underline; }
.pl-notice-meta { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; font-variant-numeric: tabular-nums; }

.pl-empty {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.75;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

@media (max-width: 720px) {
  .pl-node { grid-template-columns: 1fr; gap: 2px; }
  .pl-node-tag { justify-self: start; }
  .pl-head { flex-direction: column; }
  .pl-refresh { width: 100%; }
}

