/* 今日AI速报 · 简约主题：白天亮色 / 晚上暗色（由 theme.js 按北京时间切换） */
:root { --mw: 760px; }
html[data-cols="2"] { --mw: 1040px; }
html[data-cols="3"] { --mw: 1300px; }
:root, [data-theme="light"] {
  --bg: #f5f6fa; --bg2: #eef0f7; --card: #ffffff; --text: #0e1220; --text2: #3b4256; --muted: #7a8296;
  --line: rgba(14, 18, 32, .08); --chip: rgba(14, 18, 32, .05); --shadow: 0 1px 2px rgba(14, 18, 32, .04), 0 8px 28px rgba(14, 18, 32, .06);
  --a1: #5b5bf7; --a2: #e0488b; --link: #1d9bf0; --glow: rgba(91, 91, 247, .10); --shine: rgba(255, 255, 255, .75); --skb: rgba(14, 18, 32, .075);
}
[data-theme="dark"] {
  --bg: #0a0c12; --bg2: #10131c; --card: #141823; --text: #eef0f6; --text2: #c3c8d6; --muted: #7d8599;
  --line: rgba(255, 255, 255, .07); --chip: rgba(255, 255, 255, .06); --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .35);
  --a1: #8b8bff; --a2: #ff6fae; --link: #4cb3ff; --glow: rgba(139, 139, 255, .12); --shine: rgba(255, 255, 255, .06); --skb: rgba(255, 255, 255, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  background-image: radial-gradient(900px 420px at 15% -10%, var(--glow), transparent 70%), radial-gradient(700px 380px at 95% 0%, rgba(224, 72, 139, .07), transparent 70%);
  background-attachment: fixed; transition: background-color .5s, color .5s; overflow-x: hidden;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.top .in { max-width: calc(var(--mw) + 280px); margin: 0 auto; padding: 0 20px; height: 58px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.brand i { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 0 14px var(--a1); }
.top nav { display: flex; gap: 4px; background: var(--chip); padding: 4px; border-radius: 999px; }
.top nav a { padding: 4px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: all .25s; }
.top nav a.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }

/* 页头 */
.head { padding: 44px 0 18px; }
.eyebrow { font-size: 13px; color: var(--muted); letter-spacing: .3px; }
.head h1 { margin: 6px 0 20px; font-size: 40px; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; }
.head h1 span { background: linear-gradient(120deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search { width: 100%; padding: 13px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-size: 15px; outline: none; box-shadow: var(--shadow); transition: border-color .2s; }
.search:focus { border-color: var(--a1); }

/* 速报卡片：一张一行 */
.feed { display: flex; gap: 18px; align-items: flex-start; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px 20px; box-shadow: var(--shadow);
  animation: rise .5s both; animation-delay: calc(var(--i) * 40ms); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-2px); }
.card .k { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card .n { font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--a1); background: var(--glow); padding: 5px 8px; border-radius: 8px; }
.card .e { font-size: 22px; line-height: 1; }
.card h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.4; font-weight: 750; letter-spacing: -.2px; }
.card p { margin: 0; color: var(--text2); font-size: 16px; line-height: 1.85; text-align: justify; }
.card figure { margin: 16px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.card figure .pic { display: block; width: 100%; border-radius: 0; }
.card figure .pic.ok img { cursor: zoom-in; }
.card figure:hover .pic.ok img { transform: scale(1.015); }
.card .src { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.card .src .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card .src em { font-style: normal; opacity: .8; }
.card .src a { flex: 0 0 auto; color: var(--a1); font-weight: 600; }
.note { color: var(--muted); font-size: 14px; text-align: center; margin: 26px 0 0; }
.empty { list-style: none; flex: 1; text-align: center; color: var(--muted); padding: 60px 0; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 10px 20px 40px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* KOL 列表 */
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.person { animation: rise .4s both; animation-delay: calc(var(--i) * 25ms); }
.person button { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.person button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--a1) 40%, var(--line)); }
.av { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; background: var(--chip); }
.ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.pi { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pn { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.pv { color: var(--text2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--a1); background: var(--glow); padding: 3px 10px; border-radius: 999px; }

/* 弹窗：X 风格帖子 */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5, 7, 12, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; opacity: 0; transition: opacity .2s; }
.modal.show { opacity: 1; }
.modal[hidden] { display: none; }
.sheet { width: 100%; max-width: 600px; max-height: 90vh; display: flex; flex-direction: column; background: var(--card); border-radius: 20px;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; transform: translateY(12px); transition: transform .25s; }
.modal.show .sheet { transform: none; }
.sheet-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-h div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sheet-h em { font-style: normal; color: var(--muted); font-size: 13px; }
.sheet-h .x { border: 0; background: var(--chip); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; }
.tl { overflow-y: auto; overscroll-behavior: contain; }
.tw { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tav { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; background: var(--chip); }
.tb { flex: 1; min-width: 0; }
.th { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; overflow: hidden; font-size: 15px; }
.th b { overflow: hidden; text-overflow: ellipsis; }
.th span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tt { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; margin-top: 2px; }
.tt a, .tt .at { color: var(--link); }
.media { display: grid; gap: 2px; margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.media.n1 { grid-template-columns: 1fr; }
.media.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16/9; }
.media.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16/9; }
.media.n3 .mi:first-child { grid-row: span 2; }
.media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16/9; }
.mi { position: relative; display: block; min-height: 0; background: var(--bg2); }
.mi .pic { display: block; width: 100%; height: 100%; border-radius: 0; }
.media.n1 .mi .pic { height: auto; max-height: 520px; }
.mi.vid::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgba(29, 155, 240, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat;
  border: 3px solid #fff; }
.ta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; max-width: 460px; color: var(--muted); font-size: 13px; }
.ta span { display: inline-flex; align-items: center; gap: 4px; min-width: 52px; }
.ta svg { width: 18px; height: 18px; fill: currentColor; }
.ta a { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; }
.ta a:hover { color: var(--link); }

/* 页面骨架：内容 + 右侧时间线 */
.shell { max-width: calc(var(--mw) + 280px); margin: 0 auto; padding: 0 24px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 56px; transition: max-width .3s; }
.main { min-width: 0; }
.headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.headrow h1 { margin-bottom: 4px; }
.page-kol .head .search { margin-top: 18px; }

/* 浏览模式：单列 / 双列 / 三列 */
.cols { display: inline-flex; gap: 2px; background: var(--chip); padding: 4px; border-radius: 12px; margin-bottom: 8px; }
.cols button { border: 0; background: transparent; width: 36px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: all .2s; }
.cols svg { width: 18px; height: 18px; fill: currentColor; }
.cols button.on { background: var(--card); color: var(--a1); box-shadow: var(--shadow); }
.c2 .card, .c3 .card { padding: 22px 22px 16px; }
.c3 .card h2 { font-size: 18.5px; }
.c3 .card p { font-size: 14.5px; line-height: 1.8; }
.c2 .card p, .c3 .card p { text-align: left; }
.c3 .card .src { font-size: 12px; }

/* 右侧时间线 */
.side { position: sticky; top: 58px; align-self: start; max-height: calc(100vh - 58px); overflow-y: auto; padding: 50px 4px 30px; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.tl-title { font-size: 12px; letter-spacing: 2px; color: var(--muted); margin: 0 0 14px 26px; }
.tline { list-style: none; margin: 0; padding: 0; position: relative; }
.tline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(var(--line), var(--line)); }
.tn { position: relative; padding-bottom: 18px; }
.td { border: 0; background: none; padding: 0; display: flex; align-items: baseline; gap: 8px; color: var(--text2); }
.td i { position: relative; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); flex: 0 0 auto; transition: all .25s; align-self: center; }
.td b { font-size: 16px; font-weight: 700; } .td small { font-size: 12px; color: var(--muted); }
.tn.on .td { color: var(--text); }
.tn.on .td i { border-color: transparent; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 0 0 4px var(--glow), 0 0 12px var(--a1); }
.ts { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0 22px; }
.ts button { border: 0; background: transparent; text-align: left; font-size: 13.5px; color: var(--muted); padding: 5px 10px; border-radius: 9px; transition: all .2s; }
.ts button:hover:not(:disabled) { background: var(--chip); color: var(--text); }
.ts button.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.ts button:disabled { opacity: .35; cursor: default; }
.fab, .scrim { display: none; }

@media (max-width: 1099px) { .cols button[data-c="3"] { display: none; } }
@media (max-width: 699px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0 16px 30px; gap: 0; }
  .cols { display: none; }
  .side { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: 250px; height: 100vh; height: 100dvh; max-height: none; align-self: auto; padding: 26px 18px; background: var(--card);
    border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0, 0, 0, .25); transform: translateX(105%); transition: transform .28s ease; }
  body.drawer .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(5, 7, 12, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.drawer .scrim { opacity: 1; pointer-events: auto; }
  body.drawer { overflow: hidden; }
  .fab { display: inline-flex; align-items: center; gap: 6px; position: fixed; z-index: 30; right: 16px; bottom: 20px; border: 1px solid var(--line);
    background: var(--card); color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
  .fab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2)); }
}
@media (max-width: 600px) {
  .top .in { padding: 0 16px; height: 54px; }
  .head { padding: 30px 0 14px; }
  .head h1 { font-size: 30px; margin-bottom: 16px; }
  .card { padding: 20px 18px 16px; border-radius: 18px; }
  .card h2 { font-size: 19px; }
  .card p { font-size: 15.5px; text-align: left; }
  .modal { padding: 0; align-items: stretch; }
  .sheet { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .ta span { min-width: 0; }
}

/* ---------- 图片加载：微光占位 + 眨眼小机器人 ---------- */
.pic { position: relative; display: inline-block; overflow: hidden; vertical-align: top; background: var(--bg2);
  background-image: linear-gradient(100deg, transparent 20%, var(--shine) 50%, transparent 80%); background-size: 220% 100%; animation: shimmer 1.6s linear infinite; }
.pic > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease, transform .6s; }
.pic.ok { animation: none; background-image: none; }
.pic.ok > img { opacity: 1; }
.pic.err { animation: none; background-image: none; }
.pic.err > img { display: none; }
.pic-bot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 7px; pointer-events: none; transition: opacity .3s; }
.pic-bot b { position: relative; width: 44px; height: 34px; border-radius: 12px; background: var(--card); border: 2px solid var(--a1);
  box-shadow: 0 6px 16px var(--glow); display: flex; align-items: center; justify-content: center; gap: 8px; animation: hop 1.1s ease-in-out infinite; }
.pic-bot b::before { content: ""; position: absolute; top: -9px; left: 50%; width: 2px; height: 7px; margin-left: -1px; background: var(--a1); border-radius: 2px; }
.pic-bot b::after { content: ""; position: absolute; top: -13px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--a2); animation: glow 1.1s ease-in-out infinite; }
.pic-bot i { width: 6px; height: 8px; border-radius: 3px; background: var(--a1); animation: blink 3s infinite; }
.pic-bot s { display: flex; gap: 4px; text-decoration: none; }
.pic-bot em { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: .4; animation: dot 1.2s infinite; }
.pic-bot em:nth-child(2) { animation-delay: .2s; } .pic-bot em:nth-child(3) { animation-delay: .4s; }
.pic.ok .pic-bot { opacity: 0; }
.pic.err .pic-bot b { animation: none; border-color: var(--muted); box-shadow: none; }
.pic.err .pic-bot b::before { background: var(--muted); } .pic.err .pic-bot b::after { background: var(--muted); animation: none; }
.pic.err .pic-bot i { height: 2px; width: 7px; background: var(--muted); animation: none; transform: rotate(-12deg); }
.pic.err .pic-bot i + i { transform: rotate(12deg); }
.pic.err .pic-bot s { display: none; }
.pic.err .pic-bot::after { content: "图片走丢了"; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
/* 小图（头像、四宫格）里机器人缩小；头像只要微光 */
.media.n3 .pic-bot, .media.n4 .pic-bot { transform: translate(-50%, -50%) scale(.75); }
.av.pic .pic-bot, .tav.pic .pic-bot { display: none; }
.av.pic, .tav.pic { border-radius: 50%; }
.pic.err.av::after, .pic.err.tav::after { content: "🙂"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: .9; transform: translateY(-3px); } }

/* ---------- KOL：X 样式帖子卡片 ---------- */
.xcard { background: var(--card); border: 1px solid var(--line) !important; border-radius: 20px; padding: 18px 18px 14px !important; box-shadow: var(--shadow);
  animation: rise .45s both; animation-delay: calc(var(--i) * 30ms); transition: transform .25s; }
.xcard:hover { transform: translateY(-2px); }
.who-btn { border: 0; padding: 0; background: none; flex: 0 0 auto; align-self: flex-start; border-radius: 50%; }
.th .nm { border: 0; padding: 0; background: none; display: inline-flex; gap: 6px; align-items: baseline; min-width: 0; overflow: hidden; text-align: left; }
.th .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th .nm span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xcard .th .nm:hover b { text-decoration: underline; text-underline-offset: 3px; }
.th .dt { color: var(--muted); flex: 0 0 auto; }
.modal .who-btn, .modal .nm { cursor: default; }
.why { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; line-height: 1.7;
  color: color-mix(in srgb, var(--a1) 80%, var(--text)); background: var(--glow); max-width: 100%; }
.why::before { content: "✦"; font-size: 10px; color: var(--a2); }
.why i { font-style: normal; color: var(--muted); padding-right: 6px; border-right: 1px solid var(--line); }
.c2 .xcard .tt, .c3 .xcard .tt { font-size: 14.5px; }
.c3 .xcard .ta span { min-width: 0; }
.c3 .xcard .tav { width: 36px; height: 36px; }
.sheet-h .xlink { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.sheet-h .xlink:hover { color: var(--link); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.mi.vid:has(.pic:not(.ok))::after { display: none; }
.xcard .tt.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; overflow: hidden; }
.xcard .more { border: 0; background: none; padding: 2px 0 0; color: var(--link); font-size: 13.5px; }
.xcard .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.card figure .pic.err { aspect-ratio: auto !important; height: 132px; }

/* ---------- 骨架屏：首屏（写在 HTML 里，JS/数据还没到就能看到）和切换期次时 ---------- */
.sk { display: block; border-radius: 8px; background-color: var(--skb);
  background-image: linear-gradient(100deg, transparent 20%, var(--shine) 50%, transparent 80%); background-size: 220% 100%; animation: shimmer 1.5s linear infinite; }
.sk-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 11px; }
.sk-k { width: 64px; height: 22px; }
.sk-h { width: 62%; height: 24px; margin-bottom: 4px; }
.sk-l { width: 100%; height: 13px; }
.sk-l.s { width: 58%; }
.sk-img { width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; margin-top: 4px; }
.sk-f { width: 38%; height: 12px; margin-top: 6px; }
.sk-x { border-radius: 20px; padding: 18px; }
.sk-x .sk-l, .sk-x .sk-chip, .sk-x .sk-img, .sk-x .sk-f { margin-left: 52px; width: calc(100% - 52px); }
.sk-x .sk-l.s { width: calc(58% - 30px); }
.sk-x .sk-f { width: 46%; }
.sk-row { display: flex; align-items: center; gap: 12px; }
.sk-av { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.sk-name { width: 46%; height: 14px; }
.sk-x .sk-chip { width: 34% !important; height: 20px; border-radius: 999px; }
.sk-title { display: inline-block; width: 260px; max-width: 70%; height: 40px; border-radius: 12px; vertical-align: middle; }
.sk-eye { display: inline-block; width: 220px; height: 12px; }
.sk-tl { display: flex; flex-direction: column; gap: 14px; padding-left: 26px; }
.sk-tl .sk { width: 90px; height: 16px; } .sk-tl .sk.s { width: 70px; height: 12px; margin-left: 14px; }
.feed.loading .col { gap: 18px; }
/* 首屏还不知道列数时按 html[data-cols] 显示对应数量的骨架列 */
html[data-cols="1"] .feed.loading .col:nth-child(n+2), html[data-cols="2"] .feed.loading .col:nth-child(n+3) { display: none; }
html[data-cols="1"] .more-sk .col:nth-child(n+2), html[data-cols="2"] .more-sk .col:nth-child(n+3) { display: none; }
.sk-modal { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.sk-modal .sk-card { box-shadow: none; }
/* 底部：下一批加载中 + 加载更多按钮 */
.more { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.more[hidden] { display: none; }
.more-sk { width: 100%; }
.more-sk .sk-card .sk-l:nth-of-type(n+5), .more-sk .sk-img { display: none; }
.more-btn { border: 1px solid var(--line); background: var(--card); color: var(--text2); padding: 9px 22px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); transition: all .2s; }
.more-btn:hover { color: var(--a1); border-color: color-mix(in srgb, var(--a1) 40%, var(--line)); }
@media (max-width: 600px) { .sk-card { padding: 20px 18px 16px; border-radius: 18px; } .sk-title { height: 30px; } }
.head h1 .sk-title { color: transparent; -webkit-background-clip: border-box; background-clip: border-box; background-color: var(--skb);
  background-image: linear-gradient(100deg, transparent 20%, var(--shine) 50%, transparent 80%); background-size: 220% 100%; }

/* ---------- 擂台：本期热度前三（金牌居中抬高、银牌左、铜牌右；窄了就竖排） ---------- */
:root, [data-theme="light"] {
  --gold: linear-gradient(135deg, #fbe7a1 0%, #e0b23a 38%, #fff1bd 55%, #c8901a 100%);
  --silver: linear-gradient(135deg, #f4f6fa 0%, #b9c0cc 40%, #ffffff 56%, #969fad 100%);
  --bronze: linear-gradient(135deg, #f6cfaa 0%, #c07a45 40%, #f3c49a 56%, #9a5a2c 100%);
  --gold-c: #b8860b; --silver-c: #7c8594; --bronze-c: #a5612f;
  --gold-glow: rgba(224, 178, 58, .22); --silver-glow: rgba(150, 159, 173, .18); --bronze-glow: rgba(192, 122, 69, .18);
}
[data-theme="dark"] {
  --gold-c: #f2c94c; --silver-c: #c9d0db; --bronze-c: #e3a271;
  --gold-glow: rgba(242, 201, 76, .16); --silver-glow: rgba(201, 208, 219, .10); --bronze-glow: rgba(227, 162, 113, .12);
}
.main { container-type: inline-size; }
.podium { margin: 0 0 8px; }
.podium[hidden], .rest-h[hidden] { display: none; }
.pd-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.pd-title b { font-size: 15px; letter-spacing: 1px; }
.pd-title span { font-size: 12.5px; color: var(--muted); }
.pd-row { display: flex; flex-direction: column; gap: 16px; }
.pd { display: flex; flex-direction: column; min-width: 0; }
.pd-card { position: relative; flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px 18px;
  box-shadow: var(--shadow), 0 14px 40px var(--pg, transparent); overflow: hidden; animation: rise .5s both; }
.pd-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--pm); }
.pd-gold { --pm: var(--gold); --pc: var(--gold-c); --pg: var(--gold-glow); }
.pd-silver { --pm: var(--silver); --pc: var(--silver-c); --pg: var(--silver-glow); }
.pd-bronze { --pm: var(--bronze); --pc: var(--bronze-c); --pg: var(--bronze-glow); }
.pd-gold .pd-card { border-color: color-mix(in srgb, var(--gold-c) 35%, var(--line)); }
.pd-medal { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pd-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 1px;
  color: #2a1d00; background: var(--pm); box-shadow: 0 2px 8px var(--pg), inset 0 1px 0 rgba(255, 255, 255, .6); }
.pd-silver .pd-badge { color: #252a33; } .pd-bronze .pd-badge { color: #2e1606; }
.pd-medal .e { font-size: 24px; line-height: 1; }
.pd-card h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.35; font-weight: 800; letter-spacing: -.3px; }
.pd-gold .pd-card h2 { font-size: 27px; }
.pd-card figure { margin: 0 0 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.pd-card figure .pic { display: block; width: 100%; border-radius: 0; }
.pd-card figure .pic.ok img { cursor: zoom-in; }
.pd-card p { margin: 0; color: var(--text2); font-size: 15.5px; line-height: 1.85; }
.pd-card .src { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.pd-card .src .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pd-card .src em { font-style: normal; opacity: .8; }
.pd-card .src a { flex: 0 0 auto; font-weight: 700; color: var(--pc); }
.pd-step { display: none; }
.rest-h { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: var(--muted); font-size: 13px; letter-spacing: 2px; }
.rest-h::before, .rest-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* 够宽（约 860px 以上）才摆成领奖台 */
@container (min-width: 860px) {
  .pd-row { flex-direction: row; align-items: stretch; gap: 16px; }
  .pd { flex: 1 1 0; }
  .pd-gold { order: 2; flex-grow: 1.18; }
  .pd-silver { order: 1; padding-top: 40px; }
  .pd-bronze { order: 3; padding-top: 64px; }
  .pd-card { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
  .pd-card p { font-size: 14.5px; line-height: 1.8; }
  .pd-card h2 { font-size: 21px; } .pd-gold .pd-card h2 { font-size: 24px; }
  .pd-step { display: flex; align-items: center; justify-content: center; margin: 8px 10px 0; border-radius: 12px 12px 6px 6px; background: var(--pm);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 20px var(--pg); color: rgba(0, 0, 0, .55); font: 800 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
  .pd-gold .pd-step { height: 64px; font-size: 24px; }
  .pd-silver .pd-step { height: 46px; }
  .pd-bronze .pd-step { height: 28px; font-size: 15px; }
  .pd-sk .pd-step { background: var(--skb); box-shadow: none; }
  .pd-gold .pd-card { padding-top: 26px; }
}
/* 擂台骨架 */
.pd-sk .pd-card { display: flex; flex-direction: column; gap: 11px; animation: none; box-shadow: var(--shadow); }
.pd-sk .pd-card::before { background: var(--skb); }
.sk-medal { width: 86px; height: 26px; border-radius: 999px; }
.pd-sk .sk-h { width: 80%; height: 24px; } .pd-sk .sk-h.s { width: 52%; }
.podium.loading .pd-title { opacity: .6; }
@media (max-width: 600px) { .pd-card { padding: 20px 18px 16px; border-radius: 18px; } .pd-card h2 { font-size: 20px; } .pd-gold .pd-card h2 { font-size: 22px; } }
.pd-card { display: flex; flex-direction: column; }
.pd-card .src { margin-top: auto; } .pd-card p { margin-bottom: 14px; }
.pd-card figure.noimg { aspect-ratio: 1.6; display: grid; place-items: center; border-color: transparent;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--pc) 22%, transparent), transparent 60%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--pc) 14%, transparent), transparent 55%), var(--bg2); }
.pd-card figure.noimg span { font-size: 64px; line-height: 1; filter: drop-shadow(0 8px 18px var(--pg)); }
.pd-card figure.noimg { display: none; }
.pd-card figure .pic { aspect-ratio: 2 !important; }
@container (min-width: 860px) {
  .pd-card figure.noimg { display: grid; }
  .pd-card figure .pic { aspect-ratio: 1.6 !important; }
}
@container (max-width: 859px) { .pd-silver .pd-card h2, .pd-bronze .pd-card h2 { font-size: 20px; } }
