/* =====================================================================
 * TG 群组搜索 · 前台样式
 * ===================================================================== */
:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #f1f4f8;
    --line: #e7ebf1;
    --line-2: #dbe2ec;
    --text: #0f1728;
    --text-2: #55607a;
    --muted: #93a0b4;
    --accent: #2aabee;
    --accent-2: #1b93d3;
    --accent-soft: #e9f6fd;
    --accent-ink: #0f7fb5;
    --ok: #12b76a;
    --danger: #f04438;
    --warn: #f79009;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 10px -6px rgba(16, 24, 40, .12);
    --shadow-md: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 34px -24px rgba(16, 24, 40, .45);
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --shell: 1180px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0e14;
        --surface: #141922;
        --surface-2: #1b222d;
        --line: #232b38;
        --line-2: #2e3846;
        --text: #edf1f7;
        --text-2: #a3adbf;
        --muted: #6f7b8f;
        --accent-soft: #102c3b;
        --accent-ink: #7ccbf0;
        --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 14px -8px rgba(0, 0, 0, .6);
        --shadow-md: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 40px -26px rgba(0, 0, 0, .9);
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ------------------------------- 按钮 ------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 16px;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--surface); color: var(--text);
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
    transition: background .16s, border-color .16s, box-shadow .16s, transform .12s;
    cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(180deg, #38b4f2, var(--accent));
    border-color: var(--accent); color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 8px 18px -10px rgba(42, 171, 238, .9);
}
.btn-primary:hover { background: linear-gradient(180deg, #2cabea, var(--accent-2)); border-color: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { height: 46px; padding: 0 22px; border-radius: 12px; font-size: 14.5px; }

/* ------------------------------- 顶部 ------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { height: 64px; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #45c2f7, #1a8fc9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.logo-mark svg { width: 17px; height: 17px; fill: #fff; }
.logo-text { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 16px; margin-left: 6px; }
.nav-link { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav .btn { margin-left: 4px; }

.header-search { margin-left: auto; }
.header-search input {
    width: 210px; height: 34px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); padding: 0 14px;
    font-size: 13px; outline: none;
}
.header-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }

.header-cats { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.cat-scroll { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
    flex: none; padding: 9px 12px;
    font-size: 13px; color: var(--text-2); white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.cat-pill:hover { color: var(--text); border-bottom-color: var(--line-2); }


/* ------------------------------- 品牌 & 手机分类抽屉 ------------------------------- */
.logo-img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; display: block; }
.cat-toggle {
    display: none;
    width: 36px; height: 36px; flex: none;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--text-2);
    align-items: center; justify-content: center;
    cursor: pointer;
}
.cat-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.cat-drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-mask {
    position: absolute; inset: 0;
    background: rgba(10, 16, 28, .42);
    backdrop-filter: blur(2px);
    opacity: 0; transition: opacity .2s;
}
.drawer-panel {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: min(84vw, 320px);
    display: flex; flex-direction: column;
    background: var(--surface);
    box-shadow: 12px 0 40px -20px rgba(16, 24, 40, .45);
    transform: translateX(-102%);
    transition: transform .24s cubic-bezier(.2, .8, .3, 1);
}
.cat-drawer.is-open .drawer-mask { opacity: 1; }
.cat-drawer.is-open .drawer-panel { transform: none; }

.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 10px;
    font-weight: 700; font-size: 14px;
}
.drawer-close {
    width: 30px; height: 30px; border-radius: 50%;
    border: 0; background: var(--surface-2); color: var(--text-2);
    display: grid; place-items: center; cursor: pointer;
}
.drawer-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-list { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.drawer-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 10px; border-radius: 10px;
    font-size: 13.5px; color: var(--text-2);
}
.drawer-item:hover, .drawer-item:active { background: var(--surface-2); color: var(--text); }
.di-icon { width: 20px; text-align: center; font-size: 14px; }
.di-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-count { font-size: 11.5px; color: var(--muted); }
.drawer-sep { padding: 14px 12px 6px; font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.drawer-foot { padding: 12px 16px 18px; border-top: 1px solid var(--line); }
.drawer-foot .btn { width: 100%; }

@media (max-width: 900px) {
    .cat-toggle { display: inline-flex; }
    .header-cats { display: none; }
    .header-inner { gap: 10px; }
}

/* ------------------------------- Hero ------------------------------- */
.hero { position: relative; padding: 62px 0 26px; text-align: center; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; left: 50%; top: -280px;
    width: 920px; height: 640px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(42, 171, 238, .16), rgba(42, 171, 238, .04) 62%, transparent 78%);
    pointer-events: none;
}
.hero-inner { position: relative; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    font-size: 12.5px; color: var(--text-2); font-weight: 500;
}
.eyebrow b { color: var(--text); }
.dot-live {
    width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent);
}
.hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.16; letter-spacing: -.035em; font-weight: 800;
}
.lede { font-size: 15px; color: var(--text-2); }

.search {
    display: flex; align-items: center; gap: 10px;
    max-width: 640px; height: 58px; margin: 26px auto 0;
    padding: 0 8px 0 18px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: border-color .16s, box-shadow .16s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow-md); }
.search-ico { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15.5px; }
.search input::placeholder { color: var(--muted); }
.search .btn { flex: none; height: 42px; }

.hot-links { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 12.5px; color: var(--muted); }
.hot-links a { color: var(--text-2); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.hot-links a:hover { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); }

/* ------------------------------- 区块 ------------------------------- */
.section { padding: 12px 24px 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.section-head h2 { font-size: 17px; }
.more { font-size: 12.5px; color: var(--muted); }
.more:hover { color: var(--accent-ink); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.cat-card {
    display: grid; grid-template-columns: auto 1fr; gap: 2px 10px;
    padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    transition: transform .16s, box-shadow .16s, border-color .16s;
}
.cat-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); box-shadow: var(--shadow-sm); }
.cat-icon { grid-row: span 2; font-size: 20px; line-height: 1.2; }
.cat-name { font-size: 14px; font-weight: 650; }
.cat-count { font-size: 11.5px; color: var(--muted); }
.cat-intro { grid-column: 1 / -1; margin-top: 6px; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------- 卡片 ------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 12px; }
.card {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    transition: transform .16s, box-shadow .16s, border-color .16s;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow-md); }
.card-body { min-width: 0; flex: 1; }
.card-title { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; font-size: 14.2px; font-weight: 650; line-height: 1.4; }
.card-title .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-desc {
    font-size: 12.4px; line-height: 1.55; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 38px;
}
.card-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.6px; color: var(--muted); }
.card-meta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.card-meta .cat { background: var(--accent-soft); color: var(--accent-ink); border-radius: 6px; padding: 0 6px; font-size: 11px; font-weight: 600; }
.dot { opacity: .55; }

.avatar {
    position: relative; flex: none;
    width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--av1, #9bb4ff), var(--av2, #6f8dff));
    color: #fff; font-size: 18px; font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.avatar-letter { position: relative; z-index: 0; }
.avatar-lg { width: 84px; height: 84px; font-size: 32px; border-radius: 22px; }
.avatar-md { width: 54px; height: 54px; font-size: 20px; }
.avatar-sm { width: 34px; height: 34px; font-size: 14px; }

.vbadge { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); display: inline-grid; place-items: center; color: #fff; }
.vbadge svg { width: 9px; height: 9px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.vbadge-lg { width: 20px; height: 20px; }
.vbadge-lg svg { width: 13px; height: 13px; }

/* ------------------------------- 页面通用 ------------------------------- */
.page { padding: 24px 24px 50px; }
.page.narrow { max-width: 760px; }
.page-head { margin: 10px 0 18px; }
.page-head h1 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.page-head p { margin-top: 6px; color: var(--text-2); font-size: 13.5px; }
.page-head-meta { font-size: 12.5px; color: var(--muted); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb .sep { opacity: .5; }

.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.sort-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.sort-tab { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; color: var(--text-2); }
.sort-tab.is-active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-xs); }
.count { font-size: 12.5px; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 10px; }
.pager-btn {
    min-width: 34px; height: 34px; padding: 0 10px;
    display: inline-grid; place-items: center;
    border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
    font-size: 13px; color: var(--text-2);
}
.pager-btn:hover { border-color: var(--line-2); color: var(--text); }
.pager-btn.is-current { background: #101a2b; border-color: #101a2b; color: #fff; }

.empty { text-align: center; padding: 60px 20px 66px; }
.empty h1, .empty h2 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--text-2); font-size: 13.5px; }
.empty a { color: var(--accent-ink); }

/* ------------------------------- 详情页 ------------------------------- */
.group-detail {
    margin-top: 16px; padding: 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
}
.detail-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.detail-title { flex: 1; min-width: 200px; }
.detail-title h1 { font-size: clamp(21px, 3vw, 28px); letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; }
.detail-meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.detail-meta a { color: var(--accent-ink); }
.detail-join { flex: none; }
.detail-body { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 12px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0 0; }
.detail-facts div { min-width: 0; }
.detail-facts dt { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.detail-facts dd { margin: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.detail-facts dd a { color: var(--accent-ink); word-break: break-all; }

.seo-block { margin-top: 26px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.seo-block h2 { font-size: 16px; margin-bottom: 8px; }
.seo-block p { font-size: 13.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 8px; }
.seo-block p:last-child { margin-bottom: 0; }
.seo-block a { color: var(--accent-ink); }

/* ------------------------------- 表单 ------------------------------- */
.narrow .search { margin: 18px 0 24px; height: 52px; }
.form-card {
    padding: 22px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-xl); box-shadow: var(--shadow-xs);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field label i { color: var(--danger); font-style: normal; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; padding: 9px 11px;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--bg); outline: none;
    transition: border-color .14s, box-shadow .14s, background .14s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--accent); background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}
.field textarea { resize: vertical; line-height: 1.55; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.err { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.alert { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); font-size: 13px; margin-bottom: 14px; }

.fetch-card { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; margin: -2px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.fetch-body { min-width: 0; flex: 1; }
.fetch-name { font-size: 13.4px; font-weight: 650; }
.fetch-desc { font-size: 12px; color: var(--text-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fetch-meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.fetch-tag { flex: none; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.fetch-tag.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.fetch-tag.is-dup { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 34%, var(--line)); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.fetch-tag.is-loading { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); background: var(--accent-soft); }

.submit-done { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); margin-top: 20px; }
.done-ico { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.done-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.submit-done h1 { font-size: 20px; margin-bottom: 6px; }
.submit-done p { color: var(--text-2); font-size: 13.5px; margin-bottom: 18px; }
.done-actions { display: flex; gap: 10px; justify-content: center; }

.type-badge {
    flex: none; display: inline-block;
    font-size: 10px; font-weight: 600; line-height: 16px;
    padding: 0 5px; border-radius: 4px;
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    color: var(--accent-ink);
}
.type-badge.is-group { background: var(--surface-2); color: var(--text-2); }
.type-tabs { margin: 0 0 16px; }
.tab-n { font-size: 10.5px; color: var(--muted); margin-left: 2px; }
.sort-tab.is-active .tab-n { color: var(--accent-ink); }

/* ------------------------------- 类型选择 ------------------------------- */
.type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-option {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 12px; cursor: pointer;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--surface);
    transition: border-color .15s, background .15s;
}
.type-option:hover { border-color: var(--muted); }
.type-option input { margin-top: 3px; accent-color: var(--accent); }
.type-option b { display: block; font-size: 13px; }
.type-option small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.type-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.type-option:has(input:checked) b { color: var(--accent-ink); }

/* ------------------------------- 验证码 ------------------------------- */
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-img {
    flex: none; height: 46px; width: 132px;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: #fff; cursor: pointer; object-fit: cover;
}
.captcha-img:hover { border-color: var(--accent); }

/* ------------------------------- 页脚 ------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
.footer-brand p { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 420px; }
.footer-links h3 { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { font-size: 12.5px; color: var(--text-2); }
.footer-links a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ------------------------------- 响应式 ------------------------------- */
@media (max-width: 980px) {
    .nav-link { display: none; }
    .header-search input { width: 160px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

@media (max-width: 760px) {
    .shell { padding: 0 16px; }
    .page { padding: 18px 16px 40px; }
    .section { padding: 10px 16px 6px; }
    .header-inner { height: 58px; gap: 10px; }
    .logo-text { font-size: 14px; }
    .header-search { display: none; }
    .nav { margin-left: auto; }
    .nav .btn { height: 34px; padding: 0 12px; font-size: 12.8px; }

    .hero { padding: 32px 0 16px; }
    .hero h1 { font-size: 26px; }
    .lede { font-size: 13.5px; }
    .search { height: 52px; border-radius: 15px; margin-top: 20px; }
    .search input { font-size: 16px; }
    .search .btn { height: 38px; padding: 0 14px; }

    .cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .cat-intro { display: none; }
    .grid { grid-template-columns: 1fr; gap: 9px; }
    .card { padding: 12px; }
    .card-desc { min-height: 0; }

    .page-head h1 { font-size: 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-card { padding: 16px; }
    .detail-head { gap: 12px; }
    .avatar-lg { width: 64px; height: 64px; font-size: 24px; border-radius: 18px; }
    .detail-join { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
