/* ==================================================================
 * tpl-e.css — 模板 E · 沉浸大图式
 * 骨架前缀：tE-
 * 风格：全屏大图 Hero / 图片卡片网格 / 全宽大图详情
 * 依赖：style.css、theme_css（CSS 变量）
 * ================================================================== */

* { box-sizing: border-box; }
body {
    margin: 0;
    color: #e5e7eb;
    background: var(--site-bg);
    font-family: var(--font);
    line-height: 1.72;
}
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; }

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

/* ---------------- 透明导航（叠在 Hero 上） ---------------- */
.tE-head { position: absolute; top: 0; left: 0; right: 0; z-index: 60; }
.tE-head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.tE-logo { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.tE-nav { display: flex; gap: 20px; font-size: 14.5px; flex-wrap: wrap; }
.tE-nav a { color: rgba(255,255,255,.86); padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
.tE-nav a:hover, .tE-nav a.on { color: #fff; border-bottom-color: var(--secondary); }

/* ---------------- 全屏大图 Hero ---------------- */
.tE-hero, .tE-chero, .tE-dhero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
}
.tE-hero { min-height: 78vh; display: flex; align-items: center; }
.tE-chero { min-height: 44vh; display: flex; align-items: center; }
.tE-dhero { min-height: 60vh; display: flex; align-items: center; }
.tE-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tE-hero-mask {
    position: absolute; inset: 0;
    background: linear-gradient(200deg, rgba(8,47,73,.72) 0%, rgba(2,6,23,.86) 100%);
}
.tE-hero-in, .tE-chero-in, .tE-dhero-in { position: relative; z-index: 2; color: #fff; }
.tE-hero-in { max-width: 760px; }
.tE-hero-badge { font-size: 13px; letter-spacing: 3px; color: var(--secondary); margin-bottom: 16px; }
.tE-hero h1 { font-size: 54px; line-height: 1.18; letter-spacing: 1px; text-shadow: 0 4px 22px rgba(0,0,0,.5); }
.tE-hero p { font-size: 17px; color: rgba(255,255,255,.86); margin-top: 18px; max-width: 38em; }
.tE-hero-btns { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.tE-btn { display: inline-block; padding: 13px 34px; border-radius: var(--radius); font-size: 15px; font-weight: 600; background: var(--secondary); color: #1c1917; transition: .2s; }
.tE-btn:hover { filter: brightness(1.08); }
.tE-btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.tE-btn.ghost:hover { background: rgba(255,255,255,.22); }

/* ---------------- 分类大卡 ---------------- */
.tE-cats { padding: 44px 0 10px; background: var(--site-bg); }
.tE-cats-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tE-catcard {
    position: relative;
    display: block;
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 6px 20px -14px rgba(0,0,0,.5);
    transition: .25s;
    overflow: hidden;
}
.tE-catcard::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}
.tE-catcard:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(0,0,0,.55); }
.tE-catcard span { font-size: 24px; }
.tE-catcard b { display: block; font-size: 18px; color: var(--dark); margin: 8px 0 4px; }
.tE-catcard em { font-style: normal; font-size: 13.5px; color: #6b7280; }

/* ---------------- 图片卡片网格 ---------------- */
.tE-grid-wrap { padding: 46px 0 56px; background: var(--site-bg); }
.tE-sechead { margin-bottom: 26px; }
.tE-sechead h2 { font-size: 28px; color: var(--dark); letter-spacing: .5px; }
.tE-sechead p { font-size: 15px; color: #6b7280; margin-top: 8px; }
.tE-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tE-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #111827;
    transition: .3s;
}
.tE-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .45s; }
.tE-card:hover img { transform: scale(1.06); }
.tE-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.86) 100%); }
.tE-score {
    position: absolute; top: 12px; right: 12px;
    background: var(--secondary); color: #1c1917;
    font-size: 13px; font-weight: 800; padding: 3px 11px; border-radius: 999px;
}
.tE-cardtxt { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.tE-cardtxt b { display: block; font-size: 17px; margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.tE-cardtxt em { font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.82); }
.tE-more { text-align: center; margin-top: 34px; }
.tE-more a { display: inline-block; padding: 12px 42px; border-radius: var(--radius); background: var(--primary); color: #fff; font-size: 15px; }
.tE-more a:hover { filter: brightness(1.1); }

/* ---------------- 指南 ---------------- */
.tE-guide { background: #fff; padding: 54px 0; }
.tE-guide-in { max-width: 900px; }
.tE-guide h2 { font-size: 26px; color: var(--dark); margin-bottom: 16px; }
.tE-guide p { font-size: 15.5px; color: #4b5563; margin-bottom: 13px; }
.tE-guide ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; margin: 20px 0; }
.tE-guide li { position: relative; padding-left: 22px; font-size: 15px; color: #4b5563; }
.tE-guide li::before { content: "▹"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.tE-tail { color: #9ca3af !important; }

/* ---------------- 分类页 / 详情页 ---------------- */
.tE-crumb { font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 14px; }
.tE-crumb a:hover { color: #fff; }
.tE-chero-in h1 { font-size: 42px; letter-spacing: 1px; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.tE-chero-in p { font-size: 16px; color: rgba(255,255,255,.86); margin-top: 12px; }
.tE-note { background: #fff; border-radius: var(--radius); padding: 20px 24px; font-size: 15px; color: #4b5563; margin-bottom: 26px; box-shadow: 0 6px 20px -16px rgba(0,0,0,.5); }

.tE-dhero-in { display: flex; align-items: flex-end; gap: 32px; padding-bottom: 40px; }
.tE-dposter { width: 190px; border-radius: var(--radius); box-shadow: 0 24px 46px -18px rgba(0,0,0,.75); }
.tE-dhero-txt h1 { font-size: 40px; letter-spacing: 1px; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.tE-dmeta { font-size: 15px; color: rgba(255,255,255,.86); margin-top: 12px; }
.tE-drate { font-size: 26px; font-weight: 800; color: var(--secondary); margin-top: 8px; }
.tE-dbody { padding: 40px 0 64px; background: var(--site-bg); }
.tE-dbody-in { max-width: 940px; }
.tE-dbody .tE-crumb { color: #9ca3af; }
.tE-dbody .tE-crumb a:hover { color: var(--primary); }
.tE-lead { font-size: 17px; color: #374151; font-weight: 500; background: #fff; border-left: 5px solid var(--primary); padding: 16px 22px; border-radius: var(--radius); margin-bottom: 22px; }
.tE-dbody h2 { font-size: 22px; color: var(--dark); margin: 32px 0 12px; }
.tE-dbody p { font-size: 15.5px; color: #4b5563; }
.tE-plats { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.tE-plats span { font-size: 13.5px; color: var(--primary); background: #fff; border: 1px solid #e5e7eb; padding: 6px 16px; border-radius: var(--radius); }
.tE-warn { font-size: 13px !important; color: #b91c1c !important; }
.tE-revs { display: flex; flex-direction: column; gap: 12px; }
.tE-revs p { background: #fff; border-radius: var(--radius); padding: 14px 18px; }
.tE-faq { background: #fff; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.tE-faq h4 { font-size: 15.5px; color: var(--dark); margin-bottom: 6px; }
.tE-relblock { margin-top: 34px; }
.tE-relblock .tE-grid { margin-top: 16px; }

/* ---------------- 页脚 ---------------- */
.tE-foot { background: #020617; padding: 52px 0 34px; text-align: center; }
.tE-foot-in { max-width: 720px; margin: 0 auto; }
.tE-foot h3 { font-size: 24px; color: #fff; letter-spacing: 3px; margin-bottom: 14px; }
.tE-foot-intro { font-size: 14.5px; color: #94a3b8; line-height: 1.9; }
.tE-foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0; }
.tE-foot-links a { font-size: 14px; color: #cbd5e1; }
.tE-foot-links a:hover { color: var(--secondary); }
.tE-foot-tip { font-size: 12.5px; color: #64748b; padding-top: 18px; border-top: 1px solid #1e293b; }
.tE-foot-copy { font-size: 12.5px; color: #475569; margin-top: 12px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
    .tE-grid { grid-template-columns: repeat(3, 1fr); }
    .tE-cats-in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .tE-hero { min-height: 66vh; }
    .tE-hero h1 { font-size: 36px; }
    .tE-head { position: static; background: var(--dark); }
    .tE-head-in { height: auto; padding: 14px 0; flex-direction: column; gap: 12px; }
    .tE-nav { justify-content: center; }
    .tE-dhero-in { flex-direction: column; align-items: flex-start; padding-bottom: 30px; }
    .tE-dposter { width: 140px; }
    .tE-dhero-txt h1 { font-size: 28px; }
    .tE-chero-in h1 { font-size: 30px; }
    .tE-guide ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .tE-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .tE-cats-in { grid-template-columns: 1fr; }
    .tE-hero h1 { font-size: 28px; }
    .tE-hero p { font-size: 15px; }
}
