/* ==========================================================================
   game-04 · 游戏库
   H5 大搜索优先 / V4 搜索主导 / G7 Bento 拼贴 / P3 青碧
   标志组件：平台墙 · A–Z 索引 · 排行榜
   ========================================================================== */

:root {
    --ink: #0c2b28;
    --ink-2: #2f4a47;
    --muted: #5d7a76;
    --line: #d3e9e5;
    --line-2: #b3d8d2;
    --paper: #f2fbf9;
    --white: #ffffff;
    --teal: #0f766e;
    --teal-deep: #0a5c56;
    --mint: #d8f5ef;
    --mint-2: #eafcf8;
    --aqua: #14b8a6;
    --gold: #b7791f;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 12px 28px -20px rgba(12, 43, 40, .5);
    --shadow-lg: 0 20px 44px -28px rgba(12, 43, 40, .55);
    --wrap: 1180px;
    --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Microsoft YaHei", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
p { margin: 0; }

h1, h2, h3 { margin: 0; line-height: 1.32; font-weight: 700; }
h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em; }
h2 { font-size: clamp(19px, 2vw, 24px); }
h3 { font-size: 16px; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

.gl-wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }

.gl-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.gl-skip {
    position: absolute; left: 16px; top: -70px; z-index: 200;
    background: var(--teal); color: #fff; padding: 10px 20px;
    border-radius: 0 0 10px 10px; font-size: 14px;
}
.gl-skip:focus { top: 0; }

.gl-kicker {
    margin: 0 0 9px; font-size: 11.5px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--teal);
}

.gl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 22px; border-radius: 8px;
    border: 1px solid transparent; font-size: 14px; font-weight: 700;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.gl-btn:hover { transform: translateY(-1px); }
.gl-btn--solid { background: var(--teal); color: #fff; box-shadow: 0 10px 20px -14px rgba(15, 118, 110, .9); }
.gl-btn--solid:hover { background: var(--teal-deep); }
.gl-btn--line { border-color: var(--line-2); background: var(--white); color: var(--teal); }
.gl-btn--line:hover { border-color: var(--teal); background: var(--mint-2); }
.gl-btn--light { background: #fff; color: var(--teal-deep); }
.gl-btn--full { width: 100%; }

.gl-more { font-size: 13px; font-weight: 700; color: var(--teal); }
.gl-more:hover { color: var(--aqua); }

.gl-badge {
    display: inline-block; flex: none; padding: 2px 8px;
    border-radius: 5px; font-size: 11px; font-weight: 700;
    background: var(--mint); color: var(--teal-deep);
    border: 1px solid #b7e4da; white-space: nowrap;
}
.gl-badge--soft { background: #f0f4f4; color: var(--ink-2); border-color: var(--line); }

.gl-sec-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: 24px;
}
.gl-sec-head__note {
    max-width: 320px; font-size: 12.8px; color: var(--muted); line-height: 1.7;
}

/* ---------- 页头 H5：LOGO + 巨型搜索 + 热搜 ---------- */
.gl-head { background: var(--white); border-bottom: 1px solid var(--line); }
.gl-head__bar { border-bottom: 1px solid var(--line); }
.gl-head__barinner {
    display: flex; align-items: center; gap: 20px; min-height: 62px;
}
.gl-logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.gl-logo__mark {
    width: 38px; height: 38px; flex: none; display: grid; place-items: center;
    border-radius: 10px; color: #fff;
    background: linear-gradient(150deg, #14b8a6, #0f766e);
}
.gl-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.gl-logo__text strong { font-size: 22px; letter-spacing: .05em; }
.gl-logo__text em {
    font-style: normal; font-size: 9.5px; letter-spacing: .16em;
    color: var(--muted); margin-top: 2px;
}
.gl-logo--foot { color: #fff; }
.gl-logo--foot .gl-logo__mark { background: rgba(255, 255, 255, .14); }
.gl-logo--foot strong { font-size: 18px; }

.gl-head__util { margin-left: auto; display: flex; gap: 22px; font-size: 13px; color: var(--ink-2); }
.gl-head__util a:hover { color: var(--teal); }

.gl-burger {
    display: none; width: 42px; height: 42px; flex: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: var(--white); border: 1px solid var(--line-2); border-radius: 9px;
}
.gl-burger span { width: 18px; height: 2px; background: var(--ink); transition: transform .24s, opacity .24s; }
.gl-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gl-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gl-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.gl-search-block { padding: 30px 0 16px; background: linear-gradient(180deg, #f6fdfb, var(--white)); }
.gl-search {
    display: flex; align-items: center; gap: 12px;
    background: var(--white); border: 2px solid var(--ink);
    border-radius: 14px; padding: 8px 8px 8px 20px;
    box-shadow: 0 16px 34px -26px rgba(12, 43, 40, .7);
    transition: border-color .2s, box-shadow .2s;
}
.gl-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 5px rgba(15, 118, 110, .12); }
.gl-search__ico { display: grid; place-items: center; color: var(--teal); flex: none; }
.gl-search input {
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
    padding: 12px 0; font-size: 17px; color: var(--ink);
}
.gl-search input::placeholder { color: #5d7a76; font-size: 15.5px; }
.gl-search button {
    flex: none; border: 0; border-radius: 9px; padding: 13px 26px;
    font-size: 14.5px; font-weight: 700; color: #fff;
    background: var(--teal);
}
.gl-search button:hover { background: var(--teal-deep); }

.gl-search__hot {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
    padding: 14px 2px 0; font-size: 13px; color: var(--muted);
}
.gl-search__hotlabel { font-size: 11.5px; letter-spacing: .12em; color: var(--teal); font-weight: 700; }
.gl-search__hot a {
    padding: 3px 10px; border-radius: 999px; background: var(--mint-2);
    border: 1px solid var(--line); color: var(--ink-2);
}
.gl-search__hot a:hover { border-color: var(--teal); color: var(--teal); }
.gl-search__count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; }

.gl-nav {
    border-top: 1px solid var(--line);
    position: sticky; top: 0; z-index: 60;
    background: var(--white);
}
.gl-head.is-stuck .gl-nav { box-shadow: 0 12px 26px -22px rgba(12, 43, 40, .75); }
.gl-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.gl-nav__list { display: flex; flex-wrap: wrap; }
.gl-nav__list a {
    display: block; padding: 12px 18px; font-size: 13.8px; font-weight: 600;
    color: var(--ink-2); border-bottom: 2px solid transparent;
}
.gl-nav__list a:hover { color: var(--teal); background: var(--mint-2); }
.gl-nav__list a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }
.gl-nav__stat { font-size: 12.5px; color: var(--muted); }
.gl-nav__stat b { color: var(--teal); }

/* ---------- 首屏 V4 ---------- */
.gl-hero { padding: 38px 0 44px; background: var(--paper); }
.gl-hero__grid {
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: 40px; align-items: start;
}
.gl-hero__lead { margin: 16px 0 22px; font-size: 15.5px; color: var(--ink-2); max-width: 38em; }
.gl-hero__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.gl-hero__cats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.gl-hero__cats a {
    display: inline-block; padding: 7px 15px; border-radius: 7px;
    background: var(--white); border: 1px solid var(--line-2);
    font-size: 13px; color: var(--ink-2);
    transition: border-color .18s, color .18s, transform .18s;
}
.gl-hero__cats a:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.gl-hero__panel {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px 22px 18px;
    box-shadow: var(--shadow);
}
.gl-hero__panel h2 {
    font-size: 16px; padding-bottom: 12px; margin-bottom: 4px;
    border-bottom: 2px solid var(--ink);
}
.gl-tips li {
    padding: 12px 0; border-bottom: 1px dashed var(--line);
    display: flex; flex-direction: column; gap: 3px;
}
.gl-tips li:last-child { border-bottom: 0; }
.gl-tips b { font-size: 13.5px; color: var(--teal-deep); }
.gl-tips span { font-size: 12.6px; color: var(--muted); }
.gl-hero__stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line);
}
.gl-hero__stats dt { font-size: 11.5px; color: var(--muted); }
.gl-hero__stats dd {
    font-family: var(--font-mono); font-size: 18px;
    font-weight: 700; color: var(--ink); line-height: 1.3;
}

/* ---------- 平台墙 ---------- */
.gl-platforms { padding: 0 0 44px; }
.gl-wall {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.gl-wall__item a {
    display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto;
    column-gap: 12px; align-items: center;
    padding: 14px 16px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.gl-wall__item a:hover {
    border-color: var(--teal); transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.gl-wall__mono {
    grid-row: span 3; width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 10px; background: var(--mint); color: var(--teal-deep);
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
    letter-spacing: .04em;
}
.gl-wall__item strong { font-size: 14px; }
.gl-wall__item span:not(.gl-wall__mono) {
    font-size: 11.5px; color: var(--muted); font-family: var(--font-mono);
}
.gl-wall__bar {
    display: block; height: 4px; border-radius: 999px;
    background: #e6f2ef; overflow: hidden; margin-top: 4px;
}
.gl-wall__bar b { display: block; height: 100%; background: var(--aqua); border-radius: 999px; }
.gl-platforms__note {
    margin-top: 16px; font-size: 13px; color: var(--muted);
    padding-left: 14px; border-left: 3px solid var(--line-2);
}

/* ---------- 题材分类 ---------- */
.gl-genres { padding: 0 0 46px; }
.gl-genre-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.gl-genre-grid a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: background .18s, border-color .18s;
}
.gl-genre-grid a:hover { background: var(--mint-2); border-color: var(--teal); }
.gl-genre-grid strong { font-size: 13.8px; }
.gl-genre-grid em {
    margin-left: auto; font-style: normal; font-size: 11.5px;
    color: var(--muted); font-family: var(--font-mono);
}
.gl-genre__icon {
    width: 30px; height: 30px; flex: none; border-radius: 7px;
    background: var(--mint); position: relative; overflow: hidden;
}
.gl-genre__icon::after {
    content: ""; position: absolute; inset: 8px;
    border: 2px solid var(--teal); border-radius: 50%;
}
.gl-genre__icon--2::after { border-radius: 3px; transform: rotate(45deg); }
.gl-genre__icon--3::after { border-radius: 0; border-left-width: 6px; }
.gl-genre__icon--4::after { border-radius: 50% 50% 0 50%; }
.gl-genre__icon--5::after { border-radius: 2px; border-width: 0 0 3px 3px; inset: 7px; }
.gl-genre__icon--6::after { border-radius: 50%; inset: 6px; border-style: dashed; }
.gl-genre__icon--7::after { border-radius: 2px; inset: 6px 12px; }
.gl-genre__icon--8::after { border-radius: 50% 2px; }

/* ---------- Bento 拼贴 ---------- */
.gl-bento-sec { padding: 0 0 46px; }
.gl-bento {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 168px; grid-auto-flow: dense; gap: 12px;
}
.gl-bento__cell {
    position: relative; display: flex; flex-direction: column;
    border-radius: var(--radius); overflow: hidden;
    background: var(--white); border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.gl-bento > a.gl-bento__cell:hover {
    transform: translateY(-3px); border-color: var(--teal);
    box-shadow: var(--shadow);
}
.gl-bento__cell img { width: 100%; height: 100%; object-fit: cover; }
.gl-bento > a.gl-bento__cell:not(.gl-bento__cell--feature) img {
    height: 98px; flex: none;
}
.gl-bento__cell--feature { grid-column: span 2; grid-row: span 2; }

.gl-bento__overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: flex-end; gap: 6px; padding: 20px;
    color: #fff;
    background: linear-gradient(180deg, rgba(6, 32, 30, 0) 30%, rgba(6, 32, 30, .88) 100%);
}
.gl-bento__overlay h3 { font-size: 20px; line-height: 1.4; color: #fff; }
.gl-bento__overlay .gl-bento__desc {
    font-size: 12.8px; color: #cfe8e3; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.gl-bento__overlay time { font-size: 11.5px; color: #a9cdc7; font-family: var(--font-mono); }

.gl-bento__flag {
    font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
    font-weight: 700; color: var(--aqua);
}
.gl-bento__overlay .gl-bento__flag { color: #7fe0d0; }

.gl-bento__cap {
    position: absolute; inset: auto 0 0 0;
    display: flex; flex-direction: column; gap: 3px;
    padding: 30px 14px 12px;
    background: linear-gradient(180deg, rgba(6, 32, 30, 0) 0%, rgba(6, 32, 30, .84) 62%);
    color: #fff;
}
.gl-bento__cap h3 {
    font-size: 13.6px; line-height: 1.45; font-weight: 700; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.gl-bento__cap time {
    font-size: 10.5px; color: #bcd9d4; font-family: var(--font-mono);
}
.gl-bento__cell--data { padding: 16px; background: var(--mint-2); }
.gl-bento__cell--data .gl-bento__big {
    font-family: var(--font-mono); font-size: 34px; font-weight: 700;
    line-height: 1.1; color: var(--teal-deep);
}
.gl-bento__cell--data .gl-bento__small { font-size: 12px; color: var(--muted); }
.gl-bento__cell--data ul { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.gl-bento__cell--data li {
    display: flex; justify-content: space-between; font-size: 12px;
    color: var(--ink-2); border-top: 1px dashed var(--line-2); padding-top: 3px;
}
.gl-bento__cell--data li b { font-family: var(--font-mono); color: var(--teal); }

.gl-bento__cell--note { padding: 16px; background: #f7fbfa; }
.gl-bento__cell--note p { font-size: 12.6px; color: var(--ink-2); margin-top: 6px; }
.gl-bento__cell--note a { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--teal); }

.gl-bento__cell--az { padding: 16px; background: var(--ink); color: #d7ece8; }
.gl-bento__cell--az .gl-bento__flag { color: #7fe0d0; }
.gl-bento__cell--az p { font-size: 12.8px; margin-top: 6px; }
.gl-bento__azlink {
    margin-top: auto; font-size: 15px; font-weight: 700; color: #fff;
    font-family: var(--font-mono); letter-spacing: .04em;
}
.gl-bento__azlink:hover { color: #7fe0d0; }

/* ---------- 排行榜 ---------- */
.gl-rank { padding: 0 0 46px; }
.gl-rank__wrap {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); overflow-x: auto;
}
.gl-rank__table { width: 100%; min-width: 620px; border-collapse: collapse; }
.gl-rank__table caption {
    caption-side: top; text-align: left; padding: 14px 20px;
    font-size: 12.4px; color: var(--muted); border-bottom: 1px solid var(--line);
}
.gl-rank__table tbody { counter-reset: rank; }
.gl-rank__table tbody tr { counter-increment: rank; border-bottom: 1px solid var(--line); }
.gl-rank__table tbody tr:last-child { border-bottom: 0; }
.gl-rank__table tbody tr:hover { background: var(--mint-2); }
.gl-rank__table th, .gl-rank__table td {
    padding: 13px 18px; text-align: left; font-size: 13.4px;
}
.gl-rank__table thead th {
    background: #f1f9f7; font-size: 11.5px; letter-spacing: .08em;
    color: var(--ink-2); font-weight: 700;
}
.gl-rank__no { width: 72px; }
.gl-rank__no::before {
    content: counter(rank);
    display: inline-grid; place-items: center;
    width: 26px; height: 26px; border-radius: 6px;
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
    background: #eef4f3; color: var(--ink-2);
}
.gl-rank__table tbody tr:nth-child(-n+3) .gl-rank__no::before {
    background: var(--teal); color: #fff;
}
.gl-rank__name a { font-weight: 600; }
.gl-rank__name a:hover { color: var(--teal); }
.gl-rank__date { font-family: var(--font-mono); font-size: 12.2px; color: var(--muted); }
.gl-rank__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 26px; margin-top: 16px;
}
.gl-rank__foot p { font-size: 12.8px; color: var(--muted); max-width: 64em; }

/* ---------- 新入库 ---------- */
.gl-new { padding: 0 0 46px; }
.gl-new__grid {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 26px; align-items: start;
}
.gl-new__list {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
}
.gl-new__item {
    display: grid; grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 16px; align-items: start; padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.gl-new__item:last-child { border-bottom: 0; }
.gl-new__item:hover { background: var(--mint-2); }
.gl-new__item time {
    font-family: var(--font-mono); font-size: 12px; color: var(--teal);
    background: var(--mint); border-radius: 5px; padding: 3px 6px; text-align: center;
}
.gl-new__item h3 { font-size: 14.6px; margin-bottom: 4px; }
.gl-new__item h3 a:hover { color: var(--teal); }
.gl-new__item p { font-size: 12.6px; color: var(--muted); }
.gl-new__go {
    font-size: 12px; font-weight: 700; color: var(--teal);
    border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px;
    white-space: nowrap;
}
.gl-new__go:hover { border-color: var(--teal); }
.gl-new__aside {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow);
}
.gl-new__aside h3 { font-size: 16px; margin-bottom: 12px; }
.gl-new__aside ol { counter-reset: inc; }
.gl-new__aside li {
    counter-increment: inc; position: relative;
    padding: 8px 0 8px 26px; font-size: 13.2px; color: var(--ink-2);
    border-bottom: 1px dashed var(--line);
}
.gl-new__aside li::before {
    content: counter(inc); position: absolute; left: 0; top: 9px;
    font-family: var(--font-mono); font-size: 11.5px; color: var(--teal);
    font-weight: 700;
}
.gl-new__aside p { margin: 12px 0 16px; font-size: 12.8px; color: var(--muted); }

/* ---------- A–Z 索引 ---------- */
.gl-az { padding: 30px 0 46px; background: var(--mint-2); border-block: 1px solid var(--line); }
.gl-az__list {
    display: grid; grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 6px;
}
.gl-az__list a {
    display: grid; place-items: center; aspect-ratio: 1 / 1;
    background: var(--white); border: 1px solid var(--line-2);
    border-radius: 6px; font-family: var(--font-mono);
    font-size: 13px; font-weight: 700; color: var(--ink-2);
    transition: background .16s, color .16s, border-color .16s;
}
.gl-az__list a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.gl-az__meta {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 26px; margin-top: 18px;
}
.gl-az__meta p { font-size: 12.8px; color: var(--muted); max-width: 62em; }
.gl-az__count {
    flex: none; font-family: var(--font-mono) !important;
    font-size: 12px !important; color: var(--teal) !important;
}

/* ---------- 版本变动 ---------- */
.gl-versions { padding: 44px 0 46px; }
.gl-versions__list { position: relative; padding-left: 18px; }
.gl-versions__list::before {
    content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
    width: 2px; background: var(--line-2);
}
.gl-versions__item {
    position: relative; display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    gap: 18px; align-items: start; padding: 14px 0;
}
.gl-versions__dot {
    position: absolute; left: -18px; top: 21px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--teal);
}
.gl-versions__item time {
    font-family: var(--font-mono); font-size: 12.2px; color: var(--muted);
    padding-top: 2px;
}
.gl-versions__item h3 { font-size: 14.8px; margin-bottom: 4px; }
.gl-versions__item h3 a:hover { color: var(--teal); }
.gl-versions__item p { font-size: 12.8px; color: var(--muted); }

/* ---------- 统计口径 ---------- */
.gl-method { padding: 0 0 46px; }
.gl-method__grid {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    gap: 26px;
}
.gl-method__copy {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px 30px;
}
.gl-method__copy p { margin-top: 12px; font-size: 13.8px; color: var(--ink-2); }
.gl-method__chart {
    background: var(--ink); color: #d7ece8; border-radius: var(--radius);
    padding: 24px 24px 20px;
}
.gl-method__chart h3 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.gl-method__chart svg { width: 100%; height: auto; color: var(--aqua); }
.gl-method__line { stroke: #7fe0d0; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.gl-method__dots circle { fill: #7fe0d0; }
.gl-method__legend {
    display: flex; justify-content: space-between; gap: 10px;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}
.gl-method__legend li { display: flex; flex-direction: column; font-size: 11.5px; color: #a9cdc7; }
.gl-method__legend b { font-family: var(--font-mono); font-size: 14px; color: #fff; }
.gl-method__note { margin-top: 12px; font-size: 11.8px; color: #a9cdc7; }

/* ---------- 答疑 ---------- */
.gl-ask { padding: 0 0 46px; }
.gl-ask__grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.gl-ask__item {
    background: var(--white); border: 1px solid var(--line);
    border-left: 3px solid var(--teal); border-radius: var(--radius-sm);
    padding: 18px 20px;
}
.gl-ask__item h3 { font-size: 14.4px; margin-bottom: 7px; }
.gl-ask__item p { font-size: 13px; color: var(--muted); }

/* ---------- 订阅 ---------- */
.gl-sub { padding: 0 0 54px; }
.gl-sub__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px; padding: 28px 32px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.gl-sub__inner h2 { font-size: clamp(18px, 1.9vw, 23px); }
.gl-sub__inner p { margin-top: 7px; font-size: 13px; color: var(--muted); }
.gl-sub__form { display: flex; gap: 9px; flex: none; }
.gl-sub__form input {
    width: 230px; min-width: 0; padding: 11px 14px;
    border: 1px solid var(--line-2); border-radius: 8px;
    background: var(--paper); font-size: 13.4px; color: var(--ink); outline: none;
}
.gl-sub__form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.gl-sub__form button {
    border: 0; border-radius: 8px; padding: 0 20px;
    font-size: 13.4px; font-weight: 700; color: #fff; background: var(--teal);
    white-space: nowrap;
}
.gl-sub__form button:hover { background: var(--teal-deep); }

/* ---------- 页脚 ---------- */
.gl-foot { background: #072422; color: #a6c4c0; padding: 44px 0 20px; }
.gl-foot__grid {
    display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.15fr;
    gap: 34px; padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.gl-foot__brand p { margin-top: 13px; font-size: 12.8px; line-height: 1.8; max-width: 34em; }
.gl-foot__addr { color: #7b9a96 !important; }
.gl-foot__col h3 {
    font-size: 13.6px; color: #fff; margin-bottom: 13px;
    padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.gl-foot__col li { font-size: 12.8px; padding: 5px 0; }
.gl-foot__col a:hover { color: #fff; text-decoration: underline; }
.gl-foot__bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; padding-top: 16px;
    font-size: 12.2px; color: #7b9a96;
}

/* ==========================================================================
   列表页
   ========================================================================== */
.gl-crumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 16px 0 2px; font-size: 12.4px; color: var(--muted);
}
.gl-crumb a:hover { color: var(--teal); }

.gl-chan {
    display: grid; grid-template-columns: minmax(0, 1fr) 250px;
    gap: 30px; padding: 14px 0 24px;
}
.gl-chan__main h1 { margin-bottom: 12px; }
.gl-chan__lead { font-size: 13.8px; color: var(--ink-2); max-width: 64em; }
.gl-chan__stats {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.gl-chan__stats div {
    padding: 9px 14px; border-radius: var(--radius-sm);
    background: var(--white); border: 1px solid var(--line);
    min-width: 104px;
}
.gl-chan__stats dt { font-size: 11.2px; color: var(--muted); }
.gl-chan__stats dd {
    font-family: var(--font-mono); font-size: 15px; font-weight: 700;
    color: var(--teal-deep); margin-top: 1px;
}
.gl-chan__aside {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px 18px; align-self: start;
}
.gl-chan__aside h2 {
    font-size: 13px; letter-spacing: .08em; color: var(--ink-2);
    padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.gl-chan__aside li {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 9px 0; font-size: 12.8px; border-bottom: 1px dashed var(--line);
}
.gl-chan__aside li:last-child { border-bottom: 0; }
.gl-chan__aside a:hover { color: var(--teal); }
.gl-chan__aside b { font-family: var(--font-mono); font-size: 11.6px; color: var(--muted); }

.gl-filter {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 16px 0 18px; border-top: 1px solid var(--line);
}
.gl-filter__label { font-size: 11.5px; letter-spacing: .12em; color: var(--muted); margin-right: 3px; }
.gl-filter__btn {
    border: 1px solid var(--line-2); background: var(--white);
    color: var(--ink-2); border-radius: 6px;
    padding: 6px 15px; font-size: 12.8px; transition: all .16s;
}
.gl-filter__btn:hover { border-color: var(--teal); color: var(--teal); }
.gl-filter__btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gl-filter__hint { margin-left: auto; font-size: 12.2px; color: var(--muted); font-family: var(--font-mono); }

.gl-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 312px;
    gap: 28px; padding-bottom: 52px; align-items: start;
}
.gl-results {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
}
.gl-result { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.gl-result:last-child { border-bottom: 0; }
.gl-result:hover { background: var(--mint-2); }
.gl-result__head { display: flex; align-items: flex-start; gap: 12px; }
.gl-result__head h3 { font-size: 17px; line-height: 1.45; flex: 1; }
.gl-result__head h3 a:hover { color: var(--teal); }
.gl-result__desc {
    margin-top: 7px; font-size: 13px; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.gl-result__foot {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
    margin-top: 11px; font-size: 11.8px; color: #5d7a76;
    font-family: var(--font-mono);
}
.gl-result__foot a { margin-left: auto; font-family: var(--font-sans); font-weight: 700; color: var(--teal); }
.gl-results__note {
    margin-top: 16px; font-size: 12.8px; color: var(--muted);
    padding-left: 13px; border-left: 3px solid var(--line-2);
}

.gl-page {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin-top: 22px;
}
.gl-page__step {
    padding: 9px 15px; border: 1px solid var(--line-2);
    border-radius: 7px; background: var(--white);
    font-size: 12.8px; color: var(--ink-2);
}
.gl-page__step:hover { border-color: var(--teal); color: var(--teal); }
.gl-page__nums { display: flex; align-items: center; gap: 6px; }
.gl-page__num {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--line-2); border-radius: 7px;
    background: var(--white); font-family: var(--font-mono); font-size: 13px;
}
.gl-page__num:hover { border-color: var(--teal); color: var(--teal); }
.gl-page__num.is-current { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.gl-page__gap { color: var(--muted); }
.gl-page__info { margin-left: auto; font-size: 12.2px; color: var(--muted); font-family: var(--font-mono); }

.gl-side { display: flex; flex-direction: column; gap: 16px; }
.gl-side__box {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 18px 14px;
    box-shadow: var(--shadow);
}
.gl-side__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px; padding-bottom: 10px; margin-bottom: 4px;
    border-bottom: 2px solid var(--ink);
}
.gl-side__head h2 { font-size: 15.5px; }
.gl-side__head span { font-size: 11.2px; color: var(--muted); }
.gl-side__hot { counter-reset: ghot; }
.gl-side__hot li {
    counter-increment: ghot; padding: 9px 0 9px 24px;
    position: relative; border-bottom: 1px dashed var(--line);
    font-size: 13px; line-height: 1.55;
}
.gl-side__hot li:last-child { border-bottom: 0; }
.gl-side__hot li::before {
    content: counter(ghot); position: absolute; left: 0; top: 10px;
    width: 17px; height: 17px; border-radius: 4px;
    display: grid; place-items: center;
    background: #eef4f3; color: var(--ink-2);
    font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
}
.gl-side__hot a:hover { color: var(--teal); }
.gl-side__hot time {
    display: block; margin-top: 2px; font-family: var(--font-mono);
    font-size: 10.8px; color: #5d7a76;
}
.gl-side__nav li { border-bottom: 1px dashed var(--line); }
.gl-side__nav li:last-child { border-bottom: 0; }
.gl-side__nav a {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 8px 0; font-size: 13px;
}
.gl-side__nav a:hover { color: var(--teal); }
.gl-side__nav em { font-style: normal; font-family: var(--font-mono); font-size: 11.6px; color: var(--muted); }
.gl-side__pick li { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.gl-side__pick li:last-child { border-bottom: 0; }
.gl-side__pick h3 { font-size: 13.4px; line-height: 1.5; margin-bottom: 4px; }
.gl-side__pick h3 a:hover { color: var(--teal); }
.gl-side__pick p { font-size: 12.2px; color: var(--muted); }
.gl-side__more { display: inline-block; margin-top: 9px; font-size: 12.2px; font-weight: 700; color: var(--teal); }
.gl-side__box--dark { background: var(--ink); color: #c8dfdb; border-color: var(--ink); }
.gl-side__box--dark h2 { font-size: 15.5px; color: #fff; margin-bottom: 8px; }
.gl-side__box--dark p { font-size: 12.4px; margin-bottom: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1099px) {
    .gl-wrap { width: min(var(--wrap), 100% - 36px); }
    .gl-hero__grid { grid-template-columns: 1fr; gap: 28px; }
    .gl-hero__panel { max-width: 620px; }
    .gl-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gl-genre-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gl-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 160px; }
    .gl-bento__cell--feature { grid-column: span 2; grid-row: span 2; }
    .gl-az__list { grid-template-columns: repeat(10, minmax(0, 1fr)); }
    .gl-new__grid, .gl-method__grid { grid-template-columns: 1fr; }
    .gl-new__aside { max-width: 560px; }
    .gl-chan { grid-template-columns: 1fr; }
    .gl-chan__aside { max-width: 420px; }
    .gl-layout { grid-template-columns: minmax(0, 1fr) 286px; gap: 22px; }
    .gl-foot__grid { grid-template-columns: 1.6fr 1fr 1fr; }
    .gl-foot__col:last-child { grid-column: span 3; }
    .gl-sub__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 899px) {
    .gl-head__util { display: none; }
    .gl-burger { display: flex; margin-left: auto; }
    .gl-nav__inner { display: block; }
    .gl-nav__list { display: none; flex-direction: column; }
    .gl-nav__list.is-open { display: flex; }
    .gl-nav__list li { border-bottom: 1px solid var(--line); }
    .gl-nav__list a { padding: 12px 2px; border-bottom: 0; }
    .gl-nav__stat { display: none; }
    .gl-sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .gl-sec-head__note { max-width: 100%; }
    .gl-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gl-genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gl-ask__grid { grid-template-columns: 1fr; }
    .gl-layout { grid-template-columns: 1fr; }
    .gl-search__count { margin-left: 0; width: 100%; }
    .gl-az__meta { flex-direction: column; gap: 10px; }
    .gl-rank__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 599px) {
    body { font-size: 14.2px; }
    .gl-wrap { width: calc(100% - 28px); }
    .gl-head__barinner { min-height: 56px; }
    .gl-logo__text strong { font-size: 19px; }
    .gl-logo__text em { font-size: 8.6px; letter-spacing: .1em; }
    .gl-search-block { padding: 20px 0 12px; }
    .gl-search { padding: 6px 6px 6px 14px; gap: 8px; border-width: 2px; }
    .gl-search input { font-size: 14.5px; padding: 9px 0; }
    .gl-search button { padding: 11px 16px; font-size: 13px; }
    .gl-search__hot { font-size: 12px; gap: 6px 10px; }
    .gl-hero { padding: 24px 0 32px; }
    .gl-hero__cats a { padding: 6px 12px; font-size: 12.4px; }
    .gl-wall { grid-template-columns: 1fr; }
    .gl-genre-grid { grid-template-columns: 1fr; }
    .gl-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .gl-bento__cell--feature { grid-column: auto; grid-row: auto; min-height: 280px; }
    .gl-bento > a.gl-bento__cell:not(.gl-bento__cell--feature) img { height: 180px; }
    .gl-bento__cell--feature img { height: 280px; }
    .gl-az__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .gl-new__item { grid-template-columns: 1fr; gap: 8px; }
    .gl-new__item time { justify-self: start; }
    .gl-new__go { justify-self: start; }
    .gl-versions__item { grid-template-columns: 1fr; gap: 6px; }
    .gl-method__copy { padding: 22px 20px; }
    .gl-method__chart { padding: 20px 18px; }
    .gl-sub__inner { padding: 22px 20px; }
    .gl-sub__form { flex-direction: column; width: 100%; }
    .gl-sub__form input { width: 100%; }
    .gl-sub__form button { height: 44px; }
    .gl-foot__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .gl-foot__brand { grid-column: span 2; }
    .gl-foot__col:last-child { grid-column: span 2; }
    .gl-filter__hint { margin-left: 0; width: 100%; }
    .gl-result { padding: 16px 16px; }
    .gl-result__head h3 { font-size: 15.6px; }
    .gl-page__info { width: 100%; margin-left: 0; }
    .gl-rank__table { min-width: 520px; }
    .gl-rank__table th, .gl-rank__table td { padding: 11px 12px; }
    .gl-chan__stats div { flex: 1 1 44%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
