/* ===========================================================
   安颉个人汉化 ~ 藏书库 ~   /   手账纸张主题
   =========================================================== */

:root {
  --font-ui: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, SimSun, serif;

  --bg: #f5efe1;
  --bg-2: #faf6ec;
  --card: #fffdf7;
  --ink: #38322a;
  --ink-2: #70654f;
  --ink-3: #9c907a;
  --line: #e4d9c0;
  --line-2: #efe7d4;
  --accent: #5c7b5e;
  --accent-ink: #43603f;
  --accent-soft: rgba(92, 123, 94, .10);
  --seal: #b4452f;
  --shadow-s: 0 1px 2px rgba(96, 74, 44, .07);
  --shadow-m: 0 2px 6px rgba(96, 74, 44, .07), 0 18px 32px -26px rgba(96, 74, 44, .55);
  --shadow-l: 0 4px 12px rgba(60, 45, 25, .10), 0 40px 70px -40px rgba(60, 45, 25, .55);
  --dot: rgba(120, 98, 62, .10);
  --radius: 13px;
}

[data-theme="night"] {
  --bg: #1a1c19;
  --bg-2: #202320;
  --card: #242720;
  --ink: #eae4d6;
  --ink-2: #b0a894;
  --ink-3: #837c6c;
  --line: #35382f;
  --line-2: #2c2f28;
  --accent: #9dba97;
  --accent-ink: #bcd6b6;
  --accent-soft: rgba(157, 186, 151, .12);
  --seal: #cf7057;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-m: 0 2px 6px rgba(0, 0, 0, .28), 0 18px 32px -26px rgba(0, 0, 0, .8);
  --shadow-l: 0 4px 12px rgba(0, 0, 0, .4), 0 40px 70px -40px rgba(0, 0, 0, .9);
  --dot: rgba(255, 245, 220, .055);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.75 var(--font-ui);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.1px);
  background-size: 23px 23px;
  background-position: 0 0;
}

body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

::selection { background: var(--accent-soft); }

/* ---------- 主题切换 ---------- */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-s);
  transition: transform .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); border-color: var(--accent); }
.theme-toggle svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  color: var(--ink-2);
}
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
[data-theme="night"] .theme-toggle .i-sun { display: block; }
[data-theme="night"] .theme-toggle .i-moon { display: none; }

/* ---------- 头部 ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 66px 0 30px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 48px;
  align-items: start;
}

.kicker {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .46em;
  color: var(--ink-3);
  text-transform: none;
}

.site-title {
  display: inline-block;
  margin: 0;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .015em;
}
.site-title span { display: inline-block; }
.intro {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.95;
}
.intro p { margin: 0; }
.intro p:first-child { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

/* B 站头像按钮 */
.bili {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-s);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.bili:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-m); }
.bili img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--line-2);
}
.bili-text { display: flex; flex-direction: column; line-height: 1.25; }
.bili-name { font-size: 13.5px; font-weight: 600; }
.bili-sub { font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-s);
  color: var(--ink-2);
  font-size: 13.5px;
  transition: transform .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0); }
.btn svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.stat {
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.stat b { font-weight: 600; color: var(--ink-2); }

/* ---------- 首屏「最新入库」 ---------- */
.hero-new { padding-top: 34px; }

/* ---------- NEW 角标 ---------- */

/* ---------- 工具条 ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  margin-bottom: 4px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}

.search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-s);
  transition: border-color .18s, box-shadow .18s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.9; stroke-linecap: round; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: .01em;
}
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd {
  flex: none;
  font: 600 11px/1 var(--font-ui);
  color: var(--ink-3);
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 5px;
  padding: 4px 6px;
}

.sorts {
  flex: none;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-s);
}
.sorts button {
  border: 0;
  background: none;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  transition: background .16s, color .16s;
  white-space: nowrap;
}
.sorts button:hover { background: var(--bg-2); color: var(--ink); }
.sorts button.on { background: var(--accent); color: #fff; box-shadow: 0 2px 6px -2px rgba(60, 90, 60, .5); }
[data-theme="night"] .sorts button.on { color: #1a1c19; }

/* ---------- 标签 chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 0 4px;
}
.chip {
  --tag: #9c907a;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 5px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.4;
  color: color-mix(in srgb, var(--tag) 72%, var(--ink));
  background: color-mix(in srgb, var(--tag) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag) 26%, transparent);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
[data-theme="night"] .chip {
  background: color-mix(in srgb, var(--tag) 17%, transparent);
  border-color: color-mix(in srgb, var(--tag) 32%, transparent);
  color: color-mix(in srgb, var(--tag) 62%, var(--ink));
}
.chip:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--tag) 52%, transparent); }
.chip em {
  font-style: normal;
  font-size: 10.5px;
  opacity: .62;
  font-variant-numeric: tabular-nums;
}
.chip.on {
  background: color-mix(in srgb, var(--tag) 82%, var(--ink));
  border-color: color-mix(in srgb, var(--tag) 82%, var(--ink));
  color: #fff;
}
[data-theme="night"] .chip.on { color: #16180f; }
.chip.on em { opacity: .72; }


.count-line {
  margin: 14px 0 14px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

/* ---------- 作品网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
}

.gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  text-align: left;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s;
}
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); z-index: 2; }
.gcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gcard .cover-box { position: relative; overflow: hidden; background: var(--line-2); }
.gcard .cover-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.gcard:hover .cover-img { transform: scale(1.035); }

.gcard .card-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.gcard .card-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gcard .card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.gcard .card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: 70px 0 60px;
  text-align: center;
  color: var(--ink-3);
}
.empty p { margin: 0 0 6px; font-size: 15px; color: var(--ink-2); }
.empty .empty-sub { font-size: 13px; color: var(--ink-3); }

/* ---------- 单页说明卡 ---------- */
.sheet {
  position: relative;
  margin: 54px 0 0;
  padding: 26px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-s);
}
.sheet::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: var(--line-2);
}
.sheet-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}
.sheet-title span { position: relative; }
.sheet-title span::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: -3px;
  height: 5px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 3px;
  z-index: -1;
}

.solve {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--accent-soft);
  font-size: 13px;
  color: var(--ink-2);
}
.solve a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--accent-ink);
  white-space: nowrap;
}
.solve svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sell-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.sell-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.85;
}
.sell-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .65;
}
.sell-list li:last-child { color: var(--ink); }

/* ---------- 页脚 ---------- */
.foot {
  padding: 46px 0 60px;
  text-align: center;
}
.quote { font-family: var(--font-serif); font-size: 14px; line-height: 2; color: var(--ink-3); }
.quote p { margin: 0; }
.sign {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .1em;
  opacity: .8;
}
.fine {
  margin: 26px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  opacity: .62;
  letter-spacing: .06em;
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 55;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-m);
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .24s, transform .24s, border-color .2s, color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent-ink); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 弹窗通用 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-veil {
  position: absolute;
  inset: 0;
  background: rgba(40, 34, 24, .5);
  backdrop-filter: blur(3px);
}
[data-theme="night"] .modal-veil { background: rgba(0, 0, 0, .62); }
@keyframes veil { from { opacity: 0; } }

.m-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  width: min(1000px, 100%);
  max-height: min(86vh, 880px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  animation: pop .26s cubic-bezier(.2,.8,.3,1);
}
@keyframes pop { from { transform: translateY(14px) scale(.985); } }

.m-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1;
  transition: background .18s, color .18s, transform .18s;
}
.m-close:hover { background: var(--seal); color: #fff; border-color: var(--seal); transform: rotate(90deg); }

/* 左：图集 */
.m-gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  background: color-mix(in srgb, var(--bg-2) 70%, var(--card));
  border-right: 1px solid var(--line-2);
  overflow-y: auto;
}
.m-stage {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.m-stage img {
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  background: var(--line-2);
}
.m-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(28, 24, 18, .34);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  opacity: .55;
  transition: opacity .2s, background .2s;
  backdrop-filter: blur(3px);
}
.m-stage:hover .m-nav, .m-nav:focus-visible { opacity: .95; }
.m-nav:hover { background: rgba(28, 24, 18, .6); }
.m-prev { left: 8px; }
.m-next { right: 8px; }
.m-nav[disabled] { opacity: 0 !important; pointer-events: none; }

.m-thumbs { display: flex; gap: 7px; flex-wrap: wrap; }
.m-thumbs button {
  padding: 0;
  width: 62px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: .52;
  transition: opacity .16s, border-color .16s;
  background: none;
}
.m-thumbs button img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.m-thumbs button:hover { opacity: .85; }
.m-thumbs button.on { opacity: 1; border-color: var(--accent); }


/* 右：正文 */
.m-body {
  padding: 26px 28px 28px;
  overflow-y: auto;
}



.m-title {
  margin: 18px 0 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .01em;
  padding-right: 30px;
}
.m-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.m-date {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}
.m-summary {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}
.m-summary p { margin: 0 0 2px; }
.m-summary p:first-child { color: var(--ink); }


.m-drives { margin-top: 9px; display: grid; gap: 8px; animation: pop .2s ease-out; }
.drive {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--card);
  flex-wrap: wrap;
}
.drive-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px 3px;
  flex: none;
}
.drive-code {
  font: 600 13px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: var(--ink);
  letter-spacing: .02em;
}
.drive-code .pw-k {
  font: 400 11.5px/1 var(--font-ui);
  color: var(--ink-3);
  letter-spacing: 0;
  margin-right: 2px;
}
.drive-btn {
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
  color: var(--ink-2);
  transition: border-color .16s, color .16s, background .16s;
}
.drive-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.drive-btn.open { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="night"] .drive-btn.open { color: #16180f; }

.m-orig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.m-orig:hover { color: var(--accent-ink); }
.m-orig svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.m-orig.none { opacity: .55; pointer-events: none; text-decoration: none; }

/* 说明弹窗 */
.doc-panel {
  position: relative;
  width: min(660px, 100%);
  max-height: min(84vh, 780px);
  overflow-y: auto;
  padding: 30px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-l);
  animation: pop .26s cubic-bezier(.2,.8,.3,1);
}
.doc-title { margin: 0 0 6px; font-size: 19px; font-weight: 700; letter-spacing: .02em; padding-right: 34px; }
.doc-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.doc-lead { margin: 14px 0 18px; }

.pw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.pw-card {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.pw-when { font-size: 11.5px; color: var(--ink-3); margin: 0 0 7px; letter-spacing: .02em; }
.pw-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 14px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: var(--ink);
  letter-spacing: .02em;
  flex-wrap: wrap;
}
.pw-hint { font: 400 11.5px/1.4 var(--font-ui); color: var(--ink-3); letter-spacing: 0; }
.pw-code .drive-btn { margin-left: auto; }

.steps { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: s; }
.steps li {
  position: relative;
  padding-left: 34px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.85;
  counter-increment: s;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-soft);
}

.log-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.log-entry { position: relative; padding-left: 20px; }
.log-entry::before {
  content: "";
  position: absolute;
  left: 0; top: 7px; bottom: 2px;
  width: 1px;
  background: var(--line);
}
.log-entry:last-child::before { bottom: auto; height: 14px; }
.log-entry::after {
  content: "";
  position: absolute;
  left: -2.5px; top: 5px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.log-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 6px;
  padding: 3px 9px 4px;
  font-variant-numeric: tabular-nums;
}
.log-items { margin: 0; padding: 0 0 0 2px; list-style: none; display: grid; gap: 5px; }
.log-items li { position: relative; padding-left: 14px; font-size: 13px; color: var(--ink-2); }
.log-items li::before { content: "·"; position: absolute; left: 2px; color: var(--ink-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-new { padding-top: 0; max-width: 340px; }
  .m-panel { grid-template-columns: 1fr; max-height: 88vh; }
  .m-gallery { border-right: 0; border-bottom: 1px solid var(--line-2); padding: 18px; }
  .m-stage img { max-height: 34vh; }
  .m-body { padding: 20px 22px 24px; }
}

@media (max-width: 640px) {
  .wrap { width: min(1120px, 100% - 28px); }
  .hero { padding: 48px 0 22px; }
  .kicker { letter-spacing: .34em; font-size: 10px; }
  .intro { font-size: 14px; }
  .toolbar { flex-wrap: wrap; gap: 9px; padding: 11px 0; }
  .sorts { flex: 1 1 100%; order: 2; }
  .sorts button { flex: 1; text-align: center; }
  .search { order: 1; flex: 1 1 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 12px; }
  .gcard .card-body { padding: 9px 10px 10px; gap: 5px; }
  .gcard .card-title { font-size: 13px; }
  .gcard .card-foot { font-size: 10.5px; }
  .sheet { padding: 20px 18px 22px; }
  .pw-cards { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
  .m-body { padding: 16px 16px 20px; }
  .m-title { font-size: 20px; }
  .m-gallery { padding: 14px; }
  .to-top { right: 14px; bottom: 16px; width: 38px; height: 38px; }
  .theme-toggle { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===========================================================
   v3 增补（第二版修改意见）
   =========================================================== */

/* ---------- 标签胶囊 ---------- */
.tag-chip {
  --tag: #a2977f;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px 3px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: .01em;
  color: color-mix(in srgb, var(--tag) 70%, var(--ink));
  background: color-mix(in srgb, var(--tag) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag) 24%, transparent);
  white-space: nowrap;
}
[data-theme="night"] .tag-chip {
  color: color-mix(in srgb, var(--tag) 60%, var(--ink));
  background: color-mix(in srgb, var(--tag) 18%, transparent);
  border-color: color-mix(in srgb, var(--tag) 30%, transparent);
}
.tag-chip.sm { font-size: 10.5px; padding: 1px 7px 2px; }
.tag-chip.ell { min-width: 20px; justify-content: center; opacity: .7; letter-spacing: .1em; }

/* ---------- 头部微调 ---------- */
.hero-inner { grid-template-columns: minmax(0, 1fr) 296px; gap: 20px; }
.site-title { cursor: pointer; margin-bottom: 46px; }
.intro p:first-child { color: var(--ink-2); font-weight: 400; }

/* 标题下面那枚浅色太阳 */
@keyframes sunPop {
  0% { transform: scale(1); }
  38% { transform: scale(.72) rotate(-24deg); }
  70% { transform: scale(1.14) rotate(6deg); }
  100% { transform: scale(1); }
}

/* ---------- 统计行 + 颜文字 + 今日运势 ---------- */
.stat { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kao {
  border: 0;
  padding: 2px 6px 3px;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
  font-size: 12.5px;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.kao:hover { background: var(--accent-soft); color: var(--accent-ink); }

.luck {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 40;
  width: min(370px, 88vw);
  padding: 15px 17px 16px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  box-shadow: var(--shadow-l);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: left;
  transform-origin: bottom left;
}
.luck::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -6px;
  width: 10px; height: 10px;
  background: var(--card);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.luck-top { display: flex; align-items: baseline; gap: 9px; }
.luck-top b { font-size: 16px; letter-spacing: .06em; color: var(--seal); }
.luck-top i { font-style: normal; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.luck-text { color: var(--ink); }
.luck-cheer { color: var(--ink-2); }
.luck-extra {
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-3);
  opacity: .82;
  font-family: var(--font-serif);
}
.luck[data-kind="quote"] .luck-extra { font-style: normal; }

/* ---------- 最新入库卡 + 叠纸 ---------- */


/* 花体 New! 写字动画 */
@keyframes writeIn {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
}


/* ---------- 详情：提醒 / 攻略 / 下载 ---------- */
.m-gallery { position: relative; }
.m-stage { aspect-ratio: 16 / 9; width: 100%; }
.m-track {
  display: flex;
  height: 100%;
  transition: transform .34s cubic-bezier(.2, .72, .3, 1);
  will-change: transform;
}
.m-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--line-2);
}
.m-stage .m-track img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }

.m-warnline {
  margin: 0 0 9px;
  font-size: 12.5px;
  line-height: 1.75;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--seal);
}
[data-theme="night"] .m-warnline { color: #e2907c; }

.m-guide-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 15px;
  padding: 10px 13px;
  border: 1px dashed color-mix(in srgb, var(--seal) 32%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--seal) 4%, transparent);
  color: color-mix(in srgb, var(--seal) 74%, var(--ink));
  font-size: 13px;
  text-align: left;
  transition: background .16s, border-color .16s;
}
.m-guide-btn:hover { background: color-mix(in srgb, var(--seal) 8%, transparent); }

.m-boxes { display: grid; gap: 8px; margin-top: 14px; }
.m-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  overflow: hidden;
}
.m-box-head:hover { background: var(--accent-soft); }
.m-box-body { padding: 0 12px 12px; }
.m-box.off { opacity: .58; }

.chev {
  flex: none;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .22s;
}
.chev.right { transform: rotate(-45deg); }
[aria-expanded="true"] .chev { transform: rotate(-135deg) translateY(-2px); }

.m-pass { display: flex; gap: 8px; margin-top: 2px; }
.m-pass input {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: 13px/1.4 var(--font-ui);
  letter-spacing: .05em;
}
.m-pass input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.m-pass button {
  padding: 8px 15px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  transition: filter .16s;
}
.m-pass button:hover { filter: brightness(1.06); }
.m-pass-err { margin: 7px 0 0; font-size: 11.5px; color: var(--seal); }

/* ---------- 大图 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(14, 12, 9, .92);
  backdrop-filter: blur(4px);
}
.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.lb-close, .lb-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(40, 36, 30, .55);
  color: #f4efe2;
  backdrop-filter: blur(6px);
  transition: background .18s, transform .18s;
}
.lb-close {
  top: 20px; right: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}
.lb-close:hover { background: rgba(180, 69, 47, .8); transform: rotate(90deg); }
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 64px;
  border-radius: 9px;
  font-size: 26px;
  line-height: 1;
}
.lb-nav:hover { background: rgba(60, 54, 44, .8); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-new { padding-top: 0; margin-top: 6px; }
  .site-title { margin-bottom: 44px; }
  .m-stage { aspect-ratio: 4 / 3; }
  .m-boxes { gap: 7px; }
}
@media (max-width: 520px) {
  .luck { width: min(320px, 90vw); }
  .lightbox { padding: 14px; }
  .lb-nav { width: 34px; height: 52px; }
}
.title-wrap { position: relative; margin-bottom: 48px; }
.title-wrap .site-title { margin-bottom: 0; }

/* ===========================================================
   v4 增补（第三版修改意见）：英伦小报质感 + 首屏轮播 + 第三级攻略
   =========================================================== */

/* ---------- 主题切换渐变 ---------- */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease,
              fill .5s ease, stroke .5s ease, box-shadow .5s ease !important;
}

/* ---------- 报头 ---------- */
.kicker {
  border-top: 3px double color-mix(in srgb, var(--ink) 62%, transparent);
  padding-top: 12px;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--ink-2);
}
.title-wrap {
  margin-bottom: 30px;
  padding-bottom: 13px;
  border-bottom: 3px double color-mix(in srgb, var(--ink) 68%, transparent);
}
.site-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 2.9vw, 36px);
  letter-spacing: .01em;
  margin: 0;
}.hero { padding-top: 52px; }

.hero-inner {
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 38px;
}
@media (min-width: 1100px) { .hero-inner { padding-right: 0; } }

/* 方形化 + 细线分割 */
.btn, .bili, .search, .sorts button, .chip, .tag-chip,
.m-box, .pw-card, .doc-panel, .to-top { border-radius: 3px; }
.btn, .bili, .search { box-shadow: none; }
.bili img { border-radius: 2px; }
.gcard {
  border-radius: 3px;
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.gcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: color-mix(in srgb, var(--ink) 32%, transparent);
}
.gcard .card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .008em;
}
.gcard .card-body { padding: 12px 13px 13px; gap: 8px; }
.sheet {
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-top: 3px double color-mix(in srgb, var(--ink) 60%, transparent);
  box-shadow: none;
}
.sheet-title { font-family: var(--font-serif); letter-spacing: .04em; }
.foot .quote { font-family: var(--font-serif); }
.m-panel { border-radius: 4px; }
.doc-panel { border-radius: 4px; }
.m-title, .doc-title { font-family: var(--font-serif); letter-spacing: .015em; }

/* ---------- 标签：颜色找回来 + 印泥质感 ---------- */
.tag-chip {
  --tag: #8d8272;
  color: color-mix(in srgb, var(--tag) 74%, #2a251c);
  background: color-mix(in srgb, var(--tag) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag) 44%, transparent);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
[data-theme="night"] .tag-chip {
  color: color-mix(in srgb, var(--tag) 68%, #ffffff);
  background: color-mix(in srgb, var(--tag) 24%, transparent);
  border-color: color-mix(in srgb, var(--tag) 52%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.chip {
  --tag: #8d8272;
  color: color-mix(in srgb, var(--tag) 72%, #2a251c);
  background: color-mix(in srgb, var(--tag) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag) 40%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
[data-theme="night"] .chip {
  color: color-mix(in srgb, var(--tag) 66%, #ffffff);
  background: color-mix(in srgb, var(--tag) 20%, transparent);
  border-color: color-mix(in srgb, var(--tag) 48%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.chip.on {
  background: color-mix(in srgb, var(--tag) 80%, #1d1913);
  border-color: color-mix(in srgb, var(--tag) 80%, #1d1913);
  color: #fffdf6;
}
[data-theme="night"] .chip.on { color: #14160f; }

/* ---------- 首屏轮播 ---------- */
.hero-new { padding-top: 4px; max-width: none; }
.carousel {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 3px;
  background: var(--card);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.car-view {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .75, .28, 1);
  will-change: transform;
}
.car-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line-2);
  cursor: pointer;
}
.car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  gap: 7px;
  padding: 48px 20px 26px;
  background: linear-gradient(to top, rgba(10, 9, 7, .84), rgba(10, 9, 7, .46) 54%, rgba(10, 9, 7, 0));
  color: #f7f2e6;
}
.car-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.car-teaser {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(247, 242, 230, .84);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.car-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.car-cap .tag-chip {
  color: #fdfaf1;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .38);
  box-shadow: none;
  backdrop-filter: blur(2px);
}
.car-new {
  justify-self: start;
  padding: 2px 8px 3px;
  border-radius: 2px;
  background: #ef4f7b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.car-label {
  position: absolute;
  top: 11px; left: 11px;
  z-index: 3;
  padding: 3px 10px 4px;
  border-radius: 2px;
  background: #ef4f7b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
.car-dots {
  position: absolute;
  left: 0; right: 0; bottom: 9px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.car-dot {
  width: 7px; height: 7px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .78);
  background: transparent;
  transition: background .2s, transform .2s;
}
.car-dot:hover { background: rgba(255, 255, 255, .5); }
.car-dot.on { background: #fff; transform: scale(1.18); }

.card-script {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: var(--font-script);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1;
  color: #17140f;
  transform: rotate(-6deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 0 10px rgba(255, 255, 255, .9), 0 0 22px rgba(255, 255, 255, .6);
  animation: writeFade 6s ease-in-out infinite;
}
[data-theme="night"] .card-script {
  color: #efd69a;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 0 14px rgba(0, 0, 0, .65);
}
@keyframes writeFade {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  6%   { opacity: 1; }
  24%  { clip-path: inset(0 0 0 0); opacity: 1; }
  58%  { clip-path: inset(0 0 0 0); opacity: 1; }
  76%  { opacity: 0; }
  100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card-script { animation: none; clip-path: none; opacity: .9; }
  .car-view { transition: none; }
}

/* ---------- 详情：提醒 / 攻略按钮 / 下载框 ---------- */
.m-warnline { font-weight: 400; }
.m-guide-btn { border-radius: 3px; }
.m-guide-sub {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  color: color-mix(in srgb, var(--seal) 68%, var(--ink-3));
  letter-spacing: .04em;
}
.m-guide-btn .chev { margin-left: 10px; }
.m-box { border-radius: 3px; }
.m-dim {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
}
.m-url {
  display: block;
  padding: 9px 11px;
  border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 3px;
  background: var(--card);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
  color: var(--accent-ink);
}
.m-url:hover { background: var(--accent-soft); }
.m-url-off { margin: 0; font-size: 12px; color: var(--ink-3); }
.m-video {
  display: inline-block;
  margin-top: 15px;
  padding-bottom: 1px;
  font-size: 12.5px;
  color: var(--accent-ink);
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 48%, transparent);
  cursor: pointer;
}
.m-video:hover { text-decoration: none; border-bottom-style: solid; }
.m-video.off {
  color: var(--ink-3);
  border-bottom-color: transparent;
  cursor: default;
}

/* ---------- 第三级：攻略 ---------- */
#modal-guide { z-index: 88; }
.gp-panel {
  position: relative;
  width: min(720px, 92vw);
  max-height: 82vh;
  padding: 26px 30px 30px;
  border: 1px solid var(--line);
  border-top: 3px double color-mix(in srgb, var(--seal) 55%, transparent);
  border-radius: 4px;
  background: var(--card);
  box-shadow: var(--shadow-l);
  overflow-y: auto;
  scrollbar-width: none;
  animation: pop .24s cubic-bezier(.2, .8, .3, 1);
}
.gp-panel::-webkit-scrollbar { display: none; }
.gp-kicker {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 10.5px;
  letter-spacing: .32em;
  color: var(--seal);
}
.gp-title {
  margin: 0 0 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: .02em;
}
.gp-body { font-size: 13.5px; line-height: 2.05; color: var(--ink-2); }
.gp-body p { margin: 0 0 9px; }
.gp-body p:last-child { margin-bottom: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
  .car-slide { aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-new { margin-top: 4px; }
  .car-slide { aspect-ratio: 16 / 9; }
  .car-cap { padding: 40px 16px 24px; }
}
@media (max-width: 520px) {  .car-teaser { display: none; }
  .gp-panel { padding: 22px 20px 24px; }
}

.pw-cards .pw-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ===========================================================
   v5 增补（第四版修改意见）：真实纸张素材 + 英伦小报化 + 标签上色
   =========================================================== */

:root {
  --font-display: "Playfair Display", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --font-script: "UnifrakturMaguntia", "Playfair Display", Georgia, serif;
}

/* ---------- 纸张：真的照片素材，不再用 CSS 画点阵 ---------- */
body {
  background-color: var(--bg);
  background-image: url("img/tex/bg-day.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
[data-theme="night"] body {
  background-image: url("img/tex/bg-night.webp");
}
body::before { display: none; }

.gcard, .sheet, .doc-panel, .m-panel, .gp-panel, .pw-card, .pw-unlock {
  background-color: var(--card);
  background-image: url("img/tex/card-day.webp");
  background-size: 480px auto;
  background-repeat: repeat;
}
[data-theme="night"] .gcard,
[data-theme="night"] .sheet,
[data-theme="night"] .doc-panel,
[data-theme="night"] .m-panel,
[data-theme="night"] .gp-panel,
[data-theme="night"] .pw-card,
[data-theme="night"] .pw-unlock {
  background-image: url("img/tex/card-night.webp");
}

/* ---------- 报头与标题：衬线 + 小型大写 ---------- */
.kicker {
  font-family: var(--font-display);
  font-variant: small-caps;
  letter-spacing: .32em;
}
.site-title { font-family: var(--font-display), var(--font-serif); }
.site-title .cn { font-family: var(--font-serif); }
.card-title, .car-title { font-family: var(--font-serif); }
.card-foot, .m-date, .log-date, .car-label, .pw-when, .stat {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* ---------- 卡片：双线画框（报纸上的版框） ---------- */
.gcard { position: relative; border-color: color-mix(in srgb, var(--ink) 26%, transparent); }
.gcard::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  pointer-events: none;
  transition: border-color .22s ease;
}
.gcard:hover::after { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.gcard .card-body { padding-left: 15px; padding-right: 15px; }

.sheet { position: relative; border-color: color-mix(in srgb, var(--ink) 24%, transparent); }
.sheet::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 3px double color-mix(in srgb, var(--ink) 20%, transparent);
  pointer-events: none;
}
.sheet > * { position: relative; z-index: 1; }

/* ---------- 标签：把 docx 里的原色真正放回来 ---------- */
.tag-chip {
  color: color-mix(in srgb, var(--tag, #8d8370) 88%, #1e1a14);
  background: color-mix(in srgb, var(--tag, #b3a98f) 16%, var(--card));
  border: 1px solid color-mix(in srgb, var(--tag, #b3a98f) 52%, transparent);
}
[data-theme="night"] .tag-chip {
  color: color-mix(in srgb, var(--tag, #cfc6b2) 74%, #ffffff);
  background: color-mix(in srgb, var(--tag, #8d8370) 26%, transparent);
  border-color: color-mix(in srgb, var(--tag, #8d8370) 56%, transparent);
}
.chip {
  color: color-mix(in srgb, var(--tag, #8d8370) 86%, #1e1a14);
  background: color-mix(in srgb, var(--tag, #d8cfb8) 13%, var(--card));
  border: 1px solid color-mix(in srgb, var(--tag, #d8cfb8) 50%, transparent);
}
[data-theme="night"] .chip {
  color: color-mix(in srgb, var(--tag, #cfc6b2) 74%, #ffffff);
  background: color-mix(in srgb, var(--tag, #8d8370) 24%, transparent);
  border-color: color-mix(in srgb, var(--tag, #8d8370) 54%, transparent);
}

/* ---------- 首屏：花体 New! 落到最新那部游戏的封面上 ---------- */
.card-script { font-family: var(--font-script); font-size: clamp(20px, 2.1vw, 28px); }

/* ---------- 解压弹窗：解锁密码单独一块，虚线隔开 ---------- */
.pw-unlock {
  margin: 16px 0 0;
  padding: 12px 15px 13px;
  border: 1px solid color-mix(in srgb, var(--seal) 44%, transparent);
  background-color: color-mix(in srgb, var(--seal) 7%, var(--card));
  border-radius: 3px;
}
.pw-unlock .pw-when { color: color-mix(in srgb, var(--seal) 82%, var(--ink-2)); letter-spacing: .12em; }
.pw-unlock .pw-code { border: 0; background: transparent; padding: 0; margin: 0; }
.pw-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .22em;
}
.pw-sep::before, .pw-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}
.pw-sep + .pw-cards { margin-top: 12px; }

/* ---------- 页脚：那两句话淡到几乎看不见 ---------- */
.quote { opacity: .16; }
.sign { opacity: .2; }

/* ---------- 圆角彻底收紧 ---------- */
.m-panel, .doc-panel, .gp-panel, .sheet, .gcard, .lightbox img { border-radius: 2px; }

/* 纸上的卡片要有一点厚度，否则和底纹糊在一起 */
.gcard { box-shadow: 0 1px 0 rgba(60, 45, 25, .06), 0 14px 24px -22px rgba(60, 45, 25, .55); }
[data-theme="night"] .gcard { box-shadow: 0 1px 0 rgba(0, 0, 0, .45), 0 14px 24px -20px rgba(0, 0, 0, .7); }
.sheet { box-shadow: 0 18px 34px -30px rgba(60, 45, 25, .5); }
[data-theme="night"] .sheet { box-shadow: 0 18px 34px -28px rgba(0, 0, 0, .8); }

/* 标签再浓一点，接近原文档的印刷色 */
.tag-chip { color: color-mix(in srgb, var(--tag, #8d8370) 94%, #1a1712); }
.chip { color: color-mix(in srgb, var(--tag, #8d8370) 92%, #1a1712); }

/* 花体 New! 落在第一张卡的纸面上（衬纸上才好读） */
.card-body { position: relative; }
.card-script {
  position: absolute;
  inset: auto 12px auto auto;
  display: block;
  z-index: 2;
  color: #1b1710;
  font-size: clamp(19px, 2vw, 26px);
  text-shadow: none;
  transform: rotate(-6deg);
  transform-origin: right top;
  opacity: 0;
}
.card-title { padding-right: 62px; }
[data-theme="night"] .card-script {
  color: #e9cf90;
  text-shadow: 0 0 10px rgba(233, 207, 144, .35);
}

.gcard .card-title { padding-right: 0; }
.gcard.is-new .card-title { padding-right: 64px; }

/* ============================================================
   v6：背景交叉淡入、轮播标签上色、New! 居中、解锁框去红
   ============================================================ */

/* 夜间纸纹叠在日间之上，切换时是真正的交叉淡入（background-image 本身没法过渡） */
.bg-night {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("img/tex/bg-night.webp") center/cover no-repeat;
  opacity: 0;
  transition: opacity .55s ease;
}
[data-theme="night"] .bg-night { opacity: 1; }
[data-theme="night"] body { background-image: url("img/tex/bg-day.webp"); }

/* 轮播里的标签也要有颜色（深色遮罩上改用亮一档的混色） */
.car-cap .tag-chip,
.car-cap .tag-chip.sm {
  color: color-mix(in srgb, var(--tag, #cfc6b2) 62%, #ffffff);
  background: color-mix(in srgb, var(--tag, #8d8370) 26%, rgba(20, 18, 14, .55));
  border-color: color-mix(in srgb, var(--tag, #cfc6b2) 58%, transparent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

/* 花体 New! 居中压在封面上，金白两色，进出更快、停留不变 */
.card-script {
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(-4deg);
  font-size: clamp(30px, 3.2vw, 46px);
  color: #fff6e2;
  text-shadow: 0 0 18px rgba(255, 214, 130, .55), 0 2px 6px rgba(0, 0, 0, .55);
  background: none;
}
[data-theme="night"] .card-script {
  color: #ffd98a;
  text-shadow: 0 0 20px rgba(255, 196, 92, .55), 0 2px 6px rgba(0, 0, 0, .7);
}
.card-script::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 62%);
  z-index: -1;
}
@keyframes writeFade {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  3%   { opacity: 1; }
  7%   { clip-path: inset(0 0 0 0); opacity: 1; }
  58%  { clip-path: inset(0 0 0 0); opacity: 1; }
  63%  { opacity: 0; }
  66%  { clip-path: inset(0 100% 0 0); opacity: 0; }
  100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}
.gcard.is-new .card-title { padding-right: 0; }

/* 解锁密码框：去掉扎眼的红，改成温和的墨金 */
.pw-unlock {
  border-color: color-mix(in srgb, var(--ink) 24%, transparent);
  background-color: color-mix(in srgb, var(--ink) 5%, var(--card));
}
.pw-unlock .pw-when {
  color: var(--ink-2);
  letter-spacing: .16em;
}

/* 简介允许两行，配合 fitTeaser 在标点处收尾 */
.car-teaser { -webkit-line-clamp: 2; line-height: 1.55; }

/* 小字统一提大一档，别再为难眼睛 */
.pw-when { font-size: 12.5px; }
.pw-unlock .pw-when { font-size: 13px; color: var(--ink); letter-spacing: .1em; }
.card-foot, .m-date, .car-label, .stat { font-size: 12px; }
.kicker { font-size: 11.5px; }
.fine { font-size: 12px; opacity: .5; }

/* ============================================================
   v7：中文黑体（Noto Sans SC 子集）
   ============================================================ */
body, button, input, .kicker, .card-title, .site-title, .m-title, .car-title,
.chip, .tag-chip, .btn, .bili, .sorts button, .sheet h2, .doc-title {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}
.site-title, .card-title, .m-title, .car-title, .sheet h2 {
  font-weight: 900;
  letter-spacing: -.005em;
}

/* ===========================================================
   v8：苏联游园会 / 老家电
   红带白字 + 金属外壳 + 圆角屏幕 + 胶囊铭牌 + 搪瓷牌
   =========================================================== */

:root {
  --metal-hi: #f6f0e3;
  --metal: #cfc6b3;
  --metal-lo: #9a907c;
  --brass: #a98a4d;
  --brass-l: #c9a86a;
  --red: #b3312a;
  --red-2: #c8453a;

  --bg: #e7deca;
  --bg-2: #f1e8d6;
  --card: #f8f1e2;
  --ink: #241e17;
  --ink-2: #5d5346;
  --ink-3: #8b8171;
  --line: #d6c9ae;
  --line-2: #e6dbc4;
  --accent: #b3312a;
  --accent-ink: #9a2b24;
  --accent-soft: rgba(179, 49, 42, .09);
  --seal: #b3312a;
  --radius: 6px;
}

[data-theme="night"] {
  --metal-hi: #4a4237;
  --metal: #332c24;
  --metal-lo: #1d1813;
  --brass: #8e7440;
  --brass-l: #b2915a;
  --red: #c8453a;
  --red-2: #d9563f;

  --bg: #16130f;
  --bg-2: #1e1a15;
  --card: #251f19;
  --ink: #f0e6d2;
  --ink-2: #ab9e88;
  --ink-3: #7f7464;
  --line: #3b3128;
  --line-2: #2e2720;
  --accent: #d9563f;
  --accent-ink: #e5725c;
  --accent-soft: rgba(217, 86, 63, .14);
  --seal: #d9563f;
}

/* ---------- 报头：红带白字 ---------- */
.title-wrap { display: block; }
.site-title,
#title-hit .site-title {
  display: inline-block;
  padding: 8px 24px 10px;
  background: linear-gradient(178deg, #c33a30 0%, #b3312a 55%, #9d2822 100%);
  color: #fdf8ec;
  font-weight: 900;
  letter-spacing: .02em;
  transform: skewY(-1.1deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 0 -2px 0 rgba(90, 18, 14, .35),
    0 3px 0 rgba(104, 24, 18, .55),
    0 14px 26px -14px rgba(110, 30, 20, .6);
  text-shadow: 0 1px 0 rgba(90, 18, 14, .35);
}
.kicker { display: flex; align-items: center; gap: 9px; letter-spacing: .3em; color: var(--ink-2); }
.kicker::before {
  content: ""; width: 7px; height: 7px; background: var(--red);
  box-shadow: 0 0 0 2px rgba(179, 49, 42, .18);
}
[data-theme="night"] .kicker::before { box-shadow: 0 0 0 2px rgba(217, 86, 63, .22); }

/* ---------- 按钮：金属铭牌 ---------- */
.bili,
.btn {
  border: none;
  border-radius: 4px;
  background: linear-gradient(178deg, var(--metal-hi), var(--metal) 62%, var(--metal-lo));
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -2px 3px rgba(0, 0, 0, .16),
    0 0 0 1px rgba(90, 78, 56, .55),
    0 3px 0 rgba(90, 78, 56, .28),
    0 8px 16px -10px rgba(0, 0, 0, .5);
  transition: transform .12s, box-shadow .12s;
}
.bili:hover, .btn:hover { transform: translateY(-1px); }
.bili:active, .btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 2px 5px rgba(0, 0, 0, .2), 0 0 0 1px rgba(90, 78, 56, .55);
}
.btn.primary,
.btn[data-primary] {
  background: linear-gradient(178deg, #c8453a, #b3312a 58%, #96251f);
  color: #fdf8ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(80, 16, 12, .4), 0 3px 0 rgba(96, 22, 17, .55), 0 8px 16px -10px rgba(120, 30, 20, .7);
}

/* ---------- 搜索 / 排序：金属仪表 ---------- */
.search {
  background: linear-gradient(178deg, var(--metal-hi), var(--metal) 70%, var(--metal-lo));
  border: none;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 0 0 1px rgba(90, 78, 56, .5),
    inset 0 3px 7px rgba(0, 0, 0, .1),
    0 2px 0 rgba(90, 78, 56, .22);
  color: var(--ink-3);
}
.search input { color: var(--ink); }

.sorts button {
  background: linear-gradient(178deg, var(--metal-hi), var(--metal) 70%, var(--metal-lo));
  border: none;
  border-radius: 3px;
  color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(90, 78, 56, .42), 0 2px 0 rgba(90, 78, 56, .24);
}
.sorts button.on {
  background: linear-gradient(178deg, #c8453a, #b3312a 58%, #96251f);
  color: #fdf8ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 0 rgba(96, 22, 17, .55);
}
[data-theme="night"] .sorts button.on { color: #fdf8ec; }

/* ---------- 标签：搪瓷牌 ---------- */
.chip {
  border: none;
  border-radius: 3px;
  background: linear-gradient(178deg, #fbf5e7, #e9dec9);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 0 0 1px rgba(120, 105, 78, .42),
    0 1px 0 rgba(120, 105, 78, .3);
  color: var(--ink-2);
}
.chip.on {
  background: linear-gradient(178deg, #c8453a, #b3312a 58%, #96251f);
  color: #fdf8ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 0 rgba(96, 22, 17, .5);
}
[data-theme="night"] .chip {
  background: linear-gradient(178deg, #3a332a, #262019);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(120, 100, 66, .3);
}
[data-theme="night"] .chip.on { background: linear-gradient(178deg, #d9563f, #c8453a); color: #1a140f; }

.tag-chip {
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 0 0 1px color-mix(in srgb, var(--tag, #8d8370) 42%, transparent);
}

/* ---------- 作品卡：老电视 ---------- */
.gcard {
  position: relative;
  border: none;
  border-radius: 12px;
  padding: 8px 8px 0;
  background: linear-gradient(175deg, var(--metal-hi) 0%, var(--metal) 56%, var(--metal-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 5px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(70, 60, 44, .55),
    0 10px 20px -12px rgba(0, 0, 0, .55);
  overflow: visible;
}
.gcard::after,
.gcard::before {
  content: none;
}
.gcard {
  background-image:
    radial-gradient(circle at 9px 9px, #6f6656 0 1.5px, rgba(255, 255, 255, .55) 1.6px 2.6px, transparent 3px),
    radial-gradient(circle at calc(100% - 9px) 9px, #6f6656 0 1.5px, rgba(255, 255, 255, .55) 1.6px 2.6px, transparent 3px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #6f6656 0 1.5px, rgba(255, 255, 255, .55) 1.6px 2.6px, transparent 3px),
    linear-gradient(175deg, var(--metal-hi) 0%, var(--metal) 56%, var(--metal-lo) 100%);
}
.gcard.is-new {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 5px rgba(0, 0, 0, .18),
    0 0 0 2px var(--red),
    0 10px 22px -12px rgba(120, 30, 20, .6);
}

.gcard .cover-box {
  border-radius: 16px / 20px;
  box-shadow:
    inset 0 0 0 2px #7d7362,
    inset 0 0 0 4px #26221b,
    inset 0 0 20px rgba(0, 0, 0, .85);
}
.gcard .cover-img { filter: saturate(.92) contrast(1.03); }

.gcard .card-body { padding: 9px 5px 9px; }
.gcard .card-title {
  display: inline-block;
  padding: 3px 11px 4px;
  border-radius: 20px;
  background: linear-gradient(#3d372d, #221e18);
  border: 1px solid rgba(150, 128, 78, .55);
  color: #f0e4cb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  padding-right: 11px;
}
.gcard.is-new .card-title { padding-right: 64px; }

.gcard .card-foot {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(90, 78, 56, .26);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: #6a6050;
}
[data-theme="night"] .gcard .card-foot { border-top-color: rgba(150, 128, 78, .22); color: var(--ink-3); }

/* 卡片里的标签缩小成搪瓷小牌 */
.gcard .tag-chip { font-size: 9.5px; padding: 2px 6px; }

/* 指示灯：用 card-foot 里的小圆点做，纯装饰 */
.gcard .card-foot::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  margin-right: 6px; vertical-align: 1px;
  background: var(--red);
  box-shadow: 0 0 6px rgba(179, 49, 42, .75);
  opacity: .55;
}

/* ---------- 最新作品：嵌在墙上的电视 ---------- */
.carousel {
  border-radius: 14px;
  padding: 10px;
  background:
    radial-gradient(circle at 10px 10px, #6f6656 0 1.6px, rgba(255, 255, 255, .5) 1.7px 2.8px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 10px) 10px, #6f6656 0 1.6px, rgba(255, 255, 255, .5) 1.7px 2.8px, transparent 3.2px),
    radial-gradient(circle at 10px calc(100% - 10px), #6f6656 0 1.6px, rgba(255, 255, 255, .5) 1.7px 2.8px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #6f6656 0 1.6px, rgba(255, 255, 255, .5) 1.7px 2.8px, transparent 3.2px),
    linear-gradient(175deg, var(--metal-hi) 0%, var(--metal) 56%, var(--metal-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 5px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(70, 60, 44, .55),
    0 14px 26px -16px rgba(0, 0, 0, .6);
}
.car-view { border-radius: 16px / 20px; box-shadow: inset 0 0 0 2px #7d7362, inset 0 0 0 4px #26221b; }
.car-label {
  border-radius: 20px;
  background: linear-gradient(#3d372d, #221e18);
  border: 1px solid rgba(150, 128, 78, .55);
  color: #f0e4cb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}
.car-dot { background: rgba(90, 78, 56, .35); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .25); }
.car-dot.on { background: var(--red); box-shadow: 0 0 8px rgba(179, 49, 42, .8); }

/* ---------- 小节标题：红带 ---------- */
.count-line {
  display: flex; align-items: center; gap: 12px;
  letter-spacing: .16em; color: var(--ink-2); font-weight: 700;
}
.count-line::after {
  content: "";
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(90, 78, 56, .35) 0 6px, transparent 6px 10px);
}

/* ---------- 底部声明：公告板 ---------- */
.sheet {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)),
    var(--card);
  box-shadow:
    inset 0 0 0 1px rgba(90, 78, 56, .3),
    inset 0 0 0 6px transparent,
    0 12px 24px -18px rgba(0, 0, 0, .5);
  border: none;
  border-top: 3px double var(--red);
}

/* ---------- 圆形仪表：主题 / 回顶 ---------- */
.theme-toggle,
.to-top {
  background:
    radial-gradient(circle at 36% 28%, var(--metal-hi) 0%, var(--metal) 48%, var(--metal-lo) 100%);
  border: none;
  box-shadow:
    inset 0 0 0 2px #6f6656,
    inset 0 0 0 4px rgba(255, 255, 255, .45),
    0 0 0 2px rgba(90, 78, 56, .35),
    0 6px 14px -8px rgba(0, 0, 0, .6);
}
.theme-toggle::before,
.to-top::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(58, 48, 34, .42);
  pointer-events: none;
}

/* ---------- 弹窗：老电视柜 ---------- */
.m-panel,
.doc-panel,
.gp-panel {
  border-radius: 10px;
  background: linear-gradient(178deg, var(--card), color-mix(in srgb, var(--card) 88%, #b9ac92));
  box-shadow:
    inset 0 0 0 1px rgba(90, 78, 56, .35),
    0 0 0 6px var(--metal),
    0 0 0 7px rgba(70, 60, 44, .45),
    0 30px 60px -30px rgba(0, 0, 0, .7);
}
.m-box {
  border-radius: 4px;
  background: linear-gradient(178deg, var(--metal-hi), var(--metal) 75%, var(--metal-lo));
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(90, 78, 56, .45), 0 2px 0 rgba(90, 78, 56, .22);
  color: var(--ink);
}
.m-box-head { color: var(--ink); }
.m-gallery {
  background: linear-gradient(160deg, #2a251e, #171310);
}
.pw-card {
  border-radius: 4px;
  background: linear-gradient(178deg, var(--metal-hi), var(--metal) 75%, var(--metal-lo));
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(90, 78, 56, .45);
}
.pw-unlock { border-radius: 4px; }
.m-warnline { color: var(--red); }

/* 夜间：金属压暗、红提亮 */
[data-theme="night"] .gcard {
  background-image:
    radial-gradient(circle at 9px 9px, #6a5c48 0 1.5px, rgba(255, 255, 255, .12) 1.6px 2.6px, transparent 3px),
    radial-gradient(circle at calc(100% - 9px) 9px, #6a5c48 0 1.5px, rgba(255, 255, 255, .12) 1.6px 2.6px, transparent 3px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #6a5c48 0 1.5px, rgba(255, 255, 255, .12) 1.6px 2.6px, transparent 3px),
    linear-gradient(175deg, var(--metal-hi) 0%, var(--metal) 56%, var(--metal-lo) 100%);
}
[data-theme="night"] .site-title {
  background: linear-gradient(178deg, #cf4b3e 0%, #b3312a 60%, #8f241e 100%);
}


/* v8 细节修正 */
.gcard .card-title {
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}
.gcard .card-body { display: flex; flex-direction: column; align-items: flex-start; }
.gcard .card-tags { align-self: stretch; }
.gcard .card-foot {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 10px;
}
.gcard .card-foot .warn,
.gcard .cover-box { border-radius: 12px / 16px; }

/* v8 收尾：卡片脚注提一档 */
.gcard .card-foot { font-size: 10.5px; color: #5b5142; letter-spacing: .1em; }
[data-theme="night"] .gcard .card-foot { color: var(--ink-3); }

/* ===========================================================
   v9：舒适度 + 贴纸点缀 + 三级标签体系
   一级 .chip（筛选，搪瓷牌）
   二级 .tag-chip.sm（卡片，色条小牌）
   三级 .tag-chip.lg（详情，实心贴纸）
   =========================================================== */

/* ---------- 作品名：不框起来，改成压在金属上的字 ---------- */
.gcard .card-title,
.gcard.is-new .card-title {
  width: auto;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.35;
  text-shadow: none;
}
[data-theme="night"] .gcard .card-title {
  color: #f2e8d4;
  text-shadow: none;
}

/* ---------- 二级标签：卡片里的小色条牌 ---------- */
.tag-chip.sm {
  font-size: 9.5px;
  padding: 2px 7px 2px 6px;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--tag, #8d8370) 26%, transparent);
  border-left: 2.5px solid color-mix(in srgb, var(--tag, #8d8370) 72%, transparent);
  background: color-mix(in srgb, var(--tag, #8d8370) 10%, var(--card));
  box-shadow: none;
  color: color-mix(in srgb, var(--tag, #8d8370) 72%, #1e1a14);
  letter-spacing: .01em;
}
[data-theme="night"] .tag-chip.sm {
  background: color-mix(in srgb, var(--tag, #8d8370) 14%, var(--card));
  border-color: color-mix(in srgb, var(--tag, #8d8370) 34%, transparent);
  border-left-color: color-mix(in srgb, var(--tag, #8d8370) 80%, transparent);
  color: color-mix(in srgb, var(--tag, #8d8370) 62%, #fff);
}

/* ---------- 三级标签：详情页实心贴纸 ---------- */
.tag-chip.lg,
.m-tags .tag-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 4px;
  border: none;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tag, #8d8370) 96%, #fff) 0%,
      color-mix(in srgb, var(--tag, #8d8370) 86%, #1e1a14) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -1px 0 rgba(0, 0, 0, .18),
    0 1px 0 rgba(0, 0, 0, .14),
    0 3px 8px -4px rgba(0, 0, 0, .55);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
}
.tag-chip.sm.ell {
  border-left-color: rgba(90, 78, 56, .35);
  background: rgba(90, 78, 56, .08);
  color: var(--ink-3);
  font-weight: 700;
}

/* ---------- 贴纸点缀 ①：卡片顶端的和纸胶带 ---------- */
.gcard::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 54px;
  height: 13px;
  transform: translateX(-50%) rotate(-1.6deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, rgba(236, 220, 180, .95), rgba(213, 194, 152, .95));
  border-left: 1px dashed rgba(150, 128, 78, .35);
  border-right: 1px dashed rgba(150, 128, 78, .35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  z-index: 3;
  pointer-events: none;
  opacity: .92;
}
.gcard.is-new::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, rgba(230, 138, 122, .95), rgba(196, 106, 92, .95));
}
[data-theme="night"] .gcard::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, rgba(108, 92, 62, .95), rgba(74, 62, 40, .95));
}

/* ---------- 贴纸点缀 ②：「共 N 部」前面的小印章 ---------- */
.count-line::before {
  content: "藏";
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-9deg);
  opacity: .85;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}

/* ---------- 贴纸点缀 ③：声明区左上角的胶带 ---------- */
.sheet::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 34px;
  width: 76px;
  height: 16px;
  transform: rotate(-2.2deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .32) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, rgba(236, 220, 180, .95), rgba(210, 190, 148, .95));
  border-left: 1px dashed rgba(150, 128, 78, .35);
  border-right: 1px dashed rgba(150, 128, 78, .35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
  opacity: .9;
}
[data-theme="night"] .sheet::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, rgba(106, 90, 60, .95), rgba(70, 58, 38, .95));
}

/* ---------- 舒适度：留白、行距、卡间距 ---------- */
.grid { gap: 26px 20px; }
.gcard {
  padding: 12px 10px 4px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.gcard:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 5px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(70, 60, 44, .55),
    0 16px 26px -14px rgba(0, 0, 0, .6);
}
.gcard .card-body { padding: 11px 6px 12px; gap: 9px; }
.gcard .card-tags { gap: 5px; row-gap: 5px; }
.gcard .card-foot { margin-top: 2px; padding-top: 8px; font-size: 11px; }
.carousel { padding: 12px; }
.count-line { margin: 26px 0 16px; }

/* 详情页标签区稍微松一点 */
.m-tags { gap: 9px; row-gap: 9px; }


/* v9 修正：中性标签在三级里轻量化，别抢彩色标签的注意力 */
.m-tags .tag-chip:not([style*="--tag"]),
.tag-chip.lg:not([style*="--tag"]) {
  background: linear-gradient(180deg, #fffdf5, #f2ead6);
  color: var(--ink-2);
  text-shadow: none;
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(120, 105, 78, .3), 0 1px 0 rgba(0, 0, 0, .08);
}
[data-theme="night"] .m-tags .tag-chip:not([style*="--tag"]),
[data-theme="night"] .tag-chip.lg:not([style*="--tag"]) {
  background: linear-gradient(180deg, #3a332a, #262019);
  color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(120, 100, 66, .3);
}

/* 印章再大一号 */
.count-line::before { width: 24px; height: 24px; font-size: 12.5px; }

/* 详情面板提亮一档，别发灰 */
.m-panel {
  background: linear-gradient(178deg, var(--card), color-mix(in srgb, var(--card) 94%, #b9ac92));
}
.m-date { font-size: 11.5px; letter-spacing: .08em; color: var(--ink-3); }

/* ===========================================================
   v10：细腻纹理 / 底边反光 / 封面徽章 / 小道具
   =========================================================== */

/* ---------- 金属细纹：极细横拉丝 + 微噪点 ---------- */
.gcard,
.carousel,
.m-box,
.pw-card,
.search,
.sorts button,
.bili,
.btn {
  background-blend-mode: normal, normal, normal, normal;
}

.gcard::before,
.carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(90, 76, 52, .045) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------- 卡片：底边反光 + 胶带移到 ::after ---------- */
.gcard {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(255, 255, 255, .55),
    inset 0 -4px 8px -2px rgba(255, 255, 255, .45),
    inset 0 -10px 16px -12px rgba(120, 96, 60, .55),
    inset 0 -2px 5px rgba(0, 0, 0, .14),
    0 0 0 1px rgba(70, 60, 44, .55),
    0 10px 20px -12px rgba(0, 0, 0, .5);
}
[data-theme="night"] .gcard {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(255, 255, 255, .1),
    inset 0 -4px 8px -2px rgba(255, 240, 210, .07),
    inset 0 -2px 5px rgba(0, 0, 0, .3),
    0 0 0 1px rgba(120, 100, 66, .4),
    0 10px 20px -12px rgba(0, 0, 0, .7);
}

/* 胶带：只贴在封面外沿，按卡片的 hash 左右随机 */
.gcard::before { content: none; }
.gcard::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 54px;
  height: 13px;
  z-index: 6;
  pointer-events: none;
  border-left: 1px dashed rgba(150, 128, 78, .35);
  border-right: 1px dashed rgba(150, 128, 78, .35);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, rgba(236, 220, 180, .95), rgba(213, 194, 152, .95));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  opacity: .92;
}
.gcard.tape-left::after { left: 26px; transform: rotate(-5deg); }
.gcard.tape-right::after { right: 26px; transform: rotate(4.5deg); }
.gcard:not(.tape-left):not(.tape-right)::after { content: none; }
.gcard.is-new::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, rgba(232, 140, 124, .95), rgba(198, 108, 94, .95));
}
[data-theme="night"] .gcard::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, rgba(110, 94, 62, .95), rgba(74, 62, 40, .95));
}

/* ---------- 封面徽章：日期 / 慎重 ---------- */
.cover-box { position: relative; }.cv-badge {
  font-size: 9.5px;
  line-height: 1.6;
  padding: 0 7px;
  border-radius: 2px;
  letter-spacing: .02em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

/* ---------- 小道具贴纸：绿植 / 齿轮 / 磁带 / 图钉 ---------- */

/* ---------- 声明区胶带位置微调 ---------- */
.sheet::before { left: 26px; }

/* 卡片正文少了一行，收紧一点 */
.gcard .card-body { padding: 10px 6px 11px; gap: 8px; }


/* v10 调整：道具缩小、纹理再细一档、徽章字提一点 */
.gcard::before, .carousel::before { opacity: .62; }

/* v10 道具重定位：贴在电视外壳右上角，不挡屏幕内容 */

/* 道具贴在机壳右上角（不裁切） */

/* 分隔行的小物架 */
.count-deco { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; }
.count-deco i {
  display: block;
  width: 21px;
  height: 21px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .82;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
}
.deco-plant { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'><rect x='28.5' y='30' width='3' height='16' fill='%234f6b45'/><ellipse cx='22' cy='29' rx='9' ry='5.5' transform='rotate(-32 22 29)' fill='%235d7d4f'/><ellipse cx='38' cy='27' rx='9' ry='5.5' transform='rotate(30 38 27)' fill='%236d8d5c'/><ellipse cx='30' cy='19' rx='6.5' ry='9' fill='%234a6440'/><path d='M19 43h22l-3.5 11H22.5z' fill='%23b06a45'/><path d='M19 43h22l-.8 3H19.8z' fill='%23c87f57'/></svg>"); transform: rotate(-6deg); }
.deco-radio { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'><line x1='30' y1='20' x2='47' y2='5' stroke='%237d7362' stroke-width='2.4' stroke-linecap='round'/><rect x='9' y='20' width='40' height='28' rx='3' fill='%23c2b79e'/><rect x='9' y='20' width='40' height='28' rx='3' fill='none' stroke='%236f6656' stroke-width='1.6'/><circle cx='22' cy='34' r='6.5' fill='%236f6656'/><circle cx='22' cy='34' r='2.6' fill='%23332c24'/><rect x='33' y='27' width='11' height='14' rx='1.5' fill='%23e8dcc2' opacity='.75'/><circle cx='38.5' cy='34' r='3.2' fill='%23b3312a'/></svg>"); transform: rotate(4deg); }
.deco-tape { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'><rect x='7' y='17' width='46' height='27' rx='3' fill='%232b2620'/><rect x='11' y='21' width='38' height='10' rx='1.5' fill='%23e8dcc2' opacity='.5'/><circle cx='20' cy='37' r='3.4' fill='%23f0e6cf'/><circle cx='40' cy='37' r='3.4' fill='%23f0e6cf'/><rect x='26' y='34' width='8' height='6' rx='1' fill='%23b3312a'/></svg>"); transform: rotate(-3deg); }

/* 搪瓷喷砂：更细的一层颗粒，压住"太光滑"的感觉 */
.gcard::before, .carousel::before {
  opacity: .8;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(90, 76, 52, .06) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .09) .7px, transparent .8px);
  background-size: auto, auto, 3px 3px;
}

/* ===========================================================
   v11：生活化小物（车票 / 回形针 / 邮票 / 灯泡）+ 灯串 + 夜间适配
   =========================================================== */

/* ---------- 卡片贴纸扩到八种 ---------- */
[data-theme="night"] .card-prop.p4,

/* ---------- 分隔行再加一张旧车票 ---------- */
.deco-ticket {
  width: 27px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 44'><path d='M4 8h62v28H4z' fill='%23f2e8cf' stroke='%23b9ab8b' stroke-width='1.4'/><rect x='4' y='8' width='11' height='28' fill='%23b3312a'/><path d='M21 17h38M21 24h30M21 31h34' stroke='%238c8069' stroke-width='1.8' stroke-linecap='round'/></svg>");
  transform: rotate(-4deg);
}
[data-theme="night"] .deco-ticket { filter: brightness(.8); }

/* ---------- 声明区顶上的灯串 ---------- */
.string-lights {
  position: absolute;
  top: -15px;
  left: 30px;
  right: 30px;
  height: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 3;
}
.string-lights::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 1px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(110, 96, 70, .55), rgba(80, 68, 50, .35));
  box-shadow: 0 1px 1px rgba(255, 255, 255, .35);
}
.string-lights i {
  position: relative;
  display: block;
  width: 8px;
  height: 11px;
  margin-top: 3px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 35% 30%, #fff6d8, #edc877 62%, #d3ab55);
  box-shadow: 0 0 7px rgba(240, 205, 130, .7), 0 1px 2px rgba(80, 66, 40, .4);
}
.string-lights i::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 1px;
  background: rgba(110, 96, 70, .6);
}
.string-lights i:nth-child(2n) { margin-top: 6px; }
.string-lights i:nth-child(3n) { margin-top: 4px; }

[data-theme="night"] .string-lights::before {
  background: linear-gradient(180deg, rgba(60, 52, 38, .8), rgba(40, 34, 26, .6));
  box-shadow: none;
}
[data-theme="night"] .string-lights i {
  background: radial-gradient(circle at 35% 30%, #fff3c4, #f0b95e 60%, #c98c33);
  box-shadow: 0 0 12px rgba(255, 190, 90, .85), 0 0 22px rgba(255, 170, 70, .4);
}

/* 窄屏灯串收一收 */
@media (max-width: 640px) {
  .string-lights { left: 18px; right: 18px; }
  .string-lights i:nth-child(n + 7) { display: none; }
  .deco-ticket { display: none; }
}


/* 灯串：改成下垂的弧线，灯泡小一号 */
.string-lights { top: -20px; left: 34px; right: 34px; height: 26px; }
.string-lights::before {
  top: 0;
  height: 12px;
  border-radius: 0 0 50% 50% / 0 0 12px 12px;
  background: none;
  border-bottom: 2px solid rgba(110, 96, 70, .5);
  box-shadow: none;
}
.string-lights i {
  width: 7px;
  height: 10px;
  margin-top: 0;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #f3e3b8 62%, #ddc78d);
  box-shadow: 0 0 6px rgba(230, 205, 150, .55), 0 1px 1px rgba(80, 66, 40, .35);
}
.string-lights i:nth-child(1) { margin-top: 8px; }
.string-lights i:nth-child(2) { margin-top: 4px; }
.string-lights i:nth-child(3) { margin-top: 1px; }
.string-lights i:nth-child(4) { margin-top: 0; }
.string-lights i:nth-child(5) { margin-top: 0; }
.string-lights i:nth-child(6) { margin-top: 1px; }
.string-lights i:nth-child(7) { margin-top: 4px; }
.string-lights i:nth-child(8) { margin-top: 8px; }
.string-lights i:nth-child(2n) { margin-top: 4px; }
.string-lights i:nth-child(3n) { margin-top: 2px; }

[data-theme="night"] .string-lights::before { border-bottom-color: rgba(150, 128, 90, .55); }
[data-theme="night"] .string-lights i {
  background: radial-gradient(circle at 35% 30%, #fff6cf, #f4bd5f 58%, #d08f2e);
  box-shadow: 0 0 12px rgba(255, 190, 90, .9), 0 0 24px rgba(255, 165, 60, .45);
}

/* 声明区胶带挪到右侧，避开灯串起点 */
.sheet::before { left: auto; right: 40px; }

/* 灯串再抬高，灯泡露在板子外面 */
.string-lights { top: -34px; height: 30px; }
.string-lights::before { height: 16px; border-bottom-width: 2px; }
.string-lights i { width: 8px; height: 11px; }

/* ===========================================================
   v12：细节清理 —— 字距 / 按压感 / 轮播裁切 / 俄语标注 /
        邮票标签 / 字号提升
   =========================================================== */

/* ---------- 1. 开头那句字距太散 ---------- */
.kicker { letter-spacing: .12em; }

/* ---------- 2. 三个按钮：hover 保留边线，按下有行程 ---------- */
.bili,
.btn {
  border: 1px solid rgba(90, 78, 56, .55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 3px rgba(0, 0, 0, .16),
    0 3px 0 rgba(90, 78, 56, .3),
    0 9px 16px -10px rgba(0, 0, 0, .45) !important;
  transition: transform .1s ease, box-shadow .1s ease, background-color .1s ease;
}
.bili:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(90, 78, 56, .8) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -2px 3px rgba(0, 0, 0, .18),
    0 4px 0 rgba(90, 78, 56, .38),
    0 12px 20px -10px rgba(0, 0, 0, .5) !important;
}
.bili:active,
.btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, .3),
    inset 0 -1px 0 rgba(255, 255, 255, .4),
    0 0 0 rgba(90, 78, 56, 0) !important;
}
[data-theme="night"] .bili,
[data-theme="night"] .btn { border-color: rgba(150, 128, 90, .55) !important; }

/* ---------- 3. 轮播：裁掉邻图、加圆角、字幕放大加深 ---------- */
.car-view {
  overflow: hidden;
  border-radius: 14px / 18px;
  isolation: isolate;
}
.car-slide { border-radius: 14px / 18px; overflow: hidden; }
.car-cap {
  padding: 18px 20px 16px;
  background: linear-gradient(180deg,
    rgba(12, 10, 8, 0) 0%,
    rgba(12, 10, 8, .58) 34%,
    rgba(10, 8, 6, .88) 72%,
    rgba(8, 6, 5, .96) 100%);
}
.car-title {
  font-family: var(--font-serif, "Songti SC", STSong, serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fbf3e2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
}
.car-teaser {
  font-size: 13px;
  line-height: 1.75;
  color: #e6dcc6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.car-cap .tag-chip.sm { font-size: 10.5px; }
.car-label { font-size: 11px; }

/* ---------- 4. 俄语标注 ---------- */
.title-ru {
  display: inline-block;
  margin-left: 12px;
  padding: 2px 10px 3px;
  vertical-align: middle;
  font-size: 11px;
  letter-spacing: .16em;
  color: #fdf8ec;
  background: rgba(179, 49, 42, .92);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2px;
  transform: skewY(-1.1deg) translateY(-2px);
  box-shadow: 0 2px 0 rgba(104, 24, 18, .45);
  white-space: nowrap;
}
[data-theme="night"] .title-ru { background: rgba(200, 69, 58, .9); }

/* ---------- 5. 删掉圆章 ---------- */
.count-line::before { content: none; }

/* ---------- 6. 一级标签：邮票 / 车票 ---------- */
.chip {
  border: none !important;
  border-radius: 2px;
  padding: 3px 11px 3px 12px;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tag, #8d8370) 14%, #fdf7e8),
      color-mix(in srgb, var(--tag, #8d8370) 24%, #f2e8d2)) !important;
  color: color-mix(in srgb, var(--tag, #8d8370) 78%, #201b14) !important;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--tag, #8d8370) 40%, transparent),
    inset 0 0 0 3px rgba(253, 247, 232, .9),
    0 1px 0 rgba(90, 78, 56, .22) !important;
  font-weight: 600;
}
.chip::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  vertical-align: 2px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tag, #8d8370) 82%, #201b14);
  box-shadow: 0 0 0 1.5px rgba(253, 247, 232, .9);
}
.chip.on {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tag, #b3312a) 88%, #ffffff),
      color-mix(in srgb, var(--tag, #b3312a) 80%, #1e1a14)) !important;
  color: #fff8ee !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .35),
    inset 0 0 0 3px rgba(255, 248, 238, .18),
    0 2px 0 rgba(60, 30, 20, .35) !important;
}
.chip.on::before { background: #fff8ee; box-shadow: 0 0 0 1.5px rgba(255, 248, 238, .5); }
[data-theme="night"] .chip {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tag, #8d8370) 18%, #2a241c),
      color-mix(in srgb, var(--tag, #8d8370) 26%, #221d17)) !important;
  color: color-mix(in srgb, var(--tag, #8d8370) 62%, #fff) !important;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--tag, #8d8370) 45%, transparent),
    inset 0 0 0 3px rgba(32, 27, 22, .9) !important;
}

/* ---------- 7. 慎重游玩：红字回到底部 ---------- */
.card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed rgba(90, 78, 56, .28);
  font-size: 11px;
  color: var(--red);
  letter-spacing: .02em;
}
.warn-ru {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff6ee;
  background: var(--red);
  padding: 1px 6px;
  border-radius: 2px;
}
[data-theme="night"] .card-foot { border-top-color: rgba(150, 128, 90, .25); }

/* ---------- 8. 卡片文字：去反光、加大标签 ---------- */
.gcard .card-title {
  text-shadow: none;
  font-size: 14px;
  font-weight: 800;
  color: #221d16;
}
[data-theme="night"] .gcard .card-title { text-shadow: none; color: #f4ecdb; }
.gcard .tag-chip.sm {
  font-size: 10.5px;
  padding: 3px 8px 3px 7px;
  border-left-width: 3px;
}
.gcard .card-foot { position: relative; }


/* v12 修正：俄语标签与红带同行、按钮不换行、轮播裁切 */
.title-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.title-ru {
  margin-left: 0;
  transform: rotate(-1.1deg);
  align-self: center;
}
.hero-actions { flex-wrap: nowrap; gap: 9px; }
.bili, .btn { padding-left: 12px; padding-right: 12px; font-size: 13px; }
.bili-text { min-width: 0; }

/* 轮播：轨道本体裁切，保证不露邻图 */
.carousel { overflow: hidden; }
.car-view {
  overflow: hidden;
  border-radius: 14px / 18px;
  background: #171310;
}
.car-slide { border-radius: 0; }

/* v12 修正 2 */
.grid { align-items: stretch; }
.gcard { height: 100%; }
.gcard .card-body { flex: 1 1 auto; }
.gcard .card-title { margin-top: 2px; }
.card-foot { margin-top: auto; }

/* v12 收尾：轮播外框收窄，画面更贴边；过渡加快 */
.carousel { padding: 7px; }
.carousel { border-radius: 16px; }
.car-view {
  border-radius: 12px / 15px;
  transition: transform .4s cubic-bezier(.22, .75, .28, 1);
}
.car-label { top: 12px; left: 14px; }

.car-view { transition: transform .32s cubic-bezier(.4, 0, .2, 1); }

/* 滑动模式：交给后面的 v13 规则 */

/* ===========================================================
   v13：滑动轮播回归 / 日期并入标题行 / 字号与外框再大 /
        ОСТОРОЖНО 只留俄语 / 胶带只贴提醒卡
   =========================================================== */

/* ---------- 1. 轮播：恢复左右滑动，运输轨道重新变回 flex ---------- */
.car-view {
  position: relative;
  display: flex;
  aspect-ratio: auto;
  transform: translateX(0);
  transition: transform .45s cubic-bezier(.3, .7, .2, 1);
  will-change: transform;
  background: #14110d;
}
.car-slide {
  position: relative;
  inset: auto;
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  opacity: 1;
  pointer-events: auto;
  border-radius: 0;
  transition: none;
}
.car-slide.on { opacity: 1; }
.car-slide:not(.on) { opacity: 1; }
.car-slide img { border-radius: 0; }

/* ---------- 2. 卡片标题行：名字 + 日期 ---------- */
.gcard .card-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0 0 2px;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01em;
  text-shadow: none;
  color: #221d16;
}
[data-theme="night"] .gcard .card-title { color: #f4ecdb; }
.gcard .card-name { text-shadow: none; }
.gcard .card-date {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .06em;
  color: #8a7f6c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
[data-theme="night"] .gcard .card-date { color: #8d8370; }

/* ---------- 3. 标签再大一号 ---------- */
.gcard .tag-chip.sm {
  font-size: 12px;
  padding: 4px 10px 4px 9px;
  border-left-width: 3.5px;
  border-radius: 3px;
}
.gcard .card-tags { gap: 7px; row-gap: 7px; }

/* ---------- 4. ОСТОРОЖНО 单独成行 ---------- */
.card-foot {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 10px;
  border-top: none;
}
.warn-ru {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #fff6ee;
  background: var(--red);
  padding: 3px 9px 4px;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(90, 20, 14, .4);
}

/* ---------- 5. 封面统一比例，卡片不再参差 ---------- */
.gcard .cover-box { aspect-ratio: 16 / 10; }
.gcard .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 6. B 站按钮与其它按钮过渡一致 ---------- */
.bili, .bili *, .btn, .btn * {
  transition-property: background-color, border-color, color, box-shadow, transform;
  transition-duration: .45s;
  transition-timing-function: ease;
}
.bili:hover, .btn:hover,
.bili:active, .btn:active { transition-duration: .12s; }




/* v13 修正：卡片标签一行放得下四个，别换行 */
.gcard .card-tags { gap: 6px; row-gap: 6px; }
.gcard .tag-chip.sm {
  font-size: 11.5px;
  padding: 3px 8px 3px 7px;
  border-left-width: 3px;
  line-height: 1.5;
  letter-spacing: 0;
}
.gcard .card-title { font-size: 15.5px !important; }
.gcard .card-date { font-size: 11px; }

/* 轨道本身不能裁切，否则滑进来的一张会被切掉 */
.car-view { overflow: visible !important; }
.carousel { overflow: hidden; }

/* 让 B 站按钮和别的按钮完全同步：头像、文字、边框一起走同一个时长 */
.bili, .bili * { transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease, filter .5s ease, opacity .5s ease; }
html.theme-anim .bili, html.theme-anim .bili *, html.theme-anim .btn, html.theme-anim .btn * { transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease, filter .5s ease, opacity .5s ease !important; }

/* v14：轮播边框移到每张图上，轨道不再带框（否则会跟着移动，看起来像第一张右边多一条边） */
.car-view { box-shadow: none !important; background: #14110d; }
.car-slide { box-shadow: inset 0 0 0 2px #7d7362, inset 0 0 0 4px #26221b; }
.car-slide img { display: block; }

/* 最新一部改成金色描边 */
.gcard.is-new {
  border-color: #c9a227 !important;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .55), 0 3px 0 rgba(90, 78, 56, .22) !important;
}
[data-theme="night"] .gcard.is-new {
  border-color: #d9b64a !important;
  box-shadow: 0 0 0 1px rgba(217, 182, 74, .5) !important;
}

/* 一级筛选标签：上下松开一点，别贴着字 */
.chip {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  line-height: 1.1;
}
.chip::before { vertical-align: 1px; }

/* v14 收尾：金边再亮一点、粗一点，米色金属上才看得清 */
.gcard.is-new {
  border: 2px solid #c9a227 !important;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, .28), 0 3px 0 rgba(90, 78, 56, .22), 0 8px 18px rgba(201, 162, 39, .12) !important;
}
[data-theme="night"] .gcard.is-new {
  border-color: #e0bd52 !important;
  box-shadow: 0 0 0 2px rgba(224, 189, 82, .22), 0 8px 18px rgba(224, 189, 82, .12) !important;
}

/* v15：边框不再跟着轨道走，改成盖在轮播上的一层玻璃（不参与移动） */
.carousel { position: relative; }
.carousel::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 12px / 15px;
  box-shadow: inset 0 0 0 2px #7d7362, inset 0 0 0 4px #26221b;
  pointer-events: none;
  z-index: 4;
}
.car-slide { box-shadow: none !important; }

/* v16：轮播去掉内层边框，图片直接到金属内沿，彻底没有多余的边 */
.carousel::after { display: none !important; }
.carousel { padding: 7px; overflow: hidden; }
.car-view { border-radius: 10px / 13px; overflow: visible; }
.car-slide { border-radius: 10px / 13px; overflow: hidden; }
.car-slide img { border-radius: inherit; }

/* v16 修正：那两条浅色竖线是轮播内边距露出的金属底色，收到 2px 并压暗 */
.carousel {
  padding: 2px;
  background: linear-gradient(180deg, #2a251d, #1a1712) !important;
  border-radius: 14px;
}
.carousel::before { border-radius: 13px; }
.car-view, .car-slide, .car-slide img { border-radius: 12px; }

/* 让四个标签在卡片里稳定排成一行 */
.gcard .card-tags { gap: 5px; row-gap: 5px; flex-wrap: nowrap; }
.gcard .tag-chip.sm { font-size: 11px; padding: 3px 7px 3px 6px; border-left-width: 2.5px; }

/* v18：页面加宽，卡片更舒展；标签允许换行兜底，绝不溢出 */
.wrap { width: min(1296px, 100% - 44px); }
.grid { gap: 24px 22px; }
.gcard .card-tags { flex-wrap: wrap; row-gap: 6px; }
.gcard { overflow: hidden; }

/* v18：固定四列，别因为容器变宽就多塞一列进来 */
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
@media (max-width: 1120px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px)  { .grid { grid-template-columns: minmax(0, 1fr); } }

/* v18：四个标签 + 省略号也要挤在一行 */
.gcard .card-tags { gap: 4px; row-gap: 6px; }
.gcard .tag-chip.sm { padding: 3px 6px 3px 5px; font-size: 10.8px; }
.gcard .tag-chip.ell { flex: 0 0 auto; padding: 3px 5px; }

/* 手机上一列大卡，标签不至于挤成两行 */
@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wrap { width: min(1296px, 100% - 28px); }
}

/* v18-2：筛选标签放大变宽松，别又扁又长 */
.chips { gap: 9px; padding: 14px 0 6px; }
.chip {
  padding: 8px 14px 8px 15px !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  border-radius: 3px !important;
  letter-spacing: .01em;
}
.chip::before { width: 6px; height: 6px; margin-right: 1px; }
.chip .n { font-size: 11.5px; opacity: .72; margin-left: 1px; }

/* 俄语小牌：让它更像贴上去的一张标签，边角有一点翘起 */
.title-wrap { overflow: visible; align-items: flex-start; }
.title-ru {
  position: relative;
  margin-top: 9px;
  padding: 4px 12px 5px;
  font-size: 11.5px;
  letter-spacing: .18em;
  border-radius: 1px;
  transform: rotate(-1.4deg);
  box-shadow:
    0 2px 0 rgba(104, 24, 18, .5),
    0 6px 10px -4px rgba(60, 40, 24, .35),
    inset 0 1px 0 rgba(255, 255, 255, .28);
}
.title-ru::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3px;
  bottom: -1px;
  width: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
  border-radius: 1px;
  transform: skewY(-14deg);
}

/* v18-3：卡片不能裁自己的胶带，只让封面内部去裁图 */
.gcard { overflow: visible !important; }
.gcard .cover-box { overflow: hidden; }
.gcard .card-tags { overflow: hidden; }
/* 胶带再翘出一点，压在卡片上沿外 */
.gcard::after { top: -9px; height: 14px; z-index: 8; }

/* ============================================================
   随机体验（抽卡）
   ============================================================ */
.hero-main { position: relative; }

.gacha-entry {
  position: absolute;
  right: 2px;
  top: 52%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(120, 105, 78, .5);
  border-radius: 4px;
  background: linear-gradient(178deg, #fdf7e7, #e6dcc4);
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 0 rgba(120, 105, 78, .45),
    0 6px 14px -6px rgba(60, 44, 24, .45);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.gacha-entry:hover { transform: translateY(calc(-50% - 2px)); box-shadow: inset 0 1px 0 #fff, 0 4px 0 rgba(120,105,78,.45), 0 10px 18px -8px rgba(60,44,24,.5); }
.gacha-entry:active { transform: translateY(calc(-50% + 2px)); box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(120,105,78,.45); }
.gg-obj { display: block; line-height: 0; filter: drop-shadow(0 1px 1px rgba(60,44,24,.25)); }
.gg-obj svg { display: block; width: 58px; height: auto; }
.gg-txt {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.gg-txt em { font-style: normal; color: #b3312a; }

/* ---------- 面板 ---------- */
#modal-gacha { z-index: 86; }
.gg-panel {
  position: relative;
  width: min(720px, 92vw);
  padding: 20px 22px 18px;
  border: 1px solid rgba(120, 105, 78, .55);
  border-radius: 10px;
  background:
    linear-gradient(178deg, color-mix(in srgb, var(--card) 92%, #fff), var(--card));
  box-shadow:
    0 0 0 6px var(--metal, #cfc3a6),
    0 0 0 7px rgba(120, 105, 78, .5),
    0 24px 60px -20px rgba(40, 30, 18, .6);
}
.gg-kicker {
  margin: 0 0 4px;
  font-family: var(--font-display, serif);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-3);
}
.gg-title {
  margin: 0 0 8px;
  font-family: var(--font-display, serif);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--ink);
}

/* ---------- 舞台 ---------- */
.gg-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #2b251d 0%, #17130f 70%);
  box-shadow:
    inset 0 0 0 1px rgba(120, 105, 78, .6),
    inset 0 12px 30px rgba(0, 0, 0, .55);
  cursor: crosshair;
  touch-action: manipulation;
  user-select: none;
}
.gg-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px);
}

.gg-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 92px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  will-change: transform;
  transform-origin: 50% 50%;
  transition: opacity .35s ease;
}
.gg-face {
  display: block;
  border-radius: 4px;
  background: linear-gradient(178deg, #fdf7e7, #e8ddc4);
  box-shadow: 0 2px 0 rgba(90, 74, 48, .5), 0 8px 16px -8px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.gg-face img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.gg-face b {
  display: block;
  padding: 5px 6px 6px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #241f18;
  text-align: center;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gg-card.fade { opacity: .16; pointer-events: none; }
.gg-card.picked { z-index: 5; }
.gg-card.picked .gg-face {
  box-shadow:
    0 0 0 2px #c9a227,
    0 0 26px 6px rgba(232, 182, 76, .55),
    0 18px 34px -12px rgba(0, 0, 0, .9);
}
.gg-stage.frozen { cursor: default; }

/* ---------- 底部 ---------- */
.gg-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.gg-foot .btn[disabled] { opacity: .45; pointer-events: none; }
.gg-hint {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .01em;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
  .gacha-entry { position: static; transform: none; margin-top: 14px; }
  .gacha-entry:hover { transform: translateY(-2px); }
  .gacha-entry:active { transform: translateY(2px); }
}
@media (max-width: 560px) {
  .gg-panel { padding: 16px 14px 14px; }
  .gg-card { width: 74px; }
  .gg-title { font-size: 20px; }
  .gg-obj svg { width: 46px; }
}

/* 入口改成流内按钮：放在按钮那一行下面，绝不压字 */
.gacha-entry {
  position: static !important;
  transform: none !important;
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 16px 10px 11px;
}
.gacha-entry:hover { transform: translateY(-2px) !important; }
.gacha-entry:active { transform: translateY(2px) !important; }
.gg-obj svg { width: 64px; }
.gg-txt { font-size: 14px; }

/* 抽卡卡片：名字给两行，别一路省略 */
.gg-card { width: 104px; }
.gg-face b {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  font-size: 10px;
  padding: 5px 5px 6px;
}
.gg-stage { aspect-ratio: 16 / 9.6; }
@media (max-width: 560px) {
  .gg-card { width: 76px; }
  .gg-face b { font-size: 9px; }
}

/* 舞台留点气，卡片小一号，别糊成一堵墙 */
.gg-stage { aspect-ratio: 16 / 10.6; padding: 0; }
.gg-card { width: 84px; }
.gg-face b { font-size: 9.5px; padding: 4px 4px 5px; min-height: 2.4em; }
@media (max-width: 560px) {
  .gg-card { width: 68px; }
  .gg-face b { font-size: 8.5px; }
}

/* 入口靠右一点，别孤零零杵在左边 */
.hero-main { display: flex; flex-direction: column; align-items: flex-start; }
.hero-main > * { width: 100%; }
.gacha-entry { width: auto !important; align-self: flex-end; margin-top: 16px; }

@media (max-width: 560px) {
  .gg-card { width: 62px; }
  .gg-face b { font-size: 7.5px; padding: 3px 3px 4px; min-height: 2.2em; }
  .gg-stage { aspect-ratio: 3 / 2; }
}

/* ============================================================
   v20：工具区（随机体验 / 赞助小站）+ 电视底座 + 赞助页
   ============================================================ */
.hero-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero-tools .gacha-entry {
  position: static !important;
  width: auto !important;
  align-self: auto;
  margin: 0;
  padding: 7px 13px 7px 8px;
  gap: 7px;
  transform: none;
}
.hero-tools .gacha-entry:hover { transform: translateY(-2px); }
.hero-tools .gacha-entry:active { transform: translateY(2px); }
.hero-tools .gg-obj svg { width: 44px; }
.hero-tools .gg-txt { font-size: 12.5px; letter-spacing: .02em; }
.sponsor-open .gg-txt { color: #8a5a2a; }

/* ---------- 电视底座：让轮播像搁在案子上 ---------- */
.hero-new { position: relative; }
.hero-new::after {
  content: "";
  position: absolute;
  left: 6%;
  right: -12px;
  top: calc(100% + 5px);
  height: 32px;
  border-radius: 0 0 5px 5px;
  background:
    repeating-linear-gradient(90deg, rgba(120, 100, 66, .07) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #ded2b6 0%, #c8bb9c 46%, #a99c7c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 0 rgba(90, 74, 48, .35),
    0 10px 20px -10px rgba(60, 44, 24, .55);
  clip-path: polygon(0 0, 100% 0, 97.2% 100%, 2.8% 100%);
  pointer-events: none;
}
[data-theme="night"] .hero-new::after {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #4a4133 0%, #38312280 52%, #2a241a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 22px -10px rgba(0, 0, 0, .8);
}

/* ---------- 赞助面板 ---------- */
#modal-sponsor { z-index: 84; }
.sp-panel {
  position: relative;
  width: min(880px, 94vw);
  max-height: 88vh;
  overflow: auto;
  padding: 22px 24px 22px;
  border: 1px solid rgba(120, 105, 78, .55);
  border-radius: 10px;
  background: linear-gradient(178deg, color-mix(in srgb, var(--card) 94%, #fff), var(--card));
  box-shadow:
    0 0 0 6px var(--metal, #cfc3a6),
    0 0 0 7px rgba(120, 105, 78, .5),
    0 26px 60px -22px rgba(40, 30, 18, .65);
}
.sp-kicker {
  margin: 0 0 4px;
  font-family: var(--font-display, serif);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-3);
}
.sp-title {
  margin: 0 0 16px;
  font-family: var(--font-display, serif);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--ink);
}
.sp-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 22px;
}
.sp-left { min-width: 0; }
.sp-text { font-size: 13px; line-height: 1.95; color: var(--ink-2); }
.sp-text p { margin: 0 0 2px; }

.sp-right {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--card) 86%, var(--metal, #cfc3a6));
  box-shadow: inset 0 0 0 1px rgba(120, 105, 78, .28);
}
.sp-sub {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink);
}
.sp-list { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 2; color: var(--ink-2); }

@media (max-width: 720px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sp-panel { padding: 18px 16px; }
}

/* 抓中时闪一下，给点刺激 */
@keyframes ggFlash {
  0% { box-shadow: inset 0 0 0 3px rgba(232, 182, 76, .95), inset 0 0 70px rgba(232, 182, 76, .55); }
  100% { box-shadow: inset 0 0 0 0 rgba(232, 182, 76, 0), inset 0 0 0 rgba(232, 182, 76, 0); }
}
.gg-stage.flash { animation: ggFlash .32s ease-out; }

/* 卡片只剩图了，尺寸按图走 */
.gg-face { line-height: 0; }
.gg-face img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.gg-card { width: 78px; }
@media (max-width: 560px) { .gg-card { width: 58px; } }

/* 底座贴住电视下沿，右边多伸一点，做出"桌角" */
.hero-new::after {
  left: 0;
  right: -14px;
  top: calc(100% + 2px);
  height: 34px;
  border-radius: 0 0 4px 4px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 96.5% 100%, 3% 100%, 0 82%);
}

/* 赞助页细节：行距放松、二维码放大、右栏撑满 */
.sp-text { font-size: 13.5px; line-height: 2.05; }
.sp-right { display: flex; flex-direction: column; }
.sp-list { flex: 1 1 auto; }

/* ===========================================================
   v21：五个按钮统一配色 / 卡片同色 / 电视底座重做 / 抽卡结果页
   =========================================================== */

/* ---------- 1. 五个按钮：底色、字色、边线全部统一 ---------- */
:root {
  --btn-hi: #fbf5e6;
  --btn-bg: #ece2cb;
  --btn-lo: #d6c9ab;
  --btn-ink: #3a3226;
  --btn-line: rgba(110, 95, 68, .42);
  --btn-shadow: rgba(110, 95, 68, .45);
}
[data-theme="night"] {
  --btn-hi: #3a332a;
  --btn-bg: #2c261f;
  --btn-lo: #201b15;
  --btn-ink: #e8dcc2;
  --btn-line: rgba(150, 130, 96, .3);
  --btn-shadow: rgba(0, 0, 0, .6);
}

.bili,
.btn,
.gacha-entry,
.sponsor-entry {
  background: linear-gradient(178deg, var(--btn-hi), var(--btn-bg) 64%, var(--btn-lo)) !important;
  color: var(--btn-ink) !important;
  border: 1px solid var(--btn-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 var(--btn-shadow) !important;
}
[data-theme="night"] .bili,
[data-theme="night"] .btn,
[data-theme="night"] .gacha-entry,
[data-theme="night"] .sponsor-entry {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 0 var(--btn-shadow) !important;
}
.bili *,
.btn *,
.gacha-entry *,
.sponsor-entry * { color: inherit !important; }
.bili :is(svg, .bili-sub),
.btn :is(svg),
.gacha-entry :is(svg),
.sponsor-entry :is(svg) { opacity: .86; }
.bili:hover, .btn:hover, .gacha-entry:hover, .sponsor-entry:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.bili:active, .btn:active, .gacha-entry:active, .sponsor-entry:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 var(--btn-shadow) !important;
}

/* ---------- 2. 游戏卡片：跟按钮同一套颜色 ---------- */
.gcard,
.gcard .cover-box {
  background: linear-gradient(178deg, var(--btn-hi) 0%, var(--btn-bg) 62%, var(--btn-lo) 100%) !important;
}
.gcard { border-color: var(--btn-line) !important; }
[data-theme="night"] .gcard,
[data-theme="night"] .gcard .cover-box {
  background: linear-gradient(178deg, var(--btn-hi) 0%, var(--btn-bg) 62%, var(--btn-lo) 100%) !important;
}
.gcard::before { opacity: .5; }

/* ---------- 3. 电视底座：梯形木座 + 两条腿 ---------- */
.hero-new { position: relative; }
.hero-new::after {
  content: "";
  position: absolute;
  left: 1%;
  right: -12px;
  top: calc(100% + 1px);
  height: 24px;
  background:
    repeating-linear-gradient(90deg, rgba(120, 100, 66, .06) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #e4d8bd 0%, #cfc2a2 52%, #b3a583 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -3px 0 rgba(96, 80, 52, .28),
    0 8px 16px -10px rgba(60, 44, 24, .5);
  clip-path: polygon(0 0, 100% 0, 98.6% 100%, 1.4% 100%);
  pointer-events: none;
}
.hero-new::before {
  content: "";
  position: absolute;
  left: 1%;
  right: -12px;
  top: calc(100% + 25px);
  height: 18px;
  background:
    linear-gradient(180deg, #c3b596 0%, #a4967a 55%, #877a61 100%) left 15% top 0 / 34px 100% no-repeat,
    linear-gradient(180deg, #c3b596 0%, #a4967a 55%, #877a61 100%) right 15% top 0 / 34px 100% no-repeat;
  filter: drop-shadow(0 4px 6px rgba(60, 44, 24, .3));
  pointer-events: none;
}
[data-theme="night"] .hero-new::after {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #4c4335 0%, #3a3327 52%, #2a241a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 18px -10px rgba(0, 0, 0, .8);
}
[data-theme="night"] .hero-new::before {
  background:
    linear-gradient(180deg, #3d362b 0%, #2e2820 55%, #221d16 100%) left 15% top 0 / 34px 100% no-repeat,
    linear-gradient(180deg, #3d362b 0%, #2e2820 55%, #221d16 100%) right 15% top 0 / 34px 100% no-repeat;
}

/* ---------- 4. 抽卡结果页 ---------- */
#modal-gacha-result { z-index: 89; }
.gr-panel {
  position: relative;
  width: min(520px, 92vw);
  padding: 26px 26px 22px;
  background: linear-gradient(178deg, var(--btn-hi), var(--btn-bg) 70%, var(--btn-lo));
  border: 1px solid var(--btn-line);
  border-radius: 6px;
  box-shadow: 0 0 0 6px var(--metal), 0 30px 60px rgba(0, 0, 0, .4);
}
.gr-kicker {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--ink-3);
}
.gr-title { margin: 8px 0 16px; font-size: 20px; font-weight: 800; color: var(--ink); }
.gr-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(60, 48, 32, .2), 0 8px 20px -10px rgba(0, 0, 0, .5);
}
.gr-name {
  margin: 14px 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: .01em;
}
.gr-meta { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.gr-acts { display: flex; gap: 10px; margin-top: 20px; }
.gr-acts .btn { flex: 1 1 0; justify-content: center; padding: 10px 12px; }
.gr-acts .btn.pri {
  background: linear-gradient(178deg, #c4453a, #a5342a 70%, #8c2a21) !important;
  color: #fdf5e6 !important;
  border-color: rgba(90, 24, 18, .6) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 0 rgba(90, 24, 18, .5) !important;
}

/* 底座再修：左右对称、腿移到两端、厚一点 */
.hero-new::after {
  left: -10px;
  right: -10px;
  top: calc(100% + 1px);
  height: 26px;
}
.hero-new::before {
  left: -10px;
  right: -10px;
  top: calc(100% + 27px);
  height: 20px;
  background:
    linear-gradient(180deg, #cbbd9e 0%, #ab9d80 52%, #8c7f66 100%) left 5.5% top 0 / 46px 100% no-repeat,
    linear-gradient(180deg, #cbbd9e 0%, #ab9d80 52%, #8c7f66 100%) right 5.5% top 0 / 46px 100% no-repeat;
}
[data-theme="night"] .hero-new::before {
  background:
    linear-gradient(180deg, #413a2e 0%, #312b22 52%, #241f18 100%) left 5.5% top 0 / 46px 100% no-repeat,
    linear-gradient(180deg, #413a2e 0%, #312b22 52%, #241f18 100%) right 5.5% top 0 / 46px 100% no-repeat;
}

/* 底座最终：一整块梯形墩子，像 CRT 电视的下半截 */
.hero-new::after {
  left: -10px;
  right: -10px;
  top: calc(100% + 1px);
  height: 40px;
  background:
    repeating-linear-gradient(90deg, rgba(120, 100, 66, .06) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #ece1c8 0%, #d8cbac 46%, #b6a888 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -6px 12px -6px rgba(70, 56, 34, .45),
    0 12px 20px -12px rgba(60, 44, 24, .55);
  clip-path: polygon(0 0, 100% 0, 96.2% 100%, 3.8% 100%);
}
.hero-new::before { display: none !important; }
[data-theme="night"] .hero-new::after {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #544a3a 0%, #3d3528 46%, #292319 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -6px 12px -6px rgba(0, 0, 0, .6),
    0 12px 22px -12px rgba(0, 0, 0, .85);
}

/* v22：抽卡卡片放大，好点 */
.gg-card { width: 112px; }
@media (max-width: 560px) { .gg-card { width: 82px; } }

/* v22：日夜切换时背景也要渐变（opacity 曾被 .theme-anim 的 !important 覆盖掉） */
html.theme-anim .bg-night { transition: opacity .55s ease !important; }

/* v22 底座：换成实木条，黄铜包边，不再是几何梯形 */
.hero-new::after {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: calc(100% + 1px);
  height: 42px;
  border-radius: 3px 3px 7px 7px;
  background:
    linear-gradient(180deg, rgba(255, 236, 200, .16) 0, rgba(255, 236, 200, 0) 3px),
    url("img/tex/wood-day.webp") center / cover no-repeat,
    linear-gradient(180deg, #6b4a2f, #3f2a1a);
  box-shadow:
    inset 0 -10px 16px -10px rgba(0, 0, 0, .75),
    0 16px 26px -16px rgba(40, 26, 14, .62);
  clip-path: none;
}
.hero-new::before {
  content: "";
  display: block !important;
  position: absolute;
  left: -14px;
  right: -14px;
  top: calc(100% + 1px);
  height: 42px;
  border-radius: 3px 3px 7px 7px;
  background: none;
  box-shadow:
    inset 0 1px 0 rgba(226, 196, 128, .6),
    inset 0 0 0 1px rgba(28, 18, 9, .55),
    inset 0 -1px 0 rgba(0, 0, 0, .55);
  filter: none;
  pointer-events: none;
}
[data-theme="night"] .hero-new::after {
  background:
    linear-gradient(180deg, rgba(255, 236, 200, .1) 0, rgba(255, 236, 200, 0) 3px),
    url("img/tex/wood-night.webp") center / cover no-repeat,
    linear-gradient(180deg, #2a1d12, #150f09);
  box-shadow: inset 0 -10px 16px -10px rgba(0, 0, 0, .9), 0 16px 26px -16px rgba(0, 0, 0, .85);
}
[data-theme="night"] .hero-new::before {
  box-shadow:
    inset 0 1px 0 rgba(150, 120, 74, .45),
    inset 0 0 0 1px rgba(0, 0, 0, .7),
    inset 0 -1px 0 rgba(0, 0, 0, .8);
}

/* v22 底座调色：换成浅橡木，别太抢 */
.hero-new::after {
  height: 40px;
  background:
    linear-gradient(180deg, rgba(255, 246, 225, .3) 0, rgba(255, 246, 225, 0) 3px),
    url("img/tex/wood-day.webp") center / cover no-repeat,
    linear-gradient(180deg, #b9a179, #8a7554);
  box-shadow:
    inset 0 -9px 14px -9px rgba(60, 44, 26, .55),
    0 14px 24px -15px rgba(60, 44, 26, .5);
}
.hero-new::before { height: 40px; }
[data-theme="night"] .hero-new::after {
  height: 40px;
  background:
    linear-gradient(180deg, rgba(255, 240, 210, .12) 0, rgba(255, 240, 210, 0) 3px),
    url("img/tex/wood-night.webp") center / cover no-repeat,
    linear-gradient(180deg, #4a3d2c, #2c2318);
}

/* v23-1：五个按钮改成「可过渡的纯色 + 固定高光」，日夜一起淡过去 */
.bili,
.btn,
.gacha-entry,
.sponsor-entry {
  background-color: var(--btn-bg) !important;
  background-image: linear-gradient(178deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 34%, rgba(255, 255, 255, 0) 62%, rgba(0, 0, 0, .07) 100%) !important;
  color: var(--btn-ink) !important;
  border: 1px solid var(--btn-line) !important;
}
[data-theme="night"] .bili,
[data-theme="night"] .btn,
[data-theme="night"] .gacha-entry,
[data-theme="night"] .sponsor-entry {
  background-image: linear-gradient(178deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .22) 100%) !important;
}
html.theme-anim .bili,
html.theme-anim .btn,
html.theme-anim .gacha-entry,
html.theme-anim .sponsor-entry,
html.theme-anim .bili *,
html.theme-anim .btn *,
html.theme-anim .gacha-entry *,
html.theme-anim .sponsor-entry * {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease !important;
}

/* v23-2：作品卡片同样走可过渡的底色 */
.gcard,
.gcard .cover-box {
  background-color: var(--btn-bg) !important;
  background-image: linear-gradient(178deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .1) 36%, rgba(255, 255, 255, 0) 64%, rgba(0, 0, 0, .05) 100%) !important;
}
[data-theme="night"] .gcard,
[data-theme="night"] .gcard .cover-box {
  background-image: linear-gradient(178deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 58%, rgba(0, 0, 0, .2) 100%) !important;
}
html.theme-anim .gcard,
html.theme-anim .gcard * {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease !important;
}

/* v23-3：赞助页右栏恢复那条虚线（内容按名单多少撑开） */
.sp-right { display: flex; flex-direction: column; }
.sp-list { flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
.sp-rule {
  margin: auto 0 0;
  padding-top: 0;
  height: 1px;
  border-top: 1px dashed rgba(120, 105, 78, .38);
}
[data-theme="night"] .sp-rule { border-top-color: rgba(180, 160, 120, .26); }
.sp-text p { margin: 0 0 10px; }
.sp-text p:last-child { margin-bottom: 0; }

/* ===== v24 ===== */

/* 1. 结果页：出现动画 + 细长 + 封面不裁切 + 标题用页面衬线 */
@keyframes grIn {
  from { opacity: 0; transform: translateY(16px) scale(.965); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
#modal-gacha-result .gr-panel {
  width: min(452px, 92vw);
  padding: 24px 24px 20px;
  animation: grIn .34s cubic-bezier(.2, .8, .3, 1.05) both;
}
@media (prefers-reduced-motion: reduce) {
  #modal-gacha-result .gr-panel { animation: none; }
}
.gr-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .02em;
  margin: 6px 0 14px;
}
.gr-cover {
  aspect-ratio: auto;
  height: auto;
  max-height: 46vh;
  object-fit: contain;
  background: #17130e;
  border-radius: 4px;
}
.gr-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .02em;
}
.gr-meta { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* 2. 赞助页整体排版放松 */
.sp-panel { width: min(860px, 94vw); padding: 30px 34px 28px; }
.sp-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}
.sp-text { margin: 0; font-size: 13px; line-height: 1.95; color: var(--ink-2); }
.sp-text p { margin: 0 0 9px; }
.sp-text p:last-child { margin-bottom: 0; color: var(--ink); }
.sp-right { min-height: 300px; }
@media (max-width: 900px) {
  .sp-grid { grid-template-columns: 168px minmax(0, 1fr); gap: 22px; }
  .sp-right { grid-column: 1 / -1; min-height: 160px; }
}

/* 3. 按钮里的文字跟随父级颜色，不再各自过渡（避免"慢一拍"） */
.bili-sub { color: currentColor !important; opacity: .6; }
html.theme-anim .bili,
html.theme-anim .btn,
html.theme-anim .gacha-entry,
html.theme-anim .sponsor-entry { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important; }

/* 赞助页排版返修：两栏，左栏放得下文案 */
.sp-panel { width: min(880px, 94vw); padding: 30px 34px 28px; }
.sp-grid {
  display: grid;
  grid-template-columns: minmax(0, 348px) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}
.sp-text { margin: 18px 0 0; font-size: 13px; line-height: 2; color: var(--ink-2); }
.sp-text p { margin: 0 0 8px; }
.sp-text p:last-child { margin-bottom: 0; color: var(--ink); }
.sp-right {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(120, 105, 78, .28);
  border-radius: 3px;
  background: color-mix(in srgb, var(--card) 55%, transparent);
}
.sp-right h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.sp-rule { margin: auto 0 0; height: 1px; border-top: 1px dashed rgba(120, 105, 78, .38); }
@media (max-width: 900px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sp-right { min-height: 150px; }
}

/* 赞助页：右栏跟左栏等高 */
.sp-grid { align-items: stretch; }
.sp-left { display: flex; flex-direction: column; }

/* v24 修"文字慢一拍"：子元素不再自己过渡，直接跟随父级颜色插值 */
html.theme-anim .bili *,
html.theme-anim .btn *,
html.theme-anim .gacha-entry *,
html.theme-anim .sponsor-entry * {
  transition: none !important;
}

/* v25 修正：作品详情要盖在抽卡界面之上（原来 80 被抽卡的 86 压住） */
#modal-game { z-index: 87; }

/* ===== v27 赞助页：二维码换成真的 ===== */

/* 左栏整体松一点 */
.sp-left { gap: 0; }
.sp-text { margin-top: 4px !important; }
.sp-text p { margin: 0 0 9px !important; line-height: 1.95; }
.sp-text p:last-child { margin-bottom: 0 !important; }
@media (max-width: 900px) {
}

/* v27 排版：二维码再大一点，左栏也宽一点，别让右边空着 */
.sp-grid {
  grid-template-columns: minmax(0, 372px) minmax(0, 1fr) !important;
  gap: 34px !important;
}
.sp-text { font-size: 13.5px !important; }
.sp-text p { margin-bottom: 10px !important; }

/* ===== v28 爱发电整图当书签 + 主页一览 ===== */
.sp-sticker {
  margin: 0 0 18px;
  width: 300px;
  max-width: 100%;
  transform: rotate(-1.2deg);
  transform-origin: left top;
  transition: transform .25s ease;
}
.sp-sticker:hover { transform: rotate(0deg) translateY(-2px); }
.sp-sticker-btn {
  display: block;
  width: 100%;
  padding: 8px 8px 0;
  border: 1px solid rgba(120, 105, 78, .32);
  border-radius: 3px;
  background: #fffdf7;
  box-shadow:
    0 2px 0 rgba(120, 105, 78, .14),
    0 14px 24px -16px rgba(90, 72, 46, .65);
  cursor: zoom-in;
}
.sp-sticker-btn img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px;
}
.sp-sticker figcaption {
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-3);
  text-align: center;
}
[data-theme="night"] .sp-sticker-btn {
  border-color: rgba(150, 132, 100, .4);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, .4),
    0 14px 24px -16px rgba(0, 0, 0, .9);
}

/* 单张大图时不显示左右箭头 */
.lightbox.single .lb-nav { display: none; }

/* 主页一览 */
.ln-panel {
  position: relative;
  width: min(460px, 92vw);
  padding: 26px 26px 22px;
  border-radius: 3px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(120, 105, 78, .3),
    0 24px 48px -24px rgba(40, 28, 14, .6);
}
.ln-kicker {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .26em;
  color: var(--ink-3);
}
.ln-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .02em;
}
.ln-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ln-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(120, 105, 78, .28);
  border-radius: 3px;
  background: color-mix(in srgb, var(--card) 70%, #fff 30%);
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ln-item:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 6px 14px -10px rgba(60, 44, 24, .6);
}
.ln-off { cursor: default; opacity: .72; }
.ln-off:hover { transform: none; border-color: rgba(120, 105, 78, .28); box-shadow: none; }
.ln-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--btn-bg, #ece2cb);
  box-shadow: inset 0 0 0 1px rgba(120, 105, 78, .25);
  display: grid;
  place-items: center;
  font-size: 0;
}
.ln-bili { background: #fb7299; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ln-xhs { background: #ff2442; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ln-ico::after {
  content: "";
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, .92);
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.ln-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ln-name { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.ln-go {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
[data-theme="night"] .ln-panel { background: var(--card); }

/* 赞助名单收小一点，给书签让位 */
.sp-right { min-height: 220px !important; }

/* v28 修正：图标用字母，书签歪一点，右栏别拉太长 */
.ln-ico::after {
  content: "";
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  clip-path: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.ln-bili::after { content: "B"; }
.ln-xhs::after { content: "书"; font-family: var(--font-serif); font-size: 14px; }

.sp-sticker { transform: rotate(-2.2deg); }
.sp-sticker:hover { transform: rotate(-0.6deg) translateY(-2px); }
.sp-grid { align-items: start !important; }
.sp-right { min-height: 220px; align-self: start; }

/* 右栏拉回与左栏等高，名单区就是留给未来名字的 */
.sp-grid { align-items: stretch !important; }
.sp-right { align-self: stretch !important; min-height: 220px; }

/* ===== v29 信封 + 公告 ===== */
.hero-inner { position: relative; }

.notice-letter {
  position: absolute;
  right: 34px;
  bottom: 4px;
  z-index: 7;
  width: 96px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: rotate(-3deg);
  transition: transform .22s ease, filter .22s ease;
}
.notice-letter:hover { transform: rotate(0deg) translateY(-4px); }

.nl-paper {
  position: relative;
  display: block;
  width: 96px;
  height: 64px;
  border-radius: 3px;
  background: linear-gradient(168deg, #fdf7e6 0%, #f3e9cf 55%, #e8dcbe 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 3px 0 rgba(120, 100, 66, .28),
    0 10px 18px -12px rgba(60, 44, 24, .7);
  outline: 1px solid rgba(120, 100, 66, .35);
  outline-offset: 0;
}
.nl-flap {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: linear-gradient(168deg, #f6edd4 0%, #e6d9b8 100%);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.nl-seal {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #d4534a, #a32c22 68%, #7d1c15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 0 0 1px rgba(80, 20, 14, .4);
}
.nl-seal::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 235, 220, .45);
}
.nl-cap {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .28em;
  text-indent: .28em;
  color: var(--ink-3);
  text-align: center;
}
.notice-letter:hover .nl-paper {
  outline-color: #c9a227;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 3px 0 rgba(120, 100, 66, .28),
    0 0 0 2px rgba(201, 162, 39, .55),
    0 12px 20px -12px rgba(60, 44, 24, .75);
}
.notice-letter:hover .nl-cap { color: #a9862a; }

[data-theme="night"] .nl-paper {
  background: linear-gradient(168deg, #4a4234 0%, #3a3327 55%, #2c271d 100%);
  outline-color: rgba(150, 128, 90, .5);
}
[data-theme="night"] .nl-flap {
  background: linear-gradient(168deg, #514838 0%, #3f382b 100%);
}

/* 公告弹窗 */
.nt-panel {
  position: relative;
  width: min(720px, 92vw);
  max-height: min(76vh, 640px);
  padding: 26px 28px 22px;
  border-radius: 3px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(120, 105, 78, .3),
    0 24px 48px -24px rgba(40, 28, 14, .6);
  display: flex;
  flex-direction: column;
}
.nt-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(120, 105, 78, .35);
}
.nt-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .04em;
}
.nt-days {
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.nt-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  padding-top: 16px;
  min-height: 0;
  flex: 1 1 auto;
}
.nt-list {
  list-style: none;
  margin: 0;
  padding: 0 12px 0 0;
  border-right: 1px dashed rgba(120, 105, 78, .3);
  overflow-y: auto;
}
.nt-date {
  display: block;
  width: 100%;
  padding: 7px 8px;
  margin-bottom: 4px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 2px;
  background: none;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.nt-date:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nt-date.on {
  color: var(--accent);
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  font-weight: 700;
}
.nt-body {
  overflow-y: auto;
  padding-right: 6px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-2);
}
.nt-body p { margin: 0 0 10px; }
.nt-body p:last-child { margin-bottom: 0; }
.nt-body::-webkit-scrollbar, .nt-list::-webkit-scrollbar { width: 6px; }
.nt-body::-webkit-scrollbar-thumb, .nt-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 3px;
}
@media (max-width: 640px) {
  .notice-letter { right: 14px; width: 78px; }
  .nl-paper { width: 78px; height: 52px; }
  .nt-panel { padding: 20px 18px 18px; max-height: 82vh; }
  .nt-grid { grid-template-columns: 106px minmax(0, 1fr); gap: 14px; }
  .nt-date { font-size: 11.5px; }
}

/* 赞助书签缩小（可以点开，小一点没关系） */
.sp-sticker { width: 208px; }
.sp-grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) !important; }

/* v29 修正：信封坐稳、公告字放上面、弹窗加高 */
.notice-letter {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
  bottom: 22px;
  right: 30px;
}
.nl-cap { margin-top: 0; }
.nl-paper { width: 88px; height: 58px; }
.notice-letter { width: 88px; }

.nt-panel {
  width: min(760px, 92vw);
  min-height: 380px;
  max-height: min(78vh, 660px);
}
.nt-grid { padding-top: 18px; }
.nt-list { min-height: 240px; }
.nt-body { min-height: 240px; }
.nt-body p { margin-bottom: 12px; }

/* 公告二字在深色画面上的可读性 */
.nl-cap {
  color: #f3e9d2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 8px rgba(0, 0, 0, .45);
  font-size: 10px;
  letter-spacing: .3em;
  text-indent: .3em;
}
.notice-letter:hover .nl-cap {
  color: #f0cf72;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 10px rgba(201, 162, 39, .7);
}
.notice-letter { bottom: 26px; }

/* ===== v30 ===== */

/* 赞助：左栏放宽，名单收窄 */
.sp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 236px) !important; gap: 30px !important; }
.sp-right { min-width: 0; }

/* 主页一览：标题后的小字、平台后的名字 */
.ln-hint {
  margin-left: 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.ln-who {
  display: inline-block;
  margin-left: 8px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.ln-name { display: inline-block; }

/* 信封：反过来歪（左上高）+ 小翅膀 */
.notice-letter { transform: rotate(3.2deg); }
.notice-letter:hover { transform: rotate(0.4deg) translateY(-5px); }

.nl-paper { z-index: 1; }
.nl-flap, .nl-seal { z-index: 2; }
@media (max-width: 640px) {
}

/* 翅膀改成像三根羽毛张开 */

/* 翅膀：改用内联 SVG，两片羽毛从信封两侧展开 */
.nl-paper { background-clip: padding-box; }

/* 翅膀收一点，别压住信封本体 */

/* ===== v31 ===== */

/* 1. 解压密码两个框：底色不要那么深 */
.pw-card {
  background: color-mix(in srgb, var(--card) 72%, #fff 28%) !important;
  border-color: color-mix(in srgb, var(--line) 70%, transparent) !important;
}
[data-theme="night"] .pw-card {
  background: color-mix(in srgb, var(--card) 88%, #000 12%) !important;
  border-color: rgba(150, 128, 90, .3) !important;
}

/* 2. 解谜提示：红框改绿 */
.solve {
  border-color: color-mix(in srgb, #4a8a5c 45%, var(--line)) !important;
  background: color-mix(in srgb, #4a8a5c 9%, var(--card)) !important;
  color: color-mix(in srgb, #2f6b41 65%, var(--ink-2)) !important;
}
.solve a {
  color: #35704a !important;
  border-bottom-color: color-mix(in srgb, #35704a 45%, transparent) !important;
}
.solve a:hover { color: #24553a !important; }
.solve svg { stroke: #4a8a5c !important; }
[data-theme="night"] .solve {
  border-color: rgba(120, 170, 132, .45) !important;
  background: rgba(74, 138, 92, .14) !important;
  color: #b7d2bd !important;
}
[data-theme="night"] .solve a { color: #8fc7a2 !important; }

/* 3. 三个按钮和「补丁怎么解压」一样的按下去手感 */
.hero-tools .gacha-entry:active,
.hero-tools .sponsor-entry:active,
.hero-tools .bili:active {
  transform: translateY(3px) !important;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, .3),
    inset 0 -1px 0 rgba(255, 255, 255, .4),
    0 0 0 rgba(90, 78, 56, 0) !important;
}

/* 步骤序号跟着解谜框一起变绿 */
.steps li::before {
  border-color: color-mix(in srgb, #4a8a5c 48%, var(--line)) !important;
  background: color-mix(in srgb, #4a8a5c 12%, var(--card)) !important;
  color: #35704a !important;
}
[data-theme="night"] .steps li::before {
  border-color: rgba(120, 170, 132, .5) !important;
  background: rgba(74, 138, 92, .18) !important;
  color: #9fd0b0 !important;
}

/* 翅膀：改用 game-icons 的 feathered-wing（CC BY 3.0 · Lorc） */

/* 翅膀重定位：两只分列信封左右上角 */

/* 翅膀：两只独立 SVG，绝对定位到信封两角 */
@media (max-width: 640px) {
}

/* 修：翅膀容器宽度别用 calc，不然 right 偏移算错 */

/* ===== v32 ===== */

/* 去掉信封翅膀 */

/* 四个弹窗补上「弹出来」的动画，和「补丁怎么解压」一致 */
#modal-gacha .gg-panel,
#modal-sponsor .sp-panel,
#modal-links .ln-panel,
#modal-notice .nt-panel {
  animation: pop .26s cubic-bezier(.2, .8, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  #modal-gacha .gg-panel,
  #modal-sponsor .sp-panel,
  #modal-links .ln-panel,
  #modal-notice .nt-panel { animation: none; }
}

/* 恢复：删死类时误删了 m-box-head 的布局，补回来 */
.m-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease;
}
.m-box-head .chev { margin-left: auto; flex: none; }
.m-box-body { padding: 0 12px 12px; }
.m-boxes { display: grid; gap: 8px; margin-top: 14px; }

/* 恢复下载框的近代样式（浅底、方角、细边） */
.m-box {
  background: color-mix(in srgb, var(--card) 72%, #fff 28%);
  border: 1px solid rgba(120, 105, 78, .28);
  border-radius: 3px;
  overflow: hidden;
}
[data-theme="night"] .m-box {
  background: color-mix(in srgb, var(--card) 85%, #000 15%);
  border-color: rgba(150, 128, 90, .3);
}
.m-box-head:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.m-box-head .dim { color: var(--ink-3); font-size: 11.5px; }

/* 更新日志：红色换绿 */
.log-entry::after { background: #4a8a5c; }
.log-date {
  color: #2f6b41;
  background: color-mix(in srgb, #4a8a5c 12%, transparent);
  border-color: color-mix(in srgb, #4a8a5c 32%, transparent);
}
[data-theme="night"] .log-entry::after { background: #7bc08c; }
[data-theme="night"] .log-date {
  color: #a8d8b6;
  background: rgba(74, 138, 92, .18);
  border-color: rgba(122, 192, 140, .35);
}
