/* ============================================================
   tunman 主题 · 仿 itunman.com（图集多 / ripro-v5 原生蓝主题）资源站
   设计规范（实测 itunman.com ripro-v5 main.min.css v7.7 + 首页 HTML）：
   - 页面底 #ededed / 卡片 #fff + 1px #eee 边 / 圆角 5px / 正文 #595d69 / 标题 #191a1f
   - 主色蓝 #ffa200（ripro-v5 原生 token）；辅色 红 #ff314c 绿 #0cbc87 黄 #ffe300
   - 纯白顶栏 #fff 深灰字 #4d4d4d，阴影 0 0 30px rgba(0,0,0,.07)
   - 首页 hero 大搜索：深色底图 + 渐变遮罩 rgba(25,27,38,.32→.72)，
     居中白标题 28px + 居中搜索表单（分类下拉+输入）
   - 卡片：3:2 封面图上文下（entry-wrapper padding 10px）+ 分类彩点
     （entry-cat-dot：6px 圆点 + #a1a1a8 12px 分类名）
   - 模块标题居中（section-title + muted 副标题）；footer 白底极简居中
   注意：pay-* 弹窗类名是 JS 契约不可改；JS 会 inline 设 display:block，
        弹窗内按钮必须自带 width + margin:auto 居中（勿依赖 text-align）
   ============================================================ */

:root {
    --tm-primary: #ffa200;
    --tm-primary-dk: #f08c00;
    --tm-primary-bg: rgba(255, 162, 0, .10);
    --tm-bg: #f8f8fa;
    --tm-card: #ffffff;
    --tm-card-border: #eeeeee;
    --tm-title: #191a1f;
    --tm-text: #595d69;
    --tm-mut: #a1a1a8;
    --tm-border: #dfe0e5;
    --tm-header-bg: #ffffff;
    --tm-header-text: #4d4d4d;
    --tm-radius: 8px;
    --tm-shadow: 0 1px 3px rgba(25, 26, 31, .06);
    --tm-red: #ff314c;
    --tm-yellow: #ffe300;
    --tm-green: #0cbc87;
    --tm-cyan: #2cbcff;
    --tm-head-h: 60px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--tm-text);
    background-color: var(--tm-bg);
    padding-top: var(--tm-head-h);
    overflow-x: clip;   /* hero 100vw 兜底：桌面端 vw 含滚动条宽，裁掉防横向滚动 */
}

a { color: var(--tm-text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--tm-primary); }
img { max-width: 100%; }
h1, h2, h3, h4 { color: var(--tm-title); line-height: 1.4; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.bw-container, .tm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============ 固定顶栏：纯白深灰字（ripro site-header） ============ */
.tm-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--tm-head-h);
    background: var(--tm-header-bg);
    box-shadow: 0 0 30px rgba(0, 0, 0, .07);
}

.tm-header-inner {
    height: var(--tm-head-h);
    display: flex;
    align-items: center;
    gap: 16px;
}

.tm-brand { flex: none; display: flex; align-items: center; }
.tm-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--tm-title);
    letter-spacing: .5px;
    white-space: nowrap;
}
.tm-logo:hover { color: var(--tm-primary); }

/* 主菜单：深灰字，当前项蓝 */
.tm-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.tm-menu::-webkit-scrollbar { display: none; }
.tm-menu a {
    display: block;
    padding: 6px 11px;
    font-size: 14.5px;
    color: var(--tm-header-text);
    white-space: nowrap;
    border-radius: 6px;
}
.tm-menu a:hover { color: var(--tm-primary); background: var(--tm-primary-bg); }
.tm-menu a.on { color: #fff; background: var(--tm-primary); font-weight: 600; }

/* 顶栏搜索：浅灰胶囊 */
.tm-header-search {
    flex: none;
    display: flex;
    align-items: center;
    background: #f0f1f3;
    border: 1px solid var(--tm-border);
    border-radius: 17px;
    padding: 2px 4px 2px 13px;
    transition: .2s;
}
.tm-header-search:focus-within { background: #fff; border-color: var(--tm-primary); }
.tm-header-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 118px;
    font-size: 13px;
    color: var(--tm-title);
    padding: 5px 0;
}
.tm-header-search input::placeholder { color: var(--tm-mut); }
.tm-header-search button {
    border: 0;
    background: var(--tm-primary);
    color: #fff;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 13px;
}

/* 顶栏右侧 */
.tm-header-auth {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tm-btn-sm {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid var(--tm-border);
    background: transparent;
    color: var(--tm-header-text);
    cursor: pointer;
    white-space: nowrap;
}
.tm-btn-sm:hover { color: var(--tm-primary); border-color: var(--tm-primary); }
/* 「VIP」：ripro 主蓝按钮 */
.tm-btn-sm.tm-btn-gold {
    background: var(--tm-primary);
    border: 1px solid var(--tm-primary);
    color: #fff;
    font-weight: 600;
}
.tm-btn-sm.tm-btn-gold:hover { background: var(--tm-primary-dk); color: #fff; }
.tm-btn-sm.tm-btn-white { background: #f0f1f3; }

.tm-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
}
.tm-user-chip:hover { background: #f0f1f3; color: var(--tm-primary); }
.tm-user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--tm-primary);
    color: #fff;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex: none;
}
.tm-user-avatar.is-vip { background: var(--tm-yellow); color: #191a1f; }
.tm-user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tm-user-name { font-size: 13px; font-weight: 600; color: var(--tm-title); max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-user-level { font-size: 11px; color: var(--tm-mut); }
.tm-user-level.is-vip { color: #b26a00; }
.tm-sep { font-style: normal; margin: 0 3px; color: var(--tm-border); }

/* 移动端菜单按钮 */
.tm-nav-toggle {
    display: none;
    flex: none;
    width: 36px; height: 36px;
    border: 1px solid var(--tm-border);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    padding: 8px 7px;
    flex-direction: column;
    justify-content: space-between;
}
.tm-nav-toggle span { display: block; height: 2px; background: var(--tm-header-text); border-radius: 2px; }

/* ============ 主体：两栏 ============ */
.tm-shell {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 16px 30px;
}
.tm-main { flex: 1 1 auto; min-width: 0; }
.tm-side { flex: none; width: 300px; }
.tm-side-inner { position: sticky; top: calc(var(--tm-head-h) + 14px); display: flex; flex-direction: column; gap: 16px; }
/* 首页无侧栏（tunman home 无 sidebar，网格全宽） */
.tm-shell--full { display: block; }
.tm-shell--full .tm-main { width: 100%; }

/* ============ 白卡通用 ============ */
.tm-block, .tm-content-card, .tm-buy-card,
.tm-form-card, .tm-hero, .tm-paid-box, .tm-home-seo, .tm-home-links {
    background: var(--tm-card);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
}

/* 区块标题：ripro 居中式 section-title */
.tm-block { padding: 16px 18px 18px; margin-bottom: 18px; }
.tm-block-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tm-border);
    text-align: center;
}
.tm-block-head { border-bottom: none; padding-bottom: 4px; }
.tm-block-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--tm-title);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tm-block-title i { display: none; }
.tm-more { font-size: 12px; color: var(--tm-mut); margin-top: 4px; }

/* ============ 首页 hero 大搜索（ripro home-search：深色底 + 渐变遮罩 + 居中表单） ============
   全出血：width:100vw + 负边距把 hero 撑出 shell 到视口两缘；
   移动端 100vw == 视口宽（无滚动条），不会触发 ICB 扩张 */
.tm-hero-search {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 110px 20px 112px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(ellipse 55% 85% at 18% 12%, rgba(33, 99, 232, .32), transparent 62%),
        radial-gradient(ellipse 45% 75% at 82% 22%, rgba(79, 158, 248, .2), transparent 60%),
        linear-gradient(0deg, rgba(25, 27, 38, .32), rgba(25, 27, 38, .72)),
        #191b26;
}
.tm-hero-search-title { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 26px; letter-spacing: .5px; }
.tm-hero-search-form {
    display: flex;
    align-items: stretch;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.tm-hero-search-form select {
    flex: none;
    width: 118px;
    border: 0;
    outline: 0;
    background: #f7f8f9;
    border-right: 1px solid var(--tm-border);
    padding: 0 10px;
    font-size: 13px;
    color: var(--tm-text);
    cursor: pointer;
    border-radius: 0;
}
.tm-hero-search-form input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 14px;
    font-size: 14px;
    color: var(--tm-title);
}
.tm-hero-search-form button {
    flex: none;
    border: 0;
    background: var(--tm-primary);
    color: #fff;
    font-size: 14px;
    padding: 0 26px;
    cursor: pointer;
}
.tm-hero-search-form button:hover { background: var(--tm-primary-dk); }

/* ============ 分类彩点说明：tunman 卡片分类名前 6px 圆点（见网格节） ============ */

/* ============ 封面网格（ripro item-grid：3:2 封面图上文下 + 分类彩点） ============ */

/* ============ 封面 overlay 网格（ripro grid-overlay 标志样式） ============ */
.tm-grids {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.tm-grid {
    position: relative;
    overflow: hidden;
    background: var(--tm-card);
    border: 1px solid var(--tm-card-border);
    border-radius: var(--tm-radius);
    transition: .2s;
}
.tm-grid:hover { box-shadow: 0 6px 20px rgba(25, 26, 31, .12); }
.tm-grid-img {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%;   /* ripro ratio-3x2 */
    overflow: hidden;
    background: #e7e7e7;
}
.tm-grid-img img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease-out;
}
.tm-grid:hover .tm-grid-img img { transform: scale(1.05); }
.tm-noimg {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--tm-mut);
    font-size: 13px;
}
/* 图上文下（ripro item-grid entry-wrapper：padding 10px 白底） */
.tm-grid-con {
    padding: 10px;
}
.tm-grid-cat {
    font-size: 12px;
    color: #a1a1a8;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tm-grid-cat::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255, 162, 0, .85);
}
.tm-grid-cat a { color: #a1a1a8; }
.tm-grid-cat a:hover { color: var(--tm-primary); }
.tm-grid-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.tm-grid-title a { color: var(--tm-title); }
.tm-grid-title a:hover { color: var(--tm-primary); }
.tm-grid-ex { display: none; }
.tm-grid-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--tm-mut);
    white-space: nowrap;
}
.tm-grid-meta > span { display: inline-flex; align-items: center; gap: 3px; }

/* overlay 内价格胶囊：白底蓝字 / 免费 黄底 */
.tm-price, .tm-badge-hot {
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
}
.tm-price { background: var(--tm-primary); color: #fff; }
.tm-price.is-free, .tm-badge-hot.is-free { background: var(--tm-green); color: #fff; }
.tm-badge-hot { background: rgba(255, 255, 255, .2); color: #fff; }

/* 卡片直系角标（栏目/专题/免费）：叠左上角 */
.tm-grid > .tm-badge-hot, .tm-grid > .tm-badge-cat {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 162, 0, .9);
    color: #fff;
    border-radius: 4px;
}
.tm-grid > a.tm-badge-hot:hover { color: #fff; filter: brightness(1.1); }
.tm-grid > .tm-badge-hot.is-free { background: rgba(12, 188, 135, .92); color: #fff; }

/* ============ 侧栏 widget（白卡 + 深色标题） ============ */
.tm-widget {
    background: var(--tm-card);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    padding: 16px;
}
.tm-widget-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--tm-title);
    padding-left: 11px;
    position: relative;
    margin-bottom: 12px;
}
.tm-widget-head i {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 14px;
    background: var(--tm-primary);
    border-radius: 2px;
}
.tm-widget-body { font-size: 13px; }

/* 热门榜单 */
.tm-hotlist { list-style: none; }
.tm-hotlist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--tm-border);
}
.tm-hotlist li:last-child { border-bottom: none; }
.tm-hot-idx {
    flex: none;
    width: 20px; height: 20px;
    border-radius: 4px;
    background: #f0f1f3;
    color: var(--tm-mut);
    font-size: 12px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.tm-hot-idx.idx-1 { background: rgba(255, 49, 76, .1); color: var(--tm-red); }
.tm-hot-idx.idx-2 { background: rgba(255, 227, 0, .3); color: #b26a00; }
.tm-hot-idx.idx-3 { background: rgba(255, 162, 0, .12); color: var(--tm-primary); }
.tm-hot-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--tm-title);
}
.tm-hot-title:hover { color: var(--tm-primary); }
.tm-hot-views { flex: none; font-size: 12px; color: var(--tm-mut); }

/* 栏目导航 / 专题 chips */
.tm-navlist { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tm-navlist a {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f1f3;
    border-radius: 5px;
    font-size: 13px;
    color: var(--tm-text);
}
.tm-navlist a:hover { background: var(--tm-primary-bg); color: var(--tm-primary); }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chip {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f1f3;
    border-radius: 5px;
    font-size: 13px;
    color: var(--tm-text);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tm-chip:hover { background: var(--tm-primary-bg); color: var(--tm-primary); }

/* 侧栏 VIP 推广卡：深蓝渐变（ripro 会员风） */
.tm-vip-promo {
    background: linear-gradient(135deg, #2b3548 0%, #1a2230 100%);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    padding: 20px 18px;
    text-align: center;
    color: #fff;
}
.tm-vip-promo-title { font-size: 17px; font-weight: 700; color: #fff; }
.tm-vip-promo-sub { font-size: 12px; color: rgba(255, 255, 255, .65); margin: 4px 0 14px; }
.tm-vip-promo-btn {
    display: block;
    background: var(--tm-primary);
    color: #fff;
    font-weight: 700;
    padding: 9px 0;
    border-radius: 6px;
    font-size: 14px;
}
.tm-vip-promo-btn:hover { background: var(--tm-primary-dk); color: #fff; }
.tm-vip-promo-note { font-size: 11px; color: rgba(255, 255, 255, .5); margin-top: 8px; }

/* ============ 面包屑 ============ */
.tm-crumb {
    font-size: 13px;
    color: var(--tm-mut);
    padding: 2px 2px 12px;
}
.tm-crumb a { color: var(--tm-mut); }
.tm-crumb a:hover { color: var(--tm-primary); }
.tm-crumb-sep { margin: 0 6px; color: var(--tm-border); }

/* ============ 详情页 Hero 卡 ============ */
.tm-hero { display: flex; gap: 20px; padding: 20px; margin-bottom: 18px; }
.tm-hero-thumb {
    flex: none;
    width: 240px;
    position: relative;
    border-radius: var(--tm-radius);
    overflow: hidden;
    background: #e3e4e8;
    align-self: flex-start;
}
.tm-hero-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tm-hero-thumb-bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
}
.tm-hero-thumb > span {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 3 / 2;
    color: var(--tm-mut);
    font-size: 13px;
}
.tm-hero-info { flex: 1 1 auto; min-width: 0; }
.tm-page-title { margin: 0 0 8px; font-size: 21px; }
.tm-article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--tm-mut); margin-bottom: 12px; }
.tm-article-meta a { color: var(--tm-mut); }
.tm-article-meta a:hover { color: var(--tm-primary); }
.tm-hero-fields {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    background: #f7f8f9;
    border-radius: var(--tm-radius);
    padding: 10px 12px;
    font-size: 12px;
    color: var(--tm-text);
    margin-bottom: 12px;
}
.tm-hero-fields b { color: var(--tm-mut); font-weight: 600; }

.tm-hero-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
/* 价格：ripro 主蓝大字 */
.tm-hero-price { font-size: 30px; font-weight: 700; color: var(--tm-primary); line-height: 1; }
.tm-hero-price small { font-size: 13px; font-weight: 400; margin-left: 2px; }
.tm-hero-free-tag {
    display: inline-block;
    background: rgba(12, 188, 135, .12);
    color: var(--tm-green);
    font-size: 14px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 5px;
}
.tm-hero-price-label { font-size: 12px; color: var(--tm-mut); }

/* 付费框：白卡 + 右上蓝角标 */
.tm-paybox {
    position: relative;
    background: #f7f8f9;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 18px;
    overflow: hidden;
}
.tm-pay-tag {
    position: absolute;
    top: 0; right: 0;
    background: var(--tm-primary);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 4px 12px;
    border-radius: 0 0 0 var(--tm-radius);
}
.tm-btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ============ 按钮（ripro btn 体系） ============ */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 22px;
    font-size: 14px;
    border-radius: var(--tm-radius);
    border: 1px solid var(--tm-border);
    background: #fff;
    color: var(--tm-text);
    cursor: pointer;
    transition: .15s;
    line-height: 1.5;
    white-space: nowrap;
}
.tm-btn:hover { color: var(--tm-primary); border-color: var(--tm-primary); }
/* 主操作（购买）：主蓝 */
.tm-btn.tm-btn-orange, .tm-btn.tm-btn-primary {
    background: var(--tm-primary);
    border: 1px solid var(--tm-primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 26px;
}
.tm-btn.tm-btn-orange:hover, .tm-btn.tm-btn-primary:hover {
    background: var(--tm-primary-dk);
    border-color: var(--tm-primary-dk);
    color: #fff;
}
/* VIP：ripro 金黄 */
.tm-btn.tm-btn-vip {
    background: var(--tm-yellow);
    border: 1px solid var(--tm-yellow);
    color: #191a1f;
    font-weight: 700;
    padding: 10px 26px;
}
.tm-btn.tm-btn-vip:hover { background: #f08c00; border-color: #f08c00; color: #191a1f; }
/* 成功态 */
.tm-btn.tm-btn-suc {
    background: rgba(12, 188, 135, .1);
    border-color: rgba(12, 188, 135, .4);
    color: var(--tm-green);
    font-weight: 600;
}
.tm-btn.tm-btn-suc:hover { color: var(--tm-green); border-color: var(--tm-green); }
/* 幽灵按钮 */
.tm-btn.tm-btn-ghost { background: #fff; }
.tm-btn.tm-btn-block { display: flex; width: 100%; }

.tm-hero-services {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--tm-mut);
}
.tm-hero-notice {
    margin-top: 12px;
    font-size: 12px;
    color: var(--tm-mut);
    line-height: 1.6;
}

/* ============ 正文卡 / 付费内容 ============ */
.tm-content-card { padding: 20px 22px; }
.tm-detail-content { font-size: 15px; line-height: 1.85; color: var(--tm-text); word-break: break-word; }
.tm-detail-content p { margin: 0 0 12px; }
.tm-detail-content img { border-radius: var(--tm-radius); }
.tm-detail-content h1, .tm-detail-content h2, .tm-detail-content h3 { margin: 18px 0 10px; }
.tm-detail-content pre {
    background: #f7f8f9;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 12px;
    overflow-x: auto;
    font-size: 13px;
}
.tm-detail-content code { background: #f0f1f3; border-radius: 4px; padding: 1px 5px; font-size: 13px; }
.tm-detail-content pre code { background: transparent; padding: 0; }
.tm-detail-content blockquote {
    margin: 0 0 12px;
    padding: 8px 14px;
    border-left: 3px solid var(--tm-primary);
    background: #f7f8f9;
    color: var(--tm-mut);
}
.tm-detail-content table { border-collapse: collapse; width: 100%; margin-bottom: 12px; }
.tm-detail-content th, .tm-detail-content td { border: 1px solid var(--tm-border); padding: 6px 10px; font-size: 13px; }
.tm-detail-content th { background: #f7f8f9; }

.tm-paid-hint {
    margin-top: 14px;
    background: rgba(255, 162, 0, .07);
    border: 1px dashed var(--tm-primary);
    color: var(--tm-primary);
    border-radius: var(--tm-radius);
    padding: 14px 16px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
}
.tm-paid-hint-link { text-decoration: underline; }

.tm-paid-box { margin-top: 14px; padding: 0 0 16px; overflow: hidden; border: 1px solid rgba(12, 188, 135, .35); }
.tm-paid-head {
    background: rgba(12, 188, 135, .08);
    color: var(--tm-green);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
}
.tm-paid-body { padding: 14px 16px 4px; font-size: 14px; line-height: 1.8; word-break: break-all; }
.tm-paid-body p { margin: 0 0 8px; }
.tm-paid-copy {
    margin: 6px 16px 0;
    background: var(--tm-primary);
    border: none;
    color: #fff;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: var(--tm-radius);
    cursor: pointer;
}
.tm-paid-copy:hover { background: var(--tm-primary-dk); }
.paid-flash { animation: paidFlash 1.2s ease; }
@keyframes paidFlash {
    0% { box-shadow: 0 0 0 4px rgba(255, 162, 0, .35); }
    100% { box-shadow: 0 0 0 4px rgba(33, 99, 232, 0); }
}

/* ============ 购买表单 / 通用表单 ============ */
.tm-buy-card { padding: 18px 20px; margin-top: 10px; }
.tm-buy-card h3 { margin: 0 0 8px; font-size: 16px; }
.tm-form-hint { font-size: 13px; color: var(--tm-mut); margin: 0 0 12px; }
.tm-form-group { margin-bottom: 12px; }
.tm-form-group label { display: block; font-size: 13px; color: var(--tm-mut); margin-bottom: 5px; }
.tm-form-group input, .tm-form-group select, .tm-form-group textarea {
    width: 100%;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 9px 12px;
    font-size: 14px;
    color: var(--tm-title);
    background: #fff;
    outline: 0;
    transition: .15s;
}
.tm-form-group input:focus, .tm-form-group select:focus, .tm-form-group textarea:focus {
    border-color: var(--tm-primary);
    box-shadow: 0 0 0 3px var(--tm-primary-bg);
}

.tm-form-card { padding: 26px 24px; }
.tm-form-card-wide { max-width: 560px; margin: 0 auto; }
.tm-pay-type { display: flex; gap: 10px; }
.tm-pay-type-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 9px 0;
    font-size: 14px;
    cursor: pointer;
    transition: .15s;
}
.tm-pay-pill {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 4px;
    background: var(--tm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
}
.tm-pay-pill.is-free { background: var(--tm-green); color: #fff; }

/* ============ 列表页头 / 专题 / 链接页 / CTA / VIP 卡 ============ */
.tm-page-head { margin: 0 0 16px; }
.tm-page-head .tm-page-title { font-size: 20px; }
.tm-page-sub { font-size: 13px; color: var(--tm-mut); margin-top: 2px; }
.tm-cat-head { margin-bottom: 16px; }

.tm-topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tm-topic-card {
    background: var(--tm-card);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    padding: 16px;
    transition: .2s;
}
.tm-topic-card:hover { box-shadow: 0 6px 20px rgba(25, 26, 31, .12); }
.tm-topic-name { font-size: 16px; font-weight: 700; color: var(--tm-title); margin-bottom: 4px; }
a.tm-topic-name:hover { color: var(--tm-primary); }
.tm-topic-summary { font-size: 13px; color: var(--tm-mut); margin-bottom: 8px; }
.tm-topic-meta { font-size: 12px; color: var(--tm-mut); }
.tm-sub-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tm-sub-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #f0f1f3;
    border-radius: 5px;
    font-size: 12px;
    color: var(--tm-text);
}
.tm-sub-tag:hover { background: var(--tm-primary-bg); color: var(--tm-primary); }

.tm-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tm-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--tm-card);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    padding: 14px 16px;
    transition: .2s;
}
.tm-link-card:hover { box-shadow: 0 6px 20px rgba(25, 26, 31, .12); }
.tm-link-logo {
    flex: none;
    width: 42px; height: 42px;
    border-radius: var(--tm-radius);
    background: #f0f1f3;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: var(--tm-primary);
    overflow: hidden;
}
.tm-link-desc { font-size: 12px; color: var(--tm-mut); }

.tm-cta {
    background: var(--tm-card);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    padding: 22px;
    text-align: center;
    margin: 18px 0;
}
.tm-cta-title { font-size: 19px; font-weight: 700; color: var(--tm-title); margin-bottom: 6px; }
.tm-cta-sub { font-size: 13px; color: var(--tm-mut); margin-bottom: 14px; }
.tm-cta-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tm-cta-note { font-size: 12px; color: var(--tm-mut); margin-top: 10px; }

.tm-vip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.tm-vip-card {
    background: var(--tm-card);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    border: 2px solid transparent;
    padding: 22px 18px;
    text-align: center;
    position: relative;
    transition: .2s;
}
.tm-vip-card:hover { transform: translateY(-2px); }
.tm-vip-card.hot { border-color: var(--tm-primary); }
.tm-vip-flag {
    position: absolute;
    top: -1px; right: -1px;
    background: var(--tm-primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 0 var(--tm-radius) 0 var(--tm-radius);
}
.tm-vip-name { font-size: 16px; font-weight: 700; color: var(--tm-title); }
.tm-vip-price { font-size: 28px; font-weight: 800; color: var(--tm-primary); margin: 8px 0; }
.tm-vip-price small { font-size: 13px; font-weight: 400; }
.tm-vip-days { font-size: 12px; color: var(--tm-mut); margin-bottom: 14px; }

.tm-table { width: 100%; border-collapse: collapse; background: var(--tm-card); font-size: 13px; }
.tm-table th, .tm-table td { border-bottom: 1px solid var(--tm-border); padding: 10px 12px; text-align: left; }
.tm-table th { color: var(--tm-mut); font-weight: 600; background: #f7f8f9; }
.tm-status-ok { color: var(--tm-green); font-weight: 600; }
.tm-status-no { color: var(--tm-red); font-weight: 600; }

.tm-alert {
    border-radius: var(--tm-radius);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
    background: #f0f1f3;
    color: var(--tm-text);
}
.tm-alert.tm-alert-error { background: rgba(255, 49, 76, .08); color: var(--tm-red); }
.tm-alert.tm-alert-success { background: rgba(12, 188, 135, .1); color: var(--tm-green); }

.tm-404 { text-align: center; padding: 60px 0; }
.tm-404-num { font-size: 64px; font-weight: 800; color: var(--tm-primary); line-height: 1; }

.tm-empty {
    background: var(--tm-card);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    text-align: center;
    color: var(--tm-mut);
    padding: 50px 20px;
    font-size: 14px;
}

/* ============ 首页 SEO 简介 / 友链 ============ */
.tm-home-seo { padding: 18px 20px; margin-bottom: 18px; }
.tm-home-seo-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tm-title);
    margin: 0 0 10px;
    padding-left: 11px;
    position: relative;
}
.tm-home-seo-title::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 14px;
    background: var(--tm-primary);
    border-radius: 2px;
}
.tm-home-seo-body { font-size: 13px; color: var(--tm-mut); line-height: 1.8; }
.tm-home-links { padding: 18px 20px; margin-bottom: 18px; }
.tm-home-links-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tm-title);
    margin: 0 0 10px;
    padding-left: 11px;
    position: relative;
}
.tm-home-links-title::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 14px;
    background: var(--tm-primary);
    border-radius: 2px;
}
.tm-home-links-body { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.tm-home-links-body a { color: var(--tm-mut); }
.tm-home-links-body a:hover { color: var(--tm-primary); }

/* ============ 分页（引擎固定输出 .pagination > a / span.current） ============ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 22px 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--tm-radius);
    background: var(--tm-card);
    box-shadow: var(--tm-shadow);
    font-size: 13px;
    color: var(--tm-text);
}
.pagination a:hover { color: var(--tm-primary); }
.pagination span.current {
    background: var(--tm-primary);
    color: #fff;
    font-weight: 600;
}

/* ============ 页脚（ripro：白底灰字） ============ */
.tm-footer {
    background: var(--tm-card);
    border-top: 1px solid var(--tm-border);
    padding: 26px 0 30px;
    font-size: 13px;
    color: var(--tm-text);
}
.tm-footer a { color: var(--tm-text); }
.tm-footer a:hover { color: var(--tm-primary); }
.tm-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-bottom: 12px;
}
.tm-footer-friend { padding-top: 12px; border-top: 1px dashed var(--tm-border); }
.tm-footer-friend-label { color: var(--tm-mut); }
.tm-footer-center { text-align: center; line-height: 1.8; color: var(--tm-mut); }

/* ============ 支付弹窗（类名契约固定，勿改） ============ */
.pay-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pay-modal {
    background: #fff;
    border-radius: 8px;
    width: 340px;
    max-width: 94vw;
    padding: 18px 20px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    text-align: center;
}
.pay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: var(--tm-title);
    margin-bottom: 14px;
}
.pay-amount { color: var(--tm-primary); margin-left: 4px; }
.pay-close {
    font-size: 22px;
    color: var(--tm-mut);
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}
.pay-close:hover { color: var(--tm-title); }
.pay-qr-wrap {
    width: 232px;
    height: 232px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.pay-qr-wrap img { width: 232px; height: 232px; display: block; }
.pay-caption { font-size: 13px; color: var(--tm-text); margin-bottom: 10px; }
.pay-btn-phone {
    display: block;
    width: 100%;
    background: #f0f1f3;
    border: 1px solid var(--tm-border);
    color: var(--tm-text);
    font-size: 13px;
    padding: 8px 0;
    border-radius: var(--tm-radius);
    cursor: pointer;
    margin-bottom: 10px;
}
.pay-btn-phone:hover { color: var(--tm-primary); border-color: var(--tm-primary); }
.pay-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--tm-mut);
    margin-bottom: 10px;
    min-height: 18px;
}
.pay-status-ok { color: var(--tm-green); }
.pay-status-expired { color: #b26a00; }
.pay-status-fail { color: var(--tm-red); }
.pay-spinner {
    width: 14px; height: 14px;
    border: 2px solid var(--tm-primary-bg);
    border-top-color: var(--tm-primary);
    border-radius: 50%;
    animation: paySpin .8s linear infinite;
    flex: none;
}
@keyframes paySpin { to { transform: rotate(360deg); } }
/* 契约：JS 会 inline 设 display:block，必须自带宽度 + auto 边距保持居中 */
.pay-btn-refresh {
    display: block;
    width: 200px;
    margin: 4px auto 0;
    background: var(--tm-primary);
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 9px 0;
    border-radius: 6px;
    cursor: pointer;
}
.pay-btn-refresh:hover { background: var(--tm-primary-dk); }
.pay-btn-refresh:disabled { opacity: .6; cursor: default; }

/* ============ 响应式 ============ */
@media (max-width: 1020px) {
    .tm-header-search input { width: 84px; }
}
@media (max-width: 900px) {
    .tm-shell { flex-direction: column; }
    .tm-side { width: 100%; }
    .tm-side-inner { position: static; }
    .tm-menu {
        display: none;
        position: fixed;
        top: var(--tm-head-h);
        left: 0; right: 0;
        background: var(--tm-header-bg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 14px 14px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
        max-height: calc(100vh - var(--tm-head-h));
        overflow-y: auto;
    }
    .tm-menu.open { display: flex; }
    .tm-menu a { padding: 10px 8px; border-radius: 6px; font-size: 14px; }
    .tm-nav-toggle { display: flex; }
    .tm-user-meta { display: none; }
    .tm-vip-grid { grid-template-columns: 1fr; }
    .tm-topic-grid, .tm-link-grid { grid-template-columns: 1fr; }
    .tm-hero-search { padding: 64px 16px 66px; }
    .tm-hero-search-title { font-size: 22px; margin-bottom: 18px; }
}
@media (max-width: 640px) {
    body { font-size: 14px; }
    .tm-header-search { display: none; }
    .tm-hero-search { padding: 46px 14px 50px; }
    .tm-hero-search-title { font-size: 20px; margin-bottom: 14px; }
    .tm-hero-search-form select { display: none; }
    /* tunman 移动端 row-cols-2：两列小卡（ripro 同款），塞不下时间项则隐藏 */
    .tm-grids { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tm-grid-con { padding: 8px; }
    .tm-grid-title { font-size: 13px; }
    .tm-grid-meta { font-size: 10.5px; gap: 6px; }
    .tm-grid-meta > span:first-child { display: none; }
    .tm-btn-row { flex-direction: column; align-items: stretch; }
    .tm-btn { width: 100%; }
    .tm-page-title { font-size: 18px; }
    .tm-hero { flex-direction: column; }
    .tm-hero-thumb { width: 100%; }
}


/* ============================================================
   ===== tunman append =====（106 期：仿 itunman.com 屯漫 浅色漫画门户）
   A 骨架 / B 首页 / C 漫画卡 / D 列表 / E 详情 / F 响应式
   ============================================================ */

/* ---------- A. 骨架 ---------- */
body { background: var(--tm-bg); padding-top: 0; }

/* 吸顶白顶栏 60px：logo + 菜单 + 胶囊搜索 + 黄色登录钮 */
.tm-header {
    position: sticky; top: 0; z-index: 50;
    height: 60px; background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.tm-header-in {
    width: 1400px; max-width: 100%; margin: 0 auto; height: 100%;
    padding: 0 16px; display: flex; justify-content: space-between; align-items: center;
}
.tm-header-left { display: flex; align-items: center; min-width: 0; }
.tm-logo {
    font-size: 26px; font-weight: 800; color: var(--tm-primary);
    letter-spacing: 1px; margin-right: 18px; white-space: nowrap;
    font-style: italic;
}
.tm-nav { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.tm-nav a {
    margin-left: 24px; font-size: 16px; color: #333;
    line-height: 60px; position: relative; white-space: nowrap;
}
.tm-nav a:hover { color: var(--tm-primary); }
.tm-nav a.on { font-weight: 700; color: var(--tm-primary); }
.tm-nav a.on::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 8px; width: 20px; height: 3px; border-radius: 2px;
    background: var(--tm-primary);
}
.tm-header-right { display: flex; align-items: center; }
.tm-search { position: relative; margin-right: 10px; }
.tm-search input {
    outline: none; border: none; background: #f8f8fa;
    width: 220px; height: 32px; border-radius: 16px;
    padding: 0 42px 0 16px; font-size: 13px; color: #333;
    transition: all .3s;
}
.tm-search input:focus { background: #f1f1f4; width: 250px; }
.tm-search button {
    position: absolute; right: 4px; top: 3px; width: 48px; height: 26px;
    border: none; border-radius: 13px; background: transparent;
    font-size: 12px; color: #999; cursor: pointer;
}
.tm-search button:hover { color: var(--tm-primary); }
.tm-btn-login {
    display: inline-block; margin: 0 8px; padding: 0 16px; height: 30px;
    line-height: 30px; text-align: center; border-radius: 8px;
    background: #ffe300; color: #472802; font-size: 13px; font-weight: 600;
    border: none; cursor: pointer; white-space: nowrap;
}
.tm-btn-login:hover { background: #ffea4d; }
.tm-btn-vip {
    display: inline-block; padding: 0 16px; height: 30px; line-height: 30px;
    border-radius: 8px; background: linear-gradient(95deg, #ffa800, #ff6f00);
    color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.tm-user-chip { display: flex; align-items: center; margin-right: 8px; min-width: 0; }
.tm-user-avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--tm-primary);
    color: #fff; font-size: 14px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.tm-user-avatar.is-vip {
    background: linear-gradient(137deg, #ffeaad, #fee089); color: #5a1200;
}
.tm-user-name {
    max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-left: 8px; font-size: 13px; color: #333; font-weight: 600;
}

/* 移动端横滚导航（≤1024 显示） */
.tm-mnav {
    display: none; background: #fff; overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap; padding: 0 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    scrollbar-width: none;
}
.tm-mnav::-webkit-scrollbar { display: none; }
.tm-mnav a {
    display: inline-block; padding: 10px 14px; font-size: 14px; color: #666;
    position: relative;
}
.tm-mnav a.on { color: var(--tm-primary); font-weight: 700; }
.tm-mnav a.on::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 3px; border-radius: 2px;
    background: linear-gradient(95deg, #ffa800, #ff6f00);
}

/* 内容壳：w1200 全宽单列 */
.tm-page { min-height: 60vh; }
.tm-wrap { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 16px; }

/* 页脚：深色 #2b262a（贴参考） */
.tm-footer {
    background: #2b262a; color: #fff; margin-top: 60px; padding: 40px 0 24px;
}
.tm-footer-links {
    display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center;
    font-size: 13px;
}
.tm-footer-links a { color: rgba(255, 255, 255, .72); }
.tm-footer-links a:hover { color: #ffa200; }
.tm-footer-friend { margin-top: 12px; color: rgba(255, 255, 255, .55); }
.tm-footer-friend-label { color: rgba(255, 255, 255, .55); }
.tm-footer-center {
    margin-top: 18px; text-align: center; font-size: 12px;
    color: rgba(255, 255, 255, .45); line-height: 22px;
}
.tm-footer-center a { color: rgba(255, 255, 255, .45); }

/* 右下角快捷球 */
.tm-quickbar {
    position: fixed; right: 24px; bottom: 88px; z-index: 40;
    display: flex; flex-direction: column; gap: 10px;
}
.tm-qb-btn {
    width: 48px; height: 48px; border-radius: 10px; border: 1px solid #eee;
    background: #fff; color: #666; font-size: 16px; font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08); cursor: pointer;
}
.tm-qb-btn:hover { color: var(--tm-primary); border-color: var(--tm-primary); }
.tm-qb-btn.is-vip {
    background: linear-gradient(95deg, #ffa800, #ff6f00);
    border: none; color: #fff;
}

/* ---------- B. 首页 ---------- */
/* 横幅轮播：深底大图区（贴参考 bannerv2 420px 深底） */
.tm-banner {
    background: #14100e;
    padding: 14px 0 18px;
}
.tm-banner-track {
    width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 16px;
    display: flex; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    contain: strict; height: 300px;
}
.tm-banner-track::-webkit-scrollbar { display: none; }
.tm-banner-slide {
    position: relative; flex: 0 0 460px; height: 100%;
    border-radius: 10px; overflow: hidden; scroll-snap-align: start;
    background: linear-gradient(135deg, #2a2118, #1c1610);
}
.tm-banner-slide img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.tm-banner-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
}
.tm-banner-title {
    display: block; color: #fff; font-size: 18px; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tm-banner-desc {
    display: block; margin-top: 4px; color: rgba(255, 255, 255, .78);
    font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tm-banner-slide.is-ph .tm-banner-title { font-size: 22px; }

/* 题材胶囊条 */
.tm-typebar {
    background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.tm-typebar {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding: 0 12px;
    scrollbar-width: none; white-space: nowrap;
}
.tm-typebar::-webkit-scrollbar { display: none; }
.tm-typebar a {
    flex: 0 0 auto; padding: 7px 18px; margin: 10px 0; border-radius: 17px;
    font-size: 14px; color: #555; background: #f6f6f8;
}
.tm-typebar a:hover { color: var(--tm-primary); background: var(--tm-primary-bg); }

/* 精品官方推荐大卡（贴参考 premium_banner 深色卡 530px 形制，缩为 320px） */
.tm-premium { margin-top: 40px; }
.tm-premium-cont {
    position: relative; border-radius: 20px; overflow: hidden;
    background: #0d191f; min-height: 320px;
    display: flex; align-items: center;
}
.tm-premium-brief { flex: 1; min-width: 0; padding: 36px 40px; position: relative; z-index: 2; }
.tm-premium-title {
    color: #fff; font-size: 30px; font-weight: 800; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tm-premium-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tm-premium-tags span {
    padding: 4px 14px; border-radius: 15px; font-size: 12px;
    color: #ffce6b; border: 1px solid rgba(255, 206, 107, .45);
}
.tm-premium-text {
    margin-top: 14px; color: rgba(255, 255, 255, .66); font-size: 13px; line-height: 22px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tm-premium-btn {
    display: inline-block; margin-top: 22px; padding: 0 34px; height: 44px;
    line-height: 44px; border-radius: 22px; font-size: 15px; font-weight: 700;
    background: linear-gradient(95deg, #ffa800, #ff6f00); color: #fff;
}
.tm-premium-btn:hover { opacity: .92; }
.tm-premium-pic {
    flex: 0 0 420px; align-self: stretch; position: relative; min-height: 320px;
}
.tm-premium-pic img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.tm-premium-pic.is-ph { background: linear-gradient(135deg, #243247, #101a26); }

/* 模块头：黑体大标题 + 橙色强调字（贴参考 精品官方推荐） */
.tm-mod-head {
    margin: 44px 0 20px; display: flex; align-items: baseline; gap: 12px;
}
.tm-mod-title { font-size: 26px; font-weight: 800; color: #191a1f; }
.tm-mod-title em { font-style: normal; color: var(--tm-primary); }
.tm-mod-more { font-size: 13px; color: #a1a1a8; }

/* ---------- C. 漫画卡网格（六列 3:4 竖版封面，贴参考 manhua_ls） ---------- */
.tm-grid {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 0 16px; margin-bottom: 18px;
}
.tm-grid > li { margin-bottom: 28px; min-width: 0; }
.tm-comic { display: block; min-width: 0; }
.tm-comic-cover { position: relative; }
.tm-comic-badge {
    position: absolute; left: 0; top: 0; z-index: 2;
    padding: 0 8px; height: 22px; line-height: 22px;
    background: linear-gradient(95deg, #ffa800, #ff6f00);
    color: #fff; font-size: 11px; border-radius: 8px 0 8px 0;
}
.tm-comic-pic {
    position: relative; width: 100%; padding-top: 133%;
    border-radius: 8px; overflow: hidden; background: #f0f1f3;
}
.tm-comic-pic img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; transition: transform .3s;
}
.tm-comic:hover .tm-comic-pic img { transform: scale(1.05); }
.tm-comic-pic .tm-noimg {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #b9bcc4; font-size: 13px;
}
.tm-comic-title {
    margin-top: 10px; font-size: 14px; font-weight: 600; color: #333;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tm-comic:hover .tm-comic-title { color: var(--tm-primary); }
.tm-comic-desc {
    margin-top: 4px; font-size: 12px; color: var(--tm-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tm-comic-desc i { font-style: normal; margin: 0 5px; color: #d8d8dc; }

/* ---------- D. 列表页 ---------- */
.tm-crumb { padding: 16px 0 4px; font-size: 13px; color: #bbb; }
.tm-crumb a { color: #999; }
.tm-crumb a:hover { color: var(--tm-primary); }
.tm-crumb-sep { margin: 0 6px; color: #d5d5da; }

/* 筛选胶囊行（贴参考 comics.html 分类/排序行） */
.tm-filter {
    background: #fff; border-radius: 10px; padding: 14px 20px; margin-top: 14px;
    box-shadow: var(--tm-shadow);
}
.tm-filter-row { display: flex; align-items: flex-start; padding: 6px 0; }
.tm-filter-label { flex: 0 0 52px; font-size: 13px; color: #999; line-height: 26px; }
.tm-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-filter-pills a {
    padding: 3px 16px; border-radius: 13px; font-size: 13px; color: #555; line-height: 20px;
}
.tm-filter-pills a:hover { color: var(--tm-primary); }
.tm-filter-pills a.on {
    background: var(--tm-primary); color: #fff; font-weight: 600;
}

.tm-cat-head { margin-top: 22px; }
.tm-page-head { margin-top: 26px; }
.tm-page-title { font-size: 26px; font-weight: 800; color: #191a1f; }
.tm-page-sub { margin-top: 8px; font-size: 13px; color: #999; }
.tm-empty {
    background: #fff; border-radius: 10px; padding: 56px 20px; text-align: center;
    color: #a1a1a8; font-size: 14px; box-shadow: var(--tm-shadow); margin-top: 16px;
}

/* 页内搜索条复用顶栏胶囊 */
.tm-page-search { margin-top: 14px; max-width: 420px; }
.tm-page-search input { width: 100%; }
.tm-page-search button { color: #fff; background: var(--tm-primary); border-radius: 13px; }

/* 首页 SEO / 友链 */
.tm-home-seo {
    background: #fff; border-radius: 10px; padding: 24px 28px; margin-top: 44px;
    box-shadow: var(--tm-shadow);
}
.tm-home-seo-title { font-size: 18px; font-weight: 700; color: #191a1f; }
.tm-home-seo-body { margin-top: 10px; font-size: 13px; color: #666; line-height: 24px; }
.tm-home-links {
    background: #fff; border-radius: 10px; padding: 20px 28px; margin-top: 20px;
    box-shadow: var(--tm-shadow);
}
.tm-home-links-title { font-size: 16px; font-weight: 700; color: #191a1f; }
.tm-home-links-body {
    margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px;
}
.tm-home-links-body a { color: #888; }
.tm-home-links-body a:hover { color: var(--tm-primary); }

/* ---------- E. 详情换装（浅色漫画门户） ---------- */
.tm-buy-card {
    background: #fff; border-radius: 10px; box-shadow: var(--tm-shadow);
}
.tm-buy-card .tm-btn-orange,
.tm-btn-orange {
    background: linear-gradient(95deg, #ffa800, #ff6f00);
    border-color: transparent; color: #fff;
}
.tm-btn-orange:hover { background: linear-gradient(95deg, #ff9700, #f06400); }
.tm-content-card {
    background: #fff; border-radius: 10px; box-shadow: var(--tm-shadow);
}

/* ---------- F. 响应式 ---------- */
@media (max-width: 1240px) {
    .tm-header-in { width: 100%; }
    .tm-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    .tm-header { display: none; }
    .tm-mnav { display: flex; position: sticky; top: 0; z-index: 50; }
    .tm-banner-track { height: 220px; }
    .tm-banner-slide { flex-basis: 340px; }
    .tm-premium-cont { flex-direction: column; align-items: stretch; }
    .tm-premium-pic { flex: 0 0 auto; height: 220px; }
    .tm-premium-brief { padding: 24px; }
    .tm-premium-title { font-size: 22px; }
    .tm-quickbar { right: 12px; bottom: 72px; }
}
@media (max-width: 767px) {
    .tm-banner { padding: 10px 0 12px; }
    .tm-banner-track { height: 170px; padding: 0 12px; gap: 10px; }
    .tm-banner-slide { flex-basis: 260px; }
    .tm-typebar { justify-content: flex-start; }
    .tm-mod-head { margin: 30px 0 14px; }
    .tm-mod-title { font-size: 20px; }
    .tm-grid { grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
    .tm-grid > li { margin-bottom: 18px; }
    .tm-comic-title { font-size: 13px; }
    .tm-filter { padding: 10px 14px; }
    .tm-filter-row { flex-direction: column; }
    .tm-filter-label { line-height: 22px; }
    .tm-footer { margin-top: 40px; padding: 30px 0 18px; }
    .tm-footer-links { gap: 6px 12px; }
}
@media (max-width: 480px) {
    .tm-banner-track { height: 150px; }
    .tm-banner-slide { flex-basis: 220px; }
    .tm-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-page-title { font-size: 21px; }
    .tm-premium-pic { height: 180px; }
}


/* ============================================================
   ===== tunman fix =====（详情/友链/VIP 沿用页欠账 22 类）
   ============================================================ */
.tm-entry-header { margin-bottom: 18px; }
.tm-entry-title {
    font-size: 26px; font-weight: 800; color: #191a1f; margin: 0 0 12px;
    padding-left: 14px; border-left: 4px solid var(--tm-primary); line-height: 1.3;
}
.tm-paypanel {
    position: relative; background: #fff; border: 1px solid #eee;
    border-radius: 10px; padding: 22px 24px; margin-bottom: 20px;
    box-shadow: var(--tm-shadow);
}
.tm-post-cat {
    display: inline-block; padding: 1px 10px; border-radius: 20px;
    background: var(--tm-primary-bg); color: var(--tm-primary); font-size: 12px;
}
.tm-post-date { color: #a1a1a8; }
.tm-post-field { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tm-post-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tm-post-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 10px; padding: 0; }
.tm-post-update { color: #a1a1a8; }
.tm-post-views { color: #a1a1a8; }
.tm-prenext { margin-bottom: 20px; }
.tm-prenext-card {
    display: flex; flex-direction: column; gap: 6px; background: #fff;
    border: 1px solid #eee; border-radius: 10px; padding: 14px 16px;
    text-decoration: none; box-shadow: var(--tm-shadow);
}
.tm-prenext-card:hover { border-color: var(--tm-primary); }
.tm-prenext-in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tm-prenext-label { font-size: 12px; color: #a1a1a8; }
.tm-prenext-title {
    font-size: 14px; color: #333; font-weight: 600;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.tm-single-download { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.tm-dl-btn {
    display: inline-block; padding: 10px 26px; border: 0; border-radius: 8px;
    background: linear-gradient(95deg, #ffa800, #ff6f00); color: #fff;
    font-size: 15px; font-weight: 700; cursor: pointer;
}
.tm-dl-btn:hover { opacity: .92; }
.tm-dl-note { font-size: 12px; color: #a1a1a8; }
.tm-link-name { font-size: 15px; font-weight: 600; color: #333; }
.tm-link-text { font-size: 13px; color: #999; }
.tm-links-intro { font-size: 13px; color: #999; margin: 0 0 14px; }
.tm-cta-body {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    background: #fff; border: 1px solid #eee; border-radius: 10px;
    padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--tm-shadow);
}

/* 付费引导卡（七十七期：同步主站 m-paid-cta 形态 —— 大号橙价 + 绿色按钮 + 找回订单） */
.tm-paid-cta{background:linear-gradient(180deg,#f1f2f4,#e9eaec);border-radius:10px;padding:22px 16px;text-align:center;margin:18px 0}
.tm-paid-cta-price{font-size:14px;color:#555;margin-bottom:14px}
.tm-paid-cta-price strong{font-size:30px;color:#ff6600;font-weight:700;margin:0 4px;line-height:1.1}
.tm-paid-cta-btn{display:inline-block;border:0;cursor:pointer;padding:13px 64px;border-radius:8px;color:#fff;font-size:16px;font-weight:600;background:linear-gradient(180deg,#2fce5f,#17b34a);box-shadow:0 4px 12px rgba(23,179,74,.28);transition:transform .18s,box-shadow .18s}
.tm-paid-cta-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(23,179,74,.36)}
.tm-paid-cta-tip{font-size:13px;color:#888;margin-top:12px}
.tm-paid-cta-tip a{color:#ff8c00;text-decoration:none}
.tm-paid-cta-tip a:hover{text-decoration:underline}
@media (max-width:640px){.tm-paid-cta-btn{width:100%;padding:13px 0}}
/* thumb-full-override 2026-10-09 */
[class*="-post-thumb"] img,[class*="-hero-thumb"] img,[class*="-cathero-media"] img,[class*="s-thumb"] img{object-fit:contain}
