@charset "utf-8";
/* ==========================================================================
   tpl020 重排版样式  ——  主题「薄荷格栅」
   配色：薄荷白底 + 青蓝主色 + 珊瑚橙点缀
   特征：3:4 竖封面、胶囊形导航与标签、14px 大圆角卡片、移动优先
   本表为独立样式，已不再依赖原 rem 制的 vant app.css。
   注意：#content / #search_sub 是报头内联搜索脚本的钩子；
         img[data-src] 由页脚脚本换成真实地址；两者类名/属性不可改。
   ========================================================================== */

:root {
    --t20-bg: #f2f7f6;
    --t20-card: #ffffff;
    --t20-line: #dde8e6;
    --t20-tx: #17322f;
    --t20-tx2: #52706c;
    --t20-tx3: #8ba39f;
    --t20-teal: #0f9b8e;
    --t20-teal-d: #0a7d72;
    --t20-teal-l: #e3f4f1;
    --t20-coral: #ff7a59;
    --t20-r: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--t20-bg);
    color: var(--t20-tx);
    font-size: 15px;
    line-height: 1.6;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
img { border: 0; display: block; }

.t20-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ---------- 顶部广告 ---------- */
.t20-ad { padding: 10px 0 0; line-height: 0; }
.t20-ad > div { margin-bottom: 8px; }
.t20-ad img { width: 100%; height: auto; border-radius: var(--t20-r); }

/* ---------- 报头 ---------- */
.t20-head {
    background: var(--t20-card);
    border-bottom: 1px solid var(--t20-line);
    position: sticky;
    top: 0;
    z-index: 60;
}

.t20-head-in {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
}

.t20-logo { flex: 0 0 auto; }

.t20-logo img {
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

/* 搜索：胶囊形 */
.t20-seek {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    background: var(--t20-bg);
    border: 1px solid var(--t20-line);
    border-radius: 999px;
    overflow: hidden;
}

.t20-seek input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: var(--t20-tx);
    font-size: 15px;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
}

.t20-seek input::placeholder { color: var(--t20-tx3); }

.t20-seek-go {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    background: var(--t20-teal);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}

.t20-seek-go:hover { background: var(--t20-teal-d); }

/* ---------- 导航：胶囊行 ---------- */
.t20-nav {
    display: flex;
    gap: 8px;
    padding: 12px 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.t20-nav::-webkit-scrollbar { display: none; }

.t20-nav a {
    flex: 0 0 auto;
    padding: 8px 18px;
    font-size: 14px;
    color: var(--t20-tx2);
    background: var(--t20-card);
    border: 1px solid var(--t20-line);
    border-radius: 999px;
    white-space: nowrap;
}

.t20-nav a:hover { color: var(--t20-teal); border-color: var(--t20-teal); }

.t20-nav a.t20-cur {
    color: #fff;
    background: var(--t20-teal);
    border-color: var(--t20-teal);
    font-weight: 700;
}

/* ---------- 快捷链接：彩色胶囊 ---------- */
.t20-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0 0;
}

.t20-links a {
    padding: 9px 6px;
    text-align: center;
    font-size: 13px;
    color: var(--t20-teal-d);
    background: var(--t20-teal-l);
    border-radius: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.t20-links a:hover { background: var(--t20-teal); color: #fff; }
.t20-links a:nth-child(5n+2) { color: #b8501f; background: #ffeee7; }
.t20-links a:nth-child(5n+2):hover { background: var(--t20-coral); color: #fff; }
.t20-links a:nth-child(5n+4) { color: #3a5fa8; background: #e9eefb; }
.t20-links a:nth-child(5n+4):hover { background: #4a72c4; color: #fff; }
.t20-links:empty { display: none; }

/* ---------- 主体 ---------- */
.t20-main { padding: 6px 0 28px; }

.t20-sec { margin-top: 24px; }

.t20-sec-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.t20-sec-hd h1,
.t20-sec-hd h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--t20-tx);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.t20-sec-hd h1::before,
.t20-sec-hd h2::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 18px;
    border-radius: 4px;
    background: var(--t20-teal);
}

.t20-more {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--t20-teal);
    padding: 5px 12px;
    background: var(--t20-teal-l);
    border-radius: 999px;
}

.t20-more:hover { background: var(--t20-teal); color: #fff; }

/* ---------- 卡片：3:4 竖封面 ---------- */
.t20-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.t20-item { min-width: 0; }

.t20-pic {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--t20-r);
    background: var(--t20-teal-l);
    box-shadow: 0 2px 8px rgba(15, 155, 142, .08);
}

.t20-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.t20-item:hover .t20-pic img { transform: scale(1.05); }

.t20-item:hover .t20-pic {
    box-shadow: 0 8px 20px rgba(15, 155, 142, .2);
}

.t20-tt {
    margin: 8px 2px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--t20-tx);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t20-item:hover .t20-tt { color: var(--t20-teal); }

/* ---------- 列表页头 ---------- */
.t20-list-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 0 12px;
    border-bottom: 2px solid var(--t20-teal);
    margin-bottom: 16px;
}

.t20-list-hd h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
}

.t20-total { font-size: 13px; color: var(--t20-tx3); }
.t20-total b { color: var(--t20-coral); font-size: 15px; }

/* ---------- 分页 ---------- */
.t20-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
}

.t20-pager a,
.t20-pager .t20-pg-cur {
    display: block;
    min-width: 40px;
    padding: 9px 14px;
    text-align: center;
    font-size: 14px;
    color: var(--t20-tx2);
    background: var(--t20-card);
    border: 1px solid var(--t20-line);
    border-radius: 10px;
}

.t20-pager a:hover { color: var(--t20-teal); border-color: var(--t20-teal); }

.t20-pager .t20-pg-cur {
    background: var(--t20-teal);
    border-color: var(--t20-teal);
    color: #fff;
    font-weight: 700;
}

/* 跳页框 */
.t20-jump {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-left: 6px;
}

.t20-jump input {
    width: 62px;
    height: 40px;
    padding: 0 10px;
    text-align: center;
    font-size: 14px;
    color: var(--t20-tx);
    background: var(--t20-card);
    border: 1px solid var(--t20-line);
    border-radius: 10px;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
}

.t20-jump input:focus { border-color: var(--t20-teal); }

.t20-jump .page-go {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    color: #fff;
    background: var(--t20-teal);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
}

.t20-jump .page-go:hover { background: var(--t20-teal-d); }

/* ---------- 详情页 ---------- */
.t20-detail {
    background: var(--t20-card);
    border: 1px solid var(--t20-line);
    border-radius: 18px;
    padding: 16px;
    margin-top: 14px;
}

.t20-detail-tt {
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    padding-left: 12px;
    border-left: 5px solid var(--t20-teal);
}

.t20-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 640px;
    background: #0c1a19;
    border-radius: var(--t20-r);
    overflow: hidden;
}

.t20-player video,
.t20-player iframe,
.t20-player embed,
.t20-player object {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* 磁力信息 */
.t20-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.t20-meta-row {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    font-size: 14px;
    background: var(--t20-bg);
    border-radius: 10px;
    min-width: 0;
}

.t20-meta-k { flex: 0 0 auto; color: var(--t20-tx3); }
.t20-meta-v { flex: 1 1 auto; min-width: 0; word-break: break-all; }

.t20-sub {
    margin: 16px 0 10px;
    font-size: 15px;
    font-weight: 700;
    padding-left: 10px;
    border-left: 4px solid var(--t20-coral);
}

/* 截图：{@torrent_capture} 输出的 img 自带内联宽度，这里只描边不覆盖宽度 */
.t20-caps { line-height: 0; }

.t20-caps img,
.t20-caps .img_item {
    display: inline-block;
    box-sizing: border-box;
    border: 1px solid var(--t20-line);
    border-radius: 10px;
    background: var(--t20-teal-l);
    vertical-align: top;
}

/* 下载按钮 */
.t20-dl {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.t20-dl a {
    display: inline-block;
    padding: 11px 26px;
    background: var(--t20-teal);
    color: #fff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.t20-dl a:hover { background: var(--t20-teal-d); }
.t20-dl a.t20-dl-alt { background: var(--t20-coral); }
.t20-dl a.t20-dl-alt:hover { background: #e8623f; }

.t20-client { margin-top: 14px; text-align: center; font-size: 14px; }
.t20-client a { color: var(--t20-teal-d); text-decoration: underline; }

/* ---------- 页脚 ---------- */
.el-footer,
.t20-foot {
    margin-top: 30px;
    background: var(--t20-card);
    border-top: 1px solid var(--t20-line);
}

.el-footer .footer,
.t20-foot-in { padding: 22px 14px 26px; }

.el-footer .container,
.t20-foot-in {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.el-footer p,
.t20-foot p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.9;
    color: var(--t20-tx3);
}

.el-footer a { color: var(--t20-teal) !important; font-size: 14px !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .t20-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .t20-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .t20-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .t20-head-in { min-height: 54px; gap: 10px; }
    .t20-logo img { height: 32px; max-width: 120px; }
    .t20-meta { grid-template-columns: minmax(0, 1fr); }
    .t20-detail { padding: 12px; border-radius: 14px; }
}

@media (max-width: 520px) {
    .t20-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .t20-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .t20-sec-hd h1,
    .t20-sec-hd h2 { font-size: 16px; }
    .t20-tt { font-size: 13px; }
    .t20-dl a { flex: 1 1 auto; text-align: center; padding: 10px 16px; }
    .t20-seek-go { width: 60px; font-size: 14px; }
}
