/* ==========================================================================
   TSkill 暗色科技风 · 效果图样式（仅示例，未用于正式站点）
   ========================================================================== */

:root {
    --bg: #1B2531;
    --bg-2: #212C3A;
    --surface: rgba(255, 255, 255, .055);
    --surface-2: rgba(255, 255, 255, .095);
    --line: rgba(255, 255, 255, .16);
    --line-2: rgba(255, 255, 255, .24);

    --text: #F2F7FD;
    --text-2: #BCC9DA;
    --muted: #8A9CB0;

    --brand: #2A7BFF;
    --brand-2: #00D2FF;
    --brand-3: #6F5BFF;
    --glow: rgba(42, 123, 255, .45);

    --r: 16px;
    --nav-h: 70px;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    /* 版本号 / 文件大小 / 日期这类"读数"用系统 UI 字体 + 等宽数字：
       Windows 上等宽字体（Consolas）在小字号深色底会有锯齿感，系统字体经 ClearType 优化，更清晰 */
    --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

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

/* ---------- 背景层：网格 + 光斑 ---------- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.bg-layer::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% -5%, #000 15%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 60% at 50% -5%, #000 15%, transparent 78%);
}

.bg-layer::after {
    content: "";
    position: absolute; inset: -20% -10% auto -10%;
    height: 90vh;
    background:
        radial-gradient(620px 420px at 18% 12%, rgba(42, 123, 255, .22), transparent 70%),
        radial-gradient(560px 380px at 82% 4%, rgba(0, 210, 255, .13), transparent 70%),
        radial-gradient(700px 400px at 50% 42%, rgba(111, 91, 255, .09), transparent 72%);
    filter: blur(8px);
}

/* 顶部极光细线 */
.aurora {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 1px;
    z-index: 60;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, .9), rgba(42, 123, 255, .9), transparent);
    box-shadow: 0 0 18px rgba(0, 210, 255, .55);
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- 导航 ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(27, 37, 49, .9);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 100%; gap: 34px; }
.brand img { height: 30px; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
    position: relative;
    padding: 8px 15px;
    border-radius: 9px;
    font-size: 14.5px;
    color: var(--text-2);
    transition: .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-links a.on { color: #fff; }
.nav-links a.on::after {
    content: "";
    position: absolute;
    left: 15px; right: 15px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    box-shadow: 0 0 10px rgba(0, 210, 255, .8);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 38px;
    width: 244px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    transition: .22s;
}
.nav-search:focus-within {
    border-color: rgba(0, 210, 255, .55);
    background: rgba(42, 123, 255, .07);
    box-shadow: 0 0 0 3px rgba(42, 123, 255, .12), 0 0 22px rgba(0, 210, 255, .18);
}
.nav-search i { color: var(--muted); font-size: 15px; }
.nav-search input {
    flex: 1; min-width: 0;
    border: 0; outline: 0; background: transparent;
    color: var(--text); font-size: 14px;
}
.nav-search input::placeholder { color: var(--muted); }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--text);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 396px; gap: 56px; align-items: center; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(42, 123, 255, .10);
    border: 1px solid rgba(42, 123, 255, .28);
    font-size: 12.5px;
    color: #9CC4FF;
    letter-spacing: .2px;
}
.pill .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #24E1A0;
    box-shadow: 0 0 0 3px rgba(36, 225, 160, .18), 0 0 10px #24E1A0;
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.82); }
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: 50px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -1px;
}
.hero h1 .g {
    background: linear-gradient(100deg, #4E9BFF 0%, #00D2FF 55%, #8E7BFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 5px 20px rgba(0, 145, 255, .32));
}
.hero p.lead {
    margin: 0 0 32px;
    max-width: 580px;
    font-size: 15.5px;
    color: var(--text-2);
}

/* 大搜索框 */
.search-big {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    max-width: 560px;
    padding: 0 8px 0 20px;
    border-radius: 14px;
    background: rgba(10, 15, 22, .9);
    border: 1px solid var(--line-2);
    transition: .24s;
}
.search-big:focus-within {
    border-color: rgba(0, 210, 255, .6);
    box-shadow: 0 0 0 4px rgba(42, 123, 255, .12), 0 14px 40px rgba(0, 90, 200, .28);
}
.search-big i { color: #5F88B8; font-size: 18px; }
.search-big input {
    flex: 1; min-width: 0;
    border: 0; outline: 0; background: transparent;
    color: var(--text); font-size: 15px;
}
.search-big input::placeholder { color: var(--muted); }
.search-big .go {
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #041019;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: .5px;
    box-shadow: 0 6px 18px rgba(0, 145, 255, .30);
    transition: .2s;
}
.search-big .go:hover { box-shadow: 0 8px 28px rgba(0, 195, 255, .5); transform: translateY(-1px); }

.hot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.hot a {
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--text-2);
    transition: .18s;
}
.hot a:hover { color: #fff; border-color: rgba(0, 210, 255, .5); box-shadow: 0 0 14px rgba(0, 210, 255, .18); }

/* Hero 右侧：实时面板 */
.live {
    position: relative;
    border-radius: var(--r);
    background: linear-gradient(180deg, rgba(43, 55, 72, .96), rgba(33, 44, 59, .96));
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
}
.live::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, .75), transparent);
}
.live-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 12px;
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: .4px;
}
.live-head b { color: var(--text); font-size: 13px; letter-spacing: 0; }
.tag-live {
    display: inline-flex; align-items: center; gap: 5px;
    height: 20px; padding: 0 8px;
    border-radius: 5px;
    background: rgba(36, 225, 160, .12);
    border: 1px solid rgba(36, 225, 160, .3);
    color: #45E8B2;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
}

.lrow {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    transition: .18s;
}
.lrow:hover { background: rgba(42, 123, 255, .08); }
.lrow .ico {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #fff;
    background: rgba(42, 123, 255, .16);
    border: 1px solid rgba(42, 123, 255, .38);
}
.lrow .ico.g { color: #7DF0C6; background: rgba(36, 225, 160, .1); border-color: rgba(36, 225, 160, .32); }
.lrow .ico.p { color: #B9A9FF; background: rgba(111, 91, 255, .12); border-color: rgba(111, 91, 255, .34); }
.lrow .body { flex: 1; min-width: 0; }
.lrow .body b { display: block; font-size: 13.5px; font-weight: 600; color: #EDF4FB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .body span { font-size: 11.5px; color: var(--muted); }
.lrow .num { font-size: 12px; color: #6FA8FF; font-variant-numeric: tabular-nums; }

/* ---------- 数据条 ---------- */
.stats {
    /* 不再通栏：宽度与上下内容区对齐，做成一块整体卡片 */
    width: calc(100% - 48px);
    max-width: 1152px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
    overflow: hidden;
}
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 8px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 36px;
    background: linear-gradient(180deg, transparent, var(--line-2), transparent);
}
.stat b {
    display: block;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #FFFFFF, #8FB4E8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat span { font-size: 12.5px; color: var(--muted); letter-spacing: .3px; }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-head h2 .no {
    font-family: var(--ui);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--brand-2);
    padding: 2px 7px;
    border: 1px solid rgba(0, 210, 255, .28);
    border-radius: 4px;
    background: rgba(0, 210, 255, .07);
}
.section-head h2 small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.section-head .more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; color: #6FA8FF;
    white-space: nowrap;
}
.section-head .more:hover { color: var(--brand-2); }

/* 分类 */
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cat {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--text-2);
    font-size: 13.5px;
    transition: .2s;
}
.cat i { font-size: 15px; color: #5E7EA6; }
.cat em { font-style: normal; font-size: 11.5px; opacity: .65; }
.cat:hover { color: #fff; border-color: rgba(42, 123, 255, .5); }
.cat.on {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, rgba(42, 123, 255, .95), rgba(0, 210, 255, .85));
    box-shadow: 0 6px 18px rgba(0, 145, 255, .24);
}
.cat.on i { color: #041019; }
.cat.on em { color: rgba(4, 16, 25, .65); }

/* ---------- 卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 18px;
    border-radius: var(--r);
    background: linear-gradient(180deg, rgba(45, 57, 74, .96), rgba(35, 46, 61, .96));
    border: 1px solid rgba(255, 255, 255, .10);
    transition: .24s cubic-bezier(.2, .7, .3, 1);
    overflow: hidden;
}
/* 顶部高光基线：默认不可见，悬停时才亮一下 */
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, .9), transparent);
    opacity: 0;
    transition: .24s;
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(42, 123, 255, .40);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .26);
}
.card:hover::before { opacity: 1; }

/* 卡片序号角标 */
.card-no {
    position: absolute;
    top: 14px; right: 16px;
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: .3px;
    color: rgba(255, 255, 255, .26);
    font-variant-numeric: tabular-nums;
}

.card-top { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; }
.card-ico {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: #fff;
    background: rgba(42, 123, 255, .14);
    border: 1px solid rgba(42, 123, 255, .4);
    transition: .24s;
}
.card:hover .card-ico { border-color: rgba(42, 123, 255, .62); background: rgba(42, 123, 255, .20); }
.card-ico.g { color: #6FF0C4; background: rgba(36, 225, 160, .10); border-color: rgba(36, 225, 160, .32); }
.card:hover .card-ico.g { border-color: rgba(36, 225, 160, .55); background: rgba(36, 225, 160, .16); }
.card-ico.p { color: #B7A6FF; background: rgba(111, 91, 255, .12); border-color: rgba(111, 91, 255, .34); }
.card:hover .card-ico.p { border-color: rgba(111, 91, 255, .55); background: rgba(111, 91, 255, .18); }

.card-title { flex: 1; min-width: 0; padding-right: 30px; }
.card-title h3 {
    margin: 2px 0 6px;
    font-size: 15.5px;
    font-weight: 700;
    color: #EFF5FC;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-title .meta {
    font-family: var(--ui);
    font-size: 11px;
    color: #8CA0B6;
    display: flex; gap: 6px; flex-wrap: wrap;
    letter-spacing: .1px;
}

.card-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.75;
    color: #A6B7CA;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}

.card-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, .11);
}
.tag {
    display: inline-flex; align-items: center; gap: 5px;
    height: 22px; padding: 0 9px;
    border-radius: 5px;
    font-size: 11.5px;
    color: #86B4FF;
    background: rgba(42, 123, 255, .12);
    border: 1px solid rgba(42, 123, 255, .24);
    letter-spacing: .2px;
}
.tag.g { color: #63E7BB; background: rgba(36, 225, 160, .1); border-color: rgba(36, 225, 160, .26); }
.tag.p { color: #B3A2FF; background: rgba(111, 91, 255, .12); border-color: rgba(111, 91, 255, .28); }
.card-foot .dl { font-family: var(--ui); font-size: 12px; color: #93A6BB; display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.card-foot .dl b { color: #D2DEEB; font-weight: 600; }

/* 排行 */
.rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.rank {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 16px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .045);
    transition: .2s;
}
.rank:hover { border-color: rgba(42, 123, 255, .45); background: rgba(42, 123, 255, .06); transform: translateX(3px); }
.rank .no {
    width: 24px; height: 24px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 7px;
    font-size: 12px; font-weight: 800;
    color: #6D8298;
    background: rgba(255, 255, 255, .05);
    font-variant-numeric: tabular-nums;
}
.rank .no.n1 { color: #05121C; background: linear-gradient(135deg, #00D2FF, #2A7BFF); }
.rank .no.n2 { color: #DFEAFF; background: rgba(42, 123, 255, .3); }
.rank .no.n3 { color: #F0D6C4; background: rgba(255, 160, 80, .25); }
.rank .nm { flex: 1; min-width: 0; font-size: 13.5px; color: #D8E3F0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .ct { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 详情页 ---------- */
.crumb { padding: 24px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand-2); }
.crumb .sep { opacity: .4; }

.dhead {
    position: relative;
    margin-top: 18px;
    padding: 30px 32px;
    border-radius: 20px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(45, 58, 76, .97), rgba(35, 46, 61, .97));
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}
.dhead::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, .8), transparent);
}
.dhead::after {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    left: -140px; top: -220px;
    background: radial-gradient(circle, rgba(42, 123, 255, .28), transparent 68%);
    pointer-events: none;
}
.dhead > * { position: relative; }
.dico {
    width: 78px; height: 78px; flex-shrink: 0;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
    color: #fff;
    background: linear-gradient(135deg, rgba(42, 123, 255, .3), rgba(0, 210, 255, .18));
    border: 1px solid rgba(0, 210, 255, .45);
    box-shadow: 0 0 34px rgba(0, 170, 255, .35), inset 0 0 20px rgba(0, 210, 255, .18);
}
.dinfo { flex: 1; min-width: 0; }
.dinfo h1 { margin: 4px 0 12px; font-size: 27px; font-weight: 800; letter-spacing: -.4px; line-height: 1.3; }
.dtags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dmeta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.dmeta i { color: #5A7A9C; font-size: 13px; }
.dmeta b { font-family: var(--ui); font-size: 13px; color: #E4EEF9; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.dmeta span { display: inline-flex; align-items: center; gap: 6px; }

.dcta { flex-shrink: 0; width: 208px; display: flex; flex-direction: column; gap: 10px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14.5px; font-weight: 600;
    transition: .2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #041019;
    box-shadow: 0 10px 26px rgba(0, 145, 255, .32);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(0, 200, 255, .5); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { color: #fff; border-color: rgba(0, 210, 255, .5); }
.dcta .hint { font-size: 12px; color: var(--muted); text-align: center; }

.dbody { display: grid; grid-template-columns: 1fr 320px; gap: 22px; margin: 22px 0 70px; align-items: start; }
.dbody > * { min-width: 0; }

.panel {
    border-radius: var(--r);
    background: linear-gradient(180deg, rgba(41, 53, 70, .96), rgba(33, 44, 59, .96));
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 16px;
}
.panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.panel-head h2 .no {
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: .8px;
    color: #6E9BD1;
}
.panel-body { padding: 20px 22px; color: #ABBCCF; font-size: 14px; line-height: 1.9; }
.panel-body p { margin: 0 0 12px; }
.panel-body p:last-child { margin-bottom: 0; }
.panel-body ul { margin: 0 0 14px; padding-left: 18px; }
.panel-body li { margin-bottom: 8px; }
.panel-body li::marker { color: var(--brand-2); }

/* 步骤 */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
    position: relative;
    padding-left: 38px;
    margin-bottom: 16px;
    color: #ABBCCF;
}
.steps li::before {
    counter-increment: s;
    content: counter(s);
    position: absolute; left: 0; top: 1px;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 7px;
    font-size: 12px; font-weight: 800;
    color: var(--brand-2);
    background: rgba(0, 210, 255, .1);
    border: 1px solid rgba(0, 210, 255, .3);
}
.steps li b { color: #D6E3F2; }

/* 代码块 */
.code {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #0B1119;
    overflow: hidden;
    margin: 4px 0 16px;
}
.code-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 12px 7px 14px;
    background: rgba(255, 255, 255, .045);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: 11.5px;
    color: #7C90A5;
    font-family: ui-monospace, Consolas, monospace;
}
.code-bar .copy {
    height: 22px; padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 5px;
    background: rgba(255, 255, 255, .04);
    color: #8FA3B8;
    font-size: 11.5px;
}
.code pre {
    margin: 0;
    padding: 14px 16px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.95;
    color: #C9DBEE;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.code .c { color: #4E6377; }
.code .k { color: var(--brand-2); }
.code .s { color: #45E8B2; }

/* 侧栏 */
.file-info { width: 100%; border-collapse: collapse; font-size: 13px; }
.file-info td { padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.file-info tr:last-child td { border-bottom: 0; }
.file-info td:first-child { color: var(--muted); width: 74px; }
.file-info td:last-child { font-family: var(--ui); font-size: 13px; font-weight: 500; color: #E4EEF9; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: 0; overflow-wrap: anywhere; }

.author { display: flex; align-items: center; gap: 12px; }
.author .av {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    color: #041019;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
.author b { display: block; font-size: 13.5px; color: #E0EAF6; }
.author span { font-size: 11.5px; color: var(--muted); }

.rel a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .07);
    font-size: 13px;
    color: #B9C8DA;
}
.rel a:last-child { border-bottom: 0; }
.rel a:hover { color: var(--brand-2); }
.rel .dot2 { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 210, 255, .55); box-shadow: 0 0 8px rgba(0, 210, 255, .7); }
.rel .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel em { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.footer {
    position: relative;
    margin-top: 20px;
    padding: 52px 0 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 60%);
}
.footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer .brand img { height: 26px; }
.footer .about { margin: 14px 0 0; font-size: 13px; line-height: 1.9; color: #95A8BC; max-width: 300px; }
.footer h4 { margin: 0 0 14px; font-size: 13px; color: #DDE7F3; font-weight: 600; letter-spacing: .3px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 13px; color: #95A8BC; }
.footer li a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .07); padding: 18px 0; font-size: 12px; color: #7C90A5; }
.footer .bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 0; padding-bottom: 0; }
.footer .bottom a { color: #7C90A5; transition: .16s; }
.footer .bottom a:hover { color: #C6D4E4; }
/* 备案号：按工信部要求链接到 beian.miit.gov.cn，新窗口打开 */
/* 字体、字号、颜色与「© 年份 站名」保持一致，只在 hover 时变亮 */
.footer .bottom .beian a { font-family: inherit; font-size: inherit; letter-spacing: normal; color: inherit; }
.footer .bottom .beian a:hover { color: #C6D4E4; }

/* ---------- 移动端菜单 ---------- */
.mmenu {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: 49;
    padding: 14px 16px 18px;
    background: rgba(27, 37, 49, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
}
.mmenu.open { display: block; }
.mmenu form {
    display: flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 13px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
}
.mmenu form i { color: var(--muted); }
.mmenu form input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.mmenu a { display: block; padding: 12px 8px; font-size: 15px; color: var(--text-2); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mmenu a:last-child { border-bottom: 0; }
.mmenu a.on { color: var(--brand-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
    .hero h1 { font-size: 40px; }
    .live { max-width: 520px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .dbody { grid-template-columns: 1fr; }
    .footer .wrap { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 860px) {
    .nav-links, .nav-search { display: none; }
    .nav-toggle { display: flex; }
    .nav .wrap { justify-content: space-between; }
    .hero { padding: 48px 0 44px; }
    .hero h1 { font-size: 32px; letter-spacing: -.5px; }
    .hero p.lead { font-size: 14.5px; }
    .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 22px 0; padding: 22px 8px; }
    .stats { width: calc(100% - 32px); border-radius: 14px; }
    .stat + .stat::before { display: none; }
    .rank-list { grid-template-columns: 1fr; }
    .dhead { flex-direction: column; padding: 22px; }
    .dico { width: 62px; height: 62px; border-radius: 16px; font-size: 26px; }
    .dinfo h1 { font-size: 21px; }
    .dcta { width: 100%; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .hero h1 { font-size: 26px; }
    .search-big { height: 52px; padding-left: 14px; gap: 8px; }
    .search-big input { font-size: 14px; }
    .search-big .go { height: 36px; padding: 0 13px; font-size: 13.5px; }
    .grid { grid-template-columns: 1fr; gap: 12px; }
    .section { padding: 38px 0; }
    .section-head h2 { font-size: 19px; }
    .card { padding: 18px; }
    .panel-body, .panel-head { padding-left: 18px; padding-right: 18px; }
    .footer .wrap { grid-template-columns: 1fr; gap: 26px; }
    .footer .bottom .wrap { flex-direction: column; align-items: center; text-align: center; gap: 7px; }
    .stat b { font-size: 22px; }
}

/* ==========================================================================
   列表页 / 分页 / 空状态 / 正文（从浅色版迁移到深色）
   ========================================================================== */
.brand {
    display: inline-flex; align-items: center;
    padding: 6px 12px 6px 10px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .28);
}
.brand img { height: 25px; }

.list-head { padding: 30px 0 0; }
.list-head h1 { margin: 12px 0 6px; font-size: 29px; font-weight: 800; letter-spacing: -.5px; }
.list-head p { margin: 0; color: var(--muted); font-size: 13.5px; }

.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 22px 0 24px; }
.list-tools .cats { margin-bottom: 0; }
.sorts { display: flex; gap: 4px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.sorts a { padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); transition: .18s; }
.sorts a:hover { color: #fff; }
.sorts a.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #041019; font-weight: 600; }

/* 分页（App\Libraries\Page 输出的结构） */
#page { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
#page .pageRemark { margin: 0; font-size: 12.5px; color: var(--muted); font-family: var(--ui); }
#page .page-btn { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#page .page-btn a, #page .page-btn p {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 10px; margin: 0;
    border: 1px solid var(--line); border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    font-size: 13px; color: var(--text-2);
    transition: .16s;
}
#page .page-btn a:hover { border-color: rgba(42, 123, 255, .55); color: #fff; }
#page .page-btn a.cur { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #041019; font-weight: 700; }
#page .page-btn p { color: #55677C; background: transparent; }
#page .pageEllipsis { margin: 0 2px; color: var(--muted); }
#page .page-jump { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
#page .page-jump input { width: 50px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); color: var(--text); text-align: center; font-size: 13px; outline: 0; }
#page .page-jump font { cursor: pointer; color: var(--brand-2); padding: 0 9px; height: 32px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }

/* 空状态 */
.empty {
    text-align: center; padding: 76px 20px;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: var(--r);
    background: rgba(255, 255, 255, .02);
}
.empty .ico {
    width: 60px; height: 60px; margin: 0 auto 18px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(42, 123, 255, .12);
    border: 1px solid rgba(42, 123, 255, .3);
    color: #6FA8FF;
}
.empty b { display: block; font-size: 15.5px; color: var(--text); margin-bottom: 6px; }
.empty span { font-size: 13px; color: var(--muted); }
.empty a { color: var(--brand-2); }

/* 正文 */
.prose { color: #A9BACD; font-size: 14px; line-height: 1.95; word-break: break-word; }
.prose p { margin: 0 0 12px; }
.panel-body p:last-child { margin-bottom: 0; }

/* 按钮禁用 */
.btn.disabled { background: rgba(255, 255, 255, .06); color: #6B7D90; box-shadow: none; cursor: not-allowed; border: 1px solid var(--line); }

/* bootstrap-icons 尺寸适配 */
.card-ico i { font-size: 20px; }
.lrow .ico i { font-size: 17px; }
.dico i { font-size: 34px; }
.btn i { font-size: 16px; }
.more i, .hc-head i { font-size: 13px; }
.mmenu form i { font-size: 16px; }
.dmeta i { font-size: 13px; }

@media (max-width: 1080px) {
    .list-head h1 { font-size: 24px; }
}
@media (max-width: 860px) {
    .list-tools { gap: 12px; }
    .sorts { width: 100%; justify-content: space-between; }
    .dico i { font-size: 26px; }
}

/* 默认作者头像：白底圆 + 品牌 T 图标（favicon 是透明底，需要白底衬托） */
.author .av-brand {
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .26);
}
.author .av-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* favicon 图形占画布 86% 高、且视觉重心偏上 12px，缩一点并下移才能在圆里视觉居中 */
    transform: translateY(3px) scale(.82);
}

/* ==========================================================================
   二级页面（站点介绍 / 条款 / 常见问题等）
   ========================================================================== */
.page-hero {
    padding: 44px 0 34px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent);
}
.crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.crumb a { color: var(--muted); transition: .16s; }
.crumb a:hover { color: var(--brand-2); }
.crumb i { font-size: 10px; opacity: .55; }
.page-hero h1 { margin: 0 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.page-hero p { margin: 0; max-width: 760px; color: var(--muted); font-size: 14px; line-height: 1.9; }

.doc { padding: 40px 0 64px; }
.doc-grid { display: grid; grid-template-columns: 1fr 286px; gap: 24px; align-items: start; }
.doc-body {
    background: rgba(255, 255, 255, .028);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 32px;
}
.doc-body h2 {
    margin: 36px 0 12px;
    font-size: 17px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 9px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h2::before {
    content: "";
    width: 3px; height: 15px; border-radius: 2px;
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
}
.doc-body h3 { margin: 22px 0 8px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.doc-body p { margin: 0 0 12px; color: #A9BACD; font-size: 14px; line-height: 1.95; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 22px; color: #A9BACD; font-size: 14px; line-height: 2; }
.doc-body li { margin-bottom: 3px; }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body code {
    font-family: var(--mono); font-size: 12.5px;
    padding: 1px 6px; border-radius: 5px;
    background: rgba(255, 255, 255, .07); color: #9CC4FF;
}
.doc-body a { color: var(--brand-2); }
.doc-body a:hover { text-decoration: underline; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0 16px; }
.doc-body th, .doc-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.doc-body th { color: var(--muted); font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .02); }
.doc-body td { color: #A9BACD; }

.doc-side { position: sticky; top: 88px; }
.doc-side .box {
    background: rgba(255, 255, 255, .028);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.doc-side h4 { margin: 0 0 12px; font-size: 12.5px; color: var(--text); font-weight: 700; letter-spacing: .3px; }
.doc-side ul { list-style: none; margin: 0; padding: 0; }
.doc-side li { margin-bottom: 9px; font-size: 13px; color: var(--muted); }
.doc-side li:last-child { margin-bottom: 0; }
.doc-side a { color: var(--muted); transition: .16s; }
.doc-side a:hover { color: var(--brand-2); }
.doc-side .side-mail { font-size: 13px; color: #8FBEFF; word-break: break-all; }

.notice {
    display: flex; gap: 11px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(42, 123, 255, .08);
    border: 1px solid rgba(42, 123, 255, .22);
    color: #B9D2F5; font-size: 13.5px; line-height: 1.9;
}
.notice i { color: #6FA8FF; font-size: 16px; flex-shrink: 0; margin-top: 3px; }
.notice.warn { background: rgba(255, 176, 32, .07); border-color: rgba(255, 176, 32, .2); color: #E8D3AE; }
.notice.warn i { color: #FFB020; }
.notice.plain { background: rgba(255, 255, 255, .03); border-color: var(--line); color: #A9BACD; }
.notice.plain i { color: var(--muted); }

/* FAQ 折叠 */
.faq-list {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .028);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
    list-style: none; cursor: pointer;
    padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    font-size: 14.5px; font-weight: 600; color: var(--text);
    transition: .16s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255, 255, 255, .03); }
.faq-item summary::after {
    /* 用 CSS 画箭头，不依赖图标字体码，避免渲染成别的图形 */
    content: "";
    width: 8px; height: 8px;
    margin-left: auto;
    border-right: 1.6px solid var(--muted);
    border-bottom: 1.6px solid var(--muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.faq-item .q-no { font-family: var(--ui); font-size: 11px; color: #5F8BC0; letter-spacing: .5px; }
.faq-item .a { padding: 0 20px 18px 52px; color: #A9BACD; font-size: 13.5px; line-height: 1.95; }
.faq-item .a p { margin: 0 0 8px; }
.faq-item .a p:last-child { margin-bottom: 0; }
.faq-item .a ul { margin: 0 0 8px; padding-left: 20px; }
.faq-item .a li { margin-bottom: 3px; }

/* 联系作者卡片 */
.mail-card {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(42, 123, 255, .13), rgba(0, 210, 255, .05));
    border: 1px solid rgba(42, 123, 255, .26);
}
.mail-card .ico {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(42, 123, 255, .18); color: #8FBEFF;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; flex-shrink: 0;
}
.mail-card .txt { flex: 1; min-width: 0; }
.mail-card b { display: block; font-size: 15.5px; color: var(--text); margin-bottom: 4px; }
.mail-card span { font-size: 12.5px; color: var(--muted); }
.mail-card .addr { font-family: var(--ui); color: #8FBEFF; font-size: 15px; font-weight: 600; word-break: break-all; }
.mail-card .addr:hover { text-decoration: underline; }

@media (max-width: 1000px) {
    .doc-grid { grid-template-columns: 1fr; }
    .doc-side { position: static; }
}
@media (max-width: 640px) {
    .page-hero { padding: 32px 0 26px; }
    .page-hero h1 { font-size: 24px; }
    .doc-body { padding: 22px 18px; }
    .faq-item .a { padding-left: 20px; }
    .mail-card { flex-direction: column; text-align: center; }
}
