:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-2: #f2f3ec;
  --line: rgba(17,17,19,.08);
  --line-2: rgba(17,17,19,.14);
  --ink: #141416;
  --ink-2: #55555e;
  --ink-3: #8f8f98;
  --ink-body: #2f2f35;
  --lime: #d4ff3a;
  --lime-ink: #4a7a00;
  --lime-dim: #f3ffd1;
  --lime-line: rgba(74,122,0,.22);
  --hot: #e5502a;
  --hot-dim: #fff0ea;
  --sky: #0b84c6;
  --sky-dim: #e8f5fd;
  --amber: #b26b00;
  --amber-dim: #fff4dc;
  --hover: rgba(17,17,19,.035);
  --hover-2: rgba(17,17,19,.06);
  --track: rgba(17,17,19,.08);
  --topbar: rgba(247,247,243,.8);
  --lead-bg: linear-gradient(160deg, #f1ffc4 0%, #ffffff 60%);
  --glow-a: rgba(212,255,58,.28);
  --glow-b: rgba(11,132,198,.08);
  --shadow: 0 1px 2px rgba(17,17,19,.04), 0 8px 24px rgba(17,17,19,.04);
  --radius: 16px;
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
[data-theme="dark"] {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #18181b;
  --line: rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.12);
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --ink-3: #66666f;
  --ink-body: #d4d4d8;
  --lime-ink: #d4ff3a;
  --lime-dim: rgba(212,255,58,.1);
  --lime-line: rgba(212,255,58,.22);
  --hot: #ff6a3d;
  --hot-dim: rgba(255,106,61,.14);
  --sky: #5cc8ff;
  --sky-dim: rgba(92,200,255,.12);
  --amber: #ffc24b;
  --amber-dim: rgba(255,194,75,.12);
  --hover: rgba(255,255,255,.03);
  --hover-2: rgba(255,255,255,.07);
  --track: rgba(255,255,255,.1);
  --topbar: rgba(10,10,11,.72);
  --lead-bg: linear-gradient(160deg, #1c2208 0%, #121214 55%);
  --glow-a: rgba(212,255,58,.10);
  --glow-b: rgba(92,200,255,.07);
  --shadow: none;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 420px at 18% -8%, var(--glow-a), transparent 60%),
    radial-gradient(700px 380px at 92% 4%, var(--glow-b), transparent 60%); }
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--topbar); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .3px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--lime); color: #0a0a0b; display: grid; place-items: center; font-size: 14px; font-weight: 900;  }
.brand-mark i { display: none; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 14px; border-radius: 8px; color: var(--ink-2); font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--hover); }
.nav a.on { color: var(--ink); background: var(--hover-2); }
.search { flex: 1; max-width: 380px; margin-left: auto; display: flex; align-items: center; gap: 10px; background: var(--hover); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; color: var(--ink-3); font-size: 13px; }
.search kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-radius: 5px; padding: 0 6px; color: var(--ink-3); }
.btn { padding: 8px 16px; border-radius: 10px; background: var(--lime); color: #0a0a0b; font-weight: 700; white-space: nowrap; font-size: 13px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(130,170,0,.25); }
.theme-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); font-size: 15px; }
.theme-btn:hover { color: var(--ink); border-color: var(--line-2); }

/* 头部 */
.masthead { padding: 56px 0 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--lime-ink); letter-spacing: .5px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-ink); box-shadow: 0 0 0 4px var(--lime-line); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.masthead h1 { font-size: 46px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.masthead h1 em { font-style: normal; background: linear-gradient(90deg, var(--lime-ink), #0f9f6e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.masthead p { color: var(--ink-2); margin-top: 14px; font-size: 15px; max-width: 640px; }
.stats { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--hover); }
.stat { padding: 14px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 22px; font-weight: 800; font-family: var(--mono); letter-spacing: -.5px; }
.stat span { color: var(--ink-3); font-size: 12px; }

/* 正在刷屏 */
.section-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-h h2 { font-size: 17px; font-weight: 700; }
.section-h .sub { color: var(--ink-3); font-size: 12px; }
.section-h .more { margin-left: auto; color: var(--ink-2); font-size: 13px; }
.section-h .more:hover { color: var(--lime-ink); }
.pulse { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; margin-bottom: 48px; }
.pulse-card { box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.pulse-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pulse-card.lead { background: var(--lead-bg); border-color: var(--lime-line); }
.pulse-card .rank { position: absolute; right: 20px; top: 14px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.pulse-card h3 { font-size: 17px; line-height: 1.45; font-weight: 700; }
.pulse-card.lead h3 { font-size: 22px; line-height: 1.4; }
.pulse-card p { color: var(--ink-2); font-size: 13px; }
.pulse-card .meta { margin-top: auto; display: flex; gap: 14px; color: var(--ink-3); font-size: 12px; align-items: center; }
.pulse-card .meta .go { margin-left: auto; color: var(--ink-2); }
.pulse-card.lead .meta .go { color: var(--lime-ink); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; width: fit-content; letter-spacing: .3px; }
.badge.hot { background: var(--hot-dim); color: var(--hot); }
.badge.new { background: var(--sky-dim); color: var(--sky); }
.badge.free { background: var(--amber-dim); color: var(--amber); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.spark i { flex: 1; background: var(--track); border-radius: 2px; }
.pulse-card.lead .spark i { background: var(--lime-line); }
.pulse-card.lead .spark i:last-child { background: var(--lime-ink); }

/* 主体两栏 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-bottom: 64px; }

/* 筛选 */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 12px; width: fit-content; }
.tabs button { padding: 7px 16px; color: var(--ink-2); font-weight: 600; font-size: 14px; border-radius: 9px; }
.tabs button.on { color: var(--ink); background: var(--hover-2); }
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.filter-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-row .label { color: var(--ink-3); font-size: 12px; width: 48px; flex-shrink: 0; font-family: var(--mono); }
.chip { padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; transition: all .15s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--lime); border-color: var(--lime-ink); color: #0a0a0b; font-weight: 700; }
.switch { width: 30px; height: 17px; border-radius: 99px; background: var(--track); position: relative; cursor: pointer; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: .2s; }
.switch.on { background: var(--lime-ink); }
[data-theme="dark"] .switch.on::after { background: #0a0a0b; }
.switch.on::after { left: 15px; background: #141416; }
.feed-meta { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.feed-meta .opt { display: flex; align-items: center; gap: 8px; }

/* 信息流 */
.feed { display: flex; flex-direction: column; }
.item { padding: 22px 16px; margin: 0 -16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 28px; border-radius: 14px; transition: background .15s; }
.item.no-thumb { grid-template-columns: 1fr; }
.item:hover { background: var(--hover); }
.item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; font-size: 12px; }
.cat { color: var(--lime-ink); font-weight: 700; }
.type { color: var(--ink-3); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.item h3 { font-size: 17px; line-height: 1.5; margin-bottom: 6px; font-weight: 700; }
.item h3 a:hover { color: var(--lime-ink); }
.item .sum { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: var(--ink-3); font-size: 12px; flex-wrap: wrap; }
.author { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #0a0a0b; flex-shrink: 0; }
.pick { font-size: 10.5px; color: var(--amber); background: var(--amber-dim); border-radius: 4px; padding: 0 6px; font-weight: 700; }
.num { font-family: var(--mono); }
.tags { display: flex; gap: 6px; }
.tag { border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 6px; padding: 0 7px; font-size: 11.5px; }
.links { margin-left: auto; display: flex; gap: 16px; }
.links a { color: var(--ink); font-weight: 600; }
.links a:hover { color: var(--lime-ink); }
.links a.out { color: var(--ink-3); font-weight: 400; }
.thumb { border-radius: 12px; aspect-ratio: 16/10; position: relative; overflow: hidden; align-self: center; border: 1px solid var(--line); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.thumb .play span { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; font-size: 12px; }
.thumb .lab { position: absolute; left: 10px; bottom: 8px; color: #fff; font-size: 11px; font-weight: 700; z-index: 1; }
.load-more { margin-top: 20px; width: 100%; padding: 13px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.load-more:hover { border-color: var(--line-2); color: var(--ink); }

/* 侧栏 */
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.panel { box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel .section-h { margin-bottom: 8px; }
.panel .section-h h2 { font-size: 14px; }
.panel .note { color: var(--ink-3); font-size: 11.5px; margin-top: 10px; }
.tool-row { display: grid; grid-template-columns: 18px 34px 1fr auto; align-items: center; gap: 12px; padding: 9px 8px; margin: 0 -8px; border-radius: 10px; }
.tool-row:hover { background: var(--hover); }
.tool-row .n { font-family: var(--mono); font-weight: 700; color: var(--ink-3); font-size: 12px; text-align: center; }
.tool-row:nth-of-type(-n+3) .n { color: var(--lime-ink); }
.tool-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; color: #0a0a0b; font-size: 13px; }
.tool-row b { font-size: 14px; display: block; font-weight: 600; }
.tool-row small { color: var(--ink-3); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend { font-size: 12px; font-weight: 700; text-align: right; font-family: var(--mono); }
.trend small { font-weight: 500; }
.trend .up { color: var(--lime-ink); }
.trend .down { color: var(--ink-3); }
.cta { background: radial-gradient(120% 140% at 100% 0%, var(--glow-a), transparent 55%), var(--surface); border-color: var(--lime-line); }
.cta b { font-size: 16px; }
.cta p { color: var(--ink-2); font-size: 13px; margin: 6px 0 14px; }
.cta .btn { display: inline-block; }
.creator { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.creator:first-of-type { border-top: 0; }
.creator .av { width: 38px; height: 38px; font-size: 14px; }
.creator b { font-size: 14px; font-weight: 600; }
.creator .region { font-size: 11px; color: var(--ink-3); margin-left: 6px; font-weight: 400; }
.creator p { color: var(--ink-2); font-size: 12.5px; line-height: 1.5; margin-top: 2px; }
.topic-list, .qa-list { display: flex; flex-direction: column; }
.topic-list a, .qa-list a { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.topic-list a:hover, .qa-list a:hover { color: var(--ink); }
.topic-list a:first-child, .qa-list a:first-child { border-top: 0; }
.topic-list span { color: var(--ink-3); font-size: 12px; font-family: var(--mono); }
.qa-list a { justify-content: flex-start; }
.qa-list a::before { content: "Q"; color: var(--lime-ink); font-weight: 800; font-family: var(--mono); margin-right: 10px; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 12px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; }
.footer nav a:hover { color: var(--ink-2); }

/* 详情页 */
.crumb { color: var(--ink-3); font-size: 13px; padding: 28px 0 16px; }
.crumb a:hover { color: var(--lime-ink); }
.article { padding: 8px 0 0; max-width: 820px; }
.article h1 { font-size: 34px; line-height: 1.35; margin: 14px 0 18px; font-weight: 800; letter-spacing: -.3px; }
.article .byline { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 13px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article .lede { margin-top: 26px; font-size: 16px; line-height: 1.85; color: var(--ink); padding: 18px 22px; background: var(--lime-dim); border: 1px solid var(--lime-line); border-radius: 14px; }
.article .lede b { color: var(--lime-ink); margin-right: 6px; }
.article h2 { font-size: 20px; margin: 40px 0 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.article h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--lime-ink); }
.article p, .article li { font-size: 16px; line-height: 1.95; color: var(--ink-body); }
.article ol, .article ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article li::marker { color: var(--lime-ink); font-weight: 700; }
.prompt-box { background: #050506; border: 1px solid var(--line-2); color: #e4e4e7; border-radius: 14px; padding: 48px 20px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.85; position: relative; white-space: pre-wrap; }
.prompt-box::before { content: "PROMPT"; position: absolute; left: 20px; top: 14px; font-size: 11px; color: var(--ink-3); letter-spacing: 1px; }
.prompt-box button { position: absolute; right: 12px; top: 10px; background: var(--lime); color: #0a0a0b; border-radius: 7px; padding: 3px 12px; font-size: 12px; font-weight: 700; font-family: var(--font); }
.quote { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--surface); }
.quote .q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.quote .q-head b { font-size: 14px; }
.quote .q-head span { color: var(--ink-3); font-size: 12px; }
.quote p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.quote .q-foot { display: flex; justify-content: space-between; margin-top: 12px; color: var(--ink-3); font-size: 12px; }
.quote .q-foot a { color: var(--lime-ink); font-weight: 600; }
.ai-note { margin-top: 36px; padding-top: 18px; border-top: 1px dashed var(--line-2); color: var(--ink-3); font-size: 12px; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related a { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-weight: 600; font-size: 14.5px; line-height: 1.5; transition: border-color .15s; }
.related a span { display: block; color: var(--ink-3); font-weight: 400; font-size: 12px; margin-top: 8px; }
.related a:hover { border-color: var(--lime-line); }

/* 响应式 */
@media (max-width: 1200px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .pulse { grid-template-columns: 1fr 1fr; }
  .pulse-card.lead { grid-column: 1 / -1; }
  .item { grid-template-columns: minmax(0, 1fr) 148px; }
  .stats { display: none; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .nav, .search { display: none; }
  .topbar .wrap { justify-content: space-between; height: 56px; gap: 10px; }
  .theme-btn { margin-left: auto; }
  .masthead { padding: 32px 0 24px; }
  .masthead h1 { font-size: 30px; }
  .masthead p { font-size: 14px; }
  .pulse { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 32px; padding: 0 16px; scrollbar-width: none; }
  .pulse-card { min-width: 84%; scroll-snap-align: start; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > * { min-width: 0; }
  .side { position: static; }
  .section-h h2 { white-space: nowrap; }
  .section-h .sub { display: none; }
  .tabs { width: 100%; overflow-x: auto; }
  .tabs button { white-space: nowrap; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { white-space: nowrap; }
  .item { grid-template-columns: minmax(0, 1fr) 92px; gap: 14px; padding: 18px 16px; }
  .item h3 { font-size: 15.5px; }
  .item .sum { font-size: 13px; }
  .links a.out, .tags { display: none; }
  .article h1 { font-size: 25px; }
  .related { grid-template-columns: 1fr; }
}

/* 真数据补充 */
.brand .by { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }
img.av { object-fit: cover; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure { margin: 20px 0 0; }
.figure img { max-width: 100%; max-height: 520px; border-radius: 14px; border: 1px solid var(--line); display: block; }
.empty { text-align: center; color: var(--ink-3); padding: 48px 0; }
.ai-note .src { color: var(--ink-3); word-break: break-all; text-decoration: underline; }
.prompt-box div { white-space: pre-wrap; }
.item[hidden] { display: none; }
@media (max-width: 860px) { .brand .by { display: none; } .btn { padding: 7px 12px; font-size: 12px; } }

.tool-row > span:nth-child(3) { min-width: 0; }
