/* ==================================================================
 * tpl-c.css — 模板 C · 清新杂志文字流
 * 骨架前缀：tC-
 * 风格：窄容器单列 + 轻色背景 + 编号列表 + 海报小缩略图 + 卡片化
 * 依赖：style.css、theme_css（CSS 变量）
 * ================================================================== */

* { box-sizing: border-box; }
body {
    margin: 0;
    color: #1f2937;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 320px);
    font-family: var(--font);
    line-height: 1.75;
    font-size: 15.5px;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: .2s; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.3px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* ---------------- 顶部主题色细条 ---------------- */
.tC-topbar { height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

/* ---------------- 导航 ---------------- */
.tC-head { background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid #eef2f7; position: sticky; top: 0; z-index: 50; }
.tC-head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 66px; }
.tC-logo { font-size: 18px; font-weight: 700; letter-spacing: 1.5px; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.tC-logo::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px rgba(185,28,28,.12); }
.tC-nav { display: flex; gap: 6px; font-size: 14.5px; flex-wrap: wrap; }
.tC-nav a { color: #4b5563; padding: 6px 12px; border-radius: var(--radius); }
.tC-nav a:hover { color: var(--primary); background: rgba(15,23,42,.05); }
.tC-nav a.on { color: #fff; background: var(--primary); }

/* ---------------- Hero（带柔和渐变） ---------------- */
.tC-hero { padding: 56px 0 44px; position: relative; }
.tC-hero::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent); }
.tC-hero-badge { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--secondary); letter-spacing: 2.5px; padding: 5px 12px; border: 1px solid rgba(185,28,28,.22); border-radius: 999px; background: rgba(185,28,28,.05); text-transform: uppercase; }
.tC-hero h1 { font-size: 40px; line-height: 1.25; color: #0f172a; margin-top: 18px; }
.tC-hero-sub { font-size: 16px; color: #64748b; margin-top: 14px; max-width: 42em; line-height: 1.8; }

/* ---------------- 选片指南卡片 ---------------- */
.tC-guide { margin-top: 12px; }
.tC-guide-card { background: #fff; border: 1px solid #eef2f7; border-radius: calc(var(--radius) + 8px); padding: 28px 30px; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.tC-h2 { font-size: 20px; color: #0f172a; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.tC-h2::before { content: ""; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; }
.tC-guide-card > p { font-size: 15px; color: #475569; margin-top: 14px; line-height: 1.85; }
.tC-tips { margin-top: 18px; display: grid; gap: 10px; }
.tC-tips li { position: relative; padding-left: 22px; font-size: 14.5px; color: #475569; line-height: 1.7; }
.tC-tips li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); opacity: .7; }
.tC-tail { margin-top: 18px; font-size: 13.5px; color: #94a3b8; padding-top: 16px; border-top: 1px dashed #e2e8f0; }

/* ---------------- 分类胶囊 ---------------- */
.tC-cats { padding: 34px 0 6px; }
.tC-cats-in { display: flex; flex-wrap: wrap; gap: 10px; }
.tC-cats-in a { font-size: 14px; color: #475569; padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; }
.tC-cats-in a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-1px); }

/* ---------------- 影片列表（带编号 + 小海报 + hover 卡片效果） ---------------- */
.tC-list { padding: 34px 0 54px; }
.tC-sub { font-size: 14px; color: #94a3b8; margin-top: 8px; padding-left: 14px; }
.tC-rows { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.tC-row {
    display: grid;
    grid-template-columns: 48px 80px 1.4fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: calc(var(--radius) + 6px);
    transition: .2s;
}
.tC-row:hover { border-color: var(--primary); box-shadow: 0 6px 20px -8px rgba(15,23,42,.15); transform: translateY(-2px); }
.tC-idx {
    font-size: 20px;
    font-weight: 700;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
    text-align: center;
    line-height: 1;
}
.tC-row:nth-child(-n+3) .tC-idx { color: var(--secondary); }
.tC-thumb {
    width: 80px; height: 112px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    flex-shrink: 0;
    position: relative;
}
.tC-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tC-thumb::after { content: "🎬"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; opacity: .3; }
.tC-thumb img { position: relative; z-index: 1; }
.tC-body { min-width: 0; }
.tC-row-t { font-size: 16.5px; font-weight: 600; color: #0f172a; display: block; margin-bottom: 6px; }
.tC-row:hover .tC-row-t { color: var(--primary); }
.tC-row-d { font-size: 13.5px; color: #64748b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.7; }
.tC-row-m { font-size: 12.5px; color: #94a3b8; margin-top: 6px; display: block; }
.tC-row-r {
    font-size: 18px; font-weight: 700; color: var(--secondary);
    padding: 4px 10px; border: 1px solid rgba(185,28,28,.2); border-radius: var(--radius);
    background: rgba(185,28,28,.05);
    line-height: 1;
    white-space: nowrap;
}

/* ---------------- 分类页头 ---------------- */
.tC-chead { padding: 44px 0 30px; }
.tC-crumb { font-size: 13px; color: #94a3b8; margin-bottom: 14px; }
.tC-crumb a { color: #64748b; border-bottom: 1px dashed #cbd5e1; }
.tC-crumb a:hover { color: var(--primary); border-color: var(--primary); }
.tC-chead h1 { font-size: 32px; color: #0f172a; }
.tC-chead p { font-size: 15px; color: #64748b; margin-top: 10px; max-width: 36em; line-height: 1.8; }
.tC-note { background: #f8fafc; border-left: 3px solid var(--primary); padding: 14px 18px; border-radius: var(--radius); font-size: 14px; color: #475569; line-height: 1.8; margin-bottom: 22px; }

/* ---------------- 详情页 ---------------- */
.tC-article { padding: 36px 0 54px; }
.tC-article-in { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.tC-aimg { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; margin: 10px 0 28px; padding: 28px; background: #fff; border: 1px solid #eef2f7; border-radius: calc(var(--radius) + 6px); }
.tC-aimg-poster img { width: 240px; height: 336px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 8px 24px -12px rgba(15,23,42,.25); }
.tC-aimg-body { min-width: 0; padding-top: 8px; }
.tC-ameta { font-size: 14px; color: #64748b; margin: 14px 0 18px; }
.tC-ameta b { color: var(--secondary); font-size: 17px; }
.tC-lead { font-size: 16px; color: #334155; line-height: 1.9; padding: 16px 20px; background: linear-gradient(90deg, rgba(15,23,42,.03), transparent); border-left: 3px solid var(--secondary); border-radius: var(--radius); }
.tC-article-in h2 { font-size: 20px; color: #0f172a; margin: 32px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.tC-article-in > p { font-size: 15.5px; color: #374151; line-height: 1.9; }
.tC-plats { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 10px; }
.tC-plats span { font-size: 14px; color: #475569; padding: 6px 14px; background: #f1f5f9; border-radius: 999px; }
.tC-warn { font-size: 13px; color: #94a3b8; margin-top: 12px; }
.tC-tagbox { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tC-tagbox span { font-size: 13px; color: var(--primary); background: rgba(15,23,42,.06); padding: 4px 12px; border-radius: var(--radius); }
.tC-revs, .tC-faq, .tC-rel { margin-top: 14px; }
.tC-revs p { font-size: 14.5px; color: #475569; padding: 12px 16px; background: #f8fafc; border-radius: var(--radius); margin-bottom: 10px; line-height: 1.8; }
.tC-faq { padding: 16px 20px; background: #fff; border: 1px solid #eef2f7; border-radius: var(--radius); margin-bottom: 12px; }
.tC-faq h4 { font-size: 15px; color: #0f172a; margin-bottom: 8px; }
.tC-faq p { font-size: 14px; color: #475569; line-height: 1.8; }
.tC-rel { display: flex; flex-direction: column; gap: 8px; }
.tC-rel a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fff; border: 1px solid #eef2f7; border-radius: var(--radius); font-size: 14.5px; color: #374151; }
.tC-rel a:hover { border-color: var(--primary); color: var(--primary); }
.tC-rel em { font-style: normal; font-size: 12.5px; color: #94a3b8; }

/* ---------------- 辅助页 & 404 ---------------- */
.tC-aux { padding: 60px 0 80px; }
.tC-aux-card { background: #fff; border: 1px solid #eef2f7; border-radius: calc(var(--radius) + 6px); padding: 40px 44px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.tC-aux-card h1 { font-size: 30px; color: #0f172a; margin-bottom: 18px; }
.tC-aux-card h2 { font-size: 19px; color: #0f172a; margin: 28px 0 12px; padding-left: 12px; border-left: 3px solid var(--primary); }
.tC-aux-card p, .tC-aux-card li { font-size: 15px; color: #374151; line-height: 1.9; }
.tC-aux-card ul { padding-left: 22px; list-style: disc; margin: 10px 0; }
.tC-aux-card ul li { margin-bottom: 6px; }
.tC-404 { padding: 90px 0 100px; text-align: center; }
.tC-404-code { font-size: 96px; font-weight: 800; background: var(--primary); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -4px; line-height: 1; }
.tC-404 h1 { font-size: 26px; color: #0f172a; margin: 12px 0 14px; }
.tC-404 p { font-size: 15px; color: #64748b; line-height: 1.8; max-width: 36em; margin: 0 auto 24px; }
.tC-404-btn { display: inline-block; padding: 12px 32px; background: var(--primary); color: #fff; border-radius: var(--radius); font-size: 15px; }
.tC-404-btn:hover { filter: brightness(1.1); }

/* ---------------- 页脚 ---------------- */
.tC-foot { margin-top: 20px; padding: 36px 0 40px; border-top: 1px solid #eef2f7; background: #fff; }
.tC-foot-in { text-align: center; }
.tC-foot-links { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; font-size: 14px; }
.tC-foot-links a { color: #64748b; }
.tC-foot-links a:hover { color: var(--primary); }
.tC-foot-tip { font-size: 13px; color: #94a3b8; margin-top: 18px; line-height: 1.7; }
.tC-foot-copy { font-size: 12.5px; color: #cbd5e1; margin-top: 10px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 780px) {
    .tC-wrap { padding: 0 16px; }
    .tC-head-in { height: 58px; gap: 10px; }
    .tC-logo { font-size: 16px; letter-spacing: 1px; }
    .tC-logo::before { width: 6px; height: 6px; }
    .tC-nav { gap: 2px; font-size: 13.5px; overflow-x: auto; }
    .tC-nav a { padding: 5px 9px; white-space: nowrap; }
    .tC-hero { padding: 40px 0 32px; }
    .tC-hero h1 { font-size: 28px; }
    .tC-hero-sub { font-size: 14.5px; }
    .tC-guide-card { padding: 22px 18px; }
    .tC-row { grid-template-columns: 32px 60px 1fr; gap: 12px; padding: 14px; }
    .tC-thumb { width: 60px; height: 84px; }
    .tC-idx { font-size: 16px; }
    .tC-row-t { font-size: 15px; }
    .tC-row-d { -webkit-line-clamp: 2; font-size: 13px; }
    .tC-row-m { font-size: 12px; }
    .tC-row-r { display: none; }
    .tC-aimg { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
    .tC-aimg-poster { text-align: center; }
    .tC-aimg-poster img { width: 180px; height: 252px; margin: 0 auto; }
    .tC-chead h1 { font-size: 26px; }
    .tC-aux-card { padding: 28px 22px; }
    .tC-aux-card h1 { font-size: 24px; }
    .tC-404-code { font-size: 72px; }
}
