/* =====================================================================
   皮肤布局：neon —— 霓虹终端（左栏 + 命令条 + 三栏仪表盘）
   ---------------------------------------------------------------------
   骨架与影院/杂志完全不同：常驻左侧图标竖栏、顶部命令条、主区仪表盘网格。
   通用组件仍由 site.css 提供，色板由 themes/neon.css 提供。
   ===================================================================== */

.skin-neon {
    background-image:
        linear-gradient(rgba(0, 229, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px, 46px 46px;
}

.tc-shell {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 100vh;
}
.tc-body { min-width: 0; display: flex; flex-direction: column; }

/* ---------- 左栏 ---------- */
.tc-rail {
    position: sticky; top: 0; align-self: start;
    height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    gap: 18px;
    padding: 18px 0 20px;
    background: rgba(6, 4, 16, .92);
    border-right: 1px solid var(--line-soft);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 40;
}
.tc-brand {
    display: flex; flex-direction: column; align-items: center;
    line-height: 1; gap: 2px; text-align: center;
    -webkit-text-fill-color: currentColor;
    background: none;
}
.tc-brand-mark {
    font-family: var(--font-display); font-size: 16px; font-weight: 800;
    letter-spacing: -.03em;
    background: var(--accent-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tc-brand-text {
    font-size: 9px; letter-spacing: .26em; color: var(--muted);
}
.tc-toggle { display: none; }

.tc-navlinks {
    display: flex; flex-direction: column; gap: 6px;
    flex: 1; width: 100%; align-items: center;
}
.tc-navlinks a {
    width: 64px; padding: 9px 4px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    border: 1px solid transparent; border-radius: 3px;
    font-size: 10px; letter-spacing: .04em; color: var(--muted);
    transition: color var(--motion), border-color var(--motion), background var(--motion);
}
.tc-navlinks a i {
    font-style: normal; font-size: 16px; line-height: 1; color: var(--accent);
    opacity: .8;
}
.tc-navlinks a b { font-weight: 500; }
.tc-navlinks a:hover {
    color: var(--text); border-color: var(--line);
    background: rgba(0, 229, 255, .07);
}
.tc-navlinks a.is-active {
    color: var(--text); border-color: var(--accent);
    background: rgba(0, 229, 255, .12);
    box-shadow: 0 0 18px -8px var(--accent);
}
.tc-navlinks a.is-active i { opacity: 1; }

.tc-rail-foot { margin-top: auto; }
.tc-lang { flex-direction: column; width: 62px; text-align: center; }
.tc-lang a { display: block; padding: 2px 0; }

/* ---------- 命令条 ---------- */
.tc-cmd {
    position: sticky; top: 0; z-index: 30;
    height: 46px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 0 26px;
    background: rgba(6, 4, 16, .86);
    border-bottom: 1px solid var(--line-soft);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
}
.tc-cmd-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-cmd-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
    animation: tc-pulse 2.4s ease-in-out infinite;
}
@keyframes tc-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.tc-cmd-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-cmd-right { display: flex; align-items: center; gap: 14px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.tc-cmd-right a { color: var(--text-soft); }
.tc-cmd-right a:hover { color: var(--accent-2); }
.tc-cmd-cta {
    padding: 4px 12px; border: 1px solid var(--accent);
    color: var(--accent) !important; border-radius: 2px;
}
.tc-cmd-cta:hover { background: var(--accent); color: #05030f !important; }

/* ---------- 主区 ---------- */
.tc-main { max-width: none; padding: 22px 26px 60px; }

/* 首屏窗 */
.tc-hero {
    min-height: 300px; max-height: 380px;
    margin: 0 0 20px;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
}
.tc-hero-content { padding: 28px 32px; gap: 8px; max-width: 520px; }
.tc-hero-content h1 { font-size: 34px; }
.tc-hero .hero-description { font-size: 14px; color: rgba(255, 255, 255, .78); }

/* 状态带 */
.tc-strip {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px; margin-bottom: 16px;
}
.tc-search {
    display: flex; align-items: center; gap: 8px;
    padding: 0 12px; height: 44px;
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: 3px;
}
.tc-prompt { color: var(--accent-2); font-family: ui-monospace, monospace; }
.tc-search input {
    flex: 1; min-width: 0; border: 0; background: transparent;
    color: var(--text); font: inherit; font-size: 14px;
}
.tc-search input:focus { outline: none; }
.tc-search button {
    border: 1px solid var(--line); background: transparent;
    color: var(--text-soft); font: inherit; font-size: 12px;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 2px; cursor: pointer;
}
.tc-search button:hover { border-color: var(--accent); color: var(--accent); }

.tc-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tc-metric {
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
    padding: 8px 12px; height: 44px;
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: 3px; border-left: 2px solid var(--accent);
}
.tc-metric b { font-size: 16px; font-family: var(--font-display); line-height: 1; color: var(--text); }
.tc-metric span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tc-metric:hover { border-color: var(--accent); background: rgba(0, 229, 255, .06); }

/* 仪表盘三栏 */
.tc-dash {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, .95fr);
    gap: 14px;
    align-items: start;
}
.tc-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; align-self: stretch; }
/* 中栏（榜单）纵向铺满：榜单只有 5 行，靠行高均分撑满整栏，栏底不留空洞 */
.tc-panel-chart { display: flex; flex-direction: column; align-self: stretch; }

.tc-panel {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 14px 16px 8px;
    min-width: 0;
}
.tc-panel-hot { border-color: rgba(255, 43, 209, .35); }
.tc-panel-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding-bottom: 10px; margin-bottom: 6px;
    border-bottom: 1px solid var(--line-soft);
}
.tc-panel-head h2 {
    margin: 0; font-size: 13px; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
}
.tc-panel-head a {
    font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.tc-panel-head a:hover { color: var(--accent-2); }

/* 条目 */
.tc-list { display: flex; flex-direction: column; }
.tc-list-tight .tc-item { padding: 7px 0; }
.tc-item {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center; gap: 11px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(0, 229, 255, .1);
    color: var(--text);
}
.tc-item:last-child { border-bottom: 0; }
.tc-item:hover { background: rgba(0, 229, 255, .05); }
.tc-item-art {
    width: 40px; height: 40px; border-radius: 6px;
    overflow: hidden; background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px var(--line-soft);
}
.tc-item-art img { width: 100%; height: 100%; object-fit: cover; }
.tc-item-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; font-size: 15px; font-weight: 700; color: var(--muted);
}
.tc-item-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tc-item-name {
    font-size: 13.5px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-item-meta {
    display: flex; gap: 8px; font-size: 11px; color: var(--muted);
    white-space: nowrap; overflow: hidden;
}
.tc-item-tail { display: flex; align-items: center; gap: 8px; }
.tc-item-rating { font-size: 11px; color: var(--star); }
.tc-item-price { font-size: 11px; color: var(--text-soft); white-space: nowrap; }
.tc-item-price.is-free { color: var(--hot-text); }
.tc-item.is-free { border-left: 2px solid var(--hot); padding-left: 8px; }

/* 榜位条 */
.tc-ranks {
    list-style: none; margin: 0; padding: 0;
    /* 榜单只有 5 条，但中栏比左栏长：让 5 行均分整栏高度，栏底不留空洞 */
    display: flex; flex-direction: column;
    flex: 1;
}
.tc-rank { flex: 1 1 0; display: flex; }
.tc-rank a { flex: 1; }
.tc-rank a {
    display: grid; grid-template-columns: 20px 36px minmax(0, 1fr) 34px;
    align-items: center; gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
}
.tc-rank:last-child a { border-bottom: 0; }
.tc-rank-no {
    font-family: var(--font-display); font-size: 14px; font-weight: 800;
    color: var(--accent); text-align: center;
}
.tc-rank-art {
    width: 36px; height: 36px; border-radius: 5px; overflow: hidden;
    background: var(--bg-soft);
}
.tc-rank-art img { width: 100%; height: 100%; object-fit: cover; }
.tc-rank-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tc-rank-name {
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-bar {
    display: block; height: 3px; border-radius: 2px;
    background: rgba(255, 255, 255, .08); overflow: hidden;
}
.tc-bar i {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.tc-rank-score { font-size: 11px; color: var(--muted); text-align: right; }
.tc-rank a:hover .tc-rank-name { color: var(--accent-2); }

/* 年份标签云 / 厂商 */
.tc-block {
    margin-top: 18px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 14px 16px 16px;
}
.tc-block-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding-bottom: 10px; margin-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}
.tc-block-head h2 {
    margin: 0; font-size: 13px; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
}
.tc-block-hint { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tc-block-link { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tc-tags, .tc-vendors { display: flex; flex-wrap: wrap; gap: 7px; }
.tc-tags-tight { gap: 5px; padding-bottom: 8px; }
.tc-tags-tight .tc-tag { padding: 3px 8px; font-size: 11.5px; }
.tc-vendors-tight { flex-direction: column; align-items: stretch; gap: 3px; padding-bottom: 8px; }
.tc-vendors-tight .tc-vendor { max-width: none; justify-content: space-between; border: 0; border-bottom: 1px dashed rgba(0, 229, 255, .12); border-radius: 0; padding: 6px 0; }
.tc-vendors-tight .tc-vendor span { flex: 1; min-width: 0; }
.tc-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 10px; border: 1px solid var(--line-soft);
    border-radius: 2px; font-size: 12px; font-variant-numeric: tabular-nums;
    color: var(--text-soft);
}
.tc-tag i { font-style: normal; font-size: 10px; color: var(--muted); }
.tc-tag:hover { border-color: var(--accent); color: var(--accent); }
.tc-vendor {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 10px; border: 1px dashed var(--line-soft);
    border-radius: 2px; font-size: 12px; color: var(--text-soft);
    max-width: 260px;
}
.tc-vendor span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-vendor i { font-style: normal; font-size: 10px; color: var(--accent); }
.tc-vendor:hover { border-color: var(--accent); color: var(--text); }

/* ---------- 页脚 ---------- */
.tc-foot { border-top: 1px solid var(--line-soft); margin-top: auto; }
.tc-foot-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 26px;
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    flex-wrap: wrap;
}
.tc-foot-brand { color: var(--accent); font-weight: 700; }
.tc-foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.tc-foot-links a { color: var(--muted); }
.tc-foot-links a:hover { color: var(--accent-2); }
.tc-foot-note { text-transform: none; letter-spacing: 0; font-size: 10.5px; }

/* ---------- 内页适配（site.css 的组件在终端壳里重新排） ---------- */
.skin-neon .section { padding: 0 0 22px; }
.skin-neon .section-heading {
    align-items: center; padding-bottom: 10px; margin-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}
.skin-neon .section-heading h1,
.skin-neon .section-heading h2 { font-size: 20px; letter-spacing: .02em; }
.skin-neon .section-kicker { font-size: 10px; letter-spacing: .24em; }
.skin-neon .game-grid { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 10px; }
.skin-neon .game-card {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 10px; border-radius: 3px; gap: 11px;
}
.skin-neon .game-card-icon { width: 52px; border-radius: 6px; }
.skin-neon .filter-bar { border-radius: 3px; padding: 16px; }
.skin-neon .content-page, .skin-neon .auth-card { border-radius: 3px; }
.skin-neon .rank-item { padding-left: 26px; }
.skin-neon .rank-no { font-size: 24px; }
.skin-neon .tabs, .skin-neon .pager-link, .skin-neon .chip, .skin-neon .filter-option { border-radius: 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
    .tc-dash { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .tc-side { grid-column: 1 / -1; flex-direction: row; }
    .tc-side > .tc-panel { flex: 1; }
}

@media (max-width: 860px) {
    .tc-shell { grid-template-columns: 1fr; }
    .tc-rail {
        position: sticky; top: 0; height: auto;
        flex-direction: row; align-items: center; gap: 12px;
        padding: 8px 14px;
        border-right: 0; border-bottom: 1px solid var(--line-soft);
    }
    .tc-brand { flex-direction: row; gap: 6px; }
    .tc-rail-foot { margin: 0 0 0 auto; }
    .tc-lang { flex-direction: row; width: auto; }

    /* 目录折叠：.nav-toggle 的 display 切换是 site.js 的断点信号，不能改语义 */
    .tc-toggle { display: inline-flex; align-items: center; }
    .tc-navlinks {
        display: none; position: absolute; z-index: 2;
        top: calc(100% + 6px); left: 10px; right: 10px;
        flex-direction: row; flex-wrap: wrap; gap: 6px;
        align-items: stretch;
        padding: 10px; max-height: 60vh; overflow-y: auto;
        background: var(--panel); border: 1px solid var(--line);
        border-radius: 3px; box-shadow: var(--shadow);
    }
    .tc-navlinks.is-open { display: flex; }
    .tc-navlinks a { width: auto; flex-direction: row; gap: 6px; padding: 7px 10px; font-size: 12px; }
    .tc-navlinks a i { font-size: 13px; }
    .tc-shell { position: relative; }
    .tc-rail::after {
        content: ''; position: absolute; z-index: 1;
        top: 100%; left: 0; right: 0; height: 100vh;
        background: rgba(0, 0, 0, .5);
        opacity: 0; pointer-events: none; transition: opacity .18s ease;
    }
    .tc-rail.is-open::after { opacity: 1; pointer-events: auto; }

    .tc-cmd { position: static; height: auto; padding: 8px 14px; flex-wrap: wrap; }
    .tc-main { padding: 14px 14px 48px; }
    .tc-strip { grid-template-columns: 1fr; }
    .tc-metrics { grid-template-columns: repeat(2, 1fr); }
    .tc-dash { grid-template-columns: 1fr; }
    .tc-side { flex-direction: column; }
    .tc-hero { min-height: 240px; max-height: 300px; }
    .tc-hero-content { padding: 20px; }
    .tc-hero-content h1 { font-size: 26px; }
    .skin-neon .game-grid { grid-template-columns: 1fr; }
    .tc-foot-row { padding: 12px 14px; }
}
