/* ==========================================================================
   十页内容样式
   ========================================================================== */

.slide-body {
    display: flex; flex-direction: column; gap: 14px;
    flex: 1 1 auto; min-height: 0;
}

/* --------------------------------------------------------------------------
   页头
   -------------------------------------------------------------------------- */
.slide-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 2px; }
.sh-no {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; margin-top: 2px;
    font-family: var(--serif); font-size: 17px; font-weight: 700;
    background: linear-gradient(135deg, var(--red-2), var(--red-3)); color: #fff6ef;
    box-shadow: 0 6px 16px rgba(217, 58, 43, .3);
}
/* 注：.on-dark 是旧暗色主题的遗留类名（仍写在各页 markup 里），
   现在整站是明亮主题，页头一律用默认的深色字，所以这里不再有 on-dark 覆盖规则。 */
.sh-main { flex: 1; min-width: 0; }
.sh-title {
    font-family: var(--serif); font-size: 25px; line-height: 1.25; font-weight: 700;
    display: flex; align-items: center; gap: 8px; color: var(--ink);
}
.sh-title .ic { width: 22px; height: 22px; color: var(--red); }
.sh-sub { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.55; }
.sh-sub b { color: var(--red); }
.sh-acts { display: flex; gap: 2px; flex-shrink: 0; }

/* 详情弹窗内部 */
.modal-wide { width: min(100%, 560px); }
.detail-img { width: 100%; border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.detail-place {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px;
}
.detail-place .ic { width: 15px; height: 15px; }
.detail-seal { font-size: 11px; margin-left: 4px; }
.detail-lead {
    font-family: var(--serif); font-size: 16px; color: var(--red-3); line-height: 1.7;
    padding: 10px 12px; background: var(--red-soft); border-radius: 10px; margin-bottom: 10px;
}
.detail-md { font-size: 14.5px; line-height: 1.8; }
.quote {
    font-family: var(--serif); font-size: 15.5px; color: var(--red-3);
    border-left: 3px solid var(--red); padding: 4px 0 4px 12px; margin: 12px 0;
    background: linear-gradient(90deg, var(--red-soft), transparent);
}
.modal-quote {
    font-family: var(--serif); font-size: 15.5px; line-height: 1.75; color: var(--ink);
    padding: 12px; border-radius: 10px; background: var(--red-soft); margin-bottom: 4px;
}
.dot-list { margin-left: 18px; }
.dot-list li { margin: 4px 0; }
.key-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.fact-list { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.fact-list > div { display: flex; gap: 10px; font-size: 14px; }
.fact-list dt { flex-shrink: 0; min-width: 76px; color: var(--ink-3); }
.fact-list dd { flex: 1; color: var(--ink); }

/* --------------------------------------------------------------------------
   第 1 页 · 封面
   -------------------------------------------------------------------------- */
#slide-cover .slide-inner { padding: 0; }
.cover { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.cover-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 22%;
    transform: scale(1.08); transition: transform 12s var(--ease);
}
.cover.in .cover-bg { transform: scale(1); }
.cover-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(239, 233, 222, .92) 0%, rgba(239, 233, 222, .3) 26%, rgba(20, 16, 12, .06) 58%, rgba(239, 233, 222, .96) 94%),
        radial-gradient(90% 60% at 50% 100%, rgba(239, 233, 222, .9), transparent 70%);
}
.cover-body {
    position: relative; z-index: 2; flex: 1;
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: calc(74px + env(safe-area-inset-top)) 26px 30px;
}
.cover-kicker {
    font-family: var(--num); font-size: 12.5px; letter-spacing: .1em;
    color: var(--ink-3); margin-bottom: 10px;
}
.cover-title {
    font-family: var(--serif); font-size: 58px; line-height: 1.06; font-weight: 700;
    letter-spacing: .04em; color: var(--ink);
    text-shadow: 0 2px 18px rgba(255, 252, 245, .85);
}
.cover-title::first-line { color: var(--ink); }
.cover-sub {
    margin-top: 14px; font-size: 15px; color: var(--ink-2); letter-spacing: .02em;
    text-shadow: 0 1px 12px rgba(255, 252, 245, .9);
}
.cover-sub b { font-family: var(--num); font-size: 22px; color: var(--red); margin: 0 3px; }
.cover-facts {
    margin-top: 12px; display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--ink-2); flex-wrap: wrap;
}
.cover-facts i { color: var(--red); font-style: normal; }
.cover-start { margin-top: auto; margin-bottom: 14px; align-self: flex-start; }
.cover-start .ic { width: 19px; height: 19px; }
.cover-tip { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

/* --------------------------------------------------------------------------
   第 2 页 · 数字长征
   -------------------------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { padding: 14px 13px; }
.stat-num { display: flex; align-items: baseline; gap: 4px; }
.stat-num .num {
    font-family: var(--num); font-size: 30px; font-weight: 700; line-height: 1;
    color: var(--red); letter-spacing: -.01em;
}
.stat-num em { font-family: var(--serif); font-size: 13px; font-style: normal; color: var(--ink-2); }
.stat-label { font-size: 13.5px; font-weight: 600; margin-top: 7px; color: var(--ink); }
.stat-sub { font-size: 11.5px; line-height: 1.5; margin-top: 2px; }

.contrast-card { padding: 16px; }
.cc-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.cc-row { display: flex; align-items: center; gap: 8px; }
.cc-side { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cc-side .cc-num {
    font-family: var(--num); font-size: 21px; font-weight: 700; color: var(--ink-2); line-height: 1.1;
}
.cc-side .cc-num span { font-family: var(--sans); font-size: 11px; margin-left: 2px; }
.cc-side.to .cc-num { color: var(--red); }
.cc-side > span:last-child { font-size: 11px; }
.cc-arrow { color: var(--paper-3); flex-shrink: 0; }
.cc-arrow .ic { width: 20px; height: 20px; }
.cc-note {
    margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--line);
    font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   第 3 页 · 大事记
   -------------------------------------------------------------------------- */
.timeline { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tl-item { display: flex; gap: 10px; }
.tl-rail { position: relative; flex-shrink: 0; width: 14px; display: flex; justify-content: center; }
.tl-rail::before {
    content: ""; position: absolute; top: 4px; bottom: -14px; width: 2px;
    background: linear-gradient(180deg, var(--red-soft), var(--line));
}
.tl-item:last-child .tl-rail::before { display: none; }
.tl-dot {
    position: relative; z-index: 1; width: 10px; height: 10px; border-radius: 50%;
    background: var(--paper); border: 2.5px solid var(--red); margin-top: 16px;
    box-shadow: 0 0 0 3px rgba(217, 58, 43, .1);
}
.tl-card {
    flex: 1; min-width: 0; display: flex; gap: 11px; align-items: stretch;
    padding: 11px; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.tl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(217, 58, 43, .3); }
.tl-card:active { transform: scale(.985); }
.tl-thumb {
    position: relative; flex-shrink: 0; width: 84px; height: 84px; border-radius: 12px;
    background-size: cover; background-position: center; overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.tl-date {
    position: absolute; left: 0; right: 0; bottom: 0;
    font-family: var(--num); font-size: 10.5px; font-style: normal; letter-spacing: .02em;
    color: #fff; text-align: center; padding: 12px 2px 4px;
    background: linear-gradient(180deg, transparent, rgba(20, 16, 12, .78));
}
.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.tl-place { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--red); }
.tl-place .ic { width: 13px; height: 13px; }
.tl-lead {
    font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin-top: 3px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tl-more { display: flex; align-items: center; color: var(--paper-3); }
.tl-more .ic { width: 18px; height: 18px; }
.tl-foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.tl-foot .chip { font-size: 11.5px; }
.tl-foot .chip .ic { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   第 4 页 · 英雄人物
   -------------------------------------------------------------------------- */
.tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-card {
    position: relative; border-radius: var(--r); overflow: hidden;
    background: #201b16; cursor: pointer; box-shadow: var(--shadow);
    transition: transform .22s var(--ease), box-shadow .22s;
    display: flex; flex-direction: column;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-card:active { transform: scale(.98); }
.hc-photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.hc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hero-card:hover .hc-photo img { transform: scale(1.06); }
.hc-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(14, 11, 8, .82) 100%);
}
.hc-flag {
    position: absolute; top: 7px; left: 7px; z-index: 2;
    font-size: 10px; font-style: normal; padding: 2px 7px; border-radius: 5px;
    background: rgba(217, 58, 43, .88); color: #fff; letter-spacing: .04em;
}
.hc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 11px; z-index: 2; }
.hc-name { display: block; font-size: 17px; color: #fdf9f0; font-weight: 700; line-height: 1.25; }
.hc-tag {
    display: block; font-size: 11px; color: rgba(253, 249, 240, .74); margin-top: 2px; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hc-open {
    position: absolute; z-index: 3; right: 9px; top: 9px;
    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px);
}
.hc-open .ic { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   第 5 页 · 文物故事
   -------------------------------------------------------------------------- */
.relic-list { display: flex; flex-direction: column; gap: 12px; }
.relic-card {
    display: flex; gap: 13px; padding: 12px; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.relic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(217, 58, 43, .3); }
.relic-card:active { transform: scale(.99); }
.rc-frame {
    position: relative; flex-shrink: 0; width: 104px; height: 104px; border-radius: 12px;
    overflow: hidden; background: var(--paper-2);
    box-shadow: 0 3px 12px rgba(74, 92, 112, .18), inset 0 0 0 1px rgba(38, 49, 61, .06);
}
.rc-frame img { width: 100%; height: 100%; object-fit: cover; }
.rc-no {
    position: absolute; right: 5px; bottom: 4px;
    font-family: var(--num); font-size: 11px; color: rgba(253, 249, 240, .9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}
.rc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rc-name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.rc-one {
    font-family: var(--serif); font-size: 13.5px; color: var(--red-3); line-height: 1.55; margin-top: 2px;
}
.rc-from {
    display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); margin-top: 6px;
}
.rc-from .ic { width: 13px; height: 13px; }
.rc-open {
    margin-top: auto; display: inline-flex; align-items: center; gap: 3px;
    font-size: 12px; font-weight: 600; color: var(--red);
}
.rc-open .ic { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   第 6 页 · 对话
   -------------------------------------------------------------------------- */
.chat-wrap { gap: 11px; }
/* 对话页：输入框要贴住屏幕底部，所以这一页不保留通用的 96px 底部留白 */
#slide-chat .slide-inner { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.chat-people { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chat-people::-webkit-scrollbar { display: none; }
.person {
    flex-shrink: 0; display: flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 6px; border-radius: 999px; text-align: left;
    background: rgba(255, 255, 255, .94); border: 1.5px solid var(--paper-3);
    box-shadow: 0 2px 10px rgba(74, 92, 112, .1);
    transition: background .2s, border-color .2s, transform .15s;
}
.person:active { transform: scale(.97); }
.person.on { background: linear-gradient(135deg, var(--red-2), var(--red)); border-color: var(--red-2); }
.person img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person span { display: flex; flex-direction: column; line-height: 1.25; }
.person b { font-size: 13.5px; color: var(--ink); }
.person em { font-size: 10.5px; font-style: normal; color: var(--ink-3); }
.person.on b, .person.on em { color: #fff; }

/* 消息区自己滚动（不是整页滚），这样页头永远不动 */
.chat-log {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 4px 0 2px;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.chat-log::-webkit-scrollbar { display: none; }
.msg { display: flex; gap: 8px; align-items: flex-end; animation: fadeUp .35s var(--ease) both; }
.msg.me { justify-content: flex-end; }
.msg-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.msg-body {
    max-width: 78%; padding: 10px 13px; border-radius: 14px;
    font-size: 14px; line-height: 1.65; word-break: break-word;
}
.msg.bot .msg-body {
    background: #fff; color: var(--ink);
    border-bottom-left-radius: 4px; box-shadow: 0 4px 16px rgba(74, 92, 112, .16);
    border: 1px solid rgba(38, 49, 61, .06);
}
.msg.me .msg-body {
    background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff;
    border-bottom-right-radius: 4px;
}
.msg.typing .msg-body { display: flex; gap: 4px; align-items: center; padding: 13px; }
.msg.typing i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
    animation: floatY 1s ease-in-out infinite;
}
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }

.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-quick .chip { font-size: 12px; }

.chat-bar {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; gap: 8px; align-items: center;
    padding: 8px; margin-top: 4px; border-radius: 999px;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px);
    border: 1.5px solid var(--paper-3);
    box-shadow: 0 6px 22px rgba(74, 92, 112, .16);
}
.chat-input {
    flex: 1; min-width: 0; border: none; background: transparent; color: var(--ink);
    padding: 8px 12px; font-size: 15px; outline: none;
}
.chat-input::placeholder { color: var(--ink-4); }
.chat-send {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--red-2), var(--red));
    box-shadow: 0 5px 16px rgba(217, 58, 43, .42);
    transition: transform .18s var(--ease);
}
.chat-send:active { transform: scale(.92); }
.chat-mode {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--ink-3); line-height: 1.5;
}
.chat-mode .ic { width: 13px; height: 13px; flex-shrink: 0; }
.chat-mode.on { color: #3f7a33; }

/* --------------------------------------------------------------------------
   第 10 页 · 长征精神 + 证书
   -------------------------------------------------------------------------- */
.spirit-lead { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.spirit-quote {
    font-size: 12.5px; line-height: 1.75; color: var(--ink-2);
    padding: 11px 13px; border-radius: 12px;
    background: var(--sun-soft); border-left: 3px solid var(--sun);
}
.spirit-quote cite { display: block; margin-top: 6px; font-size: 11px; font-style: normal; color: var(--ink-3); }

.spirit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.spirit-card {
    position: relative; padding: 13px 12px 11px; border-radius: 14px; cursor: pointer;
    background: #fff; border: 1px solid rgba(38, 49, 61, .08);
    box-shadow: 0 3px 14px rgba(74, 92, 112, .1);
    display: flex; flex-direction: column; gap: 4px;
    transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.spirit-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(74, 92, 112, .18); }
.spirit-card:active { transform: scale(.98); }
.sc-ic {
    width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: rgba(217, 58, 43, .12); color: var(--red); margin-bottom: 3px;
}
.sc-ic .ic { width: 17px; height: 17px; }
.tone-frost .sc-ic { background: rgba(111, 185, 227, .18); color: #2b7ba8; }
.tone-army .sc-ic { background: rgba(124, 176, 105, .2); color: #3f7a33; }
.tone-gold .sc-ic { background: rgba(237, 169, 60, .2); color: #9a6a12; }
.sc-title { font-size: 15.5px; color: var(--ink); font-weight: 700; }
.sc-kid { font-size: 11.5px; line-height: 1.55; color: var(--ink-2); }
.sc-more {
    margin-top: 5px; display: inline-flex; align-items: center; gap: 2px;
    font-size: 10.5px; color: var(--ink-3);
}
.sc-more .ic { width: 12px; height: 12px; }

.wish-zone { padding: 15px 14px; border-radius: var(--r); }
.wz-title { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.wz-title .ic { width: 18px; height: 18px; color: var(--red); }
.wz-sub { font-size: 11.5px; color: var(--ink-3); margin: 5px 0 11px; line-height: 1.6; }
.wz-form { display: flex; gap: 7px; flex-wrap: wrap; }
.wz-input {
    flex: 0 1 110px; min-width: 0; padding: 9px 12px; border-radius: 10px; font-size: 13.5px;
    background: var(--paper-2); border: 1.5px solid var(--paper-3); color: var(--ink);
}
.wz-input.wz-wide { flex: 1 1 150px; }
.wz-input::placeholder { color: var(--ink-4); }
.wz-input:focus { outline: none; border-color: var(--sky); background: #fff; }
.wz-form .btn { padding: 9px 16px; font-size: 14px; }
.wish-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 150px; overflow-y: auto; }
.wish {
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--ink-2); line-height: 1.5;
    padding: 7px 10px; border-radius: 9px; background: var(--paper-2);
    animation: fadeUp .4s var(--ease) both;
}
.wish .ic { width: 13px; height: 13px; color: var(--sun); flex-shrink: 0; }
.wish b { color: var(--red); font-weight: 600; }
.wish-empty { font-size: 12px; color: var(--ink-4); }

.final-acts { display: flex; flex-direction: column; gap: 9px; }
.final-progress { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fp-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; color: var(--ink-2);
    padding: 5px 11px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
}
.fp-item .ic { width: 13px; height: 13px; }

/* 证书 */
.cert { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); }
.cert-inner {
    position: relative; padding: 34px 26px 62px;
    background-size: cover; background-position: center;
    background-color: #f7f2e6;
    border: 8px solid #efe4cb; border-radius: 8px;
    text-align: center;
}
.cert-top { font-size: 11.5px; letter-spacing: .18em; color: #8a7048; }
.cert-title {
    font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: .16em;
    color: #9c1c20; margin: 10px 0 18px;
}
.cert-name {
    font-family: var(--serif); font-size: 25px; font-weight: 700; color: #2b2b2b;
    display: inline-block; min-width: 150px; padding: 0 10px 5px;
    border-bottom: 2px solid #b01f24;
}
.cert-event { font-size: 12.5px; color: #6b5c45; margin-top: 12px; }
.cert-line { font-size: 12.5px; line-height: 1.8; color: #4a4438; margin: 2px 0; }
.cert-gap { height: 6px; }
.cert-stats {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
    margin: 18px 0 10px;
}
.cert-stats span {
    font-size: 11.5px; color: #7a6a4e; padding: 4px 11px; border-radius: 999px;
    background: rgba(217, 58, 43, .07); border: 1px solid rgba(217, 58, 43, .16);
}
.cert-date { font-size: 11.5px; color: #8a7a5e; }
.cert-seal {
    position: absolute; right: 22px; bottom: 20px;
    width: 66px; height: 66px; border-radius: 50%;
    display: grid; place-items: center; padding: 8px;
    font-family: var(--serif); font-size: 11px; line-height: 1.25; text-align: center;
    color: #fff6ef; background: #b01f24; letter-spacing: .02em;
    box-shadow: inset 0 0 0 3px rgba(255, 240, 220, .42), 0 3px 10px rgba(140, 20, 24, .3);
    transform: rotate(-9deg);
}

/* --------------------------------------------------------------------------
   第 7 页 · 飞夺泸定桥（科普页，无游戏）
   -------------------------------------------------------------------------- */
.ld-figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.ld-figure img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ld-figure figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 30px 14px 11px; font-size: 11.5px; color: #fff;
    background: linear-gradient(180deg, transparent, rgba(20, 26, 34, .72));
    letter-spacing: .04em;
}
.ld-lead { font-size: 15px; line-height: 1.8; color: var(--ink-2); }

.ld-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ld-fact { padding: 11px 12px; display: flex; flex-direction: column; gap: 3px; }
.ld-fact-n {
    font-family: var(--num); font-size: 27px; font-weight: 700; color: var(--red);
    line-height: 1; display: flex; align-items: baseline; gap: 2px;
}
.ld-fact-n em { font-size: 13px; font-style: normal; color: var(--red-2); }
.ld-fact-t { font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }

.ld-h {
    display: flex; align-items: center; gap: 7px;
    font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 4px;
}
.ld-h .ic { width: 17px; height: 17px; color: var(--red); }

.ld-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.ld-step { display: flex; gap: 11px; padding-bottom: 13px; position: relative; }
.ld-step::before {
    content: ""; position: absolute; left: 5px; top: 15px; bottom: 0; width: 1.5px;
    background: linear-gradient(180deg, var(--red-2), rgba(217, 58, 43, .12));
}
.ld-step:last-child { padding-bottom: 0; }
.ld-step:last-child::before { display: none; }
.ld-step-d {
    flex-shrink: 0; width: 62px; font-size: 11px; font-weight: 700; color: var(--red);
    padding-top: 1px; line-height: 1.5;
}
.ld-step-b { flex: 1; min-width: 0; position: relative; padding-left: 12px; }
.ld-step-b::before {
    content: ""; position: absolute; left: -7px; top: 6px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red); box-shadow: 0 0 0 3px rgba(217, 58, 43, .16);
}
.ld-step-b b { display: block; font-size: 14.5px; color: var(--ink); }
.ld-step-b span { display: block; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); margin-top: 2px; }

.ld-men { padding: 14px 13px; }
.ld-men-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.ld-men-photo {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
    box-shadow: var(--shadow); border: 2px solid #fff;
}
.ld-men-h { display: block; font-size: 16px; color: var(--ink); }
.ld-men-grid { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; }
.ld-man {
    display: block; aspect-ratio: 1; border-radius: 3px;
    background: linear-gradient(160deg, var(--red-2), var(--red));
    box-shadow: 0 2px 5px rgba(217, 58, 43, .3);
}
.ld-man.fell {
    background: transparent; border: 1.5px dashed rgba(217, 58, 43, .5);
    box-shadow: none;
}
.ld-men-legend {
    display: flex; gap: 14px; flex-wrap: wrap; margin-top: 11px;
    font-size: 11.5px; color: var(--ink-3);
}
.ld-men-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ld-men-legend .ld-man { width: 13px; height: 13px; aspect-ratio: auto; }
.ld-men-note { font-size: 12.5px; line-height: 1.75; color: var(--ink-2); margin-top: 11px; }

.ld-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ld-shot { margin: 0; }
.ld-shot img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.ld-shot figcaption { font-size: 11px; line-height: 1.55; color: var(--ink-3); margin-top: 5px; }

.ld-close {
    font-family: var(--serif); font-size: 13.5px; line-height: 1.9; color: var(--ink-2);
    padding: 12px 13px; border-radius: 12px;
    background: var(--sun-soft); border-left: 3px solid var(--sun);
}

/* 打印：只留证书 */
@media print {
    body * { visibility: hidden !important; }
    .modal-mask, .modal-mask * { visibility: visible !important; }
    .modal-mask { position: absolute !important; inset: 0 !important; background: none !important; padding: 0 !important; }
    .modal { box-shadow: none !important; border: none !important; max-height: none !important; width: 100% !important; }
    .modal-title:empty, .modal-actions, .hint { display: none !important; }
    .confetti, #toast, .deck-shell { display: none !important; }
}
