/* =========================================================
   驱动中国 专题页样式(topic.css)
   6 种风格共用一套组件样式;风格差异由 body 主题类驱动
   ========================================================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.tp { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--tp-bg, #fff); color: #1f2430; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 预览提示条 ---------- */
.tp-banner { background: #fef3c7; color: #92400e; font-size: 13px; text-align: center; padding: 7px 12px; }
.tp-banner a { margin-left: 8px; color: #b45309; font-weight: 600; text-decoration: underline; }

/* ---------- 顶栏 ---------- */
.tp-topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(0,0,0,.06);
    position: sticky; top: 0; z-index: 50; }
.tp-topbar-inner { max-width: 1180px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 14px; }
.tp-brand { display: inline-flex; align-items: center; }
.tp-brand-chip { /* display: inline-flex; */ align-items: center; /* background: #fff; */ /* border: 1px solid rgba(0,0,0,.08); */
    /* border-radius: 6px; */ /* padding: 4px 10px; */ /* box-shadow: 0 1px 2px rgba(0,0,0,.05); */ }
.tp-brand-chip img { height: 35px; display: block; }
.tp-brand-word { font-size: 13px; color: #98a2b3; letter-spacing: 2px; }
.tp-topnav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.tp-nav-link { font-size: 13px; color: #667085; padding: 6px 12px; border-radius: 6px; }
.tp-nav-link:hover { background: rgba(0,0,0,.05); color: #1f2430; }

/* ---------- 封面区(默认:杂志大封面) ---------- */
.tp-cover { position: relative; overflow: hidden; }
.tp-cover-bg { position: absolute; inset: 0; background: var(--tp-cover-img) center/cover no-repeat,
    linear-gradient(135deg, var(--tp-accent-deep) 0%, color-mix(in srgb, var(--tp-accent) 60%, #111) 55%, #0b1020 100%); }
.tp-cover-bg::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.55)); }
.tp-cover-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 76px 20px 64px; color: #fff; }
.tp-cover-overline { font-size: 12px; letter-spacing: 4px; opacity: .75; margin-bottom: 14px; text-transform: uppercase; }
.tp-cover-title { margin: 0 0 12px; font-size: 33px; line-height: 1.22; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 18px rgba(0,0,0,.35); max-width: 900px; }
.tp-cover-subtitle { margin: 0 0 8px; font-size: 19px; font-weight: 600; opacity: .92; max-width: 760px; }
.tp-cover-summary { margin: 0; font-size: 15px; opacity: .78; max-width: 720px; }
.tp-cover-meta { margin-top: 20px; display: flex; gap: 16px; font-size: 13px; opacity: .8; }

/* 封面变体 */
.tp-cover--band { background: #fff; border-bottom: 4px solid var(--tp-accent); }
.tp-cover--band .tp-cover-title { color: #1f2430; text-shadow: none; }
.tp-cover-inner--center { /* text-align: center; */ padding: 46px 20px 40px; }
.tp-cover--band .tp-cover-subtitle, .tp-cover--band .tp-cover-summary { color: #667085; }
.tp-cover--editorial { background: #faf9f6; border-bottom: 1px solid #e7e2d8; }
.tp-cover--editorial .tp-cover-inner { max-width: 820px; padding: 60px 20px 46px; color: #1f2430; }
.tp-cover--editorial .tp-cover-title { font-family: Georgia, "Times New Roman", "Songti SC", SimSun, serif; font-size: 42px; text-shadow: none; }
.tp-cover--editorial .tp-cover-subtitle { color: #7c6a3f; }
.tp-cover--editorial .tp-cover-summary { color: #57534e; }
.tp-cover-rule { margin-top: 26px; width: 90px; height: 3px; background: var(--tp-accent); }
.tp-cover--line .tp-cover-inner { border-top: 6px solid var(--tp-accent); padding-top: 30px; max-width: 900px; color: #1f2430; }
.tp-cover--line .tp-cover-overline { color: var(--tp-accent); opacity: 1; }
.tp-cover--line .tp-cover-subtitle { color: #475569; }
.tp-cover--line .tp-cover-summary { color: #64748b; }
.tp-cover--dark .tp-cover-grid { position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px; }
.tp-cover--dark .tp-cover-inner { color: #fff; }
.tp-cover--spot { background: var(--tp-cover-img) center/cover no-repeat, #0b1020; min-height: 340px; display: flex; align-items: flex-end; }
.tp-cover--spot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.66)); }
.tp-cover--spot .tp-cover-inner { width: 100%; padding-bottom: 46px; }

/* ---------- 主体流 ---------- */
.tp-main { background: var(--tp-bg, #fff); }
.tp-flow { max-width: 1080px; margin: 0 auto; padding: 20px 20px 60px; }
.tp-empty { text-align: center; color: #98a2b3; padding: 60px 0; }

/* 版块标题 */
.tp-sec-title { font-size: 22px; font-weight: 800; margin: 46px 0 6px; padding-left: 14px; border-left: 4px solid var(--tp-accent); line-height: 1.3; }
.tp-block:first-child .tp-sec-title { margin-top: 0; }

/* ---------- hero 头条 ---------- */
.tp-hero { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 30px;
    background: linear-gradient(150deg, var(--tp-accent-deep), #0f172a); color: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .18); display: flex; min-height: 260px; }
.tp-hero-media { flex: 0 0 46%; background: center/cover no-repeat; position: relative; }
.tp-hero-media::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(270deg, transparent 20%, rgba(0,0,0,.35)); }
.tp-hero-body { padding: 34px 38px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.tp-hero-tag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tp-hero-title { margin: 0 0 10px; font-size: 28px; line-height: 1.35; font-weight: 800; }
.tp-hero-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tp-hero-summary { margin: 0; font-size: 14.5px; opacity: .82; max-width: 620px; }
.tp-hero-date { font-size: 12px; opacity: .7; }

/* ---------- 通用标签 ---------- */
.tp-tag { display: inline-block; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 4px;
    background: var(--tp-accent-soft); color: var(--tp-accent-deep); font-weight: 600; }
.tp-tag--warn { background: #fef3c7; color: #b45309; }
.tp-date { font-size: 12.5px; color: #98a2b3; }

/* ---------- 列表块 ---------- */
.tp-list-item { display: flex; gap: 20px; padding: 20px 4px; border-bottom: 1px solid rgba(0,0,0,.07); }
.tp-list-item:first-child { border-top: 1px solid rgba(0,0,0,.07); }
.tp-list-main { flex: 1; min-width: 0; }
.tp-list-title { margin: 0 0 6px; font-size: 19px; line-height: 1.4; font-weight: 700; }
.tp-list-title a:hover { color: var(--tp-accent); }
.tp-list-summary { margin: 0 0 8px; font-size: 14px; color: #667085; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-list-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tp-list-thumb { flex: 0 0 150px; height: 96px; border-radius: 8px; background: center/cover no-repeat; }

/* ---------- 卡片墙 ---------- */
.tp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.tp-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 4px 14px rgba(15,23,42,.05); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.tp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,23,42,.12); }
.tp-card-media { display: block; aspect-ratio: 16/10; background: center/cover no-repeat; }
.tp-card-media--blank { background: linear-gradient(140deg, var(--tp-accent-soft), #eef1f5); display: flex; align-items: center; justify-content: center; }
.tp-card-media--blank span { font-size: 13px; color: #98a2b3; letter-spacing: 3px; }
.tp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tp-card-title { margin: 0 0 8px; font-size: 17px; line-height: 1.45; font-weight: 700; }
.tp-card-title a:hover { color: var(--tp-accent); }
.tp-card-summary { margin: 0 0 12px; font-size: 13.5px; color: #667085; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 时间线 ---------- */
.tp-timeline { position: relative; margin-top: 26px; padding-left: 0; }
.tp-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(180deg, var(--tp-accent), color-mix(in srgb, var(--tp-accent) 25%, transparent)); }
.tp-tl-item { position: relative; display: grid; grid-template-columns: 118px 1fr; gap: 24px; padding: 0 0 30px 34px; }
.tp-tl-dot { position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--tp-accent); border: 3px solid var(--tp-bg, #fff); box-shadow: 0 0 0 2px var(--tp-accent); }
.tp-tl-date { font-size: 16px; font-weight: 800; color: var(--tp-accent-deep); padding-top: 2px; white-space: nowrap; }
.tp-tl-title { margin: 0 0 6px; font-size: 18px; line-height: 1.45; font-weight: 700; }
.tp-tl-title a:hover { color: var(--tp-accent); }
.tp-tl-summary { margin: 0 0 8px; font-size: 14px; color: #667085; }
.tp-tl-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 富文本 ---------- */
.tp-rich { background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: 12px; padding: 26px 30px; margin-top: 8px;
    font-size: 15.5px; color: #334155; }
.tp-rich p { margin: 0 0 .9em; }
.tp-rich h2, .tp-rich h3, .tp-rich h4 { color: #1f2430; line-height: 1.4; }
.tp-rich img { border-radius: 8px; }
.tp-rich blockquote { border-left: 4px solid var(--tp-accent); margin: 1em 0; padding: 4px 16px; background: var(--tp-accent-soft); border-radius: 0 8px 8px 0; color: #475569; }
.tp-rich table { border-collapse: collapse; width: 100%; }
.tp-rich td, .tp-rich th { border: 1px solid #e2e8f0; padding: 8px 10px; font-size: 14px; }

/* ---------- 外链 ---------- */
.tp-links { border: 1px solid rgba(0,0,0,.08); border-radius: 12px; overflow: hidden; margin-top: 8px; }
.tp-link-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,.06); }
.tp-link-item:last-child { border-bottom: none; }
.tp-link-item:hover { background: var(--tp-accent-soft); }
.tp-link-title { font-size: 15px; font-weight: 600; }
.tp-link-note { font-size: 13px; color: #98a2b3; }
.tp-link-go { margin-left: auto; color: var(--tp-accent); font-weight: 700; }

/* ---------- 页脚 ---------- */
.tp-footer { border-top: 1px solid rgba(0,0,0,.07); background: color-mix(in srgb, var(--tp-bg, #fff) 97%, #000); }
.tp-footer-inner { max-width: 1080px; margin: 0 auto; padding: 30px 20px 36px; }
.tp-footer-brand { display: flex; align-items: center; gap: 12px; }
.tp-brand-chip--footer img { height: 22px; }
.tp-footer-word { font-weight: 700; }
.tp-footer-meta { margin-top: 10px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #667085; }
.tp-footer-copy { margin-top: 8px; font-size: 12px; color: #98a2b3; }

/* =========================================================
   主题差异
   ========================================================= */

/* -- 通栏杂志(默认,浅底) -- */
.tp--magazine { --tp-bg: #fff; --tp-text: #1f2430; }
.tp--magazine .tp-main { background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%); }

/* -- 卡片栅格:浅灰底,强化卡片 -- */
.tp--cards { --tp-bg: #eef1f5; }
.tp--cards .tp-main { background: #eef1f5; }
.tp--cards .tp-flow { max-width: 1180px; }
.tp--cards .tp-cards { grid-template-columns: repeat(4, 1fr); }
.tp--cards .tp-hero-media { flex-basis: 55%; }
.tp--cards .tp-rich { background: #fff; }

/* -- 极简学术:窄栏 + 衬线 -- */
.tp--minimal { --tp-bg: #faf9f6; }
.tp--minimal .tp-main { background: #faf9f6; }
.tp--minimal .tp-flow { max-width: 820px; }
.tp--minimal .tp-sec-title { font-family: Georgia, "Songti SC", SimSun, serif; font-size: 24px; }
.tp--minimal .tp-list-title { font-family: Georgia, "Songti SC", SimSun, serif; font-size: 21px; }
.tp--minimal .tp-hero { border-radius: 0; box-shadow: none; border: 1px solid #e7e2d8; }
.tp--minimal .tp-cards { grid-template-columns: repeat(2, 1fr); }
.tp--minimal .tp-cards .tp-card { border-radius: 2px; }
.tp--minimal .tp-rich, .tp--minimal .tp-links { border-radius: 2px; }
.tp--minimal .tp-tl-date { font-family: Georgia, serif; }

/* -- 深色科技 -- */
.tp--dark { --tp-bg: #0b1020; --tp-text: #e6eaf2; background: #0b1020; color: #e6eaf2; }
.tp--dark .tp-topbar { background: rgba(11,16,32,.86); border-bottom-color: rgba(255,255,255,.07); }
.tp--dark .tp-nav-link { color: #94a3b8; }
.tp--dark .tp-main { background: #0b1020; }
.tp--dark .tp-list-item { border-color: rgba(255,255,255,.09); }
.tp--dark .tp-list-title a { color: #e6eaf2; }
.tp--dark .tp-list-title a:hover { color: var(--tp-accent); text-shadow: 0 0 14px var(--tp-accent); }
.tp--dark .tp-list-summary { color: #8b96ab; }
.tp--dark .tp-sec-title { color: #f1f5f9; }
.tp--dark .tp-cards .tp-card { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); box-shadow: none; }
.tp--dark .tp-card-summary { color: #8b96ab; }
.tp--dark .tp-rich { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); color: #cbd5e1; }
.tp--dark .tp-rich h2, .tp--dark .tp-rich h3 { color: #f1f5f9; }
.tp--dark .tp-links { border-color: rgba(255,255,255,.1); }
.tp--dark .tp-link-item { border-color: rgba(255,255,255,.06); }
.tp--dark .tp-footer { border-color: rgba(255,255,255,.09); background: #080c18; }
.tp--dark .tp-footer-meta { color: #94a3b8; }
.tp--dark .tp-brand-chip, .tp--spotlight .tp-brand-chip { border-color: transparent; }

/* -- 时间叙事 -- */
.tp--timeline { --tp-bg: #fff; }
.tp--timeline .tp-flow { max-width: 920px; }
.tp--timeline .tp-tl-item { grid-template-columns: 130px 1fr; }
.tp--timeline .tp-hero { border-radius: 4px; }

/* -- 焦点轮播:深色 + 滑动焦点 -- */
.tp--spotlight { --tp-bg: #0d1322; background: #0d1322; color: #e6eaf2; }
.tp--spotlight .tp-topbar { background: rgba(13,19,34,.88); border-bottom-color: rgba(255,255,255,.08); }
.tp--spotlight .tp-main { background: #0d1322; }
.tp--spotlight .tp-flow { max-width: 1080px; }
.tp--spotlight .tp-list-item { border-color: rgba(255,255,255,.1); }
.tp--spotlight .tp-list-title a { color: #f1f5f9; }
.tp--spotlight .tp-list-summary { color: #8b96ab; }
.tp--spotlight .tp-footer { background: #090d18; border-color: rgba(255,255,255,.09); }

/* 焦点轮播轨道 */
.tp-spot { max-width: 1280px; margin: -34px auto 0; padding: 0 20px; position: relative; z-index: 5; }
.tp-spot-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-bottom: 6px; border-radius: 16px; }
.tp-spot-track::-webkit-scrollbar { display: none; }
.tp-spot-slide { position: relative; flex: 1 0 86%; scroll-snap-align: center; min-height: 380px; border-radius: 16px;
    background: linear-gradient(150deg, var(--tp-accent-deep), #101a33) center/cover; display: flex; align-items: flex-end; overflow: hidden; }
.tp-spot-slide[style*="background-image"] { background-size: cover; background-position: center; }
.tp-spot-slide:first-child { flex-basis: 100%; }
.tp-spot-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(4,8,18,.88)); }
.tp-spot-body { position: relative; padding: 26px 30px 30px; }
.tp-spot-tags { margin-bottom: 12px; display: flex; gap: 8px; }
.tp-spot-title { margin: 0 0 8px; font-size: 30px; font-weight: 800; color: #fff; line-height: 1.3; }
.tp-spot-title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.tp-spot-summary { margin: 0; color: rgba(255,255,255,.8); font-size: 14.5px; max-width: 700px; }
.tp-spot-hint { text-align: center; font-size: 12px; color: #5b6a86; margin: 10px 0 0; letter-spacing: 1px; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 900px) {
    .tp-cards, .tp--cards .tp-cards { grid-template-columns: repeat(2, 1fr); }
    .tp-hero { flex-direction: column; }
    .tp-hero-media { flex-basis: auto; min-height: 180px; }
    .tp--cards .tp-hero-media { flex-basis: auto; }
}
@media (max-width: 620px) {
    .tp-cover-inner { padding: 52px 18px 44px; }
    .tp-cover-title { font-size: 30px; }
    .tp-flow { padding: 30px 16px 46px; }
    .tp-cards, .tp--cards .tp-cards, .tp--minimal .tp-cards { grid-template-columns: 1fr; }
    .tp-list-item { flex-direction: column; gap: 12px; }
    .tp-list-thumb { flex: none; width: 100%; height: 150px; }
    .tp-tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
    .tp-tl-date { padding-top: 0; }
    .tp-timeline::before { left: 6px; }
    .tp-tl-dot { left: 0; }
    .tp-rich { padding: 18px; }
    .tp-spot-slide { min-height: 300px; }
    .tp-spot-title { font-size: 22px; }
    .tp-spot-body { padding: 20px; }
}

/* ===== 专题整页宽度 1400px(2026-09-08 老板要求)===== */
.tp-topbar-inner,
.tp-cover-inner,
.tp-flow,
.tp--cards .tp-flow,
.tp--minimal .tp-flow,
.tp--timeline .tp-flow,
.tp--spotlight .tp-flow,
.tp-spot,
.tp-footer-inner {
    max-width: 1400px;
}

/* ===== 直播板块(通栏大卡) ===== */
.tp-live { position: relative; border-radius: 16px; overflow: hidden; margin: 0 0 10px; min-height: 230px; background-color: #101828; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.tp-live-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,22,.15) 0%, rgba(8,12,22,.78) 82%); }
.tp-live-body { position: relative; padding: 26px 30px; max-width: 780px; }
.tp-live-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.tp-live--live .tp-live-badge { background: #e02424; animation: tp-live-pulse 1.6s infinite; }
.tp-live--upcoming .tp-live-badge { background: #f59e0b; }
.tp-live--replay .tp-live-badge { background: #64748b; }
@keyframes tp-live-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,36,36,.45);} 50% { box-shadow: 0 0 0 8px rgba(224,36,36,0);} }
.tp-live-title { margin: 0 0 6px; font-size: 26px; line-height: 1.3; color: #fff; }
.tp-live-time { margin: 0 0 8px; font-size: 13px; color: rgba(255,255,255,.82); }
.tp-live-desc { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.72); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-live-btn { display: inline-block; background: #fff; color: #101828; font-weight: 700; font-size: 14px; padding: 9px 22px; border-radius: 999px; text-decoration: none; }
.tp-live-btn:hover { opacity: .9; }

/* ===== 自动标签列表 + 右侧评论区(双栏) ===== */
.tp-feed { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 30px; align-items: start; }
.tp-sec-sub { margin-left: 10px; font-size: 13px; font-weight: 400; color: #98a2b3; }
.tp-feed-list { display: flex; flex-direction: column; gap: 16px; }
.tp-feed-item { display: flex; gap: 14px; background: rgba(255,255,255,.6); border: 1px solid rgba(15,23,42,.07); border-radius: 12px; padding: 12px; }
.tp-feed-thumb { flex: none; width: 120px; height: 80px; border-radius: 8px; background-size: cover; background-position: center; background-color: #eef1f5; }
.tp-feed-info { min-width: 0; }
.tp-feed-title { margin: 0 0 6px; font-size: 16px; line-height: 1.45; }
.tp-feed-title a { color: inherit; text-decoration: none; }
.tp-feed-title a:hover { color: var(--tp-accent); }
.tp-feed-summary { margin: 0 0 8px; font-size: 13.5px; color: #667085; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-feed-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: #98a2b3; flex-wrap: wrap; }
.tp-feed-empty { color: #98a2b3; padding: 30px 0; text-align: center; }

/* ---- 评论区 ---- */
.tp-com-panel { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 14px; padding: 18px; }
.tp-com-hd { font-size: 16px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: baseline; gap: 8px; }
.tp-com-cnt { font-size: 12.5px; font-weight: 400; color: #98a2b3; }
.tp-com-write textarea { width: 100%; border: 1px solid #d7deea; border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; resize: vertical; box-sizing: border-box; }
.tp-com-write textarea:focus { outline: none; border-color: var(--tp-accent); }
.tp-com-write-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.tp-com-write-tip { font-size: 12px; color: #e6a23c; }
.tp-com-submit { border: 0; background: var(--tp-accent); color: #fff; font-size: 13.5px; font-weight: 600; padding: 8px 20px; border-radius: 999px; cursor: pointer; }
.tp-com-submit:disabled { opacity: .55; cursor: default; }
.tp-com-login { background: #f7fafd; border-radius: 10px; padding: 12px; font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tp-com-login-a { color: var(--tp-accent); text-decoration: none; font-weight: 600; }
.tp-com-login-tip { color: #98a2b3; font-size: 12px; width: 100%; }
.tp-com-list { margin-top: 6px; }
.tp-com-empty { color: #a3b3c6; font-size: 13.5px; padding: 26px 0; text-align: center; }
.tp-com-item { padding: 14px 0; border-bottom: 1px dashed #edf0f5; }
.tp-com-item:last-child { border-bottom: 0; }
.tp-com-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tp-com-av { width: 30px; height: 30px; border-radius: 50%; background-size: cover; }
.tp-com-av--fb { display: inline-flex; align-items: center; justify-content: center; background: var(--tp-accent); color: #fff; font-size: 14px; font-weight: 700; }
.tp-com-name { font-size: 13.5px; font-weight: 700; }
.tp-com-time { font-size: 12px; color: #a3b3c6; margin-left: auto; }
.tp-com-body { font-size: 14.5px; line-height: 1.75; color: #243b53; word-break: break-word; }
.tp-com-foot { margin-top: 6px; }
.tp-com-reply-btn { border: 0; background: none; color: #98a2b3; font-size: 12.5px; cursor: pointer; padding: 2px 0; }
.tp-com-reply-btn:hover { color: var(--tp-accent); }
.tp-com-reply-box { margin: 8px 0 10px; display: flex; gap: 8px; align-items: flex-start; }
.tp-com-reply-box textarea { flex: 1; border: 1px solid #d7deea; border-radius: 8px; padding: 8px; font: inherit; font-size: 13.5px; resize: vertical; }
.tp-com-reply-box button { border: 0; background: var(--tp-accent); color: #fff; font-size: 13px; padding: 7px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tp-com-sub { background: #f7fafd; border-radius: 8px; padding: 8px 12px; margin-top: 8px; display: flex; flex-direction: column; gap: 7px; }
.tp-com-sub-item { font-size: 13.5px; line-height: 1.6; }
.tp-com-sub-name { color: var(--tp-accent); font-weight: 600; margin-right: 6px; }
.tp-com-sub-txt { color: #34465f; word-break: break-word; }
.tp-com-sub-time { font-size: 11.5px; color: #b3c2d3; margin-left: 6px; }
.tp-com-more { display: block; width: 100%; margin-top: 10px; border: 1px solid #d7deea; background: #fff; color: #5f7a99; border-radius: 999px; padding: 8px 0; font-size: 13.5px; cursor: pointer; }
.tp-com-more:hover { border-color: var(--tp-accent); color: var(--tp-accent); }
@media (max-width: 960px) {
    .tp-feed { grid-template-columns: 1fr; }
    .tp-live-body { padding: 20px 18px; }
}

/* ===== 直播内嵌版(2026-09-08: 专题页直接直播/回放) ===== */
.tp-live { flex-direction: column; align-items: stretch; min-height: 0; background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 14px; overflow: hidden; }
.tp-live-stage { position: relative; background: #000; aspect-ratio: 16 / 9; max-height: 800px; }
.tp-live-video { width: 100%; height: 100%; display: block; background: #000; }
.tp-live-poster { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #101828; display: flex; align-items: flex-end; }
.tp-live-poster-bd { position: relative; padding: 26px 30px; }
.tp-live-poster-bd .tp-live-time { color: rgba(255,255,255,.85); }
.tp-live-bar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 6px 18px; align-items: center; padding: 14px 20px; }
.tp-live-bar .tp-live-badge { align-self: center; margin: 0; }
.tp-live-bar-txt { min-width: 0; }
.tp-live-bar .tp-live-title { color: #1f2430; font-size: 19px; margin: 0 0 3px; }
.tp-live-bar .tp-live-time { color: #8296ab; font-size: 12.5px; margin: 0 0 4px; }
.tp-live-bar .tp-live-desc { color: #5f7a99; font-size: 13px; margin: 0; -webkit-line-clamp: 1; }
.tp-live-bar .tp-live-btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
@media (max-width: 720px) {
    .tp-live-bar { grid-template-columns: 1fr auto; }
    .tp-live-bar .tp-live-btn { grid-column: 2; grid-row: 1 / span 2; }
    .tp-live-bar .tp-live-badge { grid-column: 1; }
}

/* 直播播放控制层(2026-09-08 v2) */
.tp-live-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(13,17,26,.55); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; z-index: 5; transition: all .2s; display: flex; align-items: center; justify-content: center; padding: 0 0 4px 6px; }
.tp-live-play:hover { background: var(--tp-accent, #d22630); transform: translate(-50%,-50%) scale(1.06); }
.tp-live-playing .tp-live-play { display: none; }
.tp-live-msg { position: absolute; left: 14px; bottom: 12px; z-index: 5; color: #fff; background: rgba(0,0,0,.55); font-size: 12.5px; padding: 4px 12px; border-radius: 999px; max-width: 80%; }

/* 播放器适配(2026-09-08 v3: 铺满无黑边) */
.tp-live-stage { background: #000; }
.tp-live-video { object-fit: fill; }

/* ===== timeline 主题:有封面则顶部铺图 ===== */
.tp--timeline.tp-has-cover .tp-cover { background-image: var(--tp-cover-img); background-size: cover; background-position: center; }
.tp--timeline.tp-has-cover .tp-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,14,24,.32) 0%, rgba(9,14,24,.66) 100%); }
.tp--timeline.tp-has-cover .tp-cover-inner { position: relative; z-index: 1; border-top: 0; color: #fff; }
.tp--timeline.tp-has-cover .tp-cover-overline { color: rgba(255,255,255,.85); }
.tp--timeline.tp-has-cover .tp-cover-subtitle,
.tp--timeline.tp-has-cover .tp-cover-summary { color: rgba(255,255,255,.92); }

/* ===== 顶栏内嵌专题标题(2026-09-08 老板:封面通栏去掉,标题入顶栏 logo 右侧) ===== */
.tp-brand-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2430;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
    max-width: min(660px, 52vw);
}
.tp-brand, .tp-brand-word, .tp-topnav { flex: none; }
@media (max-width: 620px) {
    .tp-brand-title { font-size: 14px; max-width: 42vw; }
}

/* ===== 专题列表页 /zhuanti (2026-09-08 老板:前端专题列表页) ===== */
.tp--index .tp-main { background: #f2f4f7; padding-bottom: 64px; }
.tp-index { max-width: 1400px; margin: 0 auto; padding: 40px 20px 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tp-index-head { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 0 2px 20px; border-bottom: 1px solid rgba(15,23,42,.08); }
.tp-index-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: var(--tp-accent, #d22630); }
.tp-index-h1 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: 1px; color: #1f2430; }
.tp-index-sub { margin: 8px 0 0; font-size: 14px; color: #667085; }
.tp-index-count { font-size: 13px; color: #98a2b3; white-space: nowrap; padding-bottom: 6px; }
.tp-tcard { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .18s ease, box-shadow .18s ease; }
.tp-tcard:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,23,42,.12); }
.tp-tcard-media { position: relative; display: block; aspect-ratio: 16 / 9; background-color: color-mix(in srgb, var(--tc-accent) 14%, #fff); background-size: cover; background-position: center; }
.tp-tcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(9,14,24,.35)); opacity: 0; transition: opacity .2s; }
.tp-tcard:hover .tp-tcard-media::after { opacity: 1; }
.tp-tcard-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; letter-spacing: 10px; text-indent: 10px; color: var(--tc-accent); opacity: .9; }
.tp-tcard-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.tp-tcard-title { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 52.2px; }
.tp-tcard-title a { transition: color .15s; }
.tp-tcard-title a:hover { color: var(--tc-accent); }
.tp-tcard-sum { margin: 10px 0 0; font-size: 13.5px; line-height: 1.7; color: #667085; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45.9px; }
.tp-tcard-meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.tp-tcard-badge { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--tc-accent); background: color-mix(in srgb, var(--tc-accent) 12%, #fff); }
.tp-tcard-date { font-size: 12px; color: #98a2b3; }
.tp-index-empty { grid-column: 1 / -1; padding: 70px 20px; text-align: center; background: #fff; border: 1px dashed rgba(15,23,42,.16); border-radius: 18px; }
.tp-index-empty-icon { margin: 0; font-size: 40px; color: #cbd5e1; }
.tp-index-empty-title { margin: 12px 0 4px; font-size: 18px; font-weight: 700; color: #475569; }
.tp-index-empty-sub { margin: 0; font-size: 13.5px; color: #98a2b3; }
.tp-index-pager { max-width: 1400px; margin: 0 auto; padding: 30px 20px 0; text-align: center; }
@media (max-width: 960px) {
    .tp-index { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .tp-index { grid-template-columns: 1fr; gap: 16px; padding: 26px 16px 6px; }
    .tp-index-head { flex-direction: column; align-items: flex-start; }
    .tp-index-h1 { font-size: 24px; }
}
