/* 选题方案栏目：长文排版 + 课题索引卡片 */
.topic-doc{max-width:52rem;}
.topic-doc h2{margin:2.2rem 0 .5rem;font-size:1.2rem;line-height:1.45;}
.topic-doc h3{margin:1.5rem 0 .35rem;font-size:.82rem;letter-spacing:.09em;
  color:#1f4e6b;border-bottom:1px solid #d6d9de;padding-bottom:.2rem;}
.topic-doc h4{margin:1.1rem 0 .3rem;font-size:.95rem;}
.topic-doc p{margin:0 0 .6rem;line-height:1.85;}
.topic-doc ul,.topic-doc ol{margin:0 0 .7rem;padding-left:1.4rem;line-height:1.8;}
.topic-doc li{margin-bottom:.3rem;}
.topic-doc em{font-style:normal;background:#fdf6ec;border-bottom:1px solid #e0c9a0;
  padding:0 .15em;color:#8a5a1e;}
.topic-doc blockquote{margin:.7rem 0;padding:.7rem 1rem;background:#fdf6ec;
  border-left:3px solid #8a5a1e;font-size:.94rem;}
.topic-doc blockquote p:last-child{margin-bottom:0;}
.topic-doc table{width:100%;border-collapse:collapse;font-size:.86rem;margin:.6rem 0 1rem;
  display:block;overflow-x:auto;}
.topic-doc th{background:#eef3f7;color:#12324a;text-align:left;padding:.4rem .6rem;
  border:1px solid #d6d9de;white-space:nowrap;}
.topic-doc td{padding:.4rem .6rem;border:1px solid #d6d9de;vertical-align:top;line-height:1.6;}
.topic-doc code{font-family:Menlo,Monaco,monospace;font-size:.85em;background:#f4f5f7;
  padding:.05em .3em;border-radius:2px;}
.topic-doc hr{border:0;border-top:1px solid #d6d9de;margin:2rem 0;}
.t-intro h2:first-child{margin-top:.6rem;}

/* 课题索引卡片 */
.t-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(17rem,1fr));
  gap:1px;background:#d6d9de;border:1px solid #d6d9de;margin:1.2rem 0 2rem;}
.t-card{display:block;background:#fbf9f4;padding:1.1rem 1.2rem 1rem;text-decoration:none;
  color:inherit;transition:background .15s;}
.t-card:hover{background:#fff;}
.t-card-id{font-family:Menlo,Monaco,monospace;font-size:.72rem;letter-spacing:.1em;
  color:#E8614C;margin:0 0 .35rem;}
.t-card-title{font-size:1rem;line-height:1.45;margin:0 0 .5rem;font-weight:600;}
.t-card-q{font-size:.83rem;line-height:1.65;color:#5b6069;margin:0 0 .6rem;}
.t-card-tags{margin:0;display:flex;flex-wrap:wrap;gap:.3rem;}
.t-tag{display:inline-block;font-size:.68rem;letter-spacing:.03em;color:#3d444f;
  border:1px solid #d6d9de;border-radius:2px;padding:.1rem .4rem;background:#fff;}
.t-tags{margin:.4rem 0 1.6rem;display:flex;flex-wrap:wrap;gap:.35rem;}

/* 第二批说明 */
.t-note{background:#fdf6ec;border-left:3px solid #8a5a1e;padding:1rem 1.3rem;
  margin:1.5rem 0 0;max-width:52rem;}
.t-note p{margin:0 0 .55rem;line-height:1.8;font-size:.92rem;}
.t-note p:last-child{margin-bottom:0;}
.t-note em{font-style:normal;font-weight:600;color:#8a5a1e;}

/* 单则课题页 */
.t-single-title{font-size:1.9rem;line-height:1.3;}
.t-pager{display:flex;justify-content:space-between;align-items:center;gap:1rem;
  margin:3rem 0 0;padding-top:1.2rem;border-top:2px solid #2C2416;font-size:.85rem;}
.t-pager a{text-decoration:none;color:#2C2416;max-width:32%;line-height:1.5;}
.t-pager a:hover{color:#E8614C;}
.t-pager-up{text-align:center;color:#6b7280 !important;font-size:.78rem;}
.t-pager-next{text-align:right;}
@media (max-width:640px){
  .t-pager{flex-direction:column;align-items:flex-start;}
  .t-pager a{max-width:100%;}
  .t-pager-next{text-align:left;}
}

/* ---- ISEF topic cards: one row per field ---------------------------------
   Each topic is five short fields rather than prose, so the card is a keyed
   list. The key sits inline as a small caps label so a reader can scan for
   "你自己的那一点" without reading the rest. */
.t-row {
  margin: 0 0 .55rem;
  font-size: .93rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.t-row:last-child { margin-bottom: 0; }

.t-key {
  display: inline-block;
  margin-right: .5rem;
  padding: .05rem .45rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--cream-2);
  font-family: var(--font-sans, Inter), sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-3);
  white-space: nowrap;
  vertical-align: 1px;
}

/* Score range floats opposite the topic id. It is deliberately not a single
   number -- the rubric emits an interval, and a point score would imply a
   precision the evidence does not support. */
.t-score {
  float: right;
  font-family: var(--font-sans, Inter), sans-serif;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: .02em;
}
.t-score small {
  margin-left: .4rem;
  font-weight: 500;
  color: var(--ink-3);
}

.t-card code {
  padding: .05rem .25rem;
  background: var(--cream-2);
  border-radius: 3px;
  font-size: .88em;
}
