/* Design Console 模板商店 · 站点样式（单文件，无构建）
 * 设计基调：浅色电商、近黑主按钮、暖橙点缀；不使用紫蓝渐变。
 */

:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #14161a;
  --ink-2: #4b5563;
  --ink-3: #8a94a3;
  --line: #e7e9ee;
  --line-strong: #d7dbe3;
  --accent: #e8590c;
  --accent-weak: #fff1e8;
  --ok: #0f766e;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 16px 36px rgba(16, 24, 40, .10);
  /* 图片流的占位色与两条缓动：全站只用 out（进场/交互）与 soft（减弱动效）两条 */
  --ph: color-mix(in srgb, var(--accent) 8%, #fff);
  --ph-line: color-mix(in srgb, var(--accent) 15%, #fff);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.mut, .muted { color: var(--ink-3); }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
/* 品牌标记用官网同一份 logo.svg，不画文字块 */
.logo { width: 30px; height: 30px; flex: none; display: block; }
.brand-t { font-weight: 650; letter-spacing: .2px; }
.brand.small .logo { width: 24px; height: 24px; }

.search { flex: 1; display: flex; max-width: 520px; }
.search input {
  flex: 1; min-width: 0; height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-right: 0;
  border-radius: 10px 0 0 10px; background: #fff; font: inherit; color: var(--ink);
  outline: none;
}
.search input:focus { border-color: var(--ink); }
.search button {
  height: 40px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 0 10px 10px 0;
  background: var(--ink); color: #fff; font-weight: 600;
}

.links { display: flex; align-items: center; gap: 18px; flex: none; font-size: 14px; }
.links a { color: var(--ink-2); }
.links a:hover { color: var(--ink); }
.links .cta {
  padding: 8px 14px; border-radius: 9px; background: var(--ink); color: #fff;
  font-weight: 600;
}
.links .cta:hover { background: #000; color: #fff; }
/* 登录后的账号名：要一眼看出来「已经登录的是谁」，又不能把导航挤散 */
.links .who {
  max-width: 150px; padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--teal, #4fd1c5) 12%, transparent);
  color: var(--ink); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.links .who:hover { color: var(--ink); background: color-mix(in srgb, var(--teal, #4fd1c5) 20%, transparent); }
/* 汉堡菜单按钮与面板里的「下载客户端」只在窄屏出现 */
.nav-burger { display: none; }
.sheet-only { display: none; }

/* ---------- 布局 ---------- */
.main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; }

/* ---------- Hero ---------- */
.hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(1200px 320px at 12% -40%, #fff6ef 0%, rgba(255, 246, 239, 0) 60%),
    linear-gradient(#fff, #fff);
  padding: 56px 48px 44px;
  box-shadow: var(--shadow);
}
.hero-in { max-width: 680px; }
.eyebrow {
  font-size: 11px; letter-spacing: .22em; color: var(--accent);
  font-weight: 700; margin: 0 0 12px;
}
.hero h1 {
  margin: 0 0 12px; font-size: 40px; line-height: 1.15; letter-spacing: -.5px;
  font-weight: 700;
}
.hero .sub { margin: 0 0 24px; color: var(--ink-2); font-size: 16px; max-width: 560px; }
.hero-search { display: flex; max-width: 520px; }
.hero-search input {
  flex: 1; height: 48px; padding: 0 16px; border: 1px solid var(--line-strong);
  border-right: 0; border-radius: 12px 0 0 12px; font: inherit; outline: none; background: #fff;
}
.hero-search input:focus { border-color: var(--ink); }
.hero-search button {
  height: 48px; padding: 0 24px; border: 0; border-radius: 0 12px 12px 0;
  background: var(--ink); color: #fff; font-weight: 650;
}
.hero-stat { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- 筛选 ---------- */
.filters {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 28px 4px 18px; flex-wrap: wrap;
}
.cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat {
  padding: 7px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}
.cat:hover { border-color: var(--line-strong); color: var(--ink); }
.cat.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.sorts { display: flex; gap: 4px; font-size: 13px; flex-wrap: wrap; }
.sorts a { padding: 6px 10px; border-radius: 8px; color: var(--ink-3); }
.sorts a.on { color: var(--ink); background: #fff; border: 1px solid var(--line); font-weight: 600; }

.list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 8px 4px 16px; flex-wrap: wrap;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--ink-2);
}
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-weak); font-weight: 600; }

/* ---------- 区块 ---------- */
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 20px; letter-spacing: -.2px; }
.more { font-size: 13px; color: var(--ink-3); }
.more:hover { color: var(--accent); }

/* ---------- 卡片（瀑布流） ----------
 * 排布交给 store/assets/masonry.js：最短列优先的绝对定位。
 * 这里只定义外观与占位；无 JS 时退化成等宽网格，同样不使用 multi-column
 * （multi-column 按列优先填充，会打乱阅读顺序，单项也无法独立动画）。 */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px; margin: 0;
}
.grid.is-wall { display: block; position: relative; }
.grid.is-wall .card { position: absolute; top: 0; left: 0; margin: 0; will-change: transform; }
.grid.is-virtual .card { will-change: auto; }

.card {
  background: var(--card); border: 1px solid #eef0f4; border-radius: 12px;
  overflow: hidden; display: block;
  transition: translate .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s var(--ease-out);
}
.card:hover { translate: 0 -6px; box-shadow: var(--shadow-hover); border-color: #e2e6ec; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 新项入场：只动 translate 与 opacity（定位用的 transform 由排布层持有，二者互不覆盖） */
@keyframes wall-in {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
.card.is-new { animation: wall-in .3s var(--ease-out) both; }

/* 封面：比例由卡片的 --ar 预先声明（取自图片真实宽高比），图片加载前后高度恒定，不产生撑开跳动。
   contain 保证任何情况下都不裁掉画面内容；比例一致时与 cover 视觉等价，比例有微小偏差时只在边上留一圈占位色。 */
.thumb {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ar, 4 / 5);
  background: var(--ph);
}
.thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transition: transform .6s var(--ease-out);
}
.card:hover .thumb img { transform: scale(1.05); }
.thumb .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 34px; font-weight: 700; color: #bdb6ae; letter-spacing: 1px;
}

/* ---------- 图片骨架与淡入 ----------
 * 占位层由容器类驱动：带 is-sk 时有；图片 onload 加上 is-ready 后淡出。
 * 底下一层纯色兜底（::before），上面扫一道白色高光（::after）——高光只动 transform，
 * 走合成层，不逐帧重绘整个封面；纯色兜底也保证扫到边界时不会露出容器的白底。 */
@keyframes dc-sheen { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
/* 小封面容器原本是 static，骨架层要相对它定位 */
.ri-cover, .co-cover { position: relative; }
.thumb.is-sk::before,
.stage.is-sk::before,
.tn.is-sk::before,
.co-cover.is-sk::before,
.ri-cover.is-sk::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: #ece7e0;
  transition: opacity .34s var(--ease-out);
}
.thumb.is-sk::after,
.stage.is-sk::after,
.tn.is-sk::after,
.co-cover.is-sk::after,
.ri-cover.is-sk::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 70%;
  pointer-events: none; z-index: 2; will-change: transform;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, .98) 50%, rgba(255, 255, 255, 0) 92%);
  animation: dc-sheen 1.3s linear infinite;
  transition: opacity .34s var(--ease-out);
}
.thumb.is-ready::before,
.thumb.is-ready::after,
.stage.is-ready::before,
.stage.is-ready::after,
.tn.is-ready::before,
.tn.is-ready::after,
.co-cover.is-ready::before,
.co-cover.is-ready::after,
.ri-cover.is-ready::before,
.ri-cover.is-ready::after { opacity: 0; }
/* 加载失败：撤掉骨架，留一块中性底，不让微光一直转 */
.thumb.is-error::before,
.thumb.is-error::after,
.stage.is-error::before,
.stage.is-error::after,
.tn.is-error::before,
.tn.is-error::after,
.co-cover.is-error::before,
.co-cover.is-error::after,
.ri-cover.is-error::before,
.ri-cover.is-error::after { display: none; }
/* 相邻卡片错开相位：一屏十几张同时起扫会像整块闪，错开后才知道是「各自在加载」 */
.card:nth-child(3n) .thumb.is-sk::after { animation-delay: -.34s; }
.card:nth-child(3n + 1) .thumb.is-sk::after { animation-delay: -.68s; }

.thumb img,
.stage img,
.tn img,
.ri-cover img,
.co-cover img { opacity: 0; transition: opacity .34s var(--ease-out), transform .6s var(--ease-out); }
/* 揭幕靠骨架层淡出，图片本身瞬间到满不透明：两边同时淡会在半程叠出「浅一块」的白雾 */
.thumb.is-ready img,
.stage.is-ready img,
.tn.is-ready img,
.ri-cover.is-ready img,
.co-cover.is-ready img { opacity: 1; transition: transform .6s var(--ease-out); }
.thumb.is-ready::after,
.stage.is-ready::after,
.tn.is-ready::after,
.co-cover.is-ready::after,
.ri-cover.is-ready::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .thumb.is-sk::after,
  .stage.is-sk::after,
  .tn.is-sk::after,
  .co-cover.is-sk::after,
  .ri-cover.is-sk::after { animation: none; opacity: 0; }
  .thumb img, .stage img, .tn img, .ri-cover img, .co-cover img { transition: none; }
}

/* 骨架卡：与真实卡同档比例占位，不做整屏 shimmer */
.card.skeleton { pointer-events: none; }
.card.skeleton .body { gap: 10px; }
.sk-line { display: block; height: 10px; border-radius: 6px; background: var(--ph-line); }
.sk-line.short { width: 58%; }

/* 到底提示：明确终止，不无限空转 */
.wall-end { margin: 20px 0 6px; text-align: center; font-size: 13px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { translate: none; box-shadow: none; border-color: #eef0f4; }
  .card:hover .thumb img { transform: none; }
  .card.is-new { animation-name: wall-fade; animation-duration: .12s; animation-timing-function: var(--ease-soft); }
  .card.is-new.skeleton { animation: none; }
}

/* reduced-motion 下的纯淡入 */
@keyframes wall-fade { from { opacity: 0; } to { opacity: 1; } }
.badge.free {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 700;
  background: var(--ok); color: #fff;
}
.body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.body h3 {
  margin: 0; font-size: 14px; font-weight: 650; letter-spacing: -.1px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.desc {
  margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.price.is-free { color: var(--ok); }
.row .mut { font-size: 12px; }

.empty {
  padding: 40px 24px; text-align: center; color: var(--ink-2);
  background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty p { margin: 10px 0 16px; font-size: 14px; line-height: 1.6; }
.empty-ic {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto;
  border-radius: 50%; background: #f4f6f9; color: var(--ink-3);
}
/* 紧凑空态：一行说明 + 右侧入口，用于页面底部的次要区块 */
.empty.slim { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-align: left; }
.empty.slim .empty-ic { width: 34px; height: 34px; margin: 0; flex: none; }
.empty.slim p { margin: 0; flex: 1; font-size: 13.5px; }
.empty.slim .btn-ghost { height: 34px; flex: none; }
/* 次级按钮：白底描边，用于空态 CTA 与页头操作，主按钮仍是近黑那个 */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: border-color .16s var(--ease-soft), background .16s var(--ease-soft);
}
.btn-ghost:hover { border-color: var(--ink); background: #fafafa; }
.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px;
  border-radius: 10px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
}
.btn-dark:hover { background: #000; }

/* 空账号引导：三块内容都为空时只给一张卡，不摆三张空盒子 */
.me-blank {
  margin-top: 22px; padding: 46px 32px 44px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.me-blank .empty-ic { width: 52px; height: 52px; }
.me-blank h2 { margin: 16px 0 8px; font-size: 20px; letter-spacing: -.4px; }
.me-blank p { max-width: 430px; margin: 0 auto; font-size: 13.5px; line-height: 1.7; }
.me-blank-a { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* 计数 pill：浏览 / 下载 / 收藏 / 点赞 */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 9px; border-radius: 7px; background: #f4f6f9;
  font-size: 11.5px; line-height: 19px; color: var(--ink-2);
}
.pill b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.pill.is-zero b { color: var(--ink-3); font-weight: 600; }

/* ---------- 详情 ---------- */
.detail { padding-top: 20px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin: 8px 2px 20px; }
.crumbs a:hover { color: var(--ink); }

.detail-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: 32px; align-items: start; }

.gallery { min-width: 0; }
.stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}
.stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.stage-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 56px; font-weight: 700; color: #c3cad4;
  background: linear-gradient(135deg, #f2f5f8, #e6ebf1);
}
.strip { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.tn {
  flex: none; width: 92px; height: 60px; padding: 0; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.tn img { width: 100%; height: 100%; object-fit: cover; }
.tn.on { border-color: var(--ink); }

.preview-btn {
  display: flex; align-items: center; justify-content: center;
  margin-top: 14px; width: 100%; height: 46px; border-radius: 11px;
  border: 1px solid var(--ink); background: #fff; color: var(--ink);
  font: inherit; font-weight: 650; letter-spacing: .2px; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.preview-btn:hover { background: var(--ink); color: #fff; }

.buybox { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.buybox h1 { margin: 0; font-size: 26px; line-height: 1.25; letter-spacing: -.4px; }
.by { margin: 0; font-size: 13px; color: var(--ink-3); }
.price-row { display: flex; align-items: baseline; gap: 12px; }
.price-xl { font-size: 30px; font-weight: 700; letter-spacing: -.6px; }

/* 统计条：浏览 / 下载 / 收藏 / 点赞。数字用等宽数字位，切换时不抖 */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.stat { display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 10px 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.stat i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font: inherit; font-size: 13px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.act:hover { border-color: var(--ink-3); color: var(--ink); }
.act.on { border-color: var(--ink); color: var(--ink); background: var(--paper-2, #f6f4ef); }
.act.on svg { color: var(--ink); }
.act[disabled] { opacity: .55; cursor: default; }
.stat-line { margin-top: 2px; font-variant-numeric: tabular-nums; }
.buy {
  display: block; text-align: center; height: 50px; line-height: 50px;
  border-radius: 12px; background: var(--ink); color: #fff;
  font-weight: 650; font-size: 16px; border: 0;
  transition: background .15s ease, transform .15s ease;
}
.buy:hover { background: #000; }
.buy:active { transform: translateY(1px); }

.facts {
  list-style: none; margin: 0; padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  font-size: 13px;
}
.facts li { display: flex; justify-content: space-between; gap: 8px; }
.facts span { color: var(--ink-3); }
.facts b { font-weight: 600; }
.license-hint { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

.prose { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 860px; white-space: pre-wrap; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }

.vers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.vers li { display: flex; justify-content: space-between; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.vers span { color: var(--ink-3); }

/* ---------- 试看 ---------- */
.pnav {
  position: sticky; top: 0; z-index: 30; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.pnav-r { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.pnav .cta { padding: 7px 14px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 600; }
.pview { max-width: 1280px; margin: 0 auto; padding: 20px; }
.pview-imgs { display: flex; flex-direction: column; gap: 16px; }
.pview-imgs img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }

/* 完整交互试看：iframe 占满首屏 */
.pview.frame { max-width: none; padding: 0; }
.pv-frame {
  display: block; width: 100%; height: calc(100vh - 56px);
  border: 0; background: #fff;
}

/* ---------- 我的 ---------- */
.page-title { margin: 8px 0 6px; font-size: 28px; letter-spacing: -.6px; }
.list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
/* 作品行：封面 / 名称与元信息 / 四项统计 / 状态，统计各占一列便于纵向对比 */
.row-item {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto 64px auto;
  grid-template-areas: "cover main pills spark badge";
  align-items: center; column-gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  transition: border-color .18s var(--ease-soft), box-shadow .18s var(--ease-soft);
}
.row-item:hover { border-color: var(--line-strong); box-shadow: 0 2px 12px rgba(16, 24, 40, .05); }
.row-item[hidden] { display: none; }
/* 折叠：作品多时先露 8 行，按钮展开其余 */
.me-more {
  display: block; margin: 14px auto 0; height: 38px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: border-color .18s var(--ease-soft), color .18s var(--ease-soft), background .18s var(--ease-soft);
}
.me-more:hover { border-color: var(--ink); color: var(--ink); background: #fbfcfd; }
.ri-cover {
  grid-area: cover;
  width: 104px; height: 65px; border-radius: 8px; overflow: hidden; flex: none;
  background: #eceff3; display: grid; place-items: center;
}
.ri-cover img { width: 100%; height: 100%; object-fit: cover; }
.ri-cover .ph { color: #b9c1cc; font-weight: 700; }
.ri-main { grid-area: main; min-width: 0; }
.ri-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ri-main p { margin: 3px 0 0; font-size: 12px; }
.row-item .pills { grid-area: pills; margin: 0; justify-content: flex-end; }
/* 单模板近 7 天浏览：只显示有浏览的行，数字右对齐，列宽固定便于纵向扫读 */
.row-item .ri-week {
  grid-area: spark; justify-self: end; width: 64px; text-align: right;
  font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* 窄屏没有独立的近 7 天列，信息并进元信息行 */
.ri-meta-week { display: none; white-space: nowrap; }
.row-item .st, .row-item .dl, .row-item .st-quiet { grid-area: badge; justify-self: end; }
.st-quiet { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.dl {
  flex: none; height: 34px; padding: 0 16px; border-radius: 9px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px;
}
.dl:hover { background: #000; }

/* 页头：标题 + 账号摘要，发布入口收在右侧 */
.me-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.me-head .page-title { margin: 6px 0 6px; }
.me-sub { margin: 0; font-size: 13px; }

/* 数据概览：左四格总量，右近 7 天柱图，中间一条分隔线（不加卡片阴影叠层） */
.me-ov {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  padding: 20px 0; margin-top: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.ov-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ov-n { display: flex; flex-direction: column; gap: 3px; padding: 2px 20px; border-left: 1px solid var(--line); }
.ov-n:first-child { border-left: 0; }
.ov-v { font-size: 26px; font-weight: 700; letter-spacing: -.8px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ov-k { font-size: 12px; color: var(--ink-3); }
.ov-trend { display: flex; flex-direction: column; padding: 2px 20px 0; border-left: 1px solid var(--line); }
.ov-trend-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); }
.ov-trend-head b { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-bars { display: flex; align-items: flex-end; gap: 6px; height: 42px; margin-top: 8px; }
.ov-bar { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.ov-bar i {
  display: block; width: 100%; min-height: 3px; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(#f7bd9d, var(--accent));
  transition: filter .16s var(--ease-soft);
}
.ov-bar:hover i { filter: brightness(1.06); }
.ov-bar i.zero { background: var(--line-strong); }
.ov-days { display: flex; gap: 6px; margin-top: 6px; font-size: 10.5px; color: var(--ink-3); }
.ov-days span { flex: 1; text-align: center; white-space: nowrap; }
.ov-none { margin: 16px 0 6px; font-size: 12px; color: var(--ink-3); }
/* 转化率：四格下面一条细分隔线，和绝对值区分开 */
.ov-conv {
  grid-column: 1 / -1; margin: 14px 20px 0; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3);
}

.me-blk { margin-top: 34px; scroll-margin-top: 76px; }
/* 收益：余额 + 成交；余额是「能提的钱」，成交明细是「钱怎么来的」 */
.me-money .mm-card {
  display: flex; align-items: stretch; gap: 0; margin-top: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.blk-hint { font-size: 12px; color: var(--ink-3); text-align: right; }
.mm-bal {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  flex: none; padding: 18px 26px 18px 22px; border-right: 1px solid var(--line);
}
.mm-num { font-size: 26px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mm-k { font-size: 12px; color: var(--ink-3); }
.mm-side { flex: 1; min-width: 0; padding: 14px 20px 14px 22px; }
.mm-line { margin: 0; font-size: 13px; color: var(--ink-2); }
.mm-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mm-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.mm-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; font-size: 12.5px; color: var(--ink-2); }
.mm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-amt { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.mm-date { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.blk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.blk-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; letter-spacing: -.3px; }
.blk-n {
  padding: 1px 8px; border-radius: 999px; background: #eef1f5;
  font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.blk-link { font-size: 13px; color: var(--ink-2); }
.blk-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.blk-head .cta {
  padding: 8px 14px; border-radius: 9px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600;
}

/* 收藏：卡片网格（封面 16:10 + 名称 + 分类价格 + 浏览下载），右上角直接取消收藏 */
.fav-grid {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px;
}
.fav-grid[hidden] { display: none; }
.fav-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease-soft), box-shadow .2s var(--ease-soft), transform .2s var(--ease-out);
}
.fav-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
/* 收藏区排序：与首页排序条同一套药丸样式，放在区块标题下、卡片网格上 */
.fav-sorts { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0 0; font-size: 13px; }
.fav-sorts a { padding: 5px 10px; border-radius: 8px; border: 1px solid transparent; color: var(--ink-3); }
.fav-sorts a:hover { color: var(--ink-2); }
.fav-sorts a.on { color: var(--ink); background: #fff; border: 1px solid var(--line); font-weight: 600; }
.fav-card[hidden] { display: none; }

/* 收藏卡封面：撑满卡片宽度，不受作品行 104×65 / 移动端 76×48 的尺寸约束 */
.ri-cover.fc-shot {
  width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0;
}
.fc-shot img { object-position: top; transition: transform .5s var(--ease-out); }
.fav-card:hover .fc-shot img { transform: scale(1.035); }
.fc-heart {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink-2);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .16);
  transition: transform .16s var(--ease-out), color .16s var(--ease-soft), background .16s var(--ease-soft);
}
.fc-heart:hover { transform: scale(1.06); color: var(--accent); background: #fff; }
.fc-heart.is-busy { opacity: .5; pointer-events: none; }
.fc-body { padding: 11px 14px 13px; }
.fc-name {
  display: block; font-size: 14px; font-weight: 600; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fc-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 3px 0 0; font-size: 12px; color: var(--ink-3);
}
.fc-date { flex: none; font-variant-numeric: tabular-nums; }
.fav-card.is-leaving { opacity: 0; transform: scale(.97); transition: opacity .18s var(--ease-soft), transform .18s var(--ease-soft); }
.me-tip { margin: 12px 0 0; font-size: 12px; }

/* 轻提示：收藏 / 点赞成功的确认，不挡住详情页操作区 */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 12px;
  background: rgba(20, 22, 26, .92); color: #fff; font-size: 13.5px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, .22);
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #ffd9c2; font-weight: 600; white-space: nowrap; }
.toast a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 通知：顶栏铃铛 + 面板，以及 /me 的通知区 ---------- */
.bell { position: relative; flex: none; }
.bell-btn {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink-2); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.bell-btn:hover, .bell.open .bell-btn { color: var(--ink); border-color: var(--ink-3); }
.bell-dot {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 9px;
  background: #f0503a; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px #fff; font-variant-numeric: tabular-nums;
}
.bell-dot[hidden] { display: none; }
.bell-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 320;
  width: 360px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .16); overflow: hidden;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .14s var(--ease-out), transform .14s var(--ease-out);
}
.bell-pop[hidden] { display: none; }
.bell.open .bell-pop { opacity: 1; transform: none; pointer-events: auto; }
.bell-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 10px; border-bottom: 1px solid var(--line);
}
.bell-head b { font-size: 13.5px; letter-spacing: -.1px; }
.bell-all { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.bell-all:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bell-list { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.bell-none { margin: 0; padding: 26px 14px; text-align: center; font-size: 13px; color: var(--ink-3); }
.bell-foot {
  display: block; padding: 10px 14px; border-top: 1px solid var(--line);
  text-align: center; font-size: 12.5px; color: var(--ink-2); background: #fbfcfd;
}
.bell-foot:hover { color: var(--ink); background: #f6f8fa; }

.nb-row {
  display: grid; grid-template-columns: 6px minmax(0, 1fr); align-items: start; gap: 2px 12px;
  padding: 11px 14px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; line-height: 1.55;
}
.nb-row:first-child { border-top: 0; }
.nb-row:hover { background: #fbfcfd; }
.nb-dot { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: transparent; }
.nb-row.is-new .nb-dot { background: #f0503a; }
/* 成交：绿点是收入信号，跟收藏/点赞的红点区分开 */
.nb-row.is-sale.is-new .nb-dot { background: #16a34a; }
.nb-t { overflow-wrap: anywhere; }
.nb-row.is-new .nb-t { color: var(--ink); }
.nb-when { grid-column: 2; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nb-read { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.nb-read:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.me-inbox .nb-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
/* 首屏之后的条目先不进视觉流，点「加载更多」逐批放出 */
.nb-row.nb-late, .nb-row[hidden] { display: none; }

@media (max-width: 820px) {
  /* 移动端顶栏是两行，面板挂到整条顶栏下面，不压在搜索框上 */
  .bell-pop { position: fixed; top: 108px; left: 12px; right: 12px; width: auto; max-width: none; }
  .bell-list { max-height: 56vh; }
}
@media (max-width: 520px) {
  .nb-row { padding: 10px 14px 11px; }
}

@media (max-width: 860px) {
  .me-ov { grid-template-columns: 1fr; padding: 18px 0; }
  .ov-n { padding: 2px 14px; }
  .ov-trend { margin-top: 16px; padding: 14px 20px 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 1180px) {
  /* 窄屏行内不再放迷你柱，把空间让给统计与状态 */
  .row-item { grid-template-columns: 104px minmax(0, 1fr) auto auto; grid-template-areas: "cover main pills badge"; }
  .row-item .ri-week { display: none; }
  .ri-meta-week { display: inline; }
}
@media (max-width: 820px) {
  /* 移动端顶栏是两行（品牌行 + 搜索行），锚点要留够高度，否则区块标题被压住 */
  .me-blk { scroll-margin-top: 108px; }
  .row-item {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas: "cover main badge" "cover pills pills";
    row-gap: 6px; padding: 11px 13px;
  }
  .ri-cover { width: 76px; height: 48px; align-self: start; }
  .ri-meta-week { display: block; margin-top: 2px; }
  .ri-meta-sep { display: none; }
  .row-item .pills { justify-content: flex-start; }
  /* 收益卡：窄屏上下叠，余额横向铺满 */
  .me-money .mm-card { flex-direction: column; }
  .mm-bal { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px; padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mm-num { font-size: 22px; }
  .mm-side { padding: 12px 18px 14px; }
}
@media (max-width: 520px) {
  .ov-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .ov-n:nth-child(3) { border-left: 0; }
  .fav-grid { grid-template-columns: 1fr; }
  /* 旧的一行式顶栏在这里藏掉了「热销/整站」；现在 ≤1060 全是竖排面板，不再需要，
   * 藏掉只会让面板少两项入口。 */
  .toast { left: 12px; right: 12px; bottom: 16px; transform: translateY(12px); justify-content: space-between; }
  .toast.on { transform: translateY(0); }
}

/* ---------- 登录 ---------- */
.auth { display: grid; place-items: center; padding-top: 56px; }
.authcard {
  width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.authcard h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.3px; }
.authcard .muted { margin: 0 0 20px; font-size: 13px; }
.authcard label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--ink-2); }
.authcard label input {
  display: block; width: 100%; margin-top: 6px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; outline: none;
}
.authcard label input:focus { border-color: var(--ink); }
.authcard .buy { margin-top: 6px; width: 100%; }
.err { margin: 0 0 10px; color: #b42318; font-size: 13px; }
.switch { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.switch a { color: var(--ink); font-weight: 600; }

/* ---------- 结算 ---------- */
.co {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px;
  align-items: start; margin: 18px 0 40px;
}
.co-item {
  display: flex; gap: 18px; padding: 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.co-cover {
  width: 220px; flex: none; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #f1f3f7, #e5e8ef); display: grid; place-items: center;
}
.co-cover img { width: 100%; height: 100%; object-fit: cover; }
.co-cover .ph { font-size: 40px; font-weight: 700; color: #aeb6c4; }
.co-item-m h2 { margin: 0 0 6px; font-size: 20px; }
.co-item-m .mut { margin: 4px 0; font-size: 13px; }

.co-side {
  padding: 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); position: sticky; top: 88px;
}
.co-line { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.co-line:first-child b { font-size: 22px; color: var(--accent); }
.co-side h3 { margin: 16px 0 10px; font-size: 14px; font-weight: 600; }
.co-ch { display: grid; gap: 8px; }
.ch {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.ch:hover { border-color: var(--ink); }
.ch:has(input:checked) { border-color: var(--ink); background: #fafafa; }
.ch.off { opacity: .55; cursor: not-allowed; }
.ch input { margin: 0; }
.ch-n { font-size: 14px; }
.ch-note { font-size: 12px; color: var(--ink-3); }

.qr { margin: 14px 0; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; background: #fbfbfc; }
.qr-img img { margin: 0 auto; border-radius: 6px; }
.qr .mut { margin: 8px 0 0; font-size: 12px; }

.tip { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.55; }
#paygo { width: 100%; margin-top: 14px; }
.err { color: #b42318; font-size: 13px; margin: 8px 0; }

@media (max-width: 860px) {
  .co { grid-template-columns: 1fr; }
  .co-item { flex-direction: column; }
  .co-cover { width: 100%; }
  .co-side { position: static; }
}

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.foot-in {
  max-width: 1200px; margin: 0 auto; padding: 32px 24px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.foot-l { max-width: 420px; }
.foot-l p { margin: 10px 0 0; font-size: 13px; line-height: 1.6; }
.foot-r { display: flex; gap: 20px; align-items: center; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.foot-r a:hover { color: var(--ink); }

/* ---------- 响应式 ----------
 * 图片流的列数由 masonry.js 按容器宽度决定（<480 一列｜480–767 两列｜768–1023 两列｜
 * 1024–1279 三列｜1280–1679 四列｜≥1680 五列），这里只处理非 JS 场景的间距。 */
@media (max-width: 1080px) {
  .detail-top { grid-template-columns: 1fr; }
  .buybox { position: static; }
}
/* 顶栏的完整一行（品牌 + 搜索 + 7 个入口 + 下载 + 铃铛 + 语言）实测要 1258px，
 * 正文容器只有 1152px，所以分三档：够宽时单行、中等宽度把搜索移到第二行、
 * 再窄就把入口收进汉堡面板——不允许任何一档再出现横向溢出。 */
@media (min-width: 1306px) {
  .nav-in { max-width: 1320px; gap: 20px; }
}
@media (max-width: 1305px) {
  .nav-in { flex-wrap: wrap; row-gap: 10px; }
  .brand { order: 1; }
  .links { order: 3; }
  .dl-cta { order: 4; }
  .bell { order: 5; }
  .langsel { order: 6; }
  .search { order: 7; flex: 1 1 100%; max-width: none; }
}
@media (max-width: 1060px) {
  .nav-in { position: relative; }
  /* backdrop-filter 会把导航盒外的绝对定位子元素裁掉，面板会「点得到、看不见」，窄屏改实底 */
  .nav { backdrop-filter: none; background: #fff; }
  /* 窄屏顶栏只留品牌、铃铛、语言和汉堡；入口全部收进下拉面板 */
  .dl-cta { display: none; }
  .sheet-only { display: block; }
  .brand { order: 1; }
  .bell { order: 2; margin-left: auto; }
  .langsel { order: 3; }
  .nav-burger {
    display: inline-flex; order: 4; width: 40px; height: 40px; flex: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer;
  }
  .nav-burger span { display: block; width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
  .links {
    order: 8; position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 4px 16px 12px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .28); max-height: 72vh; overflow: auto; z-index: 30;
  }
  .nav.open .links { display: flex; }
  .links a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .links a:last-child { border-bottom: 0; }
  .links .who { max-width: none; margin: 10px 0 6px; padding: 8px 12px; align-self: flex-start; }
  .links .cta { margin-top: 8px; text-align: center; }
}
@media (max-width: 820px) {
  .nav-in { padding: 10px 16px; }
  .main { padding: 18px 16px 48px; }
  .hero { padding: 34px 22px 28px; border-radius: 16px; }
  .hero h1 { font-size: 28px; }
  .grid { gap: 12px; }
  .buybox h1 { font-size: 22px; }
}
@media (max-width: 520px) {
  .body { padding: 10px 12px 12px; gap: 5px; }
  .body h3 { font-size: 13.5px; }
  .price { font-size: 15px; }
  .brand-t { display: none; }
  .hero h1 { font-size: 26px; }
  .hero .sub { font-size: 14px; }
}

/* 试看角标（P1 预览域里同样会渲染一份，避免视觉断层） */
.pv-mark {
  position: fixed; right: 14px; bottom: 14px; z-index: 9999;
  padding: 6px 10px; border-radius: 8px; font-size: 12px;
  background: rgba(20, 22, 26, .72); color: #fff; letter-spacing: .3px;
  pointer-events: none; user-select: none;
}

/* ---------- 页面切换转场 ----------
 * 商店是整页跳转：优先跨文档 View Transitions（同源、两端都声明 navigation: auto），
 * 旧页 150ms 淡出并上移 8px、新页 250ms 淡入自下 12px 归位；两层都带 will-change。
 * 位移期间露出的边由 ::view-transition 的底色兜住，不出现黑边。
 * 不支持该伪元素的浏览器走 store.js 的 .page-leaving / .page-entering 类兜底。
 */
@view-transition { navigation: auto; }

html { background: var(--bg); }

::view-transition { background: var(--bg); }
::view-transition-old(root),
::view-transition-new(root) { will-change: transform, opacity; }
::view-transition-old(root) { animation: dc-page-out 150ms cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: dc-page-in 250ms cubic-bezier(.25, .8, .25, 1) both; }

@keyframes dc-page-out { from { opacity: 1; transform: translate3d(0, 0, 0); } to { opacity: 0; transform: translate3d(0, -8px, 0); } }
@keyframes dc-page-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes dc-page-fade { from { opacity: 0; } to { opacity: 1; } }

/* 无跨文档转场的浏览器：进场兜底（离场由 store.js 拦截点击补 150ms） */
@supports not (selector(::view-transition-new(root))) {
  body.page-entering { animation: dc-page-in 250ms cubic-bezier(.25, .8, .25, 1) both; }
  body.page-leaving { animation: dc-page-out 150ms cubic-bezier(.4, 0, 1, 1) both; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root) { animation: none; }
  ::view-transition-new(root) { animation: dc-page-fade 120ms linear both; }
  body.page-entering { animation: dc-page-fade 120ms linear both; }
  body.page-leaving { animation: dc-page-fade 120ms linear both; }
}

/* ---------- 卡片 → 详情页的共享元素 ----------
 * 列表页由 masonry.js 给被点那张卡的封面挂 view-transition-name: dc-cover，
 * 详情页主视觉固定同名，两端跨文档转场会把封面放大成详情大图（300ms）。
 */
.stage { view-transition-name: dc-cover; }
::view-transition-group(dc-cover) { animation-duration: .3s; animation-timing-function: var(--ease-out); }
::view-transition-old(dc-cover),
::view-transition-new(dc-cover) { animation-duration: .3s; animation-timing-function: var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(dc-cover),
  ::view-transition-old(dc-cover) { animation: none; }
  ::view-transition-new(dc-cover) { animation: dc-page-fade 120ms linear both; }
}

/* ---------- 顶栏语言下拉 ----------
 * 与官网 www.tujuyun.com 同一形态：地球图标 + 当前语言 + chev，点开三语菜单，当前项打勾。
 * 窄屏收成纯图标入口，菜单仍从右缘展开，不挤占品牌与导航。
 */
.lang { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  font: inherit; font-size: 13px; line-height: 1; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lang-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.lang-btn .globe { flex: none; opacity: .85; }
.lang-btn .chev { flex: none; transition: transform .16s; }
.langsel.open .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 160px; padding: 6px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(16, 18, 24, .12);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .16s, transform .16s;
}
.langsel.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2);
}
.lang-menu a:hover { background: var(--bg); color: var(--ink); }
.lang-menu a.on { color: var(--ink); font-weight: 600; }
.tick { flex: none; opacity: 0; }
.lang-menu a.on .tick { opacity: 1; }

/* ---------- 详情页：AI 生成提示词 ---------- */
.copy-btn {
  padding: 7px 14px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: #fff;
  font: inherit; font-size: 13px; color: var(--ink); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.copy-btn:hover { border-color: var(--ink-3); background: var(--bg); }
.copy-btn.ok { border-color: #16A34A; color: #16A34A; }
.prompt-note { margin: 0 0 12px; font-size: 13px; }
.prompt-body {
  margin: 0; padding: 16px 18px; border-radius: 12px;
  background: #F6F7F9; border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.75; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
  max-height: 280px; overflow: hidden;
}
.prompt-body.is-open { max-height: none; }
.prompt-toggle {
  margin-top: 10px; padding: 0; border: 0; background: none;
  color: var(--accent); font: inherit; font-size: 13px; cursor: pointer;
}

@media (max-width: 820px) {
  .lang-cur, .lang .chev { display: none; }
  .lang-btn { padding: 0 9px; }
  .links a[href*="/submit"] { display: none; }
}

/* ---------- 网页投稿 ---------- */
.hero-sub { margin: 8px 0 0; font-size: 13px; }
.hero-sub a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.sub-grid {
  display: grid; grid-template-columns: 1.45fr .85fr; gap: 22px;
  align-items: start; margin: 18px 0 48px;
}
.form {
  padding: 24px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.form label { display: block; margin-bottom: 16px; font-size: 13px; color: var(--ink-2); }
.form input[type=text], .form input[type=number], .form input:not([type]),
.form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  font: inherit; color: var(--ink); outline: none;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a94a3 50%), linear-gradient(135deg, #8a94a3 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.form textarea { height: auto; min-height: 118px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.form .file {
  padding: 12px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #fcfcfd;
}
.form .file input[type=file] { display: block; margin-top: 8px; font: inherit; font-size: 13px; color: var(--ink-2); }
.form .chk { display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.form .chk input { margin: 3px 0 0; flex: none; }
.form .buy { width: 100%; }

/* 权利声明区块：视觉上必须比普通表单项重，让人真读一遍再勾 */
.rights-box {
  margin: 4px 0 16px; padding: 16px 18px;
  border: 1px solid #fedf89; border-radius: 12px; background: #fffcf2;
}
.rights-box h3 { margin: 0 0 6px; font-size: 14px; color: #7a4a06; letter-spacing: -.2px; }
.rights-lead { margin: 0 0 10px; font-size: 12.5px; line-height: 1.7; color: #8a5a12; }
.rights-list { margin: 0 0 12px; padding-left: 18px; font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }
.rights-list li { margin-bottom: 4px; }
.rights-box .chk { margin-top: 10px; font-size: 12.5px; }
.rights-foot { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.rights-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* 存量模板补签（/me）：复用 .rights-box 的警示底色，但控件规格单独给——这里不套 .form 白卡，避免双层边框 */
.me-rights .rights-box label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--ink-2); }
.me-rights .rights-box input[type=text], .me-rights .rights-box input:not([type]) {
  display: block; width: 100%; margin-top: 6px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  font: inherit; color: var(--ink); outline: none;
}
.me-rights .rights-box input:focus { border-color: var(--ink); }
.me-rights .rights-box .chk { display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.me-rights .rights-box .chk input { margin: 3px 0 0; flex: none; }
.me-rights .rights-box .buy { width: 100%; }
.me-rights .rights-box .err { margin: 10px 0 0; }
.risk-hint {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 10px;
  background: #fef3f2; border: 1px solid #fecdca; color: #b42318;
  font-size: 12.5px; line-height: 1.7;
}

/* 详情页版权声明：低调但要可读，且投诉入口必须显眼 */
.rights-note .prose.muted { color: var(--ink-3); font-size: 13px; }
.rights-note .prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.sub-side { display: grid; gap: 14px; }
.sub-side section {
  padding: 18px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.sub-side h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: -.2px; }
.sub-side ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.85; }

.st {
  flex: none; align-self: center; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--ink-3); background: #f2f4f7;
}
.st.approved { color: #067647; background: #ecfdf3; border-color: #abefc6; }
.st.pending { color: #b54708; background: #fffaeb; border-color: #fedf89; }
.st.rejected { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.mut.warn { color: #b42318; }

@media (max-width: 900px) {
  .sub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form .row2 { grid-template-columns: 1fr; }
  .submit .page-title { font-size: 24px; }
}

/* 文件选择：浏览器原生按钮文案跟系统语言走，投稿页要三语一致，改为自绘按钮 + 覆盖式 input */
.file { position: relative; cursor: pointer; }
.file input.sr-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file:focus-within { border-color: var(--ink); }
.file .pick {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.file .pick-name { margin-left: 10px; font-size: 13px; color: var(--ink-3); word-break: break-all; }
.file .pick-name.sel { color: var(--ink-2); }

/* 标签筛选（2026-11-25）：热门标签一行 + 当前选中态 + 卡片上的小标签 */
.tagrow {
  flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line);
}
.tagrow-t { font-size: 12px; color: var(--ink-3); letter-spacing: .3px; }
.tchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--ink-2);
  text-decoration: none; transition: border-color .16s var(--ease-out), color .16s var(--ease-out);
}
.tchip:hover { border-color: var(--ink); color: var(--ink); }
.tchip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.tchip.on .tchip-n { color: rgba(255, 255, 255, .62); }
.tchip-n { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tchip.clear { border-style: dashed; color: var(--ink-3); border-color: var(--line-strong); }
.tchip.clear:hover { border-color: var(--ink); color: var(--ink); }

.ctags { display: flex; gap: 6px; flex-wrap: wrap; margin: 9px 0 0; }
.ctag {
  font-size: 11px; color: var(--ink-3); background: #f4f5f7; border-radius: 6px; padding: 2px 7px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tags a.tag { text-decoration: none; transition: border-color .16s var(--ease-out), color .16s var(--ease-out); }
.tags a.tag:hover { border-color: var(--ink); color: var(--ink); }

/* ---- 我的页：AI 积分（一人付）。全站只有这一块用深色卡：充值是转化动作，
   和上下方的资产/流水信息摆同一层白卡时没人会去点它。
   色值只取 ink 系 + 品牌暖橙，不引入第二套渐变语言。 ---- */
.me-quota .blk-head h2::before {
  content: ''; flex: none; width: 5px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, #ffb37a, var(--accent));
}
.me-quota .blk-hint { white-space: normal; max-width: 62%; line-height: 1.4; }
.me-quota .mq-card {
  position: relative; display: grid; grid-template-columns: minmax(196px, .8fr) minmax(0, 2fr);
  margin-top: 10px; overflow: hidden; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #17191f 0%, #1e222a 52%, #14161a 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
/* 暖橙光斑：给整块一点「发亮」的体感，但不去动背景的白，免得整页变暗 */
.mq-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 220px at 4% -30%, rgba(232, 89, 12, .40), transparent 70%),
    radial-gradient(420px 220px at 102% 120%, rgba(232, 89, 12, .16), transparent 70%);
}
.mq-left {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 24px 26px 22px; border-right: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
}
.mq-k { font-size: 12.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }
.mq-fig { display: flex; align-items: baseline; gap: 7px; }
.mq-num {
  font-size: 52px; line-height: 1; font-weight: 750; letter-spacing: -2px; color: #fff;
  font-variant-numeric: tabular-nums;
}
.mq-unit { font-size: 13px; color: rgba(255, 255, 255, .55); }
/* 用量条：余额和累计充值的关系一眼可见，不靠读小字推算 */
.mq-bar {
  display: block; height: 6px; width: 100%; max-width: 200px; margin-top: 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden;
}
.mq-bar i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #ffb37a, var(--accent));
  transition: width .5s var(--ease-out);
}
.mq-sub { margin: 2px 0 0; font-size: 12px; color: rgba(255, 255, 255, .5); }
/* 余额折成钱：积分是虚拟单位，右栏全是 ¥，左栏给出等值才好直接比 */
.mq-cash { font-size: 12px; color: #ffc39b; font-variant-numeric: tabular-nums; }
.mq-warn {
  align-self: flex-start; padding: 2px 9px; border-radius: 999px;
  border: 1px solid rgba(255, 138, 61, .5); background: rgba(232, 89, 12, .22);
  font-size: 11.5px; font-weight: 600; color: #ffc39b;
}
/* 余额见底换橙色描边：不读文字也知道该充了 */
.me-quota.is-empty .mq-card {
  border-color: rgba(255, 138, 61, .55);
  box-shadow: 0 16px 40px rgba(232, 89, 12, .22), 0 0 0 1px rgba(255, 138, 61, .32);
}
.me-quota.is-empty .mq-num { color: #ffb37a; }
.mq-side { position: relative; display: grid; gap: 12px; align-content: start; padding: 20px 24px 18px; }
.mq-line { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .74); }
/* 档位：大号可点卡片，价格与单价都在卡上，不用逐个点开比 */
.mq-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
.mq-plan {
  position: relative; display: grid; gap: 1px; padding: 12px 13px 11px; text-align: left; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .10); border-radius: 14px; background: rgba(255, 255, 255, .045); color: #fff;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.mq-plan:hover { border-color: rgba(255, 138, 61, .55); background: rgba(232, 89, 12, .10); transform: translateY(-1px); }
.mq-plan.on {
  border-color: #ff8a3d;
  background: linear-gradient(180deg, rgba(232, 89, 12, .26), rgba(232, 89, 12, .10));
  box-shadow: 0 0 0 1px rgba(255, 138, 61, .45), 0 10px 24px rgba(232, 89, 12, .22);
}
.mq-plan-k { font-size: 11px; color: rgba(255, 255, 255, .55); }
.mq-plan-n { font-size: 21px; font-weight: 700; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.mq-plan-n i { margin-left: 3px; font-style: normal; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.mq-plan-price { font-size: 13px; font-weight: 600; color: #ffc39b; font-variant-numeric: tabular-nums; }
.mq-plan-per { font-size: 10.5px; color: rgba(255, 255, 255, .42); font-variant-numeric: tabular-nums; }
.mq-plan-tag {
  position: absolute; top: 9px; right: 9px; padding: 1px 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .02em;
}
.mq-err { margin: 0; font-size: 12.5px; line-height: 1.5; color: #ffb4a2; }
/* 主按钮：整行宽、最高对比，重量必须压过页面上任何次要行动 */
.mq-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #f98342, var(--accent)); color: #fff;
  font-size: 15px; font-weight: 650; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 10px 24px rgba(232, 89, 12, .34);
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), filter .16s var(--ease-out);
}
.mq-buy:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(232, 89, 12, .42); filter: brightness(1.03); }
.mq-buy:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(232, 89, 12, .3); }
.mq-buy:disabled { opacity: .62; cursor: default; transform: none; box-shadow: none; }
.mq-buy-arrow { font-size: 15px; transition: transform .16s var(--ease-out); }
.mq-buy:hover .mq-buy-arrow { transform: translateX(3px); }
.mq-pay { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mq-pay .qr {
  flex: none; margin: 0; padding: 10px; border: 0; border-radius: 16px; background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}
.mq-pay .qr img { margin: 0 auto; border-radius: 8px; }
.mq-pay-side { display: grid; gap: 8px; justify-items: start; max-width: 260px; }
.mq-pay-msg { margin: 0; font-size: 13px; color: #fff; line-height: 1.55; }
.mq-pay-side .btn-ghost {
  font-size: 12.5px; padding: 6px 12px; color: #fff; border-color: rgba(255, 255, 255, .24); background: transparent;
}
.mq-pay-side .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.mq-poll { font-size: 11.5px; color: rgba(255, 255, 255, .45); }
/* PayPal：同一张卡里的第二种付法，虚线分隔，不跟主按钮抢 */
.mq-pp { display: grid; gap: 7px; padding-top: 11px; border-top: 1px dashed rgba(255, 255, 255, .14); }
.mq-pp-h { margin: 0; font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.mq-pp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.mq-pp-acts .mq-pp-btn {
  font-size: 12.5px; padding: 7px 14px; color: #fff; border-color: rgba(255, 255, 255, .2);
  background: transparent; font-variant-numeric: tabular-nums;
}
.mq-pp-acts .mq-pp-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.mq-pp-acts .mq-pp-btn[disabled] { opacity: .6; cursor: default; }
.mq-tip { margin: 0; font-size: 11px; line-height: 1.6; color: rgba(255, 255, 255, .38); }

/* hidden 属性必须压过下面的 display:grid/flex，否则未购买时支付面板会直接露出来 */
.me-quota [hidden] { display: none !important; }
.mq-pay .qr { min-width: 172px; min-height: 172px; display: flex; align-items: center; justify-content: center; }

/* 档位在中等宽度会落成 3+1，宁可整齐的两列也不要一个孤零零的第四档 */
@media (max-width: 1040px) {
  .mq-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .me-quota .blk-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .me-quota .blk-hint { max-width: 100%; text-align: left; }
  .me-quota .mq-card { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .mq-left {
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px 18px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .mq-num { font-size: 36px; letter-spacing: -1.5px; }
  .mq-bar { max-width: none; margin-top: 6px; }
  .mq-sub { margin-top: 0; font-size: 11.5px; }
  .mq-side { padding: 14px 18px 16px; gap: 10px; }
  .mq-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mq-plan-n { font-size: 19px; }
  .mq-buy { min-height: 46px; }
  .mq-pay { gap: 12px; align-items: flex-start; }
  .mq-pay .qr { min-width: 0; min-height: 0; }
  .me-quota .blk-hint { max-width: 100%; }
}
/* ---------- 市场内下载入口（顶栏 CTA） ---------- */
.nav .dl-cta {
  margin-left: 10px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav .dl-cta:hover { background: #fff; border-color: var(--ink); }

/* ---------- AI 定价页 ---------- */
.price-free {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 22px 0 26px; padding: 22px 24px; border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fdf8f4); border: 1px solid var(--line);
}
.price-free .pf-l h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.3px; }
.price-free .pf-l p { margin: 0; color: var(--ink-2); font-size: 14px; }
.price-free .pf-r { display: flex; gap: 10px; flex-wrap: wrap; }
.price-free .pf-r a { text-decoration: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative; padding: 22px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card); display: flex; flex-direction: column;
}
.price-card.hot { border-color: var(--accent); box-shadow: 0 6px 24px rgba(232, 89, 12, .12); }
.price-card .pc-tag {
  position: absolute; top: -10px; left: 18px; padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; letter-spacing: .04em;
}
.price-card h3 { margin: 4px 0 10px; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.price-card .pc-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.price-card .pc-price b { font-size: 30px; letter-spacing: -.8px; }
.price-card .pc-price span { font-size: 13px; color: var(--ink-3); }
.price-card .pc-per { margin: 4px 0 14px; font-size: 12.5px; color: var(--accent); }
.price-card ul { margin: 0 0 18px; padding-left: 16px; color: var(--ink-2); font-size: 13px; line-height: 1.9; }
.price-card > a { margin-top: auto; text-align: center; text-decoration: none; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }

.price-note { margin: 30px 0 10px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.price-note h2 { margin: 0 0 10px; font-size: 17px; }
.price-note ul { margin: 0 0 10px; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; line-height: 2; }
.price-note a { color: var(--ink); }

/* ---------- 法务页 ---------- */
.legal { max-width: 780px; }
.legal h2 { margin: 26px 0 8px; font-size: 16px; letter-spacing: -.2px; }
.legal p { margin: 0 0 10px; line-height: 2; font-size: 14px; color: var(--ink-2); }
.legal a { color: var(--accent); }

/* ---------- 2026-12 改版：首屏通栏 + 大卡墙 ----------
 * 旧版首屏是 max-width 1200 里的一张白卡，首屏只露出 4 张小封面；
 * 改成通栏浅色 band（大标题 / 大搜索 / 热门词），卡片放大到 3 列，标题与描述按可读字号给足。 */
.hero-band {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 340px at 16% -40%, #fff1e6 0%, rgba(255, 241, 230, 0) 62%),
    radial-gradient(760px 300px at 86% -20%, #edf3ff 0%, rgba(237, 243, 255, 0) 60%),
    #fbfbfa;
}
.hero-in { max-width: 1200px; margin: 0 auto; padding: 74px 24px 46px; }
.hero-band .eyebrow { margin: 0 0 16px; font-size: 11.5px; letter-spacing: .2em; }
.hero-band h1 { margin: 0 0 16px; font-size: 54px; line-height: 1.12; letter-spacing: -1.6px; font-weight: 750; }
.hero-band .sub { margin: 0 0 28px; max-width: 660px; font-size: 17px; line-height: 1.66; color: var(--ink-2); }
.hero-band .hero-search { max-width: 700px; }
.hero-band .hero-search input { height: 56px; padding: 0 20px; font-size: 16px; border-radius: 14px 0 0 14px; }
.hero-band .hero-search button { height: 56px; padding: 0 30px; font-size: 15px; border-radius: 0 14px 14px 0; }
.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.hero-quick a {
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink-2); transition: border-color .16s var(--ease-out), color .16s var(--ease-out);
}
.hero-quick a:hover { border-color: var(--ink); color: var(--ink); }
.hero-band .hero-stat { margin: 22px 0 0; font-size: 13px; color: var(--ink-3); }

/* 分类 chip 带在架数量：点之前就知道这一类有几个 */
.cat-n { margin-left: 6px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat.on .cat-n { color: rgba(255, 255, 255, .62); }

/* 大卡：标题 17px、描述 2 行、3 个标签，悬停出「在线试看」 */
.body { padding: 16px 18px 18px; gap: 8px; }
.body h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.2px; }
.desc { font-size: 13.5px; line-height: 1.62; -webkit-line-clamp: 2; }
.ctags { margin: 4px 0 0; }
.ctag { font-size: 11.5px; padding: 3px 8px; }
.row { margin-top: 6px; }
.row .price { font-size: 15px; }

.card-play {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 9px; border: 0;
  background: rgba(20, 22, 26, .84); color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .1px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), background .18s var(--ease-out);
}
.card:hover .card-play, .card:focus-within .card-play, .card-play:focus-visible { opacity: 1; transform: none; }
.card-play:hover { background: #000; }
@media (hover: none) { .card-play { opacity: 1; transform: none; } }

/* 详情：先看见真页面，再谈拿源码 */
.buy-cta { display: flex; flex-direction: column; gap: 10px; }
.try {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 54px; border-radius: 12px; border: 1px solid var(--ink); background: #fff; color: var(--ink);
  font-size: 15px; font-weight: 650; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.try span { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.try:hover { background: var(--ink); color: #fff; }
.try:hover span { color: rgba(255, 255, 255, .72); }
.prompt-acts { display: flex; align-items: center; gap: 12px; }
.prompt-len { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .hero-in { padding: 44px 20px 34px; }
  .hero-band h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-band .sub { font-size: 15.5px; }
  .hero-band .hero-search input, .hero-band .hero-search button { height: 50px; font-size: 15px; }
  .body { padding: 13px 14px 15px; }
  .body h3 { font-size: 15.5px; }
  .desc { font-size: 12.5px; }
}
@media (max-width: 520px) {
  .hero-band h1 { font-size: 30px; letter-spacing: -.6px; }
  .hero-band .hero-search button { padding: 0 18px; }
  .hero-quick { font-size: 12px; }
}
/* 列表卡统一 4:3 卡面并顶部裁切：模板截图多是长页，按真实比例铺会变成一条细带，
   同一行高矮不齐也没法横向比较；裁掉下半段不影响判断风格（详情页仍给完整比例）。 */
.thumb.is-crop img { object-fit: cover; object-position: top center; }
/* 预览图整块即试看入口：图下再摆一条「在线试看」按钮和右栏 CTA 抢同一件事，
   首屏里同义动作出现两次只会让人犹豫点哪个。悬停才浮出提示，不常驻压住画面。 */
.stage-link { display: block; position: relative; border-radius: var(--radius); }
.stage-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stage-try {
  position: absolute; left: 50%; bottom: 14px; z-index: 4;
  translate: -50% 6px; opacity: 0;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(20, 22, 26, .82); color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: opacity .18s var(--ease-out), translate .18s var(--ease-out);
  pointer-events: none;
}
.stage-link:hover .stage-try, .stage-link:focus-visible .stage-try { opacity: 1; translate: -50% 0; }
.stage-link:hover .stage { border-color: #d7dce3; }
@media (hover: none) { .stage-try { opacity: 1; translate: -50% 0; } }
/* 触屏与窄屏没有 hover 可依赖，试看入口常驻（否则手机上永远看不到这个按钮） */
@media (max-width: 900px) { .card-play { opacity: 1; transform: none; } }
/* 窄屏：首屏 hero 自带搜索框，顶栏那颗就成了重复入口，直接收起（只在有 hero 的页面生效） */
@media (max-width: 720px) {
  body:has(.hero-band) .nav .search { display: none; }
}
/* 窄屏按钮别被压缩成竖排两字：输入框先让位，按钮保持一行 */
.hero-band .hero-search input { min-width: 0; }
.hero-band .hero-search button { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 520px) { .hero-band .hero-search input { font-size: 14px; padding: 0 14px; } }
/* ---------- 2026-12-02 全宽改版：容器撑满视口，卡片放大 ----------
   原来整站锁在 1200px 里，1440 屏两侧各空 120px、1920 屏空 360px，看着像嵌在中间的小程序。
   改成随视口走、上限 1920px，左右留白随屏宽伸缩（20~56px），一屏能放下更大更少的卡。 */
:root { --pad: clamp(20px, 3.2vw, 56px); }
.nav-in, .main, .hero-in, .foot-in { max-width: 1920px; width: 100%; padding-left: var(--pad); padding-right: var(--pad); }
.hero-band h1 { font-size: clamp(44px, 3.6vw, 68px); }
.hero-band .sub { font-size: 18px; max-width: 720px; }
.hero-band .hero-search { max-width: 760px; }
.grid { gap: 20px; }
.card { border-radius: 16px; }
.body { padding: 18px 20px 20px; }
.body h3 { font-size: 19px; line-height: 1.38; }
.desc { font-size: 14.5px; line-height: 1.62; }
.thumb.is-crop img { object-position: top center; }
@media (min-width: 1600px) {
  .body h3 { font-size: 21px; }
  .desc { font-size: 15px; }
  .body { padding: 20px 22px 22px; }
}
@media (max-width: 760px) {
  .grid { gap: 14px; }
  .card { border-radius: 12px; }
}
/* ---------- 2026-12-02 卡片信息层级：标题 → 档案行 → 一句话 → 标签 → 价格 ----------
   原来卡面只有「标题 + 一句话 + 标签 + 价格」，同一尺寸下信息密度低于成品市场该有的样子；
   封面上的「免费」角标出现在 100% 的卡上，只是噪音，改由价格行的绿色承担。 */
:root { --r-card: 16px; --r-chip: 8px; --meta-size: 12.5px; }
.card .body { gap: 7px; }
.card .meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: var(--meta-size); line-height: 1.4; color: var(--ink-3);
}
.card .meta em { font-style: normal; color: #c3cad4; }
.card .ctags { margin-top: 0; gap: 5px; }
.card .ctag { border-radius: var(--r-chip); font-size: 11.5px; padding: 2px 8px; }
.card .row .price.is-free { font-weight: 650; }
@media (min-width: 1600px) {
  :root { --meta-size: 13px; }
  .card .body { gap: 8px; }
}
@media (max-width: 760px) {
  .card .meta { font-size: 12px; }
}

/* ---------- 2026-12-02 目录化：hero 收一档、卡头右挂引擎标签 ----------
   清单页的第一屏该露出卡，不该被 70px 大标题和 74px 上边距吃掉；
   标题右侧挂「Three.js / HTML」这类引擎标，和卡上的技术栈标签对得上。 */
.hero-in { padding: 50px 24px 34px; }
.hero-band h1 { font-size: clamp(40px, 3.2vw, 56px); letter-spacing: -1.4px; margin-bottom: 14px; }
.hero-band .sub { margin-bottom: 22px; }
.hero-band .hero-stat { margin-top: 16px; }
.card .hd { display: flex; align-items: baseline; gap: 10px; }
.card .hd h3 { flex: 1 1 auto; min-width: 0; }
.card .tech {
  flex: 0 0 auto; padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 11px; line-height: 1.5; color: var(--ink-3); white-space: nowrap;
}
@media (max-width: 760px) {
  .hero-in { padding: 34px 20px 26px; }
  .card .tech { display: none; }
}

/* ---------- 2026-12-02 画布与居中：点阵 + 光池 + 纸纹，hero 收到 1160 居中 ----------
   1920 上 hero 原来贴着左边 56px，右边空掉一千多像素，像没排版的备忘录；
   整页底色也是纯 #fafafa，白卡压在白底上，层级只靠一根 1px 边。
   这里把底色做成「纸纹 + 点阵 + 顶部光池」，hero 内容按 1160 居中，卡面加一层轻投影浮起来。 */
:root { --canvas: #f6f6f3; }
/* 画布铺在 html 上：空页（404、加载中）body 高度只有一两百像素，
   铺在 body 上的话下面整片会退回纯色。 */
html { background-color: var(--canvas); }
html {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .92) 0, rgba(255, 255, 255, 0) 420px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    radial-gradient(circle at 1px 1px, rgba(20, 24, 30, .055) 1px, rgba(0, 0, 0, 0) 0);
  background-size: auto, 180px 180px, 24px 24px;
  background-repeat: no-repeat, repeat, repeat;
  background-attachment: scroll, scroll, scroll;
}
body { background: transparent; }
.hero-band { background: radial-gradient(780px 320px at 50% 0, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 72%); }
.hero-in { max-width: 1160px; margin: 0 auto; padding: 46px 24px 40px; text-align: center; }
.hero-band .eyebrow { letter-spacing: .22em; }
.hero-band .sub { margin: 0 auto 22px; max-width: 690px; }
.hero-band .hero-search { margin: 0 auto; }
.hero-quick { justify-content: center; }
.foot { background: transparent; }
.grid .card { box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -20px rgba(16, 24, 40, .30); }
@media (max-width: 760px) {
  body { background-attachment: scroll, scroll, scroll, scroll; }
  .hero-in { padding: 32px 20px 28px; }
  .hero-band .sub { font-size: 15px; }
}
