/* ============================================================
   magpress · 编辑部杂志风模板样式（对标 TEMPLATE-018 类名体系）
   5 套配色（body[data-theme=1..5]）× 5 种首页版式（body.lay-a..e）
   ============================================================ */

/* ---------- 基础变量（主题 1 湖屿青默认值） ---------- */
:root {
    --t-ink: #10201E;
    --t-paper: #F6F3EC;
    --t-card: #FFFFFF;
    --t-accent: #0F766E;
    --t-accent-soft: #D7E8E4;
    --t-gold: #B98A2F;
    --t-text: #1F2A28;
    --t-text2: #5C6B67;
    --t-line: #DDD6C7;
    --t-dark: #0E2622;
    --t-dark-ink: #E8EFEA;
    --t-hero-mask: linear-gradient(180deg, rgba(10, 26, 24, .05) 20%, rgba(10, 26, 24, .82) 100%);
    --t-num-grad: linear-gradient(135deg, #0E2622 0%, #114B45 100%);
    --t-grad: linear-gradient(135deg, #0F766E 0%, #134E4A 100%);
    --t-serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", SimSun, serif;
    --t-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --t-shadow: 0 10px 30px rgba(16, 32, 30, .08);
    --t-radius: 14px;
}

/* ---------- 主题 2 午夜藏蓝 × 鎏金 ---------- */
body[data-theme="2"] {
    --t-ink: #111A2E;
    --t-paper: #F3F4F8;
    --t-card: #FFFFFF;
    --t-accent: #1B2A4A;
    --t-accent-soft: #DDE3F0;
    --t-gold: #C9A227;
    --t-text: #1C2333;
    --t-text2: #5B6373;
    --t-line: #D8DCE6;
    --t-dark: #101828;
    --t-dark-ink: #E9ECF5;
    --t-hero-mask: linear-gradient(180deg, rgba(12, 18, 34, .06) 20%, rgba(12, 18, 34, .84) 100%);
    --t-num-grad: linear-gradient(135deg, #101828 0%, #1B2A4A 100%);
    --t-grad: linear-gradient(135deg, #1B2A4A 0%, #C9A227 160%);
}

/* ---------- 主题 3 酒红报纸（深色刊面） ---------- */
body[data-theme="3"] {
    --t-ink: #2A0E16;
    --t-paper: #FAF6F1;
    --t-card: #FFFFFF;
    --t-accent: #7C2D3E;
    --t-accent-soft: #F0DCE0;
    --t-gold: #C07A3C;
    --t-text: #2B2022;
    --t-text2: #6E5E60;
    --t-line: #E4D8CE;
    --t-dark: #2A0E16;
    --t-dark-ink: #F3E9E4;
    --t-hero-mask: linear-gradient(180deg, rgba(38, 10, 18, .05) 20%, rgba(38, 10, 18, .85) 100%);
    --t-num-grad: linear-gradient(135deg, #2A0E16 0%, #5A1E2E 100%);
    --t-grad: linear-gradient(135deg, #7C2D3E 0%, #4A1522 100%);
}

/* ---------- 主题 4 松林墨绿 × 琥珀 ---------- */
body[data-theme="4"] {
    --t-ink: #0E1F16;
    --t-paper: #F2F5F0;
    --t-card: #FFFFFF;
    --t-accent: #14532D;
    --t-accent-soft: #DCE9DE;
    --t-gold: #D97706;
    --t-text: #1E2A22;
    --t-text2: #5A6A5F;
    --t-line: #D6DFD6;
    --t-dark: #0E1F16;
    --t-dark-ink: #E7F0E8;
    --t-hero-mask: linear-gradient(180deg, rgba(10, 24, 16, .05) 20%, rgba(10, 24, 16, .84) 100%);
    --t-num-grad: linear-gradient(135deg, #0E1F16 0%, #14532D 100%);
    --t-grad: linear-gradient(135deg, #15803D 0%, #14532D 100%);
}

/* ---------- 主题 5 靛蓝夜空 × 珊瑚 ---------- */
body[data-theme="5"] {
    --t-ink: #171634;
    --t-paper: #F4F4FA;
    --t-card: #FFFFFF;
    --t-accent: #312E81;
    --t-accent-soft: #E0E0F2;
    --t-gold: #F0653F;
    --t-text: #23223B;
    --t-text2: #62617C;
    --t-line: #DBDBEA;
    --t-dark: #171634;
    --t-dark-ink: #EBEAF7;
    --t-hero-mask: linear-gradient(180deg, rgba(18, 16, 44, .05) 20%, rgba(18, 16, 44, .85) 100%);
    --t-num-grad: linear-gradient(135deg, #171634 0%, #312E81 100%);
    --t-grad: linear-gradient(135deg, #4338CA 0%, #312E81 100%);
}

/* ----------  resets / 基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--t-paper);
    color: var(--t-text);
    font-family: var(--t-sans);
    font-size: 16px;
    line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--t-accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--t-serif); line-height: 1.35; color: var(--t-ink); }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.t-sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.t-skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--t-accent); color: #fff; padding: 8px 16px;
}
.t-skip-link:focus { left: 8px; }

/* ---------- 阅读进度条 ---------- */
.t-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 96;
    background: var(--t-gold); transform: scaleX(0); transform-origin: 0 50%;
    opacity: 0;
}
.t-progress.is-on { opacity: 1; }

/* ---------- 顶部细线信息栏 ---------- */
.t-topline {
    background: var(--t-ink); color: var(--t-dark-ink);
    font-size: 12.5px; letter-spacing: .04em;
}
.t-topline-in {
    display: flex; align-items: center; gap: 18px;
    min-height: 38px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px;
}
.t-topline-date { font-family: var(--t-serif); }
.t-topline-motto { opacity: .78; }
.t-topline-links { margin-left: auto; display: flex; gap: 16px; }
.t-topline-links a { color: var(--t-dark-ink); opacity: .85; }
.t-topline-links a:hover { opacity: 1; color: var(--t-gold); }

/* ---------- 主导航 ---------- */
.t-header {
    position: sticky; top: 0; z-index: 90;
    background: var(--t-card);
    border-bottom: 1px solid var(--t-line);
}
.t-header.is-stuck { box-shadow: 0 6px 18px rgba(15, 25, 23, .08); }
.t-header-in {
    display: flex; align-items: center; gap: 22px;
    min-height: 74px; padding-top: 10px; padding-bottom: 10px;
}
.t-logo { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.t-logo-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--t-accent); align-self: center; flex: none;
}
.t-logo-text {
    font-family: var(--t-serif); font-weight: 700; font-size: 21px;
    color: var(--t-ink); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 420px;
}
.t-nav { margin-left: auto; }
.t-nav-list { display: flex; gap: 4px; }
.t-nav-link {
    position: relative; display: block; padding: 8px 13px;
    font-size: 15.5px; color: var(--t-text);
}
.t-nav-link::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px;
    height: 2px; background: var(--t-accent);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s ease;
}
.t-nav-link:hover::after, .t-nav-link.is-active::after { transform: scaleX(1); }
.t-nav-link.is-active { color: var(--t-accent); font-weight: 600; }
.t-header-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.t-search {
    display: flex; align-items: center;
    background: var(--t-paper); border: 1px solid var(--t-line);
    border-radius: 999px; padding: 3px 3px 3px 14px;
}
.t-search-input {
    border: 0; background: transparent; outline: none;
    font-size: 14px; width: 170px; color: var(--t-text);
}
.t-search-btn {
    display: grid; place-items: center; width: 32px; height: 32px;
    border: 0; border-radius: 50%; background: var(--t-accent); color: #fff;
}
.t-search-btn:hover { background: var(--t-ink); }
.t-search--side, .t-search--page { border-radius: 10px; padding: 6px; }
.t-search--side .t-search-input { width: 100%; }
.t-search--page .t-search-input { flex: 1; width: auto; height: 44px; padding-left: 8px; }
.t-search--page .t-search-btn { width: 96px; height: 44px; border-radius: 8px; font-size: 15px; }

/* 汉堡抽屉（纯 CSS :checked，关 JS 也可用） */
.t-nav-state { position: absolute; opacity: 0; pointer-events: none; }
.t-nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.t-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--t-ink); transition: transform .2s ease; }
.t-nav-overlay {
    position: fixed; inset: 0; z-index: 88;
    background: rgba(10, 20, 18, .45);
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
#navState:checked ~ .t-nav { transform: translateX(0); }
body:has(#navState:checked) .t-nav-overlay { opacity: 1; pointer-events: auto; }

/* ---------- 封面特写 ---------- */
.t-cover { padding-top: 30px; }
.t-cover-in { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 26px; align-items: stretch; }
.t-cover-stage {
    position: relative; overflow: hidden; border-radius: var(--t-radius);
    background: var(--t-ink); height: 430px;
    box-shadow: var(--t-shadow);
}
.t-cover-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.t-cover-slide:first-child, .t-cover-slide.is-active { opacity: 1; z-index: 1; }
.t-cover-slide img { width: 100%; height: 100%; object-fit: cover; }
.t-cover-mask { position: absolute; inset: 0; background: var(--t-hero-mask); }
.t-cover-copy {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 20px 26px 24px; color: #fff;
}
.t-cover-copy h2 { margin: 6px 0 6px; font-size: 24px; }
.t-cover-copy h2 a { color: #fff; }
.t-cover-copy h2 a:hover { color: var(--t-gold); }
.t-cover-copy p { color: rgba(255, 255, 255, .86); font-size: 14.5px; max-width: 640px; }
.t-kicker {
    display: inline-block; font-size: 11.5px; letter-spacing: .22em;
    color: var(--t-gold); text-transform: uppercase;
}
.t-cover-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(10, 20, 18, .35); color: #fff; display: grid; place-items: center;
}
.t-cover-arrow:hover { background: var(--t-accent); }
.t-cover-arrow--prev { left: 14px; }
.t-cover-arrow--next { right: 14px; }
.t-cover-dots { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: flex; gap: 8px; }
.t-cover-dots .dot {
    width: 22px; height: 4px; border-radius: 2px; border: 0;
    background: rgba(255, 255, 255, .4); padding: 0;
}
.t-cover-dots .dot.is-on { background: var(--t-gold); }

/* 本期头条 */
.t-headline {
    background: var(--t-card); border: 1px solid var(--t-line);
    border-radius: var(--t-radius); padding: 22px 22px 18px;
    box-shadow: var(--t-shadow); display: flex; flex-direction: column;
}
.t-headline-h {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--t-ink);
}
.t-headline-h span { margin-left: auto; font-size: 10.5px; letter-spacing: .2em; color: var(--t-text2); font-family: var(--t-sans); }
.t-headline-list { counter-reset: hl; flex: 1; }
.t-headline-item { border-bottom: 1px dashed var(--t-line); }
.t-headline-item a { display: flex; gap: 14px; padding: 13px 2px; align-items: baseline; }
.t-headline-item a::before {
    counter-increment: hl; content: counter(hl, decimal-leading-zero);
    font-family: var(--t-serif); font-size: 21px; color: var(--t-gold); min-width: 32px;
}
.t-headline-title { font-style: normal; font-size: 15.5px; color: var(--t-text); display: block; }
.t-headline-item a:hover .t-headline-title { color: var(--t-accent); }
.t-headline-time { display: block; font-size: 12px; color: var(--t-text2); margin-top: 2px; }
.t-headline-more { margin-top: 12px; }
.t-more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--t-accent); font-weight: 600;
}
.t-more:hover { gap: 10px; }

/* ---------- 广告位占位 ---------- */
.t-ad {
    display: grid; place-items: center; border: 1px dashed var(--t-line);
    border-radius: 10px; color: var(--t-text2); font-size: 12.5px;
    background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(128, 128, 128, .04) 12px 24px);
    margin: 26px auto;
}
.t-ad--wide { min-height: 90px; }
.t-ad--mid { min-height: 72px; }
.t-rail .t-ad { min-height: 220px; margin: 0 0 22px; }

/* ---------- Bento 便当拼贴 ---------- */
.t-bento {
    display: grid; gap: 18px; margin-top: 10px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "ink media1 teal teal"
        "line media1 tall tall"
        "line media3 media3 media3";
}
.t-bento-card {
    border-radius: var(--t-radius); overflow: hidden; position: relative;
    background: var(--t-card); border: 1px solid var(--t-line);
    box-shadow: var(--t-shadow); display: flex; flex-direction: column;
}
.t-bento-card--ink {
    grid-area: ink; background: var(--t-ink); color: var(--t-dark-ink);
    border-color: transparent; justify-content: center; padding: 24px;
}
.t-bento-card--teal { grid-area: teal; background: var(--t-grad); border-color: transparent; color: #fff; justify-content: center; padding: 24px 28px; }
.t-bento-card--line { grid-area: line; padding: 20px 22px; }
.t-bento-card--media { padding: 0; position: relative; }
.t-bento-card--media:nth-of-type(2) { grid-area: media1; }
.t-bento-card--media:nth-of-type(4) { grid-area: tall; }
.t-bento-card--media:nth-of-type(6) { grid-area: media3; }
.t-bento-card--media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-bento-card--media h3 { position: relative; z-index: 1; margin-top: auto; padding: 34px 16px 14px; font-size: 16.5px; background: linear-gradient(180deg, rgba(10, 20, 18, 0) 0%, rgba(10, 20, 18, .62) 100%); }
.t-bento-card--media h3 a { color: #fff; }
.t-bento-card--media h3 a:hover { color: var(--t-gold); }
.t-bento-big { font-family: var(--t-serif); font-size: 54px; line-height: 1; color: #fff; }
.t-bento-big span { font-size: 18px; margin-left: 6px; opacity: .8; }
.t-bento-label { font-size: 13px; opacity: .82; margin-top: 8px; }
.t-bento-quote { font-family: var(--t-serif); font-size: 19px; line-height: 1.6; margin: 10px 0 4px; }
.t-bento-card--line h3 { font-size: 17px; padding-bottom: 10px; border-bottom: 2px solid var(--t-ink); margin-bottom: 10px; }
.t-bento-list li { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--t-line); }
.t-bento-list time { color: var(--t-gold); font-family: var(--t-serif); min-width: 76px; }

/* ---------- 深度专题 ---------- */
.t-section-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--t-ink); }
.t-section-h h2 { font-size: 23px; }
.t-section-h span { font-size: 11px; letter-spacing: .24em; color: var(--t-text2); }
.t-deep { padding-top: 44px; }
.t-deep-row {
    display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px;
    align-items: center; padding: 26px 0;
    border-bottom: 1px solid var(--t-line);
}
.t-deep-row:last-child { border-bottom: 0; }
.t-deep-row--rev .t-deep-fig { order: 2; }
.t-deep-fig { overflow: hidden; border-radius: var(--t-radius); box-shadow: var(--t-shadow); }
.t-deep-fig img { width: 100%; height: 300px; object-fit: cover; transition: transform .5s ease; }
.t-deep-row:hover .t-deep-fig img { transform: scale(1.03); }
.t-deep-body h3 { font-size: 22px; margin: 8px 0 10px; }
.t-deep-body h3 a:hover { color: var(--t-accent); }
.t-deep-body blockquote {
    font-family: var(--t-serif); font-size: 16.5px; color: var(--t-accent);
    border-left: 3px solid var(--t-gold); padding: 4px 0 4px 14px; margin-bottom: 12px;
}
.t-deep-body p { color: var(--t-text2); font-size: 14.5px; }
.t-deep-meta { font-size: 12.5px !important; opacity: .8; margin: 8px 0 10px; }

/* ---------- 数据排印带 ---------- */
.t-numbers { background: var(--t-num-grad); color: var(--t-dark-ink); padding: 46px 0; margin-top: 44px; }
.t-numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.t-num strong { display: block; font-family: var(--t-serif); font-size: 46px; color: #fff; line-height: 1.2; }
.t-num span { font-size: 13.5px; letter-spacing: .12em; opacity: .78; }

/* ---------- 报纸式新闻流 ---------- */
.t-press { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; padding-top: 46px; }
.t-press-list { display: flex; flex-direction: column; }
.t-press-item {
    display: grid; grid-template-columns: 74px minmax(0, 1fr) 150px; gap: 18px;
    padding: 18px 0; border-bottom: 1px solid var(--t-line); align-items: center;
}
.t-press-date { text-align: center; border-right: 1px dashed var(--t-line); padding-right: 12px; }
.t-press-date strong { display: block; font-family: var(--t-serif); font-size: 30px; color: var(--t-ink); line-height: 1.1; }
.t-press-date span { font-size: 11.5px; color: var(--t-text2); letter-spacing: .08em; }
.t-press-body h3 { font-size: 18.5px; margin-bottom: 6px; }
.t-press-body h3 a:hover { color: var(--t-accent); }
.t-press-body p { font-size: 14px; color: var(--t-text2); }
.t-press-more { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; color: var(--t-gold); margin-top: 6px; }
.t-press-thumb img { width: 150px; height: 100px; object-fit: cover; border-radius: 10px; }
.t-press-thumb:hover img { filter: saturate(1.1); }

/* 侧栏 */
.t-rail { display: flex; flex-direction: column; }
.t-widget {
    background: var(--t-card); border: 1px solid var(--t-line);
    border-radius: var(--t-radius); padding: 20px 20px 16px; margin-bottom: 22px;
    box-shadow: var(--t-shadow);
}
.t-widget-h {
    display: flex; align-items: baseline; gap: 10px; font-size: 18px;
    padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--t-ink);
}
.t-widget-h span { margin-left: auto; font-size: 10px; letter-spacing: .18em; color: var(--t-text2); font-family: var(--t-sans); }
.t-rank { counter-reset: rk; }
.t-rank-item { border-bottom: 1px dashed var(--t-line); }
.t-rank-item:last-child { border-bottom: 0; }
.t-rank-item a { display: flex; padding: 10px 0; gap: 12px; }
.t-rank-item a::before {
    counter-increment: rk; content: counter(rk, decimal-leading-zero);
    font-family: var(--t-serif); font-size: 19px; color: var(--t-gold); min-width: 28px; line-height: 1.4;
}
.t-rank-title { font-style: normal; font-size: 14.5px; display: block; color: var(--t-text); }
.t-rank-item a:hover .t-rank-title { color: var(--t-accent); }
.t-rank-meta { font-size: 12px; color: var(--t-text2); }
.t-widget-tip { font-size: 12.5px; color: var(--t-text2); margin-top: 10px; }
.t-tagcloud { display: flex; flex-wrap: wrap; gap: 9px; }
.t-tagchip {
    font-size: 13px; padding: 5px 12px; border-radius: 999px;
    background: var(--t-paper); border: 1px solid var(--t-line); color: var(--t-text2);
}
.t-tagchip:hover { background: var(--t-accent); border-color: var(--t-accent); color: #fff; }

/* ---------- 封面故事横向轨道 ---------- */
.t-reel-wrap { padding-top: 46px; }
.t-reel {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 12px; cursor: grab; scrollbar-width: none;
}
.t-reel::-webkit-scrollbar { display: none; }
.t-reel-card {
    flex: 0 0 300px; scroll-snap-align: start; position: relative;
    border-radius: var(--t-radius); overflow: hidden; background: var(--t-ink);
    box-shadow: var(--t-shadow);
}
.t-reel-card img { width: 100%; height: 188px; object-fit: cover; opacity: .92; }
.t-reel-play {
    position: absolute; top: 74px; left: 50%; transform: translateX(-50%);
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .88); color: var(--t-accent);
}
.t-reel-card h3 { padding: 12px 16px 15px; font-size: 15.5px; color: #fff; }
.t-reel-card h3 a { color: #fff; }
.t-reel-card h3 a:hover { color: var(--t-gold); }
.t-reel-bar { height: 3px; background: var(--t-line); border-radius: 2px; overflow: hidden; }
.t-reel-bar i { display: block; height: 100%; width: 30%; background: var(--t-accent); border-radius: 2px; }

/* ---------- 专题索引 ---------- */
.t-index { padding-top: 46px; }
.t-index .t-section-h, .t-topic-board .t-section-h { display: block; border-bottom: 1px solid var(--t-ink); padding-bottom: 14px; }
.t-index .t-section-h h2, .t-topic-board .t-section-h h2 { display: inline; font-size: 23px; }
.t-index .t-section-h span, .t-topic-board .t-section-h span { display: inline-block; margin-left: 14px; letter-spacing: .24em; font-size: 11px; color: var(--t-accent); }
.t-index-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.t-index-list li {
    display: flex; align-items: baseline; gap: 10px; padding: 13px 0;
    border-bottom: 1px solid var(--t-line); font-size: 15.5px;
}
.t-index-list a:hover { color: var(--t-accent); }
.t-dots { flex: 1 1 auto; min-width: 24px; border-bottom: 1px dotted var(--t-text2); opacity: .45; transform: translateY(-4px); }
.t-index-list span { color: var(--t-text2); font-size: 12.5px; flex: none; }

/* ---------- 内页横幅 + 面包屑 ---------- */
.t-strip { background: var(--t-num-grad); color: var(--t-dark-ink); padding: 40px 0 34px; }
.t-strip-issue { font-size: 12px; letter-spacing: .24em; opacity: .75; }
.t-strip-title { font-size: 30px; color: #fff; margin: 6px 0 10px; }
.t-crumbs { font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.t-crumbs a { opacity: .85; }
.t-crumbs a:hover { color: var(--t-gold); opacity: 1; }
.t-crumbs em { font-style: normal; opacity: .5; }
.t-crumbs span { opacity: .95; }

/* ---------- 内页布局 ---------- */
.t-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; padding-top: 30px; padding-bottom: 50px; }
.t-post {
    border: 1px solid var(--t-line); border-radius: var(--t-radius);
    background: var(--t-card); margin-bottom: 16px; overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}
.t-post:hover { box-shadow: var(--t-shadow); transform: translateY(-2px); }
.t-post-link { display: grid; grid-template-columns: 74px minmax(0, 1fr) 190px; gap: 16px; padding: 16px 18px; align-items: center; }
.t-post-date { text-align: center; border-right: 1px dashed var(--t-line); padding-right: 10px; }
.t-post-date strong { display: block; font-family: var(--t-serif); font-size: 27px; color: var(--t-ink); line-height: 1.15; }
.t-post-date span { font-size: 11.5px; color: var(--t-text2); }
.t-post-body h3 { font-size: 17.5px; margin-bottom: 5px; }
.t-post-body p { font-size: 13.5px; color: var(--t-text2); }
.t-post-more { font-size: 12.5px; color: var(--t-gold); }
.t-post-media img { width: 190px; height: 122px; object-fit: cover; border-radius: 10px; }
.t-list-intro { font-size: 14px; color: var(--t-text2); margin-bottom: 16px; }
.t-empty {
    font-size: 14px; color: var(--t-text2); background: var(--t-accent-soft);
    border-radius: 10px; padding: 14px 18px; margin-bottom: 18px;
}
.t-pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 22px 0 6px; font-size: 14px; }
.t-pager a, .t-pager span {
    display: inline-block; padding: 7px 14px; border-radius: 8px;
    border: 1px solid var(--t-line); background: var(--t-card); color: var(--t-text2);
}
.t-pager .cur, .t-pager a:hover, .t-pager span:hover { background: var(--t-accent); border-color: var(--t-accent); color: #fff; }
.t-seo-note {
    margin-top: 26px; padding: 20px 22px; border-radius: var(--t-radius);
    background: var(--t-card); border: 1px solid var(--t-line);
}
.t-seo-note h2 { font-size: 17px; margin-bottom: 6px; }
.t-seo-note p { font-size: 13.5px; color: var(--t-text2); }

/* ---------- 详情页 ---------- */
.t-content-main {
    background: var(--t-card); border: 1px solid var(--t-line);
    border-radius: var(--t-radius); padding: 30px 34px 34px; box-shadow: var(--t-shadow);
}
.t-article-cat {
    display: inline-block; font-size: 12.5px; padding: 4px 12px; border-radius: 999px;
    background: var(--t-accent-soft); color: var(--t-accent); font-weight: 600;
}
.t-article-title { font-size: 29px; margin: 12px 0 10px; }
.t-article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--t-text2); padding-bottom: 14px; border-bottom: 1px dashed var(--t-line); }
.t-article-abstract {
    margin-top: 14px; padding: 13px 18px; border-radius: 10px;
    background: var(--t-paper); border-left: 3px solid var(--t-gold);
    font-size: 14.5px; color: var(--t-text);
}
.t-article-content { padding-top: 18px; font-size: 16.5px; }
.t-article-content p { margin: 0 0 16px; }
.t-article-content h2, .t-article-content h3 { font-size: 20px; margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--t-accent); }
.t-article-content img { border-radius: 10px; margin: 10px auto; width: 100%; }
.t-article-content figure { margin: 18px 0; }
.t-article-content figcaption { font-size: 12.5px; color: var(--t-text2); text-align: center; margin-top: 6px; }
.t-article-content ul, .t-article-content ol { margin: 0 0 16px; padding-left: 22px; }
.t-article-content ul { list-style: disc; }
.t-article-content ol { list-style: decimal; }
.t-article-content li { margin-bottom: 6px; }
.t-article-content blockquote {
    font-family: var(--t-serif); color: var(--t-accent); background: var(--t-paper);
    border-left: 4px solid var(--t-accent); border-radius: 8px; padding: 12px 18px; margin: 0 0 16px;
}
.t-article-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.t-article-content th, .t-article-content td { border: 1px solid var(--t-line); padding: 8px 10px; text-align: left; }
.t-article-content th { background: var(--t-paper); }
.t-article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 18px 0 4px; font-size: 13.5px; }
.t-article-tags strong { color: var(--t-text2); font-weight: 500; }
.t-article-tags a {
    padding: 4px 12px; border-radius: 999px; background: var(--t-paper);
    border: 1px solid var(--t-line); color: var(--t-text2); font-size: 12.5px;
}
.t-article-tags a:hover { background: var(--t-accent); color: #fff; border-color: var(--t-accent); }
.t-article-neighbor { display: flex; gap: 14px; flex-wrap: wrap; padding: 18px 0 4px; }
.t-neighbor-item {
    flex: 1 1 240px; display: block; padding: 12px 16px; border-radius: 10px;
    background: var(--t-paper); border: 1px solid var(--t-line); font-size: 14px;
}
.t-neighbor-item span { display: block; font-size: 12px; color: var(--t-text2); }
.t-neighbor-item strong { font-weight: 600; color: var(--t-ink); }
.t-neighbor-item:hover { border-color: var(--t-accent); }
.t-related { padding-top: 26px; }
.t-related-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--t-ink); margin-bottom: 16px; }
.t-related-head h2 { font-size: 19px; }
.t-related-head small { color: var(--t-text2); letter-spacing: .18em; font-size: 11px; }
.t-related-head .t-more { margin-left: auto; }
.t-cta-banner {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    margin-top: 26px; padding: 20px 24px; border-radius: var(--t-radius);
    background: var(--t-num-grad); color: var(--t-dark-ink);
}
.t-cta-banner h2 { color: #fff; font-size: 19px; }
.t-cta-banner p { font-size: 13.5px; opacity: .85; }
.t-cta-btn {
    margin-left: auto; flex: none; padding: 10px 20px; border-radius: 999px;
    background: var(--t-gold); color: #161310; font-weight: 600; font-size: 14.5px;
}
.t-cta-btn:hover { filter: brightness(1.08); color: #161310; }

/* ---------- 专题看板 / 检索页 ---------- */
.t-topic-board, .t-latest-block, .t-search-panel {
    background: var(--t-card); border: 1px solid var(--t-line);
    border-radius: var(--t-radius); padding: 22px 24px; margin-bottom: 22px;
}
.t-search-panel form { display: flex; gap: 10px; }
.t-tip { font-size: 12.5px; color: var(--t-text2); margin-top: 10px; }

/* ---------- 页脚 ---------- */
.t-footer { background: var(--t-dark); color: var(--t-dark-ink); margin-top: 50px; padding-top: 44px; position: relative; }
.t-footer-word {
    font-family: var(--t-serif); font-size: clamp(34px, 6vw, 74px); line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16);
    white-space: nowrap; overflow: hidden; text-align: center; padding-bottom: 26px;
}
.t-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.t-footer-name { font-family: var(--t-serif); font-size: 19px; color: #fff; }
.t-footer-desc { font-size: 13.5px; opacity: .72; margin-top: 8px; }
.t-footer-h { font-size: 15.5px; color: #fff; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.t-footer-col li { margin-bottom: 8px; }
.t-footer-col a { font-size: 13.5px; opacity: .78; }
.t-footer-col a:hover { opacity: 1; color: var(--t-gold); }
.t-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 0 22px; font-size: 13px; opacity: .7; }
.t-friendlink { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; line-height: 2; opacity: .74; padding: 14px 0 18px; }
.t-friendlink-label { font-weight: 600; margin-right: 8px; }
.t-friendlink a { margin-right: 14px; display: inline-block; white-space: nowrap; color: inherit; }
.t-friendlink a:hover { color: var(--t-gold); }

/* ---------- 右侧浮动工具条 ---------- */
.t-float { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.t-float-item {
    position: relative; width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; cursor: pointer;
    background: var(--t-card); color: var(--t-accent);
    border: 1px solid var(--t-line); box-shadow: var(--t-shadow); font-size: 10.5px;
}
.t-float-item:hover { background: var(--t-accent); color: #fff; }
.t-float-pop {
    position: absolute; right: 54px; top: 50%; transform: translateY(-50%) scale(.9);
    background: var(--t-ink); color: #fff; font-size: 12px; padding: 5px 12px;
    border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .2s ease;
}
.t-float-item:hover .t-float-pop, .t-float-item:focus .t-float-pop { opacity: 1; transform: translateY(-50%) scale(1); }
.t-float-top { font-family: var(--t-serif); }

/* ---------- 404 ---------- */
.t-err { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 20px; }
.t-err-kicker { font-size: 12px; letter-spacing: .3em; color: var(--t-gold); }
.t-err h1 { font-size: 34px; margin: 10px 0 12px; }
.t-err-tip { color: var(--t-text2); max-width: 520px; }
.t-err-btns { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.t-err-main {
    padding: 11px 26px; border-radius: 999px; background: var(--t-accent);
    color: #fff; font-weight: 600;
}
.t-err-ghost { padding: 11px 22px; border-radius: 999px; border: 1px solid var(--t-line); background: var(--t-card); color: var(--t-text); }
.t-err-main:hover, .t-err-ghost:hover { border-color: var(--t-accent); color: var(--t-accent); }
.t-err-main:hover { color: #fff; filter: brightness(1.08); }

/* ---------- 首页版式差异（区块重排） ---------- */
body:has(.t-cover) #main-content { display: flex; flex-direction: column; }
/* flex 重排下 align-items 默认 stretch 会把区块收缩到自身内容宽，
   必须显式满宽，否则专题索引等区块会变成窄条 */
body:has(.t-cover) #main-content > * { width: 100%; }
body.lay-a .t-cover { order: 1; }
body.lay-a .t-bento { order: 2; }
body.lay-a .t-deep { order: 3; }
body.lay-a .t-numbers { order: 4; }
body.lay-a .t-press { order: 5; }
body.lay-a .t-reel-wrap { order: 6; }
body.lay-a .t-index { order: 7; }
body.lay-b .t-cover { order: 1; }
body.lay-b .t-press { order: 2; }
body.lay-b .t-bento { order: 3; }
body.lay-b .t-numbers { order: 4; }
body.lay-b .t-deep { order: 5; }
body.lay-b .t-reel-wrap { order: 6; }
body.lay-b .t-index { order: 7; }
body.lay-c .t-cover { order: 1; }
body.lay-c .t-bento { order: 2; }
body.lay-c .t-deep { order: 3; }
body.lay-c .t-press { order: 4; }
body.lay-c .t-numbers { order: 5; }
body.lay-c .t-reel-wrap { order: 6; }
body.lay-c .t-index { order: 7; }
body.lay-d .t-cover { order: 1; }
body.lay-d .t-deep { order: 2; }
body.lay-d .t-bento { order: 3; }
body.lay-d .t-press { order: 4; }
body.lay-d .t-reel-wrap { order: 5; }
body.lay-d .t-numbers { order: 6; }
body.lay-d .t-index { order: 7; }
body.lay-e .t-cover { order: 1; }
body.lay-e .t-numbers { order: 2; }
body.lay-e .t-press { order: 3; }
body.lay-e .t-deep { order: 4; }
body.lay-e .t-bento { order: 5; }
body.lay-e .t-reel-wrap { order: 6; }
body.lay-e .t-index { order: 7; }
body.lay-b .t-press, body.lay-e .t-press { padding-top: 30px; }
body.lay-c .t-bento { margin-top: 34px; margin-bottom: 10px; }
body.lay-d .t-deep, body.lay-b .t-press { padding-top: 34px; }

/* 版式附带的形态差异（栅格比例 / 卡片形态） */
body.lay-b .t-cover-in { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr); }
body.lay-c .t-cover-in { grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); }
body.lay-d .t-bento { grid-template-columns: repeat(3, 1fr); grid-template-areas: "ink media1 media1" "tall tall line" "media3 media3 teal"; }
body.lay-e .t-bento { grid-template-columns: repeat(3, 1fr); grid-template-areas: "media1 media1 teal" "ink line tall" "media3 media3 media3"; }
body.lay-d .t-reel-card { flex-basis: 340px; }
body.lay-e .t-index-list { grid-template-columns: 1fr; }
body.lay-c .t-numbers-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .t-press { grid-template-columns: minmax(0, 1fr) 290px; }
    .t-layout { grid-template-columns: minmax(0, 1fr) 290px; }
    .t-logo-text { max-width: 300px; }
}
@media (max-width: 992px) {
    .t-cover-stage { height: 380px; }
    .t-cover-in { grid-template-columns: 1fr; }
    .t-press, .t-layout { grid-template-columns: 1fr; }
    .t-bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "ink media1" "teal media1" "line tall" "line media3"; }
    .t-bento-card--media { min-height: 190px; }
    body.lay-d .t-bento, body.lay-e .t-bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "ink media1" "teal media1" "line tall" "line media3"; }
    .t-header-in { gap: 14px; }
    .t-nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 89;
        width: min(320px, 84vw); margin: 0;
        background: var(--t-card); border-left: 1px solid var(--t-line);
        transform: translateX(102%); transition: transform .28s ease;
        padding: 76px 22px 22px; overflow-y: auto;
    }
    .t-nav-list { flex-direction: column; gap: 0; }
    .t-nav-link { padding: 13px 6px; border-bottom: 1px dashed var(--t-line); font-size: 16px; }
    .t-nav-link::after { display: none; }
    .t-nav-state:checked ~ .t-nav { transform: translateX(0); box-shadow: -18px 0 40px rgba(10, 20, 18, .18); }
    .t-nav-toggle { display: flex; }
    .t-footer-grid { grid-template-columns: 1fr 1fr; }
    .t-search-input { width: 130px; }
}
@media (max-width: 767px) {
    .t-topline-motto { display: none; }
    .t-topline-links { gap: 12px; }
    .t-logo-text { font-size: 17px; max-width: 58vw; }
    .t-header-in { min-height: 62px; }
    .t-search { display: none; }
    .t-cover-copy { padding: 16px 18px 20px; }
    .t-cover-stage { height: 300px; }
    .t-cover-copy h2 { font-size: 20px; }
    .t-cover-arrow { display: none; }
    .t-bento { grid-template-columns: 1fr; grid-template-areas: "ink" "media1" "teal" "tall" "line" "media3"; }
    .t-bento-card--media { min-height: 200px; }
    body.lay-d .t-bento, body.lay-e .t-bento { grid-template-columns: 1fr; grid-template-areas: "ink" "media1" "teal" "tall" "line" "media3"; }
    .t-deep-row, .t-deep-row--rev .t-deep-fig { grid-template-columns: 1fr; }
    .t-deep-row--rev .t-deep-fig { order: 0; }
    .t-deep-fig img { height: 220px; }
    .t-press-item { grid-template-columns: 60px minmax(0, 1fr); }
    .t-press-thumb { display: none; }
    .t-post-link { grid-template-columns: 60px minmax(0, 1fr); }
    .t-post-media { display: none; }
    .t-content-main { padding: 20px 18px 24px; }
    .t-article-title { font-size: 22px; }
    .t-index-list { grid-template-columns: 1fr; }
    .t-num strong { font-size: 34px; }
    .t-numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .t-float { right: 8px; }
    .t-float-item { width: 40px; height: 40px; }
    .t-reel-card { flex: 0 0 260px; }
    .t-footer-word { white-space: normal; }
}
@media (max-width: 560px) {
    .t-topline-date { display: none; }
    .t-strip-title { font-size: 24px; }
    .t-cta-btn { margin-left: 0; }
    .t-ad--wide { min-height: 70px; }
}
