/* ============================================================
   tpl1 · 暗夜霓虹 Neon Noir
   ============================================================ */
:root {
    --bg: #07070c;
    --bg2: #0c0c15;
    --card: #12121d;
    --line: rgba(255, 255, 255, .07);
    --txt: #ececf5;
    --txt2: #9ea3ba;
    --txt3: #6a6f88;
    --primary: #7c5cff;
    --accent: #22d3ee;
    --r: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    background: var(--bg);
    color: var(--txt);
    font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
.muted { color: var(--txt3); font-size: 12.5px; }

.glow-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(700px 420px at 8% -6%, rgba(124, 92, 255, .22), transparent 62%),
        radial-gradient(760px 420px at 96% 2%, rgba(34, 211, 238, .13), transparent 62%),
        radial-gradient(900px 500px at 50% 108%, rgba(124, 92, 255, .10), transparent 65%);
}

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* ---------- 头部 ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 7, 12, .78);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 22px; height: 64px; }

.logo { display: flex; align-items: center; gap: 9px; flex: none; }
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid; place-items: center;
    font-weight: 800; font-size: 15px; color: #fff;
    box-shadow: 0 6px 18px rgba(124, 92, 255, .45);
}
.logo-txt { font-size: 17px; font-weight: 700; letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow: hidden; }
.nav a {
    padding: 7px 13px; border-radius: 7px;
    font-size: 13.5px; color: var(--txt2); white-space: nowrap;
    transition: .18s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a:first-child { color: #fff; }
.nav a:first-child::after {
    content: ''; display: block; height: 2px; margin-top: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.search-box {
    flex: none; display: flex; align-items: center;
    width: 250px; height: 36px;
    padding: 0 4px 0 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    border-radius: 30px;
    transition: .2s;
}
.search-box:focus-within { border-color: rgba(124, 92, 255, .62); box-shadow: 0 0 0 3px rgba(124, 92, 255, .13); }
.search-box input {
    flex: 1; min-width: 0; background: none; border: 0; outline: none;
    color: var(--txt); font: inherit; font-size: 13px;
}
.search-box input::placeholder { color: var(--txt3); }
.search-box button {
    width: 28px; height: 28px; flex: none;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; cursor: pointer;
}

/* ---------- 轮播 ---------- */
.hero { margin: 22px 0 26px; }
.hero-viewport { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.hero-track { display: flex; transition: transform .85s cubic-bezier(.6, .05, .2, 1); }
.hero-slide {
    position: relative; flex: 0 0 100%;
    height: 420px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 22%;
    filter: blur(1px) saturate(112%);
    transform: scale(1.06);
}
.hero-mask {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 12, .96) 0%, rgba(7, 7, 12, .82) 42%, rgba(7, 7, 12, .34) 72%, rgba(7, 7, 12, .72) 100%),
        linear-gradient(0deg, rgba(7, 7, 12, .9), transparent 55%);
}
.hero-info {
    position: relative; z-index: 2;
    max-width: 560px; height: 100%;
    padding: 0 46px;
    display: flex; flex-direction: column; justify-content: center;
}
.hero-badge {
    align-self: flex-start;
    padding: 3px 11px; margin-bottom: 14px;
    border-radius: 20px; font-size: 11.5px; letter-spacing: .5px;
    color: #cbbfff;
    background: rgba(124, 92, 255, .18);
    border: 1px solid rgba(124, 92, 255, .34);
}
.hero-info h2 {
    font-size: 34px; line-height: 1.22; letter-spacing: -.6px;
    margin-bottom: 12px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
}
.hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--txt2); }
.hero-meta .score { color: #ffd166; font-weight: 700; font-size: 16px; }
.hero-meta i { color: var(--txt3); font-style: normal; }
.hero-desc {
    margin-top: 12px; font-size: 13.5px; color: var(--txt2); line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-btns { display: flex; gap: 12px; margin-top: 22px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 22px; border-radius: 8px;
    font-size: 13.5px; font-weight: 600;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: var(--txt); cursor: pointer; transition: .2s;
}
.btn:hover { background: rgba(255, 255, 255, .1); }
.btn-play {
    background: linear-gradient(135deg, var(--primary), #5b3aff);
    border-color: transparent; color: #fff;
    box-shadow: 0 8px 24px rgba(124, 92, 255, .38);
}
.btn-play:hover { box-shadow: 0 10px 30px rgba(124, 92, 255, .55); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); }

/* ---------- 分类快捷 ---------- */
.cat-list {
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
    margin-bottom: 34px;
}
.cat-item {
    padding: 14px 10px; text-align: center;
    border-radius: var(--r);
    background: linear-gradient(160deg, rgba(28, 28, 44, .9), rgba(14, 14, 22, .9));
    border: 1px solid var(--line);
    transition: .2s;
}
.cat-item:hover {
    border-color: rgba(124, 92, 255, .5);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
}
.cat-item b { display: block; font-size: 14px; margin-bottom: 3px; }
.cat-count { font-size: 11.5px; color: var(--txt3); }

/* ---------- 区块 ---------- */
.sec { margin-bottom: 38px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.sec-title { font-size: 19px; font-weight: 700; letter-spacing: -.2px; display: flex; align-items: center; gap: 9px; }
.dot {
    width: 4px; height: 17px; border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    box-shadow: 0 0 12px rgba(124, 92, 255, .7);
}
.sec-sub { font-size: 12.5px; color: var(--txt3); }
.sec-more { font-size: 12.5px; color: var(--txt2); transition: .2s; }
.sec-more:hover { color: var(--accent); }

/* ---------- 卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
    display: block; border-radius: var(--r); overflow: hidden;
    background: var(--card); border: 1px solid var(--line);
    transition: .22s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, .42);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .55);
}
.card-cover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #101018; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .card-cover img { transform: scale(1.07); }
.card-score {
    position: absolute; right: 8px; top: 8px;
    padding: 2px 8px; border-radius: 20px;
    font-size: 11.5px; font-weight: 700; color: #ffd166;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 209, 102, .32);
}
.card-cat {
    position: absolute; left: 8px; bottom: 8px;
    padding: 1px 8px; border-radius: 4px;
    font-size: 11px; color: #d7d2ff;
    background: rgba(124, 92, 255, .34);
    backdrop-filter: blur(6px);
}
.card-info { padding: 9px 10px 11px; }
.card-title {
    font-size: 13.5px; font-weight: 600; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta { font-size: 11.5px; color: var(--txt3); margin-top: 3px; }

/* ---------- 排行榜 ---------- */
.rank-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.rank-item a {
    display: flex; align-items: center; gap: 13px;
    padding: 9px 14px 9px 10px;
    border-radius: var(--r);
    background: linear-gradient(90deg, rgba(24, 24, 38, .9), rgba(14, 14, 22, .7));
    border: 1px solid var(--line);
    transition: .2s;
}
.rank-item a:hover { border-color: rgba(34, 211, 238, .4); transform: translateX(3px); }
.rank-num {
    flex: none; width: 26px; text-align: center;
    font-size: 17px; font-weight: 800; font-style: italic;
    color: var(--txt3);
    font-family: "SF Mono", ui-monospace, monospace;
}
.rank-item:nth-child(1) .rank-num { color: #ffd166; }
.rank-item:nth-child(2) .rank-num { color: #d7dbe8; }
.rank-item:nth-child(3) .rank-num { color: #e0935a; }
.rank-cover { width: 34px; height: 48px; border-radius: 4px; object-fit: cover; flex: none; }
.rank-main { flex: 1; min-width: 0; }
.rank-title { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { font-size: 11.5px; color: var(--txt3); }
.rank-score { font-size: 13px; font-weight: 700; color: #ffd166; flex: none; }

/* ---------- 页面头 ---------- */
.page-head { padding: 20px 0 6px; }
.page-title { font-size: 27px; letter-spacing: -.5px; margin-bottom: 6px; }
.page-sub { font-size: 13px; color: var(--txt2); }
.hl-num { color: var(--accent); }

.crumbs { padding: 14px 0 0; font-size: 12.5px; color: var(--txt3); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs .sep { color: rgba(255, 255, 255, .2); }
.crumbs a { color: var(--txt3); }
.crumbs a:hover { color: var(--accent); }

.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.subnav a {
    padding: 6px 15px; border-radius: 20px; font-size: 13px;
    color: var(--txt2); background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line); transition: .2s;
}
.subnav a:hover { color: #fff; border-color: rgba(124, 92, 255, .42); }
.subnav a.on {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, var(--primary), #5b3aff);
    box-shadow: 0 6px 18px rgba(124, 92, 255, .34);
}

/* ---------- 搜索页 ---------- */
.search-big {
    display: flex; gap: 10px; max-width: 620px; margin-top: 18px;
}
.search-big input {
    flex: 1; height: 44px; padding: 0 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line); border-radius: 8px;
    color: var(--txt); font: inherit; font-size: 13.5px; outline: none;
}
.search-big input:focus { border-color: rgba(124, 92, 255, .6); }
.search-big button {
    padding: 0 26px; border: 0; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.hl { font-style: normal; color: var(--accent); }

.empty, .empty-box { text-align: center; padding: 60px 20px; color: var(--txt3); }
.empty-big { font-size: 17px; color: var(--txt2); margin-bottom: 8px; }

/* ---------- 详情 ---------- */
.detail { padding-top: 6px; }
.detail-head {
    display: flex; gap: 30px; margin: 20px 0 34px;
    padding: 24px; border-radius: 14px;
    background: linear-gradient(150deg, rgba(26, 26, 42, .85), rgba(12, 12, 20, .9));
    border: 1px solid var(--line);
}
.detail-cover { flex: none; position: relative; width: 230px; border-radius: 10px; overflow: hidden; }
.detail-cover img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.detail-score {
    position: absolute; left: 10px; bottom: 10px;
    padding: 4px 12px; border-radius: 8px;
    font-size: 20px; font-weight: 800; color: #ffd166;
    background: rgba(0, 0, 0, .72); backdrop-filter: blur(8px);
}
.detail-score small { font-size: 11px; margin-left: 2px; font-weight: 400; }
.detail-body { flex: 1; min-width: 0; }
.detail-body h1 { font-size: 28px; letter-spacing: -.5px; line-height: 1.3; margin-bottom: 6px; }
.detail-sub { font-size: 13px; color: var(--txt3); margin-bottom: 14px; }
.detail-meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px;
    padding: 14px 0; margin: 12px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    font-size: 13px; color: var(--txt2);
}
.detail-meta li { display: flex; gap: 8px; }
.detail-meta em { font-style: normal; color: var(--txt3); flex: none; }
.detail-meta .wide { grid-column: span 3; }
.detail-intro { font-size: 13.5px; color: var(--txt2); line-height: 1.85; }
.play-list { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 14px; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    padding: 3px 12px; border-radius: 20px; font-size: 12px;
    color: #b9a9ff; background: rgba(124, 92, 255, .14);
    border: 1px solid rgba(124, 92, 255, .28);
}
.article {
    padding: 22px 24px; border-radius: 12px;
    background: rgba(18, 18, 29, .8); border: 1px solid var(--line);
    font-size: 14px; line-height: 2; color: var(--txt2);
    white-space: pre-line;
}

.pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 34px; }
.pn {
    padding: 14px 18px; border-radius: 10px;
    background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
    transition: .2s;
}
.pn:hover { border-color: rgba(124, 92, 255, .42); }
.pn span { display: block; font-size: 11.5px; color: var(--txt3); margin-bottom: 3px; }
.pn b { font-size: 13.5px; font-weight: 600; }
.pn.next { text-align: right; }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 26px 0 8px; }
.pg {
    min-width: 36px; height: 36px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 13px;
    color: var(--txt2); background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line); transition: .18s;
}
.pg:hover { color: #fff; border-color: rgba(124, 92, 255, .5); }
.pg.current {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, var(--primary), #5b3aff);
    box-shadow: 0 6px 16px rgba(124, 92, 255, .36);
}
.pg.disabled { opacity: .35; cursor: not-allowed; }
.pg.dots { border: 0; background: none; }
.pg.total { border: 0; background: none; color: var(--txt3); font-size: 12px; }

/* ---------- 页脚 ---------- */
.footer {
    margin-top: 40px; padding: 30px 0 40px;
    border-top: 1px solid var(--line);
    background: rgba(8, 8, 14, .7);
}
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.links-t { font-size: 12.5px; color: var(--txt3); }
.links a { font-size: 12.5px; color: var(--txt2); }
.links a:hover { color: var(--accent); }
.links-empty { font-size: 12.5px; color: var(--txt3); }
.foot-b { padding-top: 18px; font-size: 12px; color: var(--txt3); line-height: 2; }
.foot-b a { color: var(--txt2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .grid { grid-template-columns: repeat(5, 1fr); }
    .cat-list { grid-template-columns: repeat(4, 1fr); }
    .hero-slide { height: 380px; }
    .hero-info h2 { font-size: 28px; }
}

@media (max-width: 860px) {
    .header-in { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
    .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
    .nav::-webkit-scrollbar { display: none; }
    .search-box { width: 100%; order: 4; }
    .grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .rank-list { grid-template-columns: 1fr; }
    .hero-slide { height: 340px; }
    .hero-info { padding: 0 22px; max-width: 100%; }
    .hero-info h2 { font-size: 22px; }
    .hero-desc { -webkit-line-clamp: 2; font-size: 12.5px; }
    .detail-head { flex-direction: column; padding: 16px; }
    .detail-cover { width: 150px; }
    .detail-meta { grid-template-columns: repeat(2, 1fr); }
    .detail-meta .wide { grid-column: span 2; }
    .detail-body h1 { font-size: 21px; }
    .page-title { font-size: 21px; }
    .pn-nav { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
    .cat-list { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .hero-slide { height: 300px; }
    .wrap { padding: 0 14px; }
    .card-info { padding: 7px 8px 9px; }
    .card-title { font-size: 12.5px; }
    .article { padding: 16px; font-size: 13px; }
}
