/* ============================================================
   串儿哥原创 High 吧
   暖纸浅色 + 板块层次（底 → 板块 → 卡片 三层）
   ============================================================ */

:root {
  /* 底色：暖米白纸感 */
  --bg: #ece7de;
  --bg-2: #e2ddd2;
  /* 板块底色：比背景亮一档 */
  --surface: #fbf9f5;
  --surface-2: #ffffff;

  /* 字色：墨色系 */
  --ink: #2e2823;
  --ink-2: #6e6558;
  --ink-3: #9a9184;

  --line: rgba(46, 40, 35, 0.1);
  --line-2: rgba(46, 40, 35, 0.16);

  /* 强调：哑金 */
  --accent: #a8801f;
  --accent-soft: rgba(168, 128, 31, 0.1);

  /* 分类色：低饱和土色系 */
  --c-orange: #c9603a;
  --c-green: #6b7f5c;
  --c-pink: #c07d95;
  --c-blue: #4a6b8a;
  --c-purple: #8271a8;
  --c-gold: #a8801f;

  --radius: 12px;
  --shadow-sect: 0 1px 2px rgba(46, 40, 35, 0.05), 0 6px 18px rgba(46, 40, 35, 0.07);
  --shadow-card: 0 1px 2px rgba(46, 40, 35, 0.05);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", ui-monospace, Consolas, monospace;
}

/* 分类专属色 */
.band-game    { --band: var(--c-orange); }
.band-story   { --band: var(--c-green); }
.band-music   { --band: var(--c-pink); }
.band-miniapp { --band: var(--c-blue); }
.band-video   { --band: var(--c-purple); }
.band-wb      { --band: var(--c-gold); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 页头 ---------- */
.hero {
  position: relative;
  padding: 54px 24px 46px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 50% at 88% 0%, rgba(168, 128, 31, 0.07), transparent 60%),
    var(--bg);
}

/* 背景淡字 */
.hero::before {
  content: "HIGH";
  position: absolute;
  right: -18px;
  bottom: -30px;
  font-size: clamp(96px, 17vw, 180px);
  font-weight: 700;
  letter-spacing: -6px;
  line-height: 1;
  color: rgba(46, 40, 35, 0.035);
  pointer-events: none;
  user-select: none;
}

.hero-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }

.hero-top { display: flex; align-items: center; gap: 16px; }
.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  flex: 0 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(168, 128, 31, 0.3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
}

/* 标题：纯文字 + 金色下划线 */
.hero-title {
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 700;
  margin: 16px 0 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}
.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  border-radius: 2px;
}

.hero-tagline {
  margin: 20px 0 0;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.hero-desc {
  margin: 10px 0 0;
  color: var(--ink-2);
  max-width: 620px;
  font-size: 15px;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat { display: flex; align-items: baseline; gap: 6px; }
.stat b { font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--ink-3); }

/* ---------- 分类导航 ---------- */
.pnav-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(239, 235, 227, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.pnav-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 1px;
  width: 34px;
  background: linear-gradient(90deg, rgba(239, 235, 227, 0), rgba(239, 235, 227, 0.95));
  pointer-events: none;
}
.pnav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pnav::-webkit-scrollbar { display: none; }

.pnav-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.15s;
  white-space: nowrap;
}
.pnav-item:hover { border-color: var(--accent); color: var(--accent); }
.pnav-item.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
  font-weight: 600;
}
.pnav-ico { font-size: 12px; opacity: 0.75; }
.pnav-n {
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(46, 40, 35, 0.08);
  color: var(--ink-3);
}
.pnav-item.current .pnav-n { background: rgba(255, 255, 255, 0.22); color: var(--surface); }
.pnav-n.soon { opacity: 0.5; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 26px 24px 80px; }

/* ---------- 分类板块：独立面板，有间距有投影 ---------- */
.band-sec {
  scroll-margin-top: 64px;
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-sect);
}
.band-sec + .band-sec { margin-top: 22px; }

.band-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* 分类色短线：紧贴标题下方 */
.band-ico-wrap { position: relative; display: flex; }
.band-ico-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--band, var(--accent));
  border-radius: 2px;
  opacity: .85;
}
.band-ico {
  font-size: 13px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--band, var(--accent));
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  flex: 0 0 auto;
}
.band-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.band-desc { font-size: 13px; color: var(--ink-3); }
.band-n {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  background: rgba(46, 40, 35, 0.06);
  padding: 2px 10px;
  border-radius: 999px;
}

/* ---------- 作品网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 13px;
}
.grid-1 { grid-template-columns: minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 卡片：白底，比板块更亮 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--band, var(--accent));
  opacity: 0.85;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--band, var(--accent));
  box-shadow: 0 4px 14px rgba(46, 40, 35, 0.1);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 24px;
}
.card-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  /* contain：竖版海报不会被裁掉半张 */
  object-fit: contain;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.card-band {
  font-size: 11px;
  font-weight: 600;
  color: var(--band, var(--ink-2));
  background: rgba(46, 40, 35, 0.06);
  border-radius: 4px;
  padding: 2px 8px;
}
.card-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--band, var(--accent));
  background: rgba(46, 40, 35, 0.06);
  border-radius: 4px;
  padding: 2px 8px;
}
.card-qr {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 2px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.card-sum {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
}
.kw {
  background: rgba(46, 40, 35, 0.06);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--ink-2);
}
.kw-dim { color: var(--ink-3); }
.card-dl {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  font-weight: 600;
  color: var(--band, var(--ink-2));
}

/* 单件作品：横排大卡片 */
.grid-1 .card {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
}
.grid-1 .card-top {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
  flex: 0 0 auto;
  min-height: 0;
}
.grid-1 .card-icon { width: 44px; height: 44px; }
.grid-1 .card-body { flex: 1 1 auto; min-width: 0; }
.grid-1 .card-title {
  font-size: 17px;
  -webkit-line-clamp: 2;
  margin-bottom: 4px;
  line-height: 1.4;
}
.grid-1 .card-sum { margin-bottom: 0; -webkit-line-clamp: 2; }
.grid-1 .card-meta { flex: 0 0 auto; max-width: 46%; }

/* ---------- 横向滚动卡片条 ---------- */
.hscroll {
  position: relative;
  margin: 0 -8px;
  padding: 0 8px;
}
.hscroll-track {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.hscroll-track::-webkit-scrollbar { display: none; }
.hscroll-track::after {
  content: "";
  flex: 0 0 4px;
}
.hscroll-track > .card {
  flex: 0 0 272px;
  scroll-snap-align: start;
}

.hscroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(46, 40, 35, 0.12);
  z-index: 3;
  transition: opacity .15s, background .15s;
}
.hscroll-btn:hover { background: #fff; }
.hscroll-prev { left: -6px; }
.hscroll-next { right: -6px; }
.hscroll.can-scroll .hscroll-btn { display: flex; }
.hscroll.at-start .hscroll-prev { display: none; }
.hscroll.at-end .hscroll-next { display: none; }

.hscroll::before,
.hscroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 4px;
  width: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
}
.hscroll::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface) 12%, rgba(251, 249, 245, 0));
  width: 28px;
}
.hscroll::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface) 12%, rgba(251, 249, 245, 0));
  width: 28px;
}
.hscroll.can-scroll::after { opacity: 1; }
.hscroll.at-end::after { opacity: 0; }

@media (max-width: 720px) {
  .hscroll { margin: 0 -4px; padding: 0 4px; }
  .hscroll-track { gap: 10px; }
  .hscroll-track > .card { flex: 0 0 74vw; }
  .hscroll-btn { display: none !important; }
}

/* 空分类 */
.band-empty { opacity: 0.8; }
.band-soon {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--ink-3);
  font-size: 13.5px;
  background: var(--bg-2);
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px 24px 46px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.foot p { margin: 0; }
.foot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 1px solid var(--line-2);
}

/* ============================================================
   作品详情页
   ============================================================ */
.work-hero {
  position: relative;
  padding: 30px 24px 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(168, 128, 31, 0.06), transparent 60%),
    var(--bg);
}
.work-hero-inner { max-width: 760px; margin: 0 auto; }
.back {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 26px;
  transition: color 0.15s;
}
.back:hover { color: var(--accent); }

.work-head { display: flex; gap: 15px; align-items: flex-start; }
.work-icon {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  /* contain：整张可见；方形小图时不受影响 */
  object-fit: contain;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  flex: 0 0 auto;
}
.work-band {
  font-size: 12px;
  font-weight: 600;
  color: var(--band, var(--ink-2));
  margin-bottom: 5px;
}
.work-title {
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.work-sum {
  color: var(--ink-2);
  margin: 14px 0 24px;
  font-size: 15px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--band, var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: opacity 0.15s, transform 0.15s;
}
.cta:hover { opacity: 0.9; transform: translateY(-1px); }
.cta span { opacity: 0.7; }

.qrbox {
  margin-top: 24px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px;
}
.qrbox img { width: 148px; height: 148px; border-radius: 5px; background: #fff; padding: 4px; }
.qrbox p { margin: 0; font-size: 12px; color: var(--ink-3); }

.platform-note {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  background: rgba(107, 127, 92, 0.1);
  border: 1px solid rgba(107, 127, 92, 0.3);
  border-radius: 999px;
  padding: 7px 15px;
}
.platform-note.dim {
  color: var(--ink-3);
  background: rgba(46, 40, 35, 0.04);
  border-color: var(--line-2);
}
.platform-note .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-green); flex: 0 0 auto;
}
.platform-note.dim .dot { background: var(--ink-3); }

.install {
  margin-top: 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.install-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 9px;
  font-weight: 600;
}
.install-code {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  border-radius: 7px;
  padding: 12px 14px;
  word-break: break-all;
  white-space: pre-wrap;
}

.detail-body {
  color: var(--ink-2);
  font-size: 14.5px;
  white-space: pre-wrap;
  line-height: 1.85;
}
.detail-meta {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.gallery-grid img {
  border-radius: 8px;
  border: 1px solid var(--line-2);
  width: 100%;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
/* 相关作品是小尺寸入口，不抢主体内容 */
.rcard {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--surface-2);
  transition: all 0.15s;
}
.rcard:hover {
  border-color: var(--band, var(--accent));
  transform: translateY(-2px);
}
.rcard img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  background: var(--bg-2);
  display: block;
  margin-bottom: 6px;
}
.rcard h4 {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rcard-dl {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================================
   统一引流页
   ============================================================ */
.wsec {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-sect);
}
.wsec + .wsec { margin-top: 16px; }
.wsec .sec-title { margin: 0 0 14px; }

.wwrap { padding-top: 22px; }

/* 头图区 */
.work-headtext { min-width: 0; flex: 1; }
.work-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: var(--ink-3);
  background: rgba(46,40,35,.06);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}
.work-sell {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* 平台入口 */
.plat-list { display: flex; flex-direction: column; gap: 9px; }
.plat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  transition: all .16s;
}
.plat:hover {
  border-color: var(--band, var(--accent));
  background: #fff;
  transform: translateX(2px);
}
.plat-name { font-size: 15px; font-weight: 600; }
.plat-note { font-size: 12.5px; color: var(--ink-3); flex: 1; }
.plat-go { margin-left: auto; color: var(--band, var(--accent)); font-weight: 700; }
.plat-sub .plat-name { font-weight: 500; color: var(--ink-2); font-size: 14px; }

/* 亮点标签 */
.hl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.hl-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.hl-ico { color: var(--band, var(--accent)); font-size: 14px; }

/* 常见问题 */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-a {
  padding: 0 16px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

/* 浮标按钮 */
.fab {
  position: fixed;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(46,40,35,.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, transform .2s;
}
.fab-back { left: 16px; bottom: 20px; font-size: 18px; }
.fab-top {
  right: 16px;
  bottom: 76px;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.fab-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-share { right: 16px; bottom: 20px; }
.fab:hover { border-color: var(--accent); color: var(--accent); }


/* 分享面板 */
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(30, 26, 22, .45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* hidden 属性优先级低于 display，必须显式覆盖 */
.share-sheet[hidden] { display: none; }
.share-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(46,40,35,.16);
}
.share-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.share-row { display: flex; gap: 8px; margin-bottom: 12px; }
.share-btn {
  flex: 1;
  min-width: 0;
  padding: 12px 4px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-close {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: rgba(46,40,35,.06);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .wsec { margin-top: 12px; padding: 16px 14px; border-radius: 14px; }
  .wsec + .wsec { margin-top: 12px; }
  .wwrap { padding-top: 16px; }
  .hl-list { grid-template-columns: 1fr; }
  .plat { padding: 13px 15px; }
  .plat-name { font-size: 14.5px; }
  .plat-hero { gap: 12px; }
  .plat-start { width: 66px; height: 66px; }
  .plat-start svg { width: 27px; height: 27px; }
  .plat-promo { font-size: 14.5px; }
  .plat-note { font-size: 12.5px; }
  .fab-back, .fab-share { bottom: 20px; }
  .fab-top { bottom: 74px; }
  .work-sell { font-size: 15px; }
}

/* ---------- 详情页：视频 + 封面 ---------- */
.media-sec {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-sect);
}
.media-sec + .media-sec { margin-top: 16px; }
.media-sec .sec-title { margin: 0 0 14px; }

.video-box { display: flex; flex-direction: column; gap: 12px; }
.promo-video {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  background: #1c1a17;
  display: block;
  box-shadow: 0 4px 16px rgba(46, 40, 35, 0.16);
}
.video-tip {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}

/* 推广图片：多张网格 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.cover-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
/* 多个视频时横向排 */
.wsec .video-box + .video-box { margin-top: 18px; }

@media (max-width: 720px) {
  .media-sec { padding: 16px 14px; border-radius: 14px; margin-top: 12px; }
  .media-sec + .media-sec { margin-top: 12px; }
  .promo-video { max-width: 100%; border-radius: 10px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .hero { padding: 32px 16px 28px; }
  .hero-top { gap: 12px; }
  .hero-avatar { width: 54px; height: 54px; border-radius: 8px; }
  .hero-badge { font-size: 11px; padding: 3px 10px; }
  .hero-title { margin-top: 14px; padding-bottom: 8px; }
  .hero-tagline { margin-top: 15px; font-size: 15.5px; }
  .hero-desc { font-size: 14px; }
  .hero-stats { gap: 22px; margin-top: 22px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 12px; }

  .pnav { padding: 9px 14px; gap: 6px; }
  .pnav-item { font-size: 13px; padding: 5px 10px; gap: 5px; }

  /* 板块：手机上留边距，形成卡片感 */
  .wrap { padding: 16px 12px 56px; }
  .band-sec {
    margin-top: 14px;
    padding: 16px 14px 16px;
    border-radius: 14px;
  }
  .band-sec + .band-sec { margin-top: 14px; }
  .band-title { font-size: 17px; }
  .band-desc { display: none; }
  .band-ico { width: 24px; height: 24px; font-size: 12px; }
  .band-n { font-size: 11px; }

  .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .grid-1 .card { flex-direction: row; gap: 13px; padding: 15px 16px; }
  .grid-1 .card-icon { width: 36px; height: 36px; }
  .grid-1 .card-title { font-size: 15px; -webkit-line-clamp: 2; }
  .grid-1 .card-meta { max-width: 44%; }

  .card { padding: 15px; }
  .card-sum { -webkit-line-clamp: 2; }
  .work-hero { padding: 24px 18px 34px; }
  .foot { padding: 28px 18px 40px; }
}

/* 简介区：详情页第一块，纯文字不套卡片边框 */
.wsec-intro {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 2px 2px;
}
.wsec-intro .detail-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ===== 马上去 High 吧：左右分栏 ===== */
.plat-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}
.plat-hero-l {
  flex: 1;
  min-width: 0;
}
.plat-hero-l .sec-title { margin: 0 0 9px; }

/* 推广语：一句话卖点 */
.plat-promo {
  margin: 0 0 7px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
}
/* 平台入口里的那句话 */
.plat-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* 右侧「开始」按钮：红色圆形 + 白色右三角 */
.plat-start {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(120% 90% at 32% 22%, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #ff7a58 0%, #f04a26 42%, #cf2c10 78%, #b82409 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 5px 16px rgba(200, 48, 22, .34),
    inset 0 1px 0 rgba(255, 255, 255, .48),
    inset 0 -3px 8px rgba(140, 20, 0, .28);
  transition: transform .16s, box-shadow .16s;
}
.plat-start svg {
  display: block;
  transform: translateX(2px);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22));
}
.plat-start:hover {
  transform: scale(1.06);
  box-shadow:
    0 8px 22px rgba(200, 48, 22, .42),
    inset 0 1px 0 rgba(255, 255, 255, .48),
    inset 0 -3px 8px rgba(140, 20, 0, .28);
}
.plat-start:active { transform: scale(.96); }

/* 无标题媒体区（视频 / 图片）：靠内容分隔，不加标题 */
.wsec-media { padding: 12px; }
.wsec-media .cover-grid { gap: 10px; }
.wsec-media .cover-grid img { border-radius: 10px; }

/* ============================================================
   分享：toast 提示 + 微信引导
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 12px);
  max-width: 82vw;
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(30, 26, 22, .92);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 微信引导：指向右上角菜单 */
.wx-guide {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 26, 22, .55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22vh;
}
.wx-guide[hidden] { display: none; }
.wx-guide-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  background: var(--surface);
  border-radius: 16px;
  padding: 26px 22px 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(30,26,22,.28);
}
.wx-guide-arrow {
  position: absolute;
  top: -30px;
  right: -6px;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  transform: rotate(-8deg);
}
.wx-guide-t {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.wx-guide-t b { color: var(--accent); }
.wx-guide-s {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* 小标题（High下其他） */
.sec-title-sm {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ink-2) !important;
}

/* 相关作品：JS 随机前默认只显示前 4 个 */
.related-grid > .rcard:nth-child(n+5) { display: none; }


/* ============================================================
   平台跳转引导页
   ============================================================ */
.go-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}
.go-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 24px;
  text-align: center;
  box-shadow: var(--shadow-sect);
}
/* 引导页的「返回作品页」：站内跳转，必须保留在页面里
   —— 微信里点完红钮如果回不去，用户就只能点左上角 ✕ 把网页整个关掉 */
.go-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .15s;
}
.go-back:active { color: var(--ink); }
.go-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.go-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.go-sell {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.go-note {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}
.go-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* ⚠️ 必须显式写：上面的 display:flex 会覆盖 hidden 属性自带的 display:none，
   那样两套按钮（微信版/普通版）会同时显示出来。 */
.go-btns[hidden] { display: none; }
.go-tip[hidden] { display: none; }
.go-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.go-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.go-app {
  background: linear-gradient(180deg, #ff6f52 0%, #ef4526 48%, #d42d12 100%);
  border: none;
  color: #fff;
  box-shadow: 0 5px 16px rgba(200, 48, 22, .3);
}
.go-app:hover { border-color: transparent; box-shadow: 0 7px 20px rgba(200, 48, 22, .38); }
.go-tip {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------- 微信内专属（微信会拦链接 + 可能闪退，只能走复制法） ---------- */
.go-wx-tip {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 2;
  color: var(--ink-2);
  text-align: left;
}
.go-wx-tip b { color: var(--ink); }
.go-wx-alt {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
  text-align: left;
}
.go-wx-alt b { color: var(--accent); }
.go-wx-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  text-align: left;
}
.go-wx-label {
  flex: none;
  font-size: 11px;
  color: var(--ink-3);
}
.go-wx-url {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}
.go-wx-note {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-3);
  text-align: left;
}
