/* ==================================================================
 * tpl-b.css — 模板 B · 榜单杂志式
 * 骨架前缀：tB-
 * 风格：衬线字体 / 米色底 / 双线分隔 / 带序号的横向榜单条目
 * 依赖：style.css（全局 reset 与通用工具类）、theme_css（CSS 变量）
 * ================================================================== */

* { box-sizing: border-box; }
body {
    margin: 0;
    color: #1c1917;
    background: var(--site-bg);
    font-family: var(--font);
    line-height: 1.78;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.tB-wrap { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------------- 顶部公告条 ---------------- */
.tB-top {
    background: var(--dark);
    color: #fef3c7;
    font-size: 13px;
    text-align: center;
    padding: 7px 16px;
    letter-spacing: .4px;
}

/* ---------------- 导航（居中 Logo） ---------------- */
.tB-head {
    background: #fff;
    border-bottom: 3px double var(--primary);
    position: sticky;
    top: 0;
    z-index: 50;
}
.tB-head-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 78px;
}
.tB-nav { display: flex; gap: 22px; font-size: 15px; flex: 1; }
.tB-nav:last-child { justify-content: flex-end; }
.tB-nav a {
    color: #57534e;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: .2s;
}
.tB-nav a:hover, .tB-nav a.on { color: var(--primary); border-bottom-color: var(--primary); }
.tB-logo {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary);
    white-space: nowrap;
}
.tB-mnav { display: none; flex-wrap: wrap; gap: 10px 18px; padding: 10px 22px 14px; border-top: 1px solid #e7e5e4; }
.tB-mnav a { font-size: 14px; color: #57534e; }

/* ---------------- Hero：左文右图 ---------------- */
.tB-hero { background: linear-gradient(180deg, #fffbeb 0%, var(--site-bg) 100%); padding: 54px 0 60px; }
.tB-hero-in {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}
.tB-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    letter-spacing: .5px;
}
.tB-hero-txt h1 {
    font-size: 44px;
    line-height: 1.22;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 18px;
}
.tB-hero-txt p { font-size: 16px; color: #57534e; max-width: 34em; }
.tB-hero-btns { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.tB-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 15px;
    border-radius: var(--radius);
    transition: .2s;
    border: 2px solid var(--primary);
}
.tB-btn.main { background: var(--primary); color: #fff; }
.tB-btn.main:hover { filter: brightness(1.1); }
.tB-btn.ghost { color: var(--primary); }
.tB-btn.ghost:hover { background: rgba(0,0,0,.04); }
.tB-hero-img { position: relative; }
.tB-hero-img img {
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    border-radius: var(--radius);
    box-shadow: 0 24px 48px -20px rgba(0,0,0,.42);
}

/* ---------------- 分类胶囊 ---------------- */
.tB-cats { padding: 34px 0 8px; }
.tB-cats-in { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tB-pill {
    display: inline-block;
    padding: 9px 20px;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    font-size: 14px;
    color: #44403c;
    transition: .2s;
}
.tB-pill:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 4px 14px -6px rgba(0,0,0,.2); }

/* ---------------- 榜单列表 ---------------- */
.tB-list-wrap { padding: 40px 0 50px; }
.tB-sechead { text-align: center; margin-bottom: 34px; }
.tB-sechead h2 { font-size: 30px; color: var(--dark); letter-spacing: 1px; }
.tB-sechead h2::after {
    content: ""; display: block; width: 64px; height: 3px;
    background: var(--primary); margin: 14px auto 0;
}
.tB-sechead p { color: #78716c; font-size: 15px; margin-top: 14px; }
.tB-list { display: flex; flex-direction: column; gap: 18px; }
.tB-rank { display: flex; align-items: stretch; gap: 16px; }
.tB-no {
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius);
    font-family: Georgia, serif;
}
.tB-rank:nth-child(n+4) .tB-no { background: #a8a29e; }
.tB-item {
    flex: 1;
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #f0efee;
    border-radius: var(--radius);
    padding: 16px;
    transition: .25s;
}
.tB-item:hover { box-shadow: 0 16px 34px -20px rgba(0,0,0,.4); transform: translateY(-2px); }
.tB-pic { position: relative; flex: 0 0 108px; }
.tB-pic img { width: 108px; height: 152px; object-fit: cover; border-radius: var(--radius); }
.tB-score {
    position: absolute;
    right: -8px; top: -8px;
    background: var(--secondary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 4px 10px -3px rgba(0,0,0,.35);
}
.tB-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.tB-body h3 { font-size: 21px; color: var(--dark); margin-bottom: 6px; letter-spacing: .5px; }
.tB-meta { font-size: 13px; color: #a8a29e; margin-bottom: 9px; }
.tB-desc { font-size: 14.5px; color: #57534e; line-height: 1.7; }
.tB-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tB-tags span {
    font-size: 12px;
    color: var(--primary);
    background: rgba(0,0,0,.04);
    border: 1px solid #e7e5e4;
    padding: 2px 10px;
    border-radius: 999px;
}
.tB-more { text-align: center; margin-top: 34px; }
.tB-more a {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 15px;
    transition: .2s;
}
.tB-more a:hover { background: var(--primary); color: #fff; }

/* ---------------- 观影指南 ---------------- */
.tB-guide { background: #fff; border-top: 3px double var(--primary); padding: 50px 0; }
.tB-guide-in { max-width: 860px; }
.tB-guide h2 { font-size: 26px; color: var(--dark); margin-bottom: 18px; letter-spacing: 1px; }
.tB-guide p { color: #57534e; font-size: 15.5px; margin-bottom: 14px; }
.tB-tips { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.tB-tips li { position: relative; padding-left: 24px; color: #44403c; font-size: 15px; }
.tB-tips li::before { content: "◆"; position: absolute; left: 0; color: var(--primary); font-size: 12px; top: 3px; }
.tB-tail { font-style: italic; color: #78716c !important; }

/* ---------------- 分类页头 ---------------- */
.tB-ctitle { background: linear-gradient(180deg, #fffbeb, var(--site-bg)); padding: 40px 0 26px; text-align: center; border-bottom: 1px solid #f0efee; }
.tB-crumb { font-size: 13px; color: #a8a29e; margin-bottom: 12px; }
.tB-crumb a:hover { color: var(--primary); }
.tB-crumb span { margin: 0 6px; }
.tB-ctitle h1 { font-size: 34px; color: var(--dark); letter-spacing: 2px; }
.tB-ctitle h1 span { margin-right: 10px; }
.tB-ctitle p { color: #78716c; font-size: 15px; margin-top: 12px; }
.tB-note { background: #fff; border-left: 4px solid var(--primary); padding: 20px 24px; border-radius: var(--radius); margin-bottom: 26px; }
.tB-note h2 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }
.tB-note p { font-size: 14.5px; color: #57534e; }

/* ---------------- 详情页 ---------------- */
.tB-dhero { position: relative; height: 340px; overflow: hidden; background: var(--dark); }
.tB-dhero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: blur(2px); }
.tB-dhero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,25,23,.55), rgba(28,25,23,.88)); }
.tB-dhero-in { position: relative; height: 100%; display: flex; align-items: center; gap: 34px; }
.tB-dhero-poster { width: 168px; border-radius: var(--radius); box-shadow: 0 20px 40px -16px rgba(0,0,0,.7); }
.tB-dhero-txt { color: #fff; }
.tB-dhero-txt h1 { font-size: 38px; letter-spacing: 1.5px; margin-bottom: 14px; }
.tB-dhero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14.5px; color: #e7e5e4; }
.tB-dhero-meta i { width: 1px; height: 14px; background: #78716c; display: inline-block; }
.tB-dhero-meta b { color: #fbbf24; font-size: 20px; }
.tB-dbody { padding: 34px 0 60px; }
.tB-dbody .tB-crumb { margin-bottom: 22px; }
.tB-dblock { background: #fff; border: 1px solid #f0efee; border-radius: var(--radius); padding: 28px 30px; margin-bottom: 20px; }
.tB-dblock h2 { font-size: 21px; color: var(--dark); margin-bottom: 14px; padding-left: 14px; border-left: 4px solid var(--primary); }
.tB-lead { font-size: 16px; color: #44403c; font-weight: 600; }
.tB-dblock p { color: #57534e; font-size: 15.5px; }
.tB-plats { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.tB-plat { background: #fff7ed; border: 1px solid var(--secondary); color: var(--secondary); font-size: 13.5px; padding: 6px 16px; border-radius: var(--radius); }
.tB-warn { color: #b45309 !important; font-size: 13px !important; }
.tB-tagbox { display: flex; flex-wrap: wrap; gap: 9px; }
.tB-tag { font-size: 13px; color: #57534e; background: #f5f5f4; padding: 5px 14px; border-radius: 999px; }
.tB-revs { display: flex; flex-direction: column; gap: 12px; }
.tB-revs p { border-left: 3px solid #e7e5e4; padding-left: 16px; }
.tB-faq { margin-bottom: 16px; }
.tB-faq h4 { font-size: 15.5px; color: var(--dark); margin-bottom: 6px; }
.tB-faq h4::before { content: "Q "; color: var(--primary); font-weight: 800; }
.tB-relgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tB-rellist { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--radius); transition: .2s; }
.tB-rellist:hover { background: #fafaf9; }
.tB-rellist img { width: 52px; height: 74px; object-fit: cover; border-radius: 4px; }
.tB-rellist h4 { font-size: 15px; color: var(--dark); }
.tB-rellist p { font-size: 12.5px; color: #a8a29e; }

/* ---------------- 页脚 ---------------- */
.tB-foot { background: var(--dark); color: #d6d3d1; padding: 46px 0 28px; margin-top: 20px; }
.tB-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.tB-foot-col h3 { color: #fff; font-size: 20px; letter-spacing: 2px; margin-bottom: 14px; }
.tB-foot-col h4 { color: #fbbf24; font-size: 15px; margin-bottom: 14px; letter-spacing: 1px; }
.tB-foot-col p { font-size: 14px; line-height: 1.8; color: #a8a29e; }
.tB-foot-col ul { display: flex; flex-direction: column; gap: 9px; }
.tB-foot-col li, .tB-foot-col a { font-size: 14px; color: #a8a29e; }
.tB-foot-col a:hover { color: #fff; }
.tB-foot-tip { border-top: 1px solid #44403c; margin-top: 32px; padding-top: 20px; font-size: 13px; color: #78716c; }
.tB-foot-copy { text-align: center; font-size: 13px; color: #78716c; margin-top: 14px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
    .tB-hero-in { grid-template-columns: 1fr; gap: 30px; }
    .tB-hero-img img { margin: 0 auto; }
    .tB-hero-txt h1 { font-size: 32px; }
    .tB-nav { display: none; }
    .tB-mnav { display: flex; }
    .tB-head-in { height: 64px; justify-content: center; }
    .tB-foot-grid { grid-template-columns: 1fr; gap: 24px; }
    .tB-dhero { height: auto; padding: 30px 0; }
    .tB-dhero-in { flex-direction: column; text-align: center; }
    .tB-dhero-txt h1 { font-size: 27px; }
    .tB-relgrid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .tB-item { flex-direction: column; }
    .tB-pic, .tB-pic img { width: 100%; }
    .tB-pic img { height: 190px; }
    .tB-no { flex: 0 0 38px; font-size: 18px; }
    .tB-hero-txt h1 { font-size: 27px; }
}
