/* ==========================================================================
   forum-01 · 城市论坛
   H2 顶栏 + 左 LOGO + 横导航 / V2 左文右卡 / G6 表格行列表
   配色 P2 科技蓝
   ========================================================================== */

:root {
    --bg: #f2f6fb; --surface: #ffffff; --surface-2: #f8fbff;
    --ink: #152230; --soft: #3d5165; --mute: #5f7288;
    --blue: #1465c0; --blue-deep: #0c427f; --blue-dark: #0b2540;
    --sky: #e3eefb; --sky-2: #eef5fd; --teal: #0f8f8a;
    --line: #d7e2ee; --line-2: #e6eef8;
    --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    --mono: "SF Mono", "Roboto Mono", "DejaVu Sans Mono", ui-monospace, monospace;
    --wrap: 1200px;
    --shadow-sm: 0 2px 8px rgba(21, 34, 48, .05);
    --shadow-md: 0 10px 26px rgba(21, 34, 48, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.8;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sky); color: var(--blue-deep); }

.cf-skip { position: absolute; left: -9999px; top: 0; z-index: 99; padding: 10px 18px; background: var(--blue-deep); color: #fff; }
.cf-skip:focus { left: 12px; top: 12px; }
.cf-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.cf-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cf-kicker {
    margin: 0 0 10px; font-family: var(--mono); font-size: 11px;
    letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.cf-btn {
    display: inline-block; padding: 11px 26px; background: var(--blue);
    border: 1px solid var(--blue); border-radius: 3px; color: #fff;
    font-size: 15px; font-weight: 600; transition: background .2s ease, box-shadow .2s ease;
}
.cf-btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(12, 66, 127, .18); }
.cf-btn--ghost { background: transparent; color: var(--blue-deep); border-color: #b9cde4; }
.cf-btn--ghost:hover { background: var(--sky-2); color: var(--blue-deep); border-color: var(--blue); box-shadow: none; }
.cf-link { font-size: 14px; font-weight: 600; border-bottom: 1px solid #a8c4e2; }

/* ---------------- 顶栏 ---------------- */
.cf-topbar { background: var(--blue-dark); color: #cfe0f2; }
.cf-topbar__row { display: flex; align-items: center; gap: 22px; min-height: 36px; font-size: 12px; }
.cf-topbar__date { font-family: var(--mono); letter-spacing: .02em; color: #b9d0e6; }
.cf-topbar__welcome { color: #9fb9d2; }
.cf-topbar__links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.cf-topbar__links a { color: #cfe0f2; font-size: 12px; }
.cf-topbar__links a:hover { color: #fff; text-decoration: none; }
.cf-topbar__login { padding-left: 16px; border-left: 1px solid #2c4a6b; }
.cf-topbar__reg { padding: 3px 12px; background: #fff; color: var(--blue-deep) !important; border-radius: 2px; font-weight: 600; }
.cf-topbar__reg:hover { background: var(--sky); }
.cf-badge {
    display: inline-block; min-width: 16px; margin-left: 4px; padding: 0 4px;
    background: #e8543f; border-radius: 8px; color: #fff;
    font-family: var(--mono); font-size: 10px; line-height: 16px; text-align: center;
}

/* ---------------- 品牌行 ---------------- */
.cf-brand { background: var(--surface); border-bottom: 1px solid var(--line); }
.cf-brand__inner { display: flex; align-items: center; gap: 28px; padding: 16px 28px; }
.cf-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cf-logo:hover { text-decoration: none; }
.cf-logo__mark { color: var(--blue); flex-shrink: 0; }
.cf-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.cf-logo__text strong { font-size: 26px; color: var(--ink); letter-spacing: .06em; }
.cf-logo__text em { margin-top: 3px; font-family: var(--mono); font-size: 10px; font-style: normal; letter-spacing: .12em; color: var(--mute); }
.cf-search { display: flex; flex: 1 1 340px; max-width: 460px; margin-left: auto; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--surface-2); }
.cf-search input { flex: 1; min-width: 0; padding: 9px 14px; background: transparent; border: 0; color: var(--ink); font-size: 14px; }
.cf-search input::placeholder { color: #8094a8; }
.cf-search input:focus { outline: none; background: #fff; }
.cf-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 101, 192, .12); }
.cf-search button { padding: 0 20px; background: var(--blue); border: 0; color: #fff; font-size: 14px; }
.cf-search button:hover { background: var(--blue-deep); }
.cf-burger { display: none; width: 42px; height: 38px; padding: 8px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.cf-burger span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

/* ---------------- 横导航 ---------------- */
.cf-nav { background: var(--surface); border-bottom: 2px solid var(--blue); }
.cf-nav__list { display: flex; flex-wrap: wrap; }
.cf-nav__list a { display: block; padding: 11px 22px; font-size: 15px; color: var(--soft); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.cf-nav__list a:hover { color: var(--blue-deep); background: var(--sky-2); text-decoration: none; }
.cf-nav__list a.is-current { color: #fff; background: var(--blue); border-bottom-color: var(--blue-deep); font-weight: 600; }

/* ---------------- 公告条 ---------------- */
.cf-notice { background: var(--sky-2); border-bottom: 1px solid var(--line); }
.cf-notice__inner { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.cf-notice__tag { flex-shrink: 0; padding: 2px 9px; background: var(--teal); color: #fff; font-size: 11px; border-radius: 2px; }
.cf-notice__title { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-notice__date { font-family: var(--mono); font-size: 11px; color: var(--mute); white-space: nowrap; }
.cf-notice__more { margin-left: auto; font-size: 12px; white-space: nowrap; }

/* ---------------- 首屏 V2 ---------------- */
.cf-hero { padding: 42px 0 46px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.cf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: 46px; align-items: start; }
.cf-hero h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.24; margin-bottom: 18px; }
.cf-hero h1 em { font-style: normal; color: var(--blue); box-shadow: inset 0 -10px 0 var(--sky); }
.cf-hero__lede { max-width: 64ch; color: var(--soft); margin-bottom: 12px; font-size: 16px; }
.cf-hero__act { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.cf-hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cf-hero__stats div { padding: 12px 12px 0 0; }
.cf-hero__stats dt { font-size: 12px; color: var(--mute); }
.cf-hero__stats dd { margin: 2px 0 0; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--blue-deep); }
.cf-hero__side { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-md); }
.cf-hero__sidetitle { font-size: 16px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.cf-pin { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cf-pin:last-child { border-bottom: 0; }
.cf-pin__tag { display: inline-block; margin-bottom: 4px; padding: 1px 7px; background: var(--sky); color: var(--blue-deep); font-size: 11px; border-radius: 2px; }
.cf-pin h3 { font-size: 15px; line-height: 1.55; margin-bottom: 4px; }
.cf-pin h3 a { color: var(--ink); }
.cf-pin h3 a:hover { color: var(--blue); }
.cf-pin p { font-size: 12px; color: var(--mute); line-height: 1.7; }
.cf-pin__meta { margin-top: 6px; font-family: var(--mono); font-size: 10px; }
.cf-hero__sidenote { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 11px; color: var(--mute); }

/* ---------------- 统计带 ---------------- */
.cf-stats { padding: 34px 0; background: var(--blue-dark); color: #e6f0fa; }
.cf-stats__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.cf-stats__lead h2 { font-size: 22px; color: #fff; margin-bottom: 8px; }
.cf-stats__lead p { font-size: 13px; color: #b7cee2; }
.cf-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid #2c4a6b; }
.cf-figures div { padding-left: 16px; }
.cf-figures dt { font-size: 11px; color: #9fb9d2; }
.cf-figures dd { margin: 4px 0 0; font-family: var(--mono); font-size: 24px; font-weight: 700; color: #fff; }
.cf-figures small { margin-left: 2px; font-size: 11px; color: #9fb9d2; font-weight: 400; }
.cf-spark { margin: 0; }
.cf-spark figcaption { font-size: 11px; color: #9fb9d2; margin-bottom: 4px; font-family: var(--mono); letter-spacing: .06em; }
.cf-spark svg { width: 100%; height: auto; }
.cf-spark__grid line { stroke: #2c4a6b; stroke-width: 1; }
.cf-spark__line { fill: none; stroke: #6fb6ff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cf-spark__dots circle { fill: var(--blue-dark); stroke: #6fb6ff; stroke-width: 2; }

/* ---------------- 版块总览 ---------------- */
.cf-boards { padding: 50px 0; }
.cf-sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 30px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.cf-sechead--tight { margin-bottom: 18px; }
.cf-sechead h2 { font-size: clamp(23px, 2.6vw, 30px); }
.cf-sechead__note { max-width: 48ch; font-size: 13px; color: var(--mute); }
.cf-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-sm); }
.cf-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.cf-table th, .cf-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.cf-table thead th { background: var(--sky-2); font-size: 12px; font-weight: 600; color: var(--soft); letter-spacing: .04em; border-bottom: 2px solid var(--line); }
.cf-table tbody tr:last-child th, .cf-table tbody tr:last-child td { border-bottom: 0; }
.cf-table tbody tr:hover { background: #f7fbff; }
.cf-table tbody th { font-weight: 600; }
.cf-table tbody th a { display: block; font-size: 15px; color: var(--blue-deep); }
.cf-board-note { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--mute); }
.cf-today { font-family: var(--mono); color: var(--teal); font-weight: 700; }
.cf-table td:first-of-type, .cf-table td:nth-of-type(2) { font-family: var(--mono); color: var(--soft); }
.cf-last { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10px; color: var(--mute); }
.cf-boards__note { margin-top: 12px; font-size: 12px; color: var(--mute); }

/* ---------------- 最新回复行列表 ---------------- */
.cf-latest { padding: 12px 0 50px; }
.cf-latest__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.cf-rows { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-sm); }
.cf-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 60px; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.cf-row:last-child { border-bottom: 0; }
.cf-row:hover { background: #f8fbff; }
.cf-row__avatar {
    width: 44px; height: 44px; border-radius: 3px;
    background: linear-gradient(135deg, var(--sky), #cfe1f6);
    border: 1px solid #c3d8ef;
}
.cf-row:nth-child(3n+1) .cf-row__avatar { background: linear-gradient(135deg, #d9f0ee, #bfe4e1); }
.cf-row:nth-child(3n+2) .cf-row__avatar { background: linear-gradient(135deg, #e6edf8, #ccdcf0); }
.cf-row__board { display: inline-block; margin-bottom: 2px; padding: 1px 6px; background: var(--sky-2); color: var(--blue-deep); font-size: 10px; border-radius: 2px; }
.cf-row h3 { font-size: 16px; line-height: 1.55; margin-bottom: 2px; }
.cf-row h3 a { color: var(--ink); }
.cf-row h3 a:hover { color: var(--blue); }
.cf-row__desc { font-size: 13px; color: var(--mute); margin-bottom: 4px; }
.cf-row__meta { font-family: var(--mono); font-size: 10px; color: #7b8fa3; }
.cf-row__num { align-self: center; text-align: center; font-family: var(--mono); font-size: 18px; color: var(--blue); font-weight: 700; }
.cf-row__num small { display: block; font-size: 10px; color: var(--mute); font-weight: 400; }
.cf-latest__more { margin-top: 14px; text-align: right; }

/* ---------------- 今日热议 ---------------- */
.cf-hot { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 4px; box-shadow: var(--shadow-sm); position: sticky; top: 18px; }
.cf-hot__title { font-size: 16px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.cf-hotlist { counter-reset: hot; }
.cf-hotlist__item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.cf-hotlist__item:last-child { border-bottom: 0; }
.cf-hotlist__no {
    flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
    display: grid; place-items: center; font-family: var(--mono); font-size: 11px;
    color: var(--mute); background: var(--sky-2); border-radius: 2px;
}
.cf-hotlist__no::before { counter-increment: hot; content: counter(hot); }
.cf-hotlist__item:nth-child(-n+3) .cf-hotlist__no { background: var(--blue); color: #fff; }
.cf-hotlist__item h3 { font-size: 14px; line-height: 1.55; font-weight: 600; }
.cf-hotlist__item h3 a { color: var(--ink); }
.cf-hotlist__item h3 a:hover { color: var(--blue); }
.cf-hotlist__meta { margin-top: 3px; font-family: var(--mono); font-size: 10px; color: var(--mute); }
.cf-hotlist__bar { display: block; width: 100%; height: 3px; margin-top: 6px; background: var(--line-2); }
.cf-hotlist__bar::after { content: ""; display: block; width: 72%; height: 100%; background: var(--blue); }
.cf-hotlist__item:nth-child(2) .cf-hotlist__bar::after { width: 61%; }
.cf-hotlist__item:nth-child(3) .cf-hotlist__bar::after { width: 54%; }
.cf-hotlist__item:nth-child(4) .cf-hotlist__bar::after { width: 43%; }
.cf-hotlist__item:nth-child(5) .cf-hotlist__bar::after { width: 32%; }
.cf-hot__note { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 11px; color: var(--mute); line-height: 1.7; }

/* ---------------- 在线会员格 ---------------- */
.cf-online { padding: 46px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cf-online__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 30px; margin-bottom: 22px; }
.cf-online__head h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.cf-online__lede { max-width: 76ch; font-size: 13px; color: var(--mute); }
.cf-online__count { font-size: 13px; color: var(--mute); }
.cf-online__count strong { font-family: var(--mono); font-size: 26px; color: var(--blue-deep); margin-right: 4px; }
.cf-members { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cf-member {
    display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto;
    column-gap: 8px; align-items: center; padding: 8px; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 3px;
}
.cf-member > span {
    grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px;
    background: var(--sky); color: var(--blue-deep); font-size: 14px; font-weight: 600; border-radius: 3px;
}
.cf-member em { font-size: 12px; font-style: normal; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-member small { font-size: 10px; color: var(--mute); }
.cf-member--mod { background: #eef5ff; border-color: #b9d3ef; }
.cf-member--mod > span { background: var(--blue); color: #fff; }
.cf-member--more > span { background: var(--line-2); color: var(--mute); }
.cf-online__note { margin-top: 14px; font-size: 12px; color: var(--mute); }

/* ---------------- 编辑推荐 ---------------- */
.cf-picks { padding: 50px 0; }
.cf-picks__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cf-pick { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.cf-pick:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cf-pick__tag { display: inline-block; margin-bottom: 8px; padding: 1px 7px; background: var(--teal); color: #fff; font-size: 10px; border-radius: 2px; }
.cf-pick h3 { font-size: 15px; line-height: 1.55; margin-bottom: 6px; }
.cf-pick h3 a { color: var(--ink); }
.cf-pick h3 a:hover { color: var(--blue); }
.cf-pick p { font-size: 12px; color: var(--mute); line-height: 1.7; }
.cf-pick__meta { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: 10px; }

/* ---------------- 版规 ---------------- */
.cf-rules { padding: 50px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cf-rules__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.cf-rules h2 { font-size: clamp(23px, 2.6vw, 30px); margin-bottom: 12px; }
.cf-rules p { font-size: 15px; color: var(--soft); margin-bottom: 12px; }
.cf-rulelist li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line-2); counter-increment: rule; }
.cf-rulelist { counter-reset: rule; border-top: 1px solid var(--line); }
.cf-rulelist li::before {
    content: "0" counter(rule); position: absolute; left: 0; top: 13px;
    font-family: var(--mono); font-size: 12px; color: var(--blue);
}
.cf-rulelist strong { display: block; font-size: 15px; margin-bottom: 2px; }
.cf-rulelist span { font-size: 13px; color: var(--mute); }

/* ---------------- 新手指引 ---------------- */
.cf-guide { padding: 50px 0; }
.cf-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.cf-steps li { position: relative; padding: 20px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 4px; }
.cf-steps li::before {
    counter-increment: step; content: "0" counter(step); display: block;
    font-family: var(--mono); font-size: 13px; color: var(--blue); margin-bottom: 6px;
}
.cf-steps strong { display: block; font-size: 15px; margin-bottom: 6px; }
.cf-steps span { font-size: 13px; color: var(--mute); line-height: 1.75; }

/* ---------------- FAQ 与订阅 ---------------- */
.cf-faq { padding: 46px 0 56px; background: var(--sky-2); border-top: 1px solid var(--line); }
.cf-faq__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr); gap: 46px; align-items: start; }
.cf-faq h2 { font-size: clamp(23px, 2.6vw, 30px); margin-bottom: 14px; }
.cf-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 12px 16px; margin-bottom: 10px; }
.cf-faq summary { cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
.cf-faq summary::-webkit-details-marker { display: none; }
.cf-faq summary::after { content: "+"; position: absolute; right: 2px; top: -2px; font-family: var(--mono); font-size: 18px; color: var(--blue); }
.cf-faq details[open] summary::after { content: "−"; }
.cf-faq details p { margin-top: 6px; font-size: 13px; color: var(--mute); }
.cf-sub { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-md); }
.cf-sub h2 { font-size: 19px; margin-bottom: 8px; }
.cf-sub p { font-size: 13px; color: var(--soft); margin-bottom: 10px; }
.cf-sub__count { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.cf-sub__count strong { font-size: 22px; color: var(--blue-deep); }
.cf-sub__fine { font-size: 11px; color: var(--mute); }

/* ---------------- 页脚 ---------------- */
.cf-footer { padding: 48px 0 26px; background: var(--blue-dark); color: #c6d9ea; }
.cf-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, 1.1fr); gap: 36px; }
.cf-footer__col h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: #8fb0cc; font-weight: 500; margin-bottom: 12px; }
.cf-footer__col p, .cf-footer__col li { font-size: 13px; color: #b7cee2; line-height: 1.9; }
.cf-footer__col li { margin-bottom: 3px; }
.cf-footer__col a { color: #b7cee2; }
.cf-footer__col a:hover { color: #fff; }
.cf-footer__logo { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .08em; margin-bottom: 8px; }
.cf-footer__brand p { max-width: 38ch; margin-bottom: 10px; }
.cf-footer__fine { font-family: var(--mono); font-size: 11px; color: #8099b0; line-height: 1.9; }

/* ---------------- 列表页：栏目头 ---------------- */
.cf-colhead { padding: 30px 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.cf-crumb { display: flex; gap: 8px; font-size: 12px; color: var(--mute); margin-bottom: 16px; }
.cf-crumb a { color: var(--mute); }
.cf-colhead__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .6fr); gap: 44px; align-items: start; }
.cf-colhead h1 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 12px; }
.cf-colhead__lede { max-width: 68ch; font-size: 15px; color: var(--soft); margin-bottom: 10px; }
.cf-colhead__stats { margin: 0; border-top: 2px solid var(--blue); }
.cf-colhead__stats div { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.cf-colhead__stats dt { font-size: 11px; color: var(--mute); }
.cf-colhead__stats dd { margin: 0; font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--blue-deep); }
.cf-colhead__stats .cf-colhead__mod { font-family: var(--sans); font-size: 16px; }

/* ---------------- 列表页：筛选 ---------------- */
.cf-filters { background: var(--surface); border-bottom: 1px solid var(--line); }
.cf-filters__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 13px; padding-bottom: 13px; }
.cf-filters__group { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-filters__btn { padding: 6px 15px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; font-size: 13px; color: var(--soft); }
.cf-filters__btn:hover { border-color: var(--blue); color: var(--blue-deep); }
.cf-filters__btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.cf-filters__hint { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--mute); }

/* ---------------- 列表页：条目 ---------------- */
.cf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-top: 28px; padding-bottom: 46px; }
.cf-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) 56px; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.cf-item:hover { border-color: #b9cfe8; box-shadow: var(--shadow-sm); }
.cf-item__avatar { width: 44px; height: 44px; border-radius: 3px; background: linear-gradient(135deg, var(--sky), #cfe1f6); border: 1px solid #c3d8ef; }
.cf-item:nth-child(3n+2) .cf-item__avatar { background: linear-gradient(135deg, #d9f0ee, #bfe4e1); }
.cf-item__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--mono); font-size: 10px; color: var(--mute); margin-bottom: 4px; }
.cf-item__board { padding: 1px 6px; background: var(--sky-2); color: var(--blue-deep); border-radius: 2px; font-family: var(--sans); }
.cf-item__title { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; margin-bottom: 4px; }
.cf-item__title a { color: var(--ink); }
.cf-item__title a:hover { color: var(--blue); }
.cf-item__desc { font-size: 13px; color: var(--mute); margin-bottom: 6px; }
.cf-item__more { font-size: 12px; font-weight: 600; }
.cf-item__num { align-self: center; text-align: center; font-family: var(--mono); font-size: 18px; color: var(--blue); font-weight: 700; }
.cf-item__num small { display: block; font-size: 10px; color: var(--mute); font-weight: 400; }

/* ---------------- 列表页：分页 ---------------- */
.cf-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.cf-pager__label { width: 100%; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.cf-pager__num { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 13px; color: var(--soft); }
.cf-pager__num:hover { border-color: var(--blue); color: var(--blue-deep); text-decoration: none; }
.cf-pager__num.is-current { background: var(--blue); border-color: var(--blue); color: #fff; }
.cf-pager__gap { color: var(--mute); }
.cf-pager__next { display: grid; place-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 3px; font-size: 13px; color: var(--blue); }
.cf-pager__next:hover { background: var(--blue); color: #fff; text-decoration: none; }
.cf-pager__total { width: 100%; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--mute); }

/* ---------------- 列表页：侧栏 ---------------- */
.cf-side { display: grid; gap: 20px; position: sticky; top: 18px; }
.cf-side__box { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.cf-side__box--rule { border-top: 3px solid var(--teal); }
.cf-side__head { font-size: 15px; padding-bottom: 9px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.cf-side__head::before { content: ""; display: inline-block; width: 6px; height: 14px; margin-right: 8px; background: var(--blue); vertical-align: -2px; border-radius: 1px; }
.cf-side__note { font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.cf-side__hot { counter-reset: sidehot; }
.cf-side__hot li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px dashed var(--line); }
.cf-side__hot li:last-child { border-bottom: 0; }
.cf-side__hot li::before { counter-increment: sidehot; content: counter(sidehot); position: absolute; left: 0; top: 10px; width: 17px; height: 17px; display: grid; place-items: center; background: var(--sky-2); color: var(--mute); font-family: var(--mono); font-size: 10px; border-radius: 2px; }
.cf-side__hot li:nth-child(-n+3)::before { background: var(--blue); color: #fff; }
.cf-side__hot h3 { font-size: 13px; line-height: 1.55; font-weight: 600; }
.cf-side__hot h3 a { color: var(--ink); }
.cf-side__hot h3 a:hover { color: var(--blue); }
.cf-side__hot p { font-size: 11px; color: var(--mute); }
.cf-side__hot time { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10px; color: #7b8fa3; }
.cf-side__rows li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.cf-side__rows li:last-child { border-bottom: 0; }
.cf-side__rows a { color: var(--soft); }
.cf-side__rows span { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.cf-side__members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cf-side__members li { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--soft); }
.cf-side__members span { display: grid; place-items: center; width: 22px; height: 22px; background: var(--sky); color: var(--blue-deep); font-size: 11px; border-radius: 2px; flex-shrink: 0; }
.cf-side__members em { font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--mute); margin-left: auto; }

/* ---------------- 列表页：底部说明 ---------------- */
.cf-listnote { padding: 40px 0; background: var(--surface); border-top: 1px solid var(--line); }
.cf-listnote__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
.cf-listnote h2 { font-size: 20px; margin-bottom: 8px; }
.cf-listnote p { font-size: 14px; color: var(--soft); margin-bottom: 10px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
    .cf-hero__grid, .cf-latest__grid, .cf-rules__grid, .cf-faq__grid,
    .cf-colhead__grid, .cf-listnote__grid, .cf-layout {
        grid-template-columns: minmax(0, 1fr); gap: 28px;
    }
    .cf-stats__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
    .cf-spark { grid-column: 1 / -1; max-width: 420px; }
    .cf-hot, .cf-side { position: static; }
    .cf-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cf-picks__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cf-members { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cf-figures { border-left: 0; }
    .cf-figures div { padding-left: 0; }
    .cf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 860px) {
    .cf-topbar__welcome { display: none; }
    .cf-brand__inner { flex-wrap: wrap; gap: 12px; }
    .cf-search { order: 4; flex: 1 1 100%; max-width: 100%; margin-left: 0; }
    .cf-burger { display: block; margin-left: auto; }
    .cf-nav { display: none; }
    .cf-nav.is-open { display: block; }
    .cf-nav__list { flex-direction: column; }
    .cf-nav__list a { padding: 11px 2px; border-bottom: 1px solid var(--line-2); }
    .cf-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cf-picks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cf-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cf-row { grid-template-columns: 40px minmax(0, 1fr); }
    .cf-row__num { display: none; }
    .cf-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
}

@media (max-width: 620px) {
    .cf-wrap { padding: 0 16px; }
    .cf-brand__inner { padding: 12px 16px; }
    .cf-logo__text strong { font-size: 22px; }
    .cf-logo__text em { font-size: 9px; }
    .cf-topbar__date { font-size: 11px; }
    .cf-topbar__login { padding-left: 10px; }
    .cf-hero { padding: 30px 0 34px; }
    .cf-hero h1 { font-size: 30px; }
    .cf-hero__lede { font-size: 15px; }
    .cf-notice__inner { flex-wrap: wrap; padding: 8px 0; gap: 6px 10px; }
    .cf-notice__title { white-space: normal; flex: 1 1 100%; }
    .cf-notice__more { margin-left: 0; }
    .cf-sechead { flex-direction: column; align-items: flex-start; }
    .cf-stats__grid { grid-template-columns: minmax(0, 1fr); }
    .cf-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cf-online__count strong { font-size: 22px; }
    .cf-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cf-online__head { align-items: flex-start; }
    .cf-picks__grid { grid-template-columns: minmax(0, 1fr); }
    .cf-steps { grid-template-columns: minmax(0, 1fr); }
    .cf-side { grid-template-columns: minmax(0, 1fr); }
    .cf-item { grid-template-columns: 34px minmax(0, 1fr); padding: 14px; }
    .cf-item__avatar { width: 34px; height: 34px; }
    .cf-item__num { display: none; }
    .cf-item__desc { margin-bottom: 4px; }
    .cf-colhead { padding: 22px 0 28px; }
    .cf-filters__hint { margin-left: 0; width: 100%; }
    .cf-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .cf-footer { padding-top: 38px; }
    .cf-table th, .cf-table td { padding: 11px 12px; }
    .cf-table { min-width: 640px; }
}

@media (max-width: 380px) {
    .cf-wrap { padding: 0 12px; }
    .cf-brand__inner { padding: 10px 12px; }
    .cf-logo__mark { width: 32px; height: 32px; }
    .cf-logo__text strong { font-size: 19px; }
    .cf-logo__text em { letter-spacing: .06em; }
    .cf-topbar__row { gap: 10px; }
    .cf-topbar__links { gap: 10px; }
    .cf-topbar__reg { padding: 2px 8px; }
    .cf-hero h1 { font-size: 26px; }
    .cf-members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .cf-member { padding: 6px; grid-template-columns: 28px minmax(0, 1fr); }
    .cf-member > span { width: 28px; height: 28px; font-size: 12px; }
    .cf-pager__num { min-width: 32px; height: 34px; }
    .cf-pager__next { height: 34px; padding: 0 12px; }
    .cf-filters__btn { padding: 5px 10px; font-size: 12px; }
    .cf-table { min-width: 600px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .cf-pick:hover { transform: none; }
}

/* ---------------- 栅格防溢出与列表显现 ---------------- */
.cf-listmain, .cf-side, .cf-hero__main, .cf-latest__grid > div, .cf-layout > * { min-width: 0; }
.cf-row, .cf-item { transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.cf-row.is-in, .cf-item.is-in { animation: cf-rise .45s ease both; }
@keyframes cf-rise {
    from { opacity: .35; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.cf-row__desc, .cf-item__desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.cf-pick p {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------- 状态与细节 ---------------- */
.cf-btn:focus-visible, .cf-search button:focus-visible { outline-offset: 2px; }
.cf-faq summary:focus-visible { outline-offset: 4px; }
.cf-pin { transition: background .2s ease; }
.cf-pin:hover { background: var(--surface-2); }
.cf-member { transition: border-color .2s ease, background .2s ease; }
.cf-member:hover { border-color: #b9cfe8; background: #fff; }
.cf-rulelist li:hover strong { color: var(--blue-deep); }
.cf-steps li { transition: border-color .2s ease, box-shadow .2s ease; }
.cf-steps li:hover { border-color: #b9cfe8; box-shadow: var(--shadow-sm); }
.cf-notice__title:hover { color: var(--blue); }
.cf-side__members li:hover { color: var(--blue-deep); }
.cf-faq details[open] { border-color: #b9d3ef; background: #fbfdff; }
.cf-faq details[open] summary { color: var(--blue-deep); }
.cf-table tbody th a:hover { text-decoration: none; color: var(--blue); }
.cf-topbar a, .cf-nav__list a { transition: color .15s ease, background .15s ease; }
.cf-hero__stats div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.cf-colhead__stats dd { white-space: nowrap; }
.cf-footer__col p + p { margin-top: 4px; }
.cf-footer__brand .cf-footer__fine { margin-top: 8px; }
.cf-sub .cf-btn { display: block; text-align: center; }
.cf-spark svg { display: block; }

/* 版块表格列宽与滚动条 */
.cf-table th:nth-child(2), .cf-table td:nth-child(2),
.cf-table th:nth-child(3), .cf-table td:nth-child(3) { width: 10%; white-space: nowrap; }
.cf-table th:nth-child(4), .cf-table td:nth-child(4) { width: 8%; }
.cf-table-wrap { scrollbar-width: thin; scrollbar-color: #b9cde4 transparent; }
.cf-table-wrap::-webkit-scrollbar { height: 8px; }
.cf-table-wrap::-webkit-scrollbar-thumb { background: #c3d8ef; border-radius: 4px; }
.cf-table caption { caption-side: top; }

@media (min-width: 1360px) {
    .cf-hero { padding: 52px 0 54px; }
    .cf-boards, .cf-picks, .cf-guide { padding: 58px 0; }
    .cf-member em { font-size: 13px; }
}

/* 窄屏表格：隐藏数值列，保留版块与最后发表 */
@media (max-width: 620px) {
    .cf-table { min-width: 0; }
    .cf-table th:nth-child(2), .cf-table td:nth-child(2),
    .cf-table th:nth-child(3), .cf-table td:nth-child(3) { display: none; }
    .cf-table th:nth-child(4), .cf-table td:nth-child(4) { width: 22%; }
    .cf-table thead th:last-child { text-align: left; }
    .cf-table td:last-child { font-size: 12px; }
    .cf-last { font-size: 9px; }
}

@media (max-width: 380px) {
    .cf-table { min-width: 0; }
    .cf-table th, .cf-table td { padding: 9px 8px; }
    .cf-board-note { font-size: 10px; }
}

@media (max-width: 360px) {
    .cf-wrap { padding: 0 12px; }
    .cf-brand__inner { padding: 10px 12px; gap: 8px; }
    .cf-logo__mark { width: 28px; height: 28px; }
    .cf-logo__text strong { font-size: 18px; }
    .cf-topbar__links a:not(.cf-topbar__login):not(.cf-topbar__reg) { display: none; }
    .cf-hero h1 { font-size: 24px; }
    .cf-members { grid-template-columns: minmax(0, 1fr); }
    .cf-item { padding: 12px; }
    .cf-pager__num { min-width: 30px; height: 32px; }
    .cf-pager__next { height: 32px; }
    .cf-side { gap: 14px; }
    .cf-table th, .cf-table td { padding: 8px 6px; font-size: 12px; }
    .cf-online__count strong { font-size: 20px; }
}

/* ---------------- 排版补充 ---------------- */
.cf-table tbody th { padding-right: 20px; }
.cf-table td:last-child a { color: var(--soft); }
.cf-table td:last-child a:hover { color: var(--blue); }
.cf-row:hover .cf-row__board, .cf-item:hover .cf-item__board { background: var(--blue); color: #fff; }
.cf-member--mod em { color: var(--blue-deep); font-weight: 600; }
.cf-online__count { white-space: nowrap; }
.cf-faq details p a { border-bottom: 1px solid #b9cde4; }
.cf-sub__count { display: block; margin-top: 2px; }
.cf-hero__sidetitle::after { content: ""; display: block; width: 26px; height: 2px; margin-top: 8px; background: var(--blue); }
.cf-sechead__note { line-height: 1.7; }
.cf-side__hot p, .cf-hotlist__item p { line-height: 1.6; }

@media (max-width: 700px) {
    .cf-hero__side { padding: 16px; }
    .cf-row { padding: 14px; gap: 12px; }
    .cf-member em { font-size: 11px; }
    .cf-footer__col p, .cf-footer__col li { font-size: 12px; }
    .cf-hero__act .cf-btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 480px) {
    .cf-hero__stats dd { font-size: 19px; }
    .cf-sechead__note { font-size: 12px; }
    .cf-online__lede { font-size: 12px; }
    .cf-members { gap: 8px; }
    .cf-picks__grid { gap: 12px; }
    .cf-hero__act { gap: 8px; }
    .cf-latest__more { text-align: left; }
}
