/* 炊事班 · 冷感科技盘：冷调中性灰底（零暖色），
   靛蓝=链接/信息/AI 感，信号红=额度/紧迫/主CTA（价格语义），松绿=可信。
   标题宋体系 serif，正文系统无衬线，.5px 发丝描边。触点 ≥44px。 */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e13; --raise: #14171e; --card: #161921; --panel: #1b1f29; --panel2: #242a36;
  --fg: #f4f6fa; --lead: #c9cedb; --dim: #969dac; --dim2: #6c7382;
  --line: #ffffff0f; --line-strong: #ffffff1f; --line-l3: #ffffff2b;
  --acc: #7d8bff; --acc-ink: #0b0e1c;
  --hot: #ff5a4d; --hot-bg: #ff5a4d18;
  --ok: #43d68a;
  --pri-bg: #ff5a4d; --pri-fg: #ffffff; --pri-hover: #ff7469;
  --hover: #ffffff12;
  --edge-hi: #ffffff10;
  --tagbg: #232837;
  --shadow: 0 0 1px rgba(255,255,255,.07), 0 2px 8px rgba(0,0,0,.25);
  --shadow-hi: 0 0 1px rgba(255,255,255,.12), 0 14px 34px rgba(0,0,0,.55);
  --fold-crease: rgba(0,0,0,.55); --fold-top: rgba(0,0,0,.6); --fold-bot: rgba(0,0,0,.45);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f7; --raise: #ebedf1; --card: #ffffff; --panel: #fafbfc; --panel2: #eceef3;
  --fg: #15181e; --lead: #4a505c; --dim: #5d6470; --dim2: #646b78;
  --line: #10182810; --line-strong: #1018281e; --line-l3: #1018282c;
  --acc: #4f5ef7; --acc-ink: #ffffff;
  --hot: #cf2e25; --hot-bg: #fdecea;
  --ok: #097a50;
  --pri-bg: #cf2e25; --pri-fg: #ffffff; --pri-hover: #b22620;
  --hover: #10182808;
  --edge-hi: #ffffffcc;
  --tagbg: #eef1f7;
  --shadow: 0 0 1px rgba(16,24,40,.14), 0 2px 8px rgba(16,24,40,.05);
  --shadow-hi: 0 0 1px rgba(16,24,40,.18), 0 14px 34px rgba(16,24,40,.12);
  --fold-crease: rgba(16,24,40,.24); --fold-top: rgba(16,24,40,.2); --fold-bot: rgba(16,24,40,.13);
}
:root {
  --f-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", sans-serif;
  --f-serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --m-in: .15s;
  --nav-h: 56px;
  --wrap: 1680px;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font: 17px/1.65 var(--f-ui); -webkit-font-smoothing: antialiased; }
a { color: var(--acc); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
::selection { background: color-mix(in srgb, var(--acc) 30%, transparent); }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s6); width: 100%; }
@media (max-width: 720px) { .wrap { padding: 0 var(--s4); } }

/* ---- header.nav（fixed blur） ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: .5px solid var(--line);
}
nav .wrap { display: flex; align-items: center; gap: var(--s5); height: 100%; }
.brand { font-size: 16px; font-weight: 600; letter-spacing: .02em; color: var(--fg); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; }
.brand em { font-style: normal; color: var(--dim2); font-weight: 400; font-size: 12px; margin-left: 6px; }
.brand:hover { text-decoration: none; }
nav .links { margin-left: auto; display: flex; align-items: center; gap: var(--s1); }
nav .links a { color: var(--dim); font-size: 15px; padding: 0 var(--s3); display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--r-sm); white-space: nowrap; }
nav .links a:last-child { padding-right: 0; }
nav .links a:hover { color: var(--fg); text-decoration: none; background: var(--hover); }
nav .links a.cta-nav { color: var(--acc); }
@media (max-width: 720px) {
  nav .links a { min-height: 44px; padding: 0 var(--s2); }
  nav .links a.hide-s { display: none; }
}

/* ---- phero：满屏页头（仅 404 等单页用） ---- */
.phero { padding: calc(var(--nav-h) + var(--s8)) 0 var(--s7); }
.phero h1 { font-family: var(--f-serif); font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; line-height: 1.12; margin-bottom: var(--s4); }
.phero h1 .thin { font-family: var(--f-ui); font-weight: 400; color: var(--dim); font-size: .48em; display: block; margin-top: var(--s3); }

/* ---- masthead：紧凑信息条（商业站，不浪费首屏） ---- */
.mast { padding: calc(var(--nav-h) + var(--s5)) 0 var(--s4); }
.mast .wrap { display: flex; align-items: baseline; gap: var(--s5); flex-wrap: wrap; }
.mast h1 { font-family: var(--f-serif); font-size: clamp(34px, 3.4vw, 46px); font-weight: 700; letter-spacing: 0; }
.mast .facts { display: flex; gap: var(--s5); flex-wrap: wrap; }
.facts { display: flex; gap: var(--s6); flex-wrap: wrap; }
.facts .fstat { font: 15px/1.4 var(--f-mono); color: var(--dim2); text-decoration: none; }
.facts .fstat:hover b, .facts .fstat:hover { color: var(--acc); }
.facts .fstat.on b { color: var(--acc); }
.facts b { font: 600 27px/1.2 var(--f-ui); color: var(--fg); letter-spacing: 0; margin-right: 4px; }
.mast .cta { margin-left: auto; }
.eyebrow { font: 12px/1 var(--f-mono); color: var(--dim2); letter-spacing: .14em; margin-bottom: var(--s4); }
.dhead .sub { font-size: 16px; color: var(--lead); max-width: 40em; margin-top: var(--s3); }
.cta { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.btn {
  letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-md);
  font-size: 15.5px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--fg);
  border: none; box-shadow: inset 0 0 0 .5px var(--line-l3);
  transition: background var(--m-in) var(--ease), transform .09s var(--ease);
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--pri-bg); color: var(--pri-fg); box-shadow: 0 4px 14px color-mix(in srgb, var(--pri-bg) 30%, transparent); }
.btn.primary:hover { background: var(--pri-hover); }
.btn.acc { color: var(--acc); box-shadow: inset 0 0 0 .5px var(--acc); }
.btn.acc:hover { background: var(--hover); }

/* ---- 节区 ---- */
main > section { padding: var(--s5) 0; border-top: .5px solid var(--line); }
main > section.mast-sec { padding: calc(var(--nav-h) + var(--s5)) 0 var(--s4); border-top: none; }
.sec-h { margin-bottom: var(--s6); display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.sec-h .no { font: 13.5px var(--f-mono); color: var(--dim2); letter-spacing: .14em; }
.sec-h h2 { font-family: var(--f-serif); font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; letter-spacing: 0; }
.sec-h small { color: var(--dim2); font: 14px var(--f-mono); }
.sec-h .more { margin-left: auto; font-size: 13px; display: inline-flex; align-items: center; min-height: 44px; margin-block: -11px; }

/* ---- 羊毛卡：额度是主角 ---- */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }
@media (max-width: 640px) { .dgrid { grid-template-columns: 1fr; } }
.deal {
  display: flex; flex-direction: column; position: relative;
  background: var(--card); border: .5px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5) var(--s5);
  color: inherit; text-decoration: none;
  transition: background var(--m-in) var(--ease), box-shadow var(--m-in) var(--ease), transform var(--m-in) var(--ease);
}
.deal:hover { background: var(--panel); box-shadow: var(--shadow-hi); transform: translateY(-2px); text-decoration: none; }
.deal.brk { border-left: 3px solid var(--hot); }
.deal.expired { opacity: .48; }
.deal .badges { display: flex; gap: var(--s2); margin-bottom: var(--s3); flex-wrap: wrap; }
.bdg { font: 12px var(--f-mono); padding: 2px 8px; border-radius: var(--r-sm); background: var(--tagbg); color: var(--dim2); white-space: nowrap; }
.bdg.trust { color: var(--ok); box-shadow: inset 0 0 0 .5px var(--ok); background: none; }
.bdg.hot { color: var(--hot); box-shadow: inset 0 0 0 .5px var(--hot); background: none; }
.deal h3 { font-size: 19px; font-weight: 600; line-height: 1.4; margin-bottom: var(--s1); }
.deal .sum { font-size: 15px; color: var(--dim); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: var(--s3); }
.deal .foot { margin-top: auto; display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; padding-top: var(--s3); border-top: .5px dashed var(--line-strong); }
.deal .quota { font: 700 34px/1.15 var(--f-serif); color: var(--hot); letter-spacing: -.01em; }
.deal .quota em { font-style: normal; font: 400 11px var(--f-mono); color: var(--dim2); margin-left: 4px; }
.deal .meta { font: 13px var(--f-mono); color: var(--dim2); display: flex; gap: var(--s3); flex-wrap: wrap; }
.dleft { font: 13px var(--f-mono); color: var(--acc); font-weight: 600; }
.dleft.soon { color: var(--hot); font-weight: 600; }
.deal .go { position: absolute; right: var(--s5); bottom: var(--s5); font-size: 13px; color: var(--acc); opacity: 0; transform: translateX(-4px); transition: opacity var(--m-in) var(--ease), transform var(--m-in) var(--ease); }
.deal:hover .go { opacity: 1; transform: none; }

/* ---- 频道 chips ---- */
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s6); }
.chips a {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 var(--s3);
  border-radius: 999px; font-size: 14px; color: var(--dim);
  box-shadow: inset 0 0 0 .5px var(--line-l3); text-decoration: none;
  transition: color var(--m-in) var(--ease), background var(--m-in) var(--ease);
}
.chips a:hover { color: var(--fg); background: var(--hover); text-decoration: none; }
.chips a.on { color: var(--fg); box-shadow: inset 0 0 0 .5px var(--acc); }
.chips a .n { font: 11px var(--f-mono); color: var(--dim2); margin-left: 6px; }
@media (max-width: 720px) { .chips a { min-height: 44px; } }

/* ---- 详情页 ---- */
.dhead { padding: calc(var(--nav-h) + var(--s3)) 0 var(--s3); }
.dhead .dtop { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s2); }
.dhead .dtop .badges { margin-bottom: 0; }
.dhead .back { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--dim2); margin-block: -11px; }
.dhead .back:hover { color: var(--fg); text-decoration: none; }
.dhead h1 { font-family: var(--f-serif); font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin-bottom: var(--s2); max-width: 20em; }
.dhead .sub { color: var(--lead); font-size: 16.5px; max-width: 36em; margin-bottom: var(--s2); }
.dhero {
  display: flex; align-items: center; gap: var(--s6); flex-wrap: wrap;
  background: var(--raise); border: .5px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s5) var(--s6); margin-bottom: var(--s5);
}
.dhero .q { font: 700 clamp(48px, 6vw, 64px)/1.05 var(--f-serif); color: var(--hot); letter-spacing: -.025em; }
.dhero .q small { display: block; font: 12px var(--f-mono); color: var(--dim2); letter-spacing: .1em; margin-top: 4px; }
.dhero .grow { flex: 1; min-width: 200px; }
.dhero .countdown { font: 13px var(--f-mono); color: var(--acc); }
.dhero .countdown.soon { color: var(--hot); font-weight: 600; }
.dtable { width: 100%; border-collapse: collapse; margin: var(--s4) 0 var(--s6); font-size: 15.5px; }
.dtable th, .dtable td { text-align: left; padding: 10px 12px; border-bottom: .5px solid var(--line-strong); vertical-align: top; }
.dtable th { color: var(--dim2); font-weight: 500; font-size: 13px; width: 110px; }
.dtable td { color: var(--lead); }

/* ---- 表单 ---- */
form.panel { max-width: 560px; }
.panel { background: var(--card); border: .5px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
label { display: block; font-size: 14px; color: var(--dim2); margin: var(--s4) 0 var(--s1); }
input, select, textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15.5px;
  background: var(--raise); color: var(--fg);
  border: .5px solid var(--line-l3); border-radius: var(--r-md);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
input[type=checkbox] { width: auto; }
.msg { padding: 10px 14px; border-radius: var(--r-md); margin: var(--s3) 0; font-size: 14px; }
.msg.ok { background: var(--hot-bg); color: var(--acc); }
.msg.err { background: var(--hot-bg); color: var(--hot); }

/* ---- 排行 ---- */
.rtable { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.rtable th, .rtable td { text-align: left; padding: 12px 10px; border-bottom: .5px solid var(--line-strong); vertical-align: middle; }
.rtable th { color: var(--dim2); font: 12px var(--f-mono); letter-spacing: .08em; }
.rtable td a { color: var(--fg); }
.rtable td a:hover { color: var(--acc); }
.rtable .num { font-family: var(--f-mono); color: var(--dim2); width: 40px; }
.rtable .stat { font-family: var(--f-mono); font-size: 13px; color: var(--dim); white-space: nowrap; }
.rtable .quota { font: 600 15px var(--f-serif); white-space: nowrap; }

/* ---- 订阅渠道卡 ---- */
.chgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (max-width: 720px) { .chgrid { grid-template-columns: 1fr; } }
.chcard { background: var(--card); border: .5px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
.chcard h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--s2); display: flex; align-items: center; gap: var(--s3); }
.chcard h3 .st { margin-left: auto; font: 11px var(--f-mono); color: var(--dim2); background: var(--tagbg); padding: 2px 8px; border-radius: var(--r-sm); }
.chcard h3 .st.on { color: var(--acc); box-shadow: inset 0 0 0 .5px var(--acc); background: none; }
.chcard p { font-size: 13.5px; color: var(--dim); line-height: 1.7; margin-bottom: var(--s4); }
.chcard form { display: flex; gap: var(--s2); }
.chcard form input { flex: 1; }
.chcard form .btn { min-height: 40px; padding: 0 16px; font-size: 13.5px; }

/* ---- prose / 页脚 / 杂项 ---- */
.prose { max-width: 44em; }
.dmain .prose {
  max-width: none; background: var(--card); border: .5px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s6);
}
.prose h2 { font-family: var(--f-serif); font-size: 22px; font-weight: 700; margin: var(--s6) 0 var(--s2); }
.prose h3 { font-size: 18px; font-weight: 700; margin: var(--s5) 0 var(--s2); }
.prose h4 { font-size: 15.5px; font-weight: 700; margin: var(--s4) 0 var(--s2); }
.prose p, .prose li { color: var(--lead); font-size: 16.5px; }
.prose p { margin: var(--s3) 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: var(--s2) 0; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--hot); }
.prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote { margin: var(--s4) 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--hot); background: var(--tagbg); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: .5px solid var(--line); margin: var(--s5) 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); border: .5px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: var(--s4) 0; }
.prose th, .prose td { border: .5px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--tagbg); font-weight: 700; }
.prose code, code { font-family: var(--f-mono); font-size: 13.5px; background: var(--tagbg); padding: 2px 7px; border-radius: var(--r-sm); }
.prose pre { background: #1b1f29; color: #e8eaf0; padding: var(--s4); border-radius: var(--r-md); overflow-x: auto; margin: var(--s4) 0; }
.prose pre code { background: none; padding: 0; color: inherit; }
.note { font-size: 13.5px; color: var(--dim2); }
.empty { color: var(--dim2); text-align: center; padding: var(--s8) 0; font-size: 16px; }
footer.closing { border-top: .5px solid var(--line); padding: var(--s5) 0; }
.closing .wrap { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.closing small { color: var(--dim2); font-size: 13.5px; }
.closing .flinks { margin-left: auto; display: flex; gap: var(--s2); }
.closing .flinks a { color: var(--dim); font-size: 13.5px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); border-radius: var(--r-sm); }
.closing .flinks a:hover { color: var(--fg); text-decoration: none; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 40; background: var(--acc); color: #fff; font-size: 13px; padding: 8px 14px; border-radius: var(--r-sm); transition: top var(--m-in) var(--ease); }
.skip-link:focus { top: 10px; }

/* ---- 每日签到打卡墙：横向密排打卡卡，本机当天打卡态 ---- */
.ckwall {
  position: relative; overflow: hidden;
  margin-top: var(--nav-h); /* 顶栏 fixed，墙顶要让出来，否则上折影+标题被遮住 */
  border-block: .5px solid var(--line-strong); padding: var(--s5) 0 var(--s4);
  background:
    radial-gradient(color-mix(in srgb, var(--dim2) 28%, transparent) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--raise) 0%, var(--bg) 100%);
}
.ckwall::before {
  content: ""; position: absolute; inset: -55% -10% auto; height: 200%;
  background: radial-gradient(46% 42% at 50% 0%, color-mix(in srgb, var(--hot) 11%, transparent), transparent 70%);
  pointer-events: none;
}
/* 折纸拉开：上下折页投在卡墙上的影，卡墙是底层凹陷面 */
.ckwall::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  box-shadow:
    inset 0 1px 0 var(--edge-hi),
    inset 0 2px 5px -2px var(--fold-crease),
    inset 0 20px 20px -20px var(--fold-bot),
    inset 0 -2px 5px -2px var(--fold-crease),
    inset 0 -20px 20px -20px var(--fold-bot);
}
.ckwall > .wrap { position: relative; z-index: 1; }
.ckwall .head { display: flex; align-items: baseline; gap: var(--s4); margin-bottom: var(--s3); }
.ckwall .head h2 { font-family: var(--f-serif); font-size: 22px; font-weight: 700; }
.ckwall .head small { font: 13px var(--f-mono); color: var(--dim2); }
.ckscroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); align-items: start; }
/* 签到头卡：固定宽度、与卡条同款面（展开时随行高拉伸） */
.ckwall .ckhead {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: var(--s2) var(--s4); align-self: stretch;
  border: .5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--card); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow);
}
.ckwall .ckhead b { font: 700 15px/1.3 var(--f-serif); white-space: nowrap; }
.ckwall .ckhead small { font: 11.5px/1.45 var(--f-mono); color: var(--dim2); }
/* 首页签到墙：头卡固定列宽 + 卡条折叠 = 标题 | 奖励额；鼠标经过整条墙才展开（触屏不折叠） */
.ckwall.peek { padding: var(--s3) 0; }
@media (hover: hover) {
  .ckwall.peek .ckscroll { grid-template-columns: 170px repeat(auto-fill, minmax(220px, 1fr)); }
  .ckwall.peek .ckhead small { max-height: 0; opacity: 0; overflow: hidden;
    transition: opacity .18s var(--ease), max-height .25s var(--ease); }
  .ckwall.peek .ck { flex-direction: row; align-items: center; gap: 0; }
  .ckwall.peek .ck .t { flex: 1; min-width: 0; }
  .ckwall.peek .ck .r { margin-left: auto; font-size: 12.5px; transition: font-size .2s var(--ease), margin .2s var(--ease); }
  .ckwall.peek .ck .m, .ckwall.peek .ck .ckgo {
    max-width: 0; max-height: 0; opacity: 0; overflow: hidden; white-space: nowrap;
    min-width: 0; padding-block: 0; border-width: 0; margin-top: 0;
    transition: opacity .18s var(--ease), max-width .25s var(--ease), max-height .25s var(--ease), padding .25s var(--ease), margin-top .25s var(--ease);
  }
  .ckwall.peek:not(:hover):not(:focus-within) .ck.done .r { display: none; }
  .ckwall.peek:hover .ckhead small, .ckwall.peek:focus-within .ckhead small { max-height: 40px; opacity: 1; }
  .ckwall.peek:hover .ck, .ckwall.peek:focus-within .ck { flex-direction: column; align-items: stretch; }
  .ckwall.peek:hover .ck .t, .ckwall.peek:focus-within .ck .t { flex: none; }
  .ckwall.peek:hover .ck .r, .ckwall.peek:focus-within .ck .r { margin-left: 0; font-size: 15px; }
  .ckwall.peek:hover .ck .m, .ckwall.peek:focus-within .ck .m {
    max-width: 400px; max-height: 52px; opacity: 1; margin-top: 4px;
  }
  .ckwall.peek:hover .ck .ckgo, .ckwall.peek:focus-within .ck .ckgo {
    max-width: 400px; max-height: 60px; opacity: 1; margin: auto 0 0;
    align-self: flex-end; min-width: 104px; padding-block: 7px; border-width: .5px;
  }
}
.ck {
  text-decoration: none; color: inherit; cursor: pointer;
  background: var(--card); border: .5px solid var(--line-strong);
  border-radius: var(--r-md); padding: var(--s3) var(--s4);
  display: flex; flex-direction: column; gap: 4px; position: relative;
  box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow);
  transition: background var(--m-in) var(--ease), transform var(--m-in) var(--ease), box-shadow var(--m-in) var(--ease), border-color var(--m-in) var(--ease), color var(--m-in) var(--ease);
}
.ck:hover { background: var(--panel); transform: translateY(-3px); border-color: var(--acc); box-shadow: var(--shadow-hi); text-decoration: none; }
.ck:hover .t { color: var(--acc); }
.ck .t { font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--m-in) var(--ease); }
.ck .r { font: 600 15px var(--f-serif); color: var(--hot); }
.ck .m { font: 11px var(--f-mono); color: var(--dim2); }
.ck .ckgo { margin-top: auto; align-self: flex-end; display: inline-flex; padding: 7px 0;
  min-width: 104px; justify-content: center;
  position: relative; z-index: 2; background: transparent; cursor: pointer;
  border-radius: 8px; border: .5px solid var(--hot);
  font: 600 13px var(--f-mono); color: var(--hot); }
.ck .ckgo .t-done, .ck .ckgo .t-cancel { display: none; }
.ck .ckgo:hover { background: var(--hot); color: #fff; }
.ck.done .ckgo { color: var(--ok); border-color: var(--ok); }
.ck.done .ckgo .t-go { display: none; }
.ck.done .ckgo .t-done { display: inline; }
.ck.done:hover .ckgo { color: var(--hot); border-color: var(--hot); }
.ck.done .ckgo:hover { background: var(--hot); color: #fff; }
.ck.done:hover .ckgo .t-done { display: none; }
.ck.done:hover .ckgo .t-cancel { display: inline; }
.ck .stamp { pointer-events: none;
  display: none; position: absolute; top: 10px; right: 10px;
  transform: rotate(12deg); border: 1.5px solid var(--ok); border-radius: 4px;
  color: var(--ok); font: 700 11px/1 var(--f-mono); padding: 4px 7px;
  letter-spacing: .15em; background: var(--card);
}
.ck.done .stamp { display: block; }
.ck.done { border-color: var(--ok); }
.ck .d7 { position: absolute; top: -6px; right: 8px; font: 10px var(--f-mono); color: var(--acc); pointer-events: none;
  background: var(--bg); border: .5px solid var(--acc); border-radius: 8px; padding: 1px 6px; }

/* ---- TOP 热榜标 ---- */
.bdg.topn { color: var(--hot); background: var(--hot-bg); box-shadow: none; }

/* ---- 密化：栅格与卡片再收一档 ---- */
.deal .sum { margin-bottom: var(--s2); }
main > section { padding: var(--s4) 0; }

/* ---- 详情页促销化：倒计时大字块 ---- */
.dcd { font: 700 clamp(28px,4vw,40px)/1.1 var(--f-serif); color: var(--acc); }
.dcd.soon { color: var(--hot); }
.dcd small { display: block; font: 12px var(--f-mono); color: var(--dim2); margin-top: 4px; letter-spacing: .1em; }
.rel { margin-top: var(--s6); }

/* ---- 详情页促销化：中号实心 CTA（嵌在价格面板内）+ 领取步骤 + 紧凑 meta 条 ---- */
.dhero .buy { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 200px; }
.gobtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 var(--s6);
  border-radius: var(--r-sm); background: var(--hot); color: #fff;
  font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background .12s var(--ease), transform .12s var(--ease);
}
.gobtn:hover { background: var(--pri-hover); transform: translateY(-1px); text-decoration: none; }
.gosub { font: 12.5px var(--f-mono); color: var(--dim2); text-align: center; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: -7px 0; }
.gosub:hover { color: var(--acc); }
.vrow { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); }
.steps { display: grid; gap: 0; counter-reset: st; }
.steps .st { display: flex; gap: var(--s3); padding: var(--s3) 0 var(--s4); position: relative; }
.steps .st::before {
  counter-increment: st; content: counter(st);
  flex: 0 0 26px; height: 26px; border-radius: 999px; margin-top: 1px;
  background: var(--hot); color: #fff; font: 700 14px/26px var(--f-mono); text-align: center;
  position: relative; z-index: 1;
}
.steps .st::after {
  content: ""; position: absolute; left: 12.5px; width: 1.5px;
  top: calc(var(--s3) + 27px); bottom: calc(-1 * (var(--s3) + 1px)); background: var(--line-strong);
}
.steps .st:last-child { padding-bottom: var(--s3); }
.steps .st:last-child::after { display: none; }
.steps .st p { font-size: 15.5px; line-height: 1.55; }
.mstrip { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); font: 12.5px var(--f-mono); color: var(--dim2); }
.mstrip b { color: var(--lead); font-weight: 500; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

/* ---- 详情页双栏：正文占满 + 右侧竖排顺手薅 ---- */
.dcols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s7); align-items: start; }
.dmain { min-width: 0; }
.dside { position: sticky; top: calc(var(--nav-h) + var(--s5)); }
.dside .sec-h { margin-bottom: var(--s3); gap: var(--s3); }
.dside .sec-h h2 { font-size: 22px; }
.dstack { display: grid; gap: var(--s3); }
.cblock { margin-top: var(--s5); padding-top: var(--s4); border-top: .5px solid var(--line); }
.cblock .sec-h { margin-bottom: var(--s3); gap: var(--s3); }
.cblock .sec-h h2 { font-size: 22px; }
@media (min-width: 1101px) {
  .dside .hcard { grid-template-columns: 92px minmax(0, 1fr); }
  .dside .hcard .md .q { font-size: 20px; }
  .dside .hcard .hd { padding: 10px 14px 8px; font-size: 15px; }
  .dside .hcard .bd { padding: 10px 12px 9px 22px; }
  .dside .hcard .sum { font-size: 13px; }
  .dside .hcard .ops .v { display: none; }
}
@media (max-width: 1100px) {
  .dcols { grid-template-columns: 1fr; }
  .dside { position: static; }
}

/* SMZDM 式小色标：红底白字方角 */
.tag { display: inline-block; font: 600 11px/1.6 var(--f-sans); color: #fff; background: var(--hot);
  border-radius: 3px; padding: 0 6px; margin-right: 5px; vertical-align: 1px; }
.tag.blue { background: var(--acc); }
.tag.green { background: var(--ok); }
.tag.ghost { background: transparent; color: var(--acc); border: .5px solid var(--acc); }
/* 排序/搜索条 */
.sortbar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: var(--s4) 0 var(--s3); }
.sortbar .chips { margin-left: auto; margin-bottom: 0; }
.sortbar .st { display: flex; gap: 0; border: .5px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.sortbar .st a { padding: 6px 16px; font-size: 15.5px; font-weight: 700; color: var(--dim); text-decoration: none; }
.sortbar .st a.on { background: var(--hot); color: #fff; }
.sortbar .st a:hover:not(.on) { color: var(--fg); text-decoration: none; }
.sbox { flex: 1 1 200px; max-width: 320px; position: relative; }
.sbox input { width: 100%; min-height: 34px; padding: 0 12px 0 32px; font-size: 13.5px;
  border-radius: 6px; border: .5px solid var(--line-strong); background: var(--card); color: var(--fg); }
.sbox::before { content: "🔍"; position: absolute; left: 10px; top: 8px; font-size: 13px; opacity: .5; }

/* ---- 详情页平台块 ---- */
.dhero .thumb2 {
  flex: 0 0 88px; align-self: stretch; min-height: 88px;
  background: linear-gradient(135deg, var(--raise), var(--panel));
  border: .5px solid var(--line); border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.dhero .thumb2 .ic { font-size: 28px; }
.dhero .thumb2 b { font: 600 10.5px var(--f-mono); color: var(--dim2); text-align: center; max-width: 80px; }

/* ---- jingxuan 式 sticky 分类 tab 条 ---- */
.ltabs {
  position: sticky; top: 55px; z-index: 60;
  display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none;
  background: var(--bg); border-bottom: .5px solid var(--line);
}
.ltabs::-webkit-scrollbar { display: none; }
.ltabs a {
  flex: 0 0 auto; position: relative; padding: 13px 15px 12px;
  font-size: 15px; color: var(--dim); text-decoration: none; white-space: nowrap;
}
.ltabs a:hover { color: var(--fg); text-decoration: none; }
.ltabs a.on { color: var(--hot); font-weight: 600; }
.ltabs a.on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 3px; border-radius: 2px 2px 0 0; background: var(--hot);
}
.ltabs a .n { font: 11px var(--f-mono); color: var(--dim2); margin-left: 3px; }
.ltabs a.on .n { color: var(--hot); }
.ltabs .right { margin-left: auto; flex: 0 0 auto; font: 12px var(--f-mono); color: var(--dim2); padding-right: 2px; }

/* ---- jingxuan 式单列横卡 ---- */
.hlist2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s3); }
.hcard {
  position: relative;
  display: grid; grid-template-columns: 140px 1fr;
  background: var(--card); border: .5px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow);
  transition: box-shadow var(--m-in) var(--ease), transform var(--m-in) var(--ease), border-color var(--m-in) var(--ease);
}
.hcard:hover { box-shadow: var(--shadow-hi); transform: translateY(-2px); border-color: var(--line-strong); }
.hcard.brk { border-left: 3px solid var(--hot); }
.hcard .md {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: var(--s3); margin-right: -12px; text-decoration: none;
  background: var(--card);
  transition: transform var(--m-in) var(--ease);
  border-radius: 13px 0 0 13px;
  clip-path: polygon(0 0, 100% 0,
    97% 4%, 99% 7%, 93% 11%, 98% 15%, 95% 19%, 100% 23%,
    92% 28%, 97% 32%, 100% 36%, 94% 41%, 98% 45%, 91% 50%,
    97% 55%, 100% 60%, 93% 66%, 99% 71%, 95% 76%, 100% 82%,
    92% 87%, 98% 92%, 94% 96%, 100% 100%, 0 100%);
}
/* 星爆「降」徽章（特价牌效果） */
.hcard > .burst {
  position: absolute; top: 29px; left: -14px; z-index: 2; pointer-events: none;
  width: 59px; height: 59px; display: grid; place-items: center;
  background: var(--hot); color: #fff; font: 700 20px/1 var(--f-ui);
  transform: rotate(-8deg);
  clip-path: polygon(50% 0%, 58% 21%, 75% 7%, 71% 29%, 93% 25%, 79% 42%, 100% 50%, 79% 58%, 93% 75%, 71% 71%, 75% 93%, 58% 79%, 50% 100%, 42% 79%, 25% 93%, 29% 71%, 7% 75%, 21% 58%, 0% 50%, 21% 42%, 7% 25%, 29% 29%, 25% 7%, 42% 21%);
}
.hcard .md .q { font: 800 34px/1.15 var(--f-serif); color: var(--hot); text-align: center; word-break: break-all; letter-spacing: -.02em;
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: -4px; }
.hcard .md .q.sale { flex-direction: column; gap: 1px; }
.hcard .md .q .now { font-size: 1.45em; }
.hcard .md .q .was { font: 600 15px var(--f-mono); color: var(--lead); letter-spacing: 0; }
.hcard .md .q .was s { text-decoration: line-through; }
.hcard .md .ct { font: 600 12.5px var(--f-mono); color: var(--lead); background: var(--tagbg); padding: 2px 9px; border-radius: 999px; margin-top: auto; }
.hcard .md .pl { font: 600 12.5px var(--f-mono); color: var(--dim); margin-top: 4px; text-align: center; }
.hcard.expired .md { background: var(--raise); }
.hcard.expired .md .q { color: var(--dim2); font-size: 17px; }
.hcard .hd { grid-column: 1 / -1; padding: 12px 18px 10px; border-bottom: .5px solid var(--line);
  font-size: 17px; line-height: 1.45; letter-spacing: -.01em; border-radius: 13px 13px 0 0;
  display: flex; align-items: center; gap: 10px; }
.hcard .hd > a { flex: 1; min-width: 0; color: var(--fg); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 10px 0; margin: -10px 0; }
.hcard .hd .htag { flex: 0 0 auto; }
.hcard .hd a:hover { color: var(--hot); text-decoration: none; }
.hcard.top .hd a { color: var(--hot); }
.hcard.brk .hd { background: var(--hot-bg); }
.hcard .bd { padding: 12px 18px 11px 30px; display: flex; flex-direction: column; min-width: 0;
  position: relative;
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--raise) 20%, var(--card)) 0%,
    color-mix(in srgb, var(--raise) 40%, var(--card)) 55%);
  border-radius: 0 13px 13px 0; }
.hcard .bd::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 12px;
  background: #000; opacity: .10; filter: blur(4px); pointer-events: none;
  transition: opacity var(--m-in) var(--ease), width var(--m-in) var(--ease), filter var(--m-in) var(--ease);
}
.hcard:hover .bd::before { opacity: .20; width: 18px; filter: blur(6px); }
.hcard:hover .md { transform: translateY(-4px); }
.hcard .sum { font-size: 14px; color: var(--dim); line-height: 1.55; margin-top: 6px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hcard .src { font: 12.5px var(--f-mono); color: var(--dim2); margin-top: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard .src i { margin: 0 4px; font-style: normal; opacity: .45; }
.hcard .ft { margin-top: auto; padding-top: 9px; display: flex; align-items: center;
  gap: var(--s3); row-gap: 8px; flex-wrap: wrap; }
.hcard .ops { display: flex; align-items: center; gap: 0 12px; flex-wrap: wrap;
  min-width: 0; max-height: 22px; overflow: hidden; }
.hcard .ops > * { white-space: nowrap; }
.hcard .ops .v { font: 600 12.5px var(--f-mono); color: var(--hot); }
.hcard .ops .ok2 { font: 600 12.5px var(--f-mono); color: var(--ok); }
.hcard .ops .st { font: 12.5px var(--f-mono); color: var(--dim2); text-decoration: none; }
.hcard .ops .st:hover { color: var(--acc); text-decoration: none; }
.hcard .buy {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px;
  border-radius: 8px; background: var(--hot); color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--hot) 32%, transparent);
  transition: background .12s var(--ease), transform .12s var(--ease), box-shadow .12s var(--ease);
}
.hcard .buy { margin-left: auto; position: relative; z-index: 2; }
.cardlink { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cardlink:hover ~ .hd a { color: var(--hot); }
.hcard .buy:hover { background: var(--pri-hover); transform: translateY(-1px); text-decoration: none; }
.hlist2 .hcard { grid-template-columns: 128px minmax(0, 1fr); }
.hlist2 .hcard .md .q { font-size: 28px; }
.hlist2 .hcard .bd { padding: 12px 14px 10px; }
.hlist2 .hcard .hd { font-size: 16px; }
@media (max-width: 680px) {
  .hlist2 { grid-template-columns: 1fr; }
  .hcard { grid-template-columns: 100px 1fr; }
  .hcard .md .q { font-size: 22px; }
  .hcard .hd { padding: 10px 12px 8px; }
  .hcard .bd { padding: 10px 12px 9px 24px; }
  .hcard .ops { column-gap: 10px; }
  .hcard .buy { padding: 0 12px; min-height: 44px; }
}

/* ---- 首页双栏：feed + 右侧栏（移动端侧栏排到 feed 之后） ---- */
.home2 { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: var(--s5); align-items: start; }
@media (max-width: 960px) { .home2 { grid-template-columns: 1fr; } .aside { position: static; } }
.aside { position: sticky; top: 72px; display: grid; gap: var(--s4); }
.acard { background: var(--card); border: .5px solid var(--line-strong); border-radius: var(--r-md); padding: var(--s4); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow); }
.acard h3 { font-family: var(--f-serif); font-size: 17px; margin-bottom: var(--s2); }
.hlist { display: grid; }
.hlist a { display: flex; gap: var(--s3); align-items: baseline; padding: 9px 0;
  border-bottom: .5px dashed var(--line); text-decoration: none; color: var(--fg); font-size: 14px; }
.hlist a:last-child { border-bottom: none; }
.hlist a:hover { color: var(--hot); text-decoration: none; }
.hlist .no { flex: 0 0 20px; font: 700 13px var(--f-mono); color: var(--dim2); }
.hlist a:nth-child(-n+3) .no { color: var(--hot); }
.hlist .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hlist .v { font: 12px var(--f-mono); color: var(--dim2); }

/* ---- 移动端顶部双 tab（签到|优惠），桌面隐藏 ---- */
.mtabs { display: none; }
@media (max-width: 960px) {
  .mtabs {
    display: flex; position: sticky; top: var(--nav-h); z-index: 70;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: .5px solid var(--line);
  }
  .mtabs a {
    flex: 1; text-align: center; padding: 13px 0 12px; font-size: 15.5px;
    color: var(--dim); text-decoration: none; position: relative;
  }
  .mtabs a.on { color: var(--hot); font-weight: 700; }
  .mtabs a.on::after {
    content: ""; position: absolute; left: 30%; right: 30%; bottom: 0;
    height: 3px; border-radius: 2px 2px 0 0; background: var(--hot);
  }
  /* 签到区只露前 2 张 + 更多卡（移动端） */
  .ckscroll .ck:nth-child(n+3) { display: none; }
  .ckmore { display: flex !important; }
}
/* 「全部签到」更多卡：仅移动端出现 */
.ckmore {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--card); border: .5px dashed var(--line-strong); border-radius: var(--r-md);
  color: var(--dim); font-size: 14px; text-decoration: none; min-height: 130px;
}
.ckmore b { font-size: 22px; }
.ckmore:hover { color: var(--hot); border-color: var(--hot); text-decoration: none; }

/* ---- taste gate 修正：可见 label / 44px 触控 ---- */
.slab { font: 12px var(--f-mono); color: var(--dim2); white-space: nowrap; }
.sortbar .slab { align-self: center; }
.cta .slab { align-self: center; }
@media (max-width: 960px) {
  .chips a { display: inline-flex; align-items: center; min-height: 44px; }
  .hlist a { padding: 12px 0; }
  .mast h1 { font-size: 22px !important; }
}

/* 首页 mast 一行流：标题·统计·搜索·订阅·爆料 */
.mrow { display: flex; align-items: baseline; gap: var(--s5); flex-wrap: nowrap; margin-bottom: var(--s4); }
.mrow h1 { font-family: var(--f-ui); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0; white-space: nowrap; }
.mrow .facts { gap: var(--s5); flex-wrap: nowrap; }
.mrow .mctl { margin-left: auto; display: flex; align-items: center; gap: var(--s3); flex-wrap: nowrap; }
.mrow .mctl .btn { white-space: nowrap; padding: 5px 14px; }
.mrow .mctl .sbox { flex: 0 1 300px; }
@media (max-width: 960px) {
  .mrow { flex-wrap: wrap; }
  .mrow .mctl { margin-left: 0; }
  .mrow .mctl .sbox { flex: 1 1 160px; }
}

/* ---- 浅色·冷光层：按钮上光、顶部靛蓝晕 ---- */
:root[data-theme="light"] .hcard .buy,
:root[data-theme="light"] .btn.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--pri-bg) 86%, #fff) 0%, var(--pri-bg) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 14px color-mix(in srgb, var(--pri-bg) 30%, transparent);
}
:root[data-theme="light"] .hcard .buy:hover,
:root[data-theme="light"] .btn.primary:hover { background: linear-gradient(180deg, var(--pri-bg) 0%, var(--pri-hover) 100%); }
:root[data-theme="light"] .deals-zone { position: relative; }
:root[data-theme="light"] .deals-zone > .wrap { position: relative; z-index: 1; }
:root[data-theme="light"] .deals-zone::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 240px;
  background: radial-gradient(52% 55% at 50% 0%, color-mix(in srgb, var(--acc) 9%, transparent), transparent 72%);
  pointer-events: none;
}
:root[data-theme="light"] .hcard:hover { border-color: color-mix(in srgb, var(--hot) 30%, transparent); }
:root[data-theme="light"] .tag { background: linear-gradient(135deg, color-mix(in srgb, var(--hot) 88%, #fff), var(--hot)); }
:root[data-theme="light"] .ck .r { text-shadow: 0 1px 0 #fff; }
