/* ============================================================
   MC 资源站 · 样式（纯静态、零依赖 / 无外链字体·图片·CDN）
   视觉方向（2026-10-24 升级）：绿色科技感 + 玻璃拟态 + 极光
   - 基础层：assets/visual.css（极光背景 / .v-glass / .v-lift / .v-grad / [data-reveal]）
     本文件在其后加载，只做页面级主题与细节增强，不重写通用层。
   - 主题令牌：品牌绿 #2ea073；文字用更深的 --brand-ink 保证对比度不降
     （白字铺底一律用 #1a8a5e→#0c5f43 深绿渐变，避免亮绿上白字对比不足）
   ============================================================ */
:root {
  --bg: #F7FBF9;
  --card: #FFFFFF;
  --ink: #1A1A2E;
  --sub: #6B6B76;
  --faint: #8D8D98;
  --brand: #2EA073;
  --brand-deep: #1A8A5E;
  --brand-ink: #15694A;
  --brand-soft: #D9F2E6;
  --brand-glow: rgba(46, 160, 115, .22);
  --side: #F2F8F5;
  --line: #E4EDE8;
  --track: #E7F4ED;
  --ok: #2FA36B;
  --warn: #E8A33D;
  --bad: #D9534F;
  --r-card: 20px;
  --r-ctl: 14px;
  --shadow: 0 10px 30px -18px rgba(8, 70, 48, .35);
  --shadow-lg: 0 26px 50px -26px rgba(8, 70, 48, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 让通用视觉层（visual.css，后加载）的紫色 rgba 变体跟随绿色主题 ----------
   提高一级选择器特异度（html:root）以覆盖 visual.css 的 :root 字面色值，不改 assets/。 */
html:root {
  --v-brand: #2EA073;
  --v-brand-soft: #D9F2E6;
  --v-brand-a08: rgba(46, 160, 115, .08);
  --v-brand-a14: rgba(46, 160, 115, .14);
  --v-brand-a22: rgba(46, 160, 115, .22);
  --v-brand-a35: rgba(46, 160, 115, .35);
  --v-glass: rgba(255, 255, 255, .66);
  --v-glass-strong: rgba(255, 255, 255, .88);
  --v-ink-a06: rgba(8, 70, 48, .07);
  --v-ink-a12: rgba(8, 70, 48, .14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
/* 整页禁止横向滑动：只允许 .cats 这类显式 overflow-x:auto 的区域横滑（安卓 WebView 里尤其明显） */
html { overflow-x: hidden; scroll-padding-top: 76px; }
body {
  max-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.7 "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; }
.noscript { padding: 40px; text-align: center; color: var(--bad); }

/* ================= 顶栏（玻璃） ================= */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(247, 251, 249, .92), rgba(247, 251, 249, .74));
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid rgba(46, 160, 115, .13);
  box-shadow: 0 12px 30px -26px rgba(8, 70, 48, .55);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  position: relative;
  width: 36px; height: 36px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #35b083 0%, #2ea073 42%, #0f6b48 100%);
  color: #fff; font-weight: 800; font-size: 16px;
  box-shadow:
    0 8px 18px -6px rgba(46, 160, 115, .55),
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -8px 14px -8px rgba(4, 40, 26, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-4deg);
  box-shadow: 0 14px 26px -8px rgba(46, 160, 115, .65), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 90% at 22% 8%, rgba(255, 255, 255, .45), transparent 58%);
  pointer-events: none;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt b { font-size: 15px; letter-spacing: .2px; }
.brand-txt i { font-style: normal; font-size: 11px; color: var(--faint); }

/* ---------- 搜索框：玻璃 + 聚焦光晕 ---------- */
.search-wrap {
  position: relative; flex: 1 1 auto; max-width: 620px; margin: 0 auto;
}
.search-wrap::after {
  content: "";
  position: absolute; inset: -5px; border-radius: 999px;
  pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1px rgba(46, 160, 115, .30), 0 0 30px rgba(46, 160, 115, .38);
  transition: opacity .35s var(--ease);
}
.search-wrap:focus-within::after { opacity: 1; animation: search-halo 2.8s var(--ease) infinite; }
@keyframes search-halo {
  0%, 100% { box-shadow: 0 0 0 1px rgba(46, 160, 115, .26), 0 0 20px rgba(46, 160, 115, .28); }
  50% { box-shadow: 0 0 0 1px rgba(46, 160, 115, .4), 0 0 38px rgba(46, 160, 115, .45); }
}
.search-wrap input {
  position: relative; z-index: 1;
  width: 100%; height: 42px; padding: 0 40px 0 38px;
  border: 1px solid rgba(46, 160, 115, .18); border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: saturate(1.35) blur(14px);
  backdrop-filter: saturate(1.35) blur(14px);
  color: var(--ink); font: inherit; font-size: 13.5px;
  box-shadow: 0 8px 20px -16px rgba(8, 70, 48, .6), inset 0 1px 0 rgba(255, 255, 255, .95);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.search-wrap input::placeholder { color: var(--faint); }
.search-wrap input:hover { border-color: rgba(46, 160, 115, .32); }
.search-wrap input:focus {
  outline: none; border-color: var(--brand); background: rgba(255, 255, 255, .96);
  box-shadow:
    0 0 0 4px rgba(46, 160, 115, .16),
    0 0 34px -4px rgba(46, 160, 115, .35),
    inset 0 1px 0 #fff;
}
.search-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; z-index: 2;
  fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round;
  transition: stroke .25s;
}
.search-wrap:focus-within .search-ic { stroke: var(--brand); }
.q-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(46, 160, 115, .10); color: var(--sub); font-size: 16px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.q-clear:hover { color: var(--brand-ink); background: rgba(46, 160, 115, .2); }

/* ---------- 资源源切换：发光胶囊 ---------- */
.src-tabs {
  display: flex; gap: 2px; padding: 3px; flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(46, 160, 115, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 16px -14px rgba(8, 70, 48, .6);
}
.src-tab {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 13px; border-radius: 999px; font: inherit; font-size: 12.5px; color: var(--sub);
  transition: color .22s var(--ease), background .22s var(--ease), box-shadow .28s var(--ease), transform .22s var(--ease);
}
.src-tab:hover { color: var(--brand-ink); background: rgba(46, 160, 115, .08); }
.src-tab.on {
  background: linear-gradient(135deg, #ffffff, #eaf8f1);
  color: var(--brand-ink); font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(46, 160, 115, .26),
    0 8px 18px -10px rgba(46, 160, 115, .7),
    inset 0 1px 0 #fff;
}
.back { font-size: 13px; color: var(--sub); flex: 0 0 auto; transition: color .2s; }
.back:hover { color: var(--brand-ink); text-decoration: none; }

/* ================= 布局 ================= */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 48px; }

/* ================= Hero：极光 + 网格 + 渐变标题 ================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 18px 0 8px; padding: 40px 40px 34px;
  border-radius: 30px;
  border: 1px solid rgba(46, 160, 115, .16);
  background:
    radial-gradient(circle at 84% 44%, rgba(127, 227, 188, .55) 0 2.5px, rgba(127, 227, 188, 0) 3.5px),
    radial-gradient(circle at 84% 44%, rgba(46, 160, 115, 0) 117px, rgba(46, 160, 115, .16) 119px, rgba(46, 160, 115, 0) 121.5px),
    radial-gradient(circle at 84% 44%, rgba(46, 160, 115, 0) 173px, rgba(46, 160, 115, .10) 175px, rgba(46, 160, 115, 0) 177.5px),
    radial-gradient(120% 100% at 10% 0%, rgba(46, 160, 115, .20), transparent 58%),
    radial-gradient(90% 90% at 94% 4%, rgba(64, 190, 143, .22), transparent 62%),
    radial-gradient(80% 80% at 50% 118%, rgba(46, 160, 115, .16), transparent 60%),
    linear-gradient(150deg, rgba(255, 255, 255, .95) 0%, rgba(240, 251, 246, .88) 48%, rgba(227, 246, 237, .84) 100%);
  box-shadow:
    0 40px 80px -50px rgba(8, 70, 48, .55),
    0 16px 40px -30px rgba(8, 70, 48, .3),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 0 0 1px rgba(255, 255, 255, .35);
  animation: hero-in .8s var(--ease) both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px) scale(.995); }
  to { opacity: 1; transform: none; }
}
/* 科技网格（纯 CSS，无图片），只在上半区显影 */
.hero::before {
  content: "";
  position: absolute; inset: -1px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(46, 160, 115, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 160, 115, .10) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
  -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 6%, rgba(0, 0, 0, .35) 46%, transparent 74%);
  mask-image: radial-gradient(130% 100% at 50% 0%, #000 6%, rgba(0, 0, 0, .35) 46%, transparent 74%);
  opacity: .9;
}
/* 右上角扫光 */
.hero::after {
  content: "";
  position: absolute; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; right: -180px; top: -260px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 0deg, rgba(255, 255, 255, .5) 42deg, transparent 96deg);
  filter: blur(18px);
  opacity: .55;
  animation: hero-sweep 22s linear infinite;
}
@keyframes hero-sweep { to { transform: rotate(360deg); } }
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(52px); opacity: .6; z-index: 0; }
.hero-glow.g1 { width: 320px; height: 320px; right: -70px; top: -120px; background: rgba(46, 160, 115, .45); animation: glow-float 16s var(--ease) infinite alternate; }
.hero-glow.g2 { width: 260px; height: 260px; left: 34%; bottom: -150px; background: rgba(120, 232, 186, .55); animation: glow-float 20s var(--ease) infinite alternate-reverse; }
@keyframes glow-float {
  from { transform: translate3d(-8px, 6px, 0) scale(1); }
  to { transform: translate3d(12px, -10px, 0) scale(1.08); }
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(46, 160, 115, .22);
  font-size: 11px; letter-spacing: .16em; color: var(--brand-ink); font-weight: 800;
  box-shadow: 0 8px 18px -14px rgba(8, 70, 48, .6), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(46, 160, 115, .16), 0 0 12px rgba(46, 160, 115, .7);
  animation: dot-pulse 2.6s var(--ease) infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 160, 115, .16), 0 0 12px rgba(46, 160, 115, .7); }
  50% { box-shadow: 0 0 0 7px rgba(46, 160, 115, .08), 0 0 18px rgba(46, 160, 115, .9); }
}
.hero h1 {
  font-size: 34px; line-height: 1.32; letter-spacing: -.025em; font-weight: 800;
  color: var(--ink);
  word-break: break-word;
}
/* 渐变标题（h1 本体 + 第二行 span 各一条渐变，绿色主题） */
.hero h1 {
  background: linear-gradient(100deg, #16332a 0%, #2ea073 42%, #0f6a48 66%, #16332a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-grad 14s var(--ease) infinite alternate;
}
.hero h1 span {
  background: linear-gradient(100deg, #2ea073 0%, #0f7a52 46%, #7fe3bc 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-grad 10s var(--ease) infinite alternate-reverse;
}
@keyframes hero-grad {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.hero-sub { margin: 14px 0 0; font-size: 13.5px; color: var(--sub); max-width: 640px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-quick button {
  position: relative;
  border: 1px solid rgba(46, 160, 115, .18); cursor: pointer;
  background: rgba(255, 255, 255, .72);
  padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--brand-ink);
  box-shadow: 0 8px 18px -16px rgba(8, 70, 48, .7), inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s, color .3s;
  animation: chip-in .55s var(--ease) backwards;
}
.hero-quick button:nth-child(1) { animation-delay: .10s; }
.hero-quick button:nth-child(2) { animation-delay: .16s; }
.hero-quick button:nth-child(3) { animation-delay: .22s; }
.hero-quick button:nth-child(4) { animation-delay: .28s; }
.hero-quick button:nth-child(5) { animation-delay: .34s; }
.hero-quick button:nth-child(6) { animation-delay: .40s; }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.hero-quick button:hover {
  color: var(--brand-ink); border-color: rgba(46, 160, 115, .45); background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px rgba(46, 160, 115, .8), 0 0 0 3px rgba(46, 160, 115, .08), inset 0 1px 0 #fff;
}

/* ================= 分类胶囊 ================= */
.cats {
  position: sticky; top: 63px; z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 12px;
  background: linear-gradient(180deg, rgba(247, 251, 249, .96) 0%, rgba(247, 251, 249, .82) 62%, rgba(247, 251, 249, 0) 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  border: 1px solid rgba(46, 160, 115, .16); cursor: pointer;
  background: rgba(255, 255, 255, .72);
  padding: 9px 17px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--sub);
  box-shadow: 0 8px 18px -18px rgba(8, 70, 48, .8), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, color .3s, background .3s;
}
.cat i { font-style: normal; font-size: 13px; opacity: .8; transition: opacity .3s, transform .3s var(--ease); }
.cat:hover {
  color: var(--brand-ink); border-color: rgba(46, 160, 115, .42); background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -18px rgba(46, 160, 115, .8), 0 0 0 3px rgba(46, 160, 115, .07), inset 0 1px 0 #fff;
}
.cat:hover i { opacity: 1; transform: scale(1.08); }
.cat.on {
  background: linear-gradient(135deg, #17835a 0%, #127350 46%, #0b5a3f 100%);
  color: #fff; border-color: transparent; font-weight: 700;
  box-shadow:
    0 14px 30px -12px rgba(46, 160, 115, .85),
    0 0 0 1px rgba(46, 160, 115, .4),
    0 0 22px rgba(46, 160, 115, .35),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  animation: cat-pop .34s var(--ease);
}
@keyframes cat-pop {
  0% { transform: scale(.94); }
  62% { transform: scale(1.035); }
  100% { transform: scale(1); }
}
.cat.on i { opacity: 1; }
.cat.on .cat-n { background: rgba(255, 255, 255, .22); color: #fff; }
.cat-n {
  font-size: 11px; font-weight: 700;
  padding: 0 6px; border-radius: 999px; background: rgba(46, 160, 115, .10); color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}
.cat-n:empty { display: none; }

/* ================= 区块标题 ================= */
.block { margin-top: 22px; }
.block-hd { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.block-hd h2 {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  font-size: 17.5px; letter-spacing: -.01em; padding-left: 12px;
}
.block-hd h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 17px; border-radius: 3px;
  background: linear-gradient(180deg, #7fe3bc, #2ea073 45%, #0d6346);
  box-shadow: 0 0 12px rgba(46, 160, 115, .55);
}
.block-hd h2 .fire { font-size: 15px; }
.block-hd h2 > span { color: var(--brand-ink); }
.block-sub { margin: 0; font-size: 12.5px; color: var(--faint); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.fld {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(46, 160, 115, .14); border-radius: var(--r-ctl);
  padding: 3px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 16px -18px rgba(8, 70, 48, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.fld:hover { border-color: rgba(46, 160, 115, .3); background: #fff; }
.fld:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46, 160, 115, .13), inset 0 1px 0 #fff; }
.fld > span { font-size: 11.5px; color: var(--faint); }
.fld select { border: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink); height: 30px; max-width: 150px; outline: none; cursor: pointer; }

/* ================= 按钮 ================= */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s, background .28s, color .28s;
}
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #1a8a5e 0%, #0f6b48 55%, #0c5f43 100%);
  color: #fff;
  box-shadow:
    0 12px 24px -14px rgba(46, 160, 115, .85),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -10px 16px -12px rgba(3, 32, 20, .5);
}
.btn-primary:hover {
  filter: brightness(1.06); text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -16px rgba(46, 160, 115, .9), 0 0 0 3px rgba(46, 160, 115, .12), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, .74); color: var(--sub);
  border-color: rgba(46, 160, 115, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 16px -18px rgba(8, 70, 48, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  color: var(--brand-ink); border-color: rgba(46, 160, 115, .45); background: #fff; text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -18px rgba(46, 160, 115, .7), 0 0 0 3px rgba(46, 160, 115, .07);
}
.btn-ghost.sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.btn-primary[disabled], .btn-ghost[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
/* 详情弹层里的下载按钮是动态渲染的，visual.js 的补扫描不一定来得及：这里补一层 CSS 扫光 */
#sheet-body .btn-primary::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg) translateX(-160%);
  pointer-events: none;
}
#sheet-body .btn-primary:hover::after { animation: btn-sheen 1.05s var(--ease) forwards; }
@keyframes btn-sheen { to { transform: skewX(-18deg) translateX(560%); } }

.status { margin: 4px 2px 12px; font-size: 12.5px; color: var(--sub); min-height: 20px; }
.status b { color: var(--brand-ink); }
.status.err { color: var(--bad); }
.empty { text-align: center; color: var(--faint); padding: 46px 10px; font-size: 13px; }
.loading {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(46, 160, 115, .18); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 热门榜卡片 ================= */
.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.hot {
  position: relative; display: flex; gap: 12px; align-items: center;
  border-radius: 20px; padding: 14px 16px 14px 14px;
  cursor: pointer; overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, rgba(255, 255, 255, .94) 0%, rgba(247, 253, 250, .76) 100%);
  border: 1px solid rgba(46, 160, 115, .14);
  box-shadow:
    0 16px 32px -30px rgba(8, 70, 48, .75),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: card-in .62s var(--ease) backwards;
}
.hot:nth-child(1) { animation-delay: .02s; }
.hot:nth-child(2) { animation-delay: .07s; }
.hot:nth-child(3) { animation-delay: .12s; }
.hot:nth-child(4) { animation-delay: .17s; }
.hot:nth-child(5) { animation-delay: .22s; }
.hot:nth-child(6) { animation-delay: .27s; }
.hot:nth-child(n+7) { animation-delay: .30s; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to { opacity: 1; transform: none; }
}
/* 左侧渐变发光条（原设计保留，换成绿色渐变） */
.hot::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; z-index: 2;
  background: linear-gradient(180deg, #7fe3bc, #2ea073 46%, #0d6346);
  opacity: 0; transition: opacity .35s var(--ease);
  box-shadow: 0 0 18px rgba(46, 160, 115, .7);
}
/* 悬浮扫光 */
.hot::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(104deg, transparent 28%, rgba(255, 255, 255, .5) 48%, transparent 64%);
  transform: translateX(-110%);
}
.hot:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 160, 115, .38);
  box-shadow:
    0 30px 52px -30px rgba(46, 160, 115, .55),
    0 12px 28px -24px rgba(8, 70, 48, .5),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.hot:hover::before { opacity: 1; }
.hot:hover::after { animation: card-sheen 1.05s var(--ease); }
@keyframes card-sheen { to { transform: translateX(110%); } }
.hot:nth-child(1) { border-color: rgba(46, 160, 115, .3); }
.hot-rank {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px;
  background: rgba(26, 26, 46, .045);
  color: var(--faint); font-weight: 800; font-size: 13px;
  font-variant-numeric: tabular-nums;
  transition: background .3s, color .3s, box-shadow .3s;
}
.hot:nth-child(1) .hot-rank {
  background: linear-gradient(140deg, #35b083, #0f6b48); color: #fff;
  box-shadow: 0 8px 16px -8px rgba(46, 160, 115, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.hot:nth-child(2) .hot-rank { background: rgba(46, 160, 115, .16); color: var(--brand-ink); }
.hot:nth-child(3) .hot-rank { background: rgba(46, 160, 115, .10); color: var(--brand-ink); }
.hot-ico {
  position: relative; z-index: 1;
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 16px;
  display: grid; place-items: center; overflow: hidden;
  font-size: 10px; color: var(--faint);
  background: linear-gradient(145deg, #EFF9F4, #DFF1E8);
  box-shadow:
    0 0 0 1px rgba(46, 160, 115, .18),
    0 10px 20px -12px rgba(8, 70, 48, .6),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.hot:hover .hot-ico {
  transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(46, 160, 115, .4), 0 14px 26px -14px rgba(46, 160, 115, .75), inset 0 1px 0 rgba(255, 255, 255, .95);
}
/* 图片懒加载时的骨架 shimmer（图片加载完会盖住它，纯 CSS） */
.hot-ico::before, .card-ico::before, .ph-ico::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, .8) 48%, transparent 78%);
  transform: translateX(-110%);
  animation: sk-shimmer 1.5s var(--ease) infinite;
}
.hot-ico img, .card-ico img, .ph-ico img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hot-main { position: relative; z-index: 1; min-width: 0; flex: 1; }
.hot-title { font-size: 14px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-desc { font-size: 12px; color: var(--sub); line-height: 1.45; height: 1.45em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hot-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; font-size: 11.5px; color: var(--faint); }
.hot-meta b { color: var(--brand-ink); font-weight: 800; }
.hot-meta span { position: relative; }
.hot-meta span + span::before {
  content: ""; position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: rgba(26, 26, 46, .18);
}

/* ================= 卡片网格 ================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(276px, 100%), 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; gap: 12px;
  border-radius: var(--r-card); padding: 15px;
  cursor: pointer; overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, rgba(255, 255, 255, .94) 0%, rgba(247, 253, 250, .76) 100%);
  border: 1px solid rgba(46, 160, 115, .13);
  box-shadow:
    0 14px 28px -30px rgba(8, 70, 48, .8),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(104deg, transparent 28%, rgba(255, 255, 255, .5) 48%, transparent 64%);
  transform: translateX(-110%);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 160, 115, .38);
  box-shadow:
    0 30px 52px -30px rgba(46, 160, 115, .55),
    0 12px 28px -24px rgba(8, 70, 48, .5),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.card:hover::after { animation: card-sheen 1.05s var(--ease); }
/* visual.css 的 [data-reveal].v-in{transform:none} 与 .card:hover 同特异性且后加载，
   这里提高一级特异性，保证「入场结束后悬浮抬升」不被覆盖（hero 区的小卡片同理） */
.grid .card:hover { transform: translateY(-4px); }
.hot-grid .hot:hover { transform: translateY(-4px); }
.card-ico {
  position: relative; z-index: 1;
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  font-size: 10px; color: var(--faint);
  background: linear-gradient(145deg, #EFF9F4, #DFF1E8);
  box-shadow:
    0 0 0 1px rgba(46, 160, 115, .16),
    0 10px 20px -12px rgba(8, 70, 48, .55),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.card:hover .card-ico {
  transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(46, 160, 115, .38), 0 14px 26px -14px rgba(46, 160, 115, .7), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.card-main { position: relative; z-index: 1; min-width: 0; flex: 1; }
.card-title { font-size: 13.5px; font-weight: 700; line-height: 1.35; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-desc { font-size: 12px; color: var(--sub); line-height: 1.5; height: 3em; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; font-size: 11px; color: var(--faint); align-items: center; }
.chip {
  padding: 2px 9px; border-radius: 999px;
  background: rgba(26, 26, 46, .045); color: var(--sub); font-size: 11px;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.chip.ld {
  background: rgba(46, 160, 115, .10); color: var(--brand-ink); font-weight: 700;
  border-color: rgba(46, 160, 115, .18);
}
.chip.type {
  background: linear-gradient(135deg, rgba(46, 160, 115, .18), rgba(46, 160, 115, .08));
  color: var(--brand-ink); font-weight: 800;
  border-color: rgba(46, 160, 115, .22);
}
.chip.warn { background: rgba(232, 163, 61, .14); color: #8A5A12; border-color: rgba(232, 163, 61, .3); }
.card:hover .chip.ld, .hot:hover .chip.ld { background: rgba(46, 160, 115, .16); border-color: rgba(46, 160, 115, .3); }

.more { display: flex; justify-content: center; margin-top: 20px; }

/* 骨架屏（列表/热门加载中） */
.sk {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(46, 160, 115, .1);
  border-radius: 20px; height: 86px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(46, 160, 115, .13) 46%, rgba(255, 255, 255, .6) 58%, transparent 82%);
  transform: translateX(-100%);
  animation: sk-shimmer 1.4s var(--ease) infinite;
}
@keyframes sk-shimmer { to { transform: translateX(110%); } }

/* ================= CurseForge 说明卡 ================= */
.cf-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .8));
  border: 1px solid rgba(46, 160, 115, .16);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 28px; max-width: 820px; margin: 22px auto;
}
.cf-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #2ea073, #7fe3bc 46%, #0d6346);
  opacity: .85;
}
.cf-card h2 { font-size: 18px; margin-bottom: 12px; }
.cf-lead { font-size: 14px; color: var(--ink); margin: 0 0 10px; }
.cf-note {
  font-size: 13px; color: var(--sub);
  background: rgba(46, 160, 115, .07); border: 1px solid rgba(46, 160, 115, .12);
  border-radius: 12px; padding: 10px 14px; margin: 0 0 18px;
}
.cf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cf-tips { margin: 0; padding-left: 18px; font-size: 13px; color: var(--sub); }
.cf-tips li { margin: 4px 0; }

/* ================= 页脚 ================= */
.foot {
  margin-top: 44px; padding-top: 18px;
  border-top: 1px solid rgba(46, 160, 115, .14);
  font-size: 12px; color: var(--faint);
}
.foot p { margin: 4px 0; }
.foot a { color: var(--brand-ink); }

/* 卡片里的标题/简介是 <span>，必须显式块级化，否则 nowrap 的内联文本会把整页撑宽（手机端整页横滑的根因） */
.hot, .card { min-width: 0; }
.hot > *, .card > * { min-width: 0; }
.hot-main, .hot-title, .hot-desc,
.card-main, .card-title, .card-desc,
.ph-t, .ph-d { display: block; min-width: 0; }
.hot-main, .card-main { overflow: hidden; }
.hot-title, .hot-desc, .card-title, .card-desc { overflow: hidden; text-overflow: ellipsis; }

/* 中文小字（英文名一行 + 中文一行，不抢眼、不占位） */
.zh-line {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.hot-zh { font-size: 11px; margin-top: 0; }
.ph-zh { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.ph-desc-zh { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* 详情里的 markdown 表格可能很宽：自己横滑，别把弹层/整页撑开 */
.md table { display: block; max-width: 100%; overflow-x: auto; }
.md pre { max-width: 100%; }

/* 目录条是指定允许横滑的区域 */
.cats { touch-action: pan-x; -webkit-overflow-scrolling: touch; }

/* ================= 详情弹层（玻璃 + 顶栏渐变） ================= */
.mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(7, 38, 27, .46);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  backdrop-filter: blur(8px) saturate(1.15);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 16px 40px; overflow: auto;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: relative; width: min(940px, 100%);
  border-radius: 26px;
  padding: 0 30px 34px;
  overflow: hidden; isolation: isolate;
  background: linear-gradient(172deg, rgba(255, 255, 255, .97) 0%, rgba(247, 253, 250, .93) 52%, rgba(240, 251, 246, .9) 100%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow:
    0 50px 110px -45px rgba(4, 40, 26, .6),
    0 0 0 1px rgba(46, 160, 115, .14),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  backdrop-filter: blur(26px) saturate(1.3);
  animation: rise .26s var(--ease);
}
@keyframes rise { from { transform: translateY(14px) scale(.995); opacity: .6; } to { transform: none; opacity: 1; } }
/* 顶栏渐变光带 */
.sheet::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 200px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(110% 100% at 14% 0%, rgba(46, 160, 115, .22), transparent 60%),
    radial-gradient(90% 90% at 92% 0%, rgba(84, 205, 158, .18), transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
}
/* 顶部一条渐变高光 */
.sheet::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, rgba(46, 160, 115, .9), rgba(127, 227, 188, .95) 46%, rgba(13, 99, 70, .9));
}
.sheet > #sheet-body { position: relative; z-index: 1; }
.sheet-x {
  position: absolute; top: 16px; right: 18px; z-index: 4;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(46, 160, 115, .2);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--sub); font-size: 19px; line-height: 1; cursor: pointer;
  box-shadow: 0 8px 18px -14px rgba(8, 70, 48, .7), inset 0 1px 0 #fff;
  transition: transform .28s var(--ease), background .28s, color .28s, box-shadow .28s;
}
.sheet-x:hover {
  color: #fff; background: linear-gradient(135deg, #1a8a5e, #0c5f43);
  border-color: transparent; transform: rotate(90deg);
  box-shadow: 0 12px 26px -12px rgba(46, 160, 115, .9);
}

/* 弹层不要沿用通用入场的长延迟（--v-delay 最多 280ms + .6s）：点开立刻出现，保持「快速弹起」 */
#mask .sheet[data-reveal] {
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  transition-delay: 0ms;
}

.ph { display: flex; gap: 16px; align-items: flex-start; margin: 0 -30px 18px; padding: 30px 78px 18px 30px; }
.ph-ico {
  position: relative;
  width: 82px; height: 82px; flex: 0 0 82px; border-radius: 22px;
  overflow: hidden; display: grid; place-items: center;
  color: var(--faint); font-size: 11px;
  background: linear-gradient(145deg, #EFF9F4, #DFF1E8);
  box-shadow:
    0 0 0 1px rgba(46, 160, 115, .2),
    0 16px 30px -16px rgba(8, 70, 48, .7),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
.ph-t { min-width: 0; flex: 1; }
.ph-t h2 { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; }
.ph-d { font-size: 12.5px; color: var(--sub); margin-top: 5px; }
.ph-d a { color: var(--brand-ink); font-weight: 600; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.ph-meta .chip { padding: 3px 10px; }
.ph-meta .chip.ld { background: rgba(46, 160, 115, .12); }

/* tab 胶囊 */
.tabs {
  display: inline-flex; gap: 4px; max-width: 100%;
  padding: 4px; margin: 2px 0 18px;
  border-radius: 999px;
  background: rgba(46, 160, 115, .07);
  border: 1px solid rgba(46, 160, 115, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 0; background: transparent; padding: 8px 15px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--sub);
  border-radius: 999px; white-space: nowrap;
  transition: color .26s var(--ease), background .26s var(--ease), box-shadow .26s var(--ease);
}
.tabs button:hover { color: var(--brand-ink); background: rgba(255, 255, 255, .8); }
.tabs button.on {
  color: #fff;
  background: linear-gradient(135deg, #1a8a5e, #0c5f43);
  box-shadow:
    0 10px 20px -12px rgba(46, 160, 115, .9),
    inset 0 1px 0 rgba(255, 255, 255, .25);
}

.md { font-size: 13.5px; line-height: 1.8; color: var(--ink); word-break: break-word; }
.md h1, .md h2, .md h3 { margin: 20px 0 8px; font-size: 15px; position: relative; }
.md h1 { font-size: 17px; }
.md h2 { padding-left: 11px; }
.md h2::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 3px; height: .95em; border-radius: 2px;
  background: linear-gradient(180deg, #7fe3bc, #2ea073 50%, #0d6346);
  box-shadow: 0 0 10px rgba(46, 160, 115, .5);
}
.md p { margin: 8px 0; }
.md ul, .md ol { padding-left: 22px; margin: 8px 0; }
.md li { margin: 3px 0; }
.md a { color: var(--brand-ink); font-weight: 600; }
.md code {
  background: rgba(46, 160, 115, .09); border: 1px solid rgba(46, 160, 115, .14);
  border-radius: 6px; padding: 1px 6px; font-size: 12.5px; color: var(--brand-ink);
}
.md pre {
  background: rgba(9, 46, 33, .94); color: #D9F5E9;
  border-radius: 14px; padding: 14px 16px; overflow: auto;
  box-shadow: 0 16px 34px -24px rgba(4, 40, 26, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.md pre code { background: transparent; border: 0; color: inherit; padding: 0; }
.md img { max-width: 100%; border-radius: 14px; }
.md blockquote {
  margin: 10px 0; padding: 8px 16px;
  border-left: 3px solid var(--brand);
  background: rgba(46, 160, 115, .06);
  border-radius: 0 12px 12px 0;
  color: var(--sub);
}
.md table { border-collapse: collapse; width: 100%; font-size: 12.5px; border-radius: 12px; overflow: hidden; }
.md th, .md td { border: 1px solid rgba(46, 160, 115, .16); padding: 7px 11px; text-align: left; }
.md table tr:first-child td { background: rgba(46, 160, 115, .08); font-weight: 700; color: var(--brand-ink); }
.md hr { border: 0; border-top: 1px solid rgba(46, 160, 115, .16); margin: 16px 0; }

.vlist { display: flex; flex-direction: column; gap: 10px; }
.vrow {
  position: relative;
  border: 1px solid rgba(46, 160, 115, .14);
  border-radius: 16px; padding: 13px 15px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
  transition: border-color .28s, box-shadow .28s, transform .28s var(--ease);
}
.vrow:hover {
  border-color: rgba(46, 160, 115, .36);
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -24px rgba(46, 160, 115, .6), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.vrow-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vrow-name { font-weight: 700; font-size: 13.5px; }
.vrow-meta { font-size: 12px; color: var(--faint); }
.vrow-act { margin-left: auto; display: flex; gap: 8px; }
.vrow-act .btn-primary, .vrow-act .btn-ghost { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }
.vrow-deps { margin-top: 8px; font-size: 12px; color: var(--sub); }
.dep {
  display: inline-flex; align-items: center; gap: 5px; margin: 3px 8px 3px 0;
  padding: 2px 10px;
  background: rgba(46, 160, 115, .07);
  border: 1px solid rgba(46, 160, 115, .14);
  border-radius: 999px;
}
.dep b { color: var(--brand-ink); font-weight: 700; }
.dep a { color: var(--brand-ink); font-weight: 600; }
.zh-intro { color: var(--ink); }

/* ================= 响应式 ================= */
@media (max-width: 900px) {
  .hero { padding: 30px 24px 26px; border-radius: 24px; }
  .hero h1 { font-size: 26px; }
  .hot-grid { grid-template-columns: minmax(0, 1fr); }
  .filters { margin-left: 0; width: 100%; }
  .ph { margin-left: -24px; margin-right: -24px; padding: 26px 64px 16px 24px; }
  .sheet { padding: 0 24px 30px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 12px 40px; }
  .top { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .brand-txt i { display: none; }
  .search-wrap { order: 3; flex: 1 0 100%; max-width: none; }
  .src-tabs { margin-left: auto; }
  .cats { top: 0; padding: 10px 0; background: linear-gradient(180deg, rgba(247, 251, 249, .97) 0%, rgba(247, 251, 249, .85) 70%, rgba(247, 251, 249, 0) 100%); }
  /* 手机端：胶囊条可横滑，右缘渐隐提示还有分类 */
  .cats {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), rgba(0, 0, 0, 0) 100%);
  }
  .cat { padding: 8px 14px; font-size: 13px; }
  .hero { margin-top: 8px; padding: 26px 20px 22px; border-radius: 22px; }
  .hero h1 { font-size: 21px; line-height: 1.4; }
  .hero-sub { font-size: 12.5px; }
  .hero-kicker { font-size: 10px; letter-spacing: .12em; padding: 4px 11px; }
  .hero-quick { gap: 7px; margin-top: 16px; }
  .hero-quick button { padding: 6px 12px; font-size: 12px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hot-grid { gap: 12px; }
  .hot { padding: 12px 13px; border-radius: 18px; }
  .hot-ico { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
  .hot-rank { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; border-radius: 8px; }
  .hot-title { font-size: 13.5px; }
  .fld { flex: 1 1 calc(50% - 8px); }
  .fld select { max-width: none; flex: 1; }
  .sheet { padding: 0 16px 26px; border-radius: 20px; }
  .mask { padding: 2vh 8px 30px; }
  .ph { margin-left: -16px; margin-right: -16px; padding: 22px 56px 14px 16px; gap: 12px; }
  .ph-ico { width: 58px; height: 58px; flex-basis: 58px; border-radius: 16px; }
  .ph-t h2 { font-size: 17px; }
  .sheet-x { top: 12px; right: 12px; width: 32px; height: 32px; }
  .vrow-act { margin-left: 0; width: 100%; }
  .vrow-act .btn-primary, .vrow-act .btn-ghost { flex: 1; }
  .md pre { padding: 12px; font-size: 12px; }
}

@media (max-width: 430px) {
  .hero { padding: 22px 16px 20px; }
  .hero h1 { font-size: 19px; }
  .block-hd h2 { font-size: 16px; }
}

/* 降低模糊强度（手机 / 低性能）：保证滚动流畅 */
@media (max-width: 700px) {
  .hot, .card, .fld, .cat, .btn-ghost, .src-tabs, .cf-card, .sheet, .mask {
    -webkit-backdrop-filter: blur(9px) saturate(1.15);
    backdrop-filter: blur(9px) saturate(1.15);
  }
  .hero::after { display: none; }
  .hero-glow { filter: blur(40px); opacity: .5; }
}

/* ================= 减弱动效偏好 ================= */
@media (prefers-reduced-motion: reduce) {
  .hero, .hero h1, .hero h1 span, .hero-quick button, .hot, .cat.on,
  .hero::after, .hero-glow, .hero-kicker::before, .hot-ico::before, .card-ico::before, .ph-ico::before {
    animation: none !important;
  }
  .mask, .sheet { animation: none !important; }
  .search-wrap:focus-within::after { animation: none; }
  .hot, .card, .cat, .hero-quick button, .fld, .btn-primary, .btn-ghost, .vrow, .src-tab, .sheet-x {
    transition: none !important;
  }
  .hot:hover, .card:hover, .cat:hover, .hero-quick button:hover,
  .hot:hover .hot-ico, .card:hover .card-ico, .vrow:hover, .sheet-x:hover {
    transform: none !important;
  }
  .hot:hover::after, .card:hover::after, #sheet-body .btn-primary:hover::after { animation: none !important; }
  .sk::after { animation: none; }
  #mask .sheet[data-reveal] { transition: none !important; }
}

/* 整合包创作入口（hero 下方，绿色主题） */
.hero-cta {
  display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 11px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #2ea073, #0f6b48); color: #fff; text-decoration: none;
  box-shadow: 0 12px 24px -12px rgba(46, 160, 115, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
  max-width: 100%;
}
.hero-cta span { font-size: 14px; font-weight: 700; }
.hero-cta em { font-size: 12px; font-style: normal; opacity: .88; }
.hero-cta:hover { filter: brightness(1.05); }
@media (max-width: 520px) { .hero-cta em { display: none; } }
