/* =====================================================================
 * 论文中期检查清单 · thesis-midterm-checklist.css
 * 母题：核对台 —— 学院绿进度环、金黄节点与打孔卡片
 * 深色主题：复用 :root[data-theme="dark"]，不自建主题按钮
 * ===================================================================== */

.hc--tmc {
    --hc-a: #3a6b35;            /* 学院绿 */
    --hc-a-soft: #e7efdf;
    --tmc-gold: #9a6a13;
    --tmc-card: #f7f5ec;
}

:root[data-theme="dark"] .hc--tmc {
    --hc-a: #8ecf85;
    --hc-a-soft: #1e351e;
    --tmc-gold: #e2b45e;
    --tmc-card: #1f281c;
}

/* ---------- 首屏：进度环 ---------- */
.tmc-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 26px;
}
.tmc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.tmc-ring-wrap { display: flex; justify-content: center; }
.tmc-ring { width: 180px; height: 180px; }
.tmc-ring-bg { fill: none; stroke: var(--hc-line); stroke-width: 12; }
.tmc-ring-val {
    fill: none;
    stroke: var(--hc-a);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transform: rotate(-90deg);
    transform-origin: 60px 60px;
    transition: stroke-dashoffset .5s ease;
}
.tmc-ring-num { font-size: 26px; font-weight: 700; fill: var(--hc-ink); font-family: var(--hc-serif); }
.tmc-ring-sub { font-size: 11px; fill: var(--hc-muted); letter-spacing: .2em; }

@media (max-width: 900px) {
    .tmc-hero { grid-template-columns: 1fr; }
}

/* ---------- 控制条 ---------- */
.tmc-ctrl { padding: 18px; }
.tmc-ctrl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.tmc-hint { color: var(--hc-muted); font-size: 12px; }

/* ---------- 清单卡片 ---------- */
.tmc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 14px;
}
.tmc-item {
    background: var(--tmc-card);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-r);
    padding: 14px 16px 12px;
    box-shadow: var(--hc-shadow-sm);
    position: relative;
}
.tmc-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 14px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--hc-line);
}
.tmc-item.is-on { border-color: var(--hc-a); }
.tmc-item.is-on::before { background: var(--hc-a); }
.tmc-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding-left: 14px;
}
.tmc-head input[type="checkbox"] { margin-top: 4px; }
.tmc-head b { font-size: 14.5px; color: var(--hc-ink); }
.tmc-head small { display: block; font-size: 12px; color: var(--hc-muted); margin-top: 2px; }
.tmc-item.is-on .tmc-head b { color: var(--hc-a); }
.tmc-reasons {
    margin: 0 0 8px 14px;
    padding-left: 16px;
    font-size: 12.5px;
    color: var(--hc-ink-2);
    line-height: 1.75;
}
.tmc-reasons li::marker { color: var(--tmc-gold); }
.tmc-node {
    margin: 0 0 0 14px;
    font-size: 12px;
    color: var(--tmc-gold);
    font-weight: 700;
}

/* ---------- 时间线 ---------- */
.tmc-timeline { position: relative; padding-left: 22px; }
.tmc-timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 2px;
    background: var(--hc-line);
}
.tmc-tl {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: baseline;
    margin-bottom: 12px;
    font-size: 13.8px;
    flex-wrap: wrap;
}
.tmc-tl::before {
    content: '';
    position: absolute;
    left: -20px; top: 7px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--hc-a);
    border: 2px solid var(--hc-card);
}
.tmc-tl-date {
    font-family: var(--hc-serif);
    color: var(--tmc-gold);
    font-weight: 700;
    white-space: nowrap;
}
.tmc-tl-lead { color: var(--hc-muted); font-size: 12px; }
.tmc-tl.is-done .tmc-tl-name { color: var(--hc-a); }
.tmc-tl.is-done::before { background: var(--tmc-gold); }
