:root {
  color-scheme: light;
  --bg: #F2ECE1;
  --surface: #E7DFCE;
  --paper: #FAF7F0;
  --ink: #171717;
  --ink-soft: #2C2A26;
  --muted: #5C574E;
  --line: #CFC6B4;
  --line-strong: #171717;
  --accent: #B5442E;
  --accent-dark: #8E311E;
  --forest: #1B3B2F;
  --ochre: #D99B26;
  --shadow-ink: 4px 4px 0 #171717;
  --shadow-accent: 5px 5px 0 #B5442E;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif CJK SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-size: 13px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =========================================================
   背景纸纹 + 全屏交互式网点与粒子层 + 定制光标
   ========================================================= */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx-grid {
  z-index: 0;
}

.fx-particles {
  z-index: 45;
}

/* 细腻纸张纤维噪点层，彻底消除纯色平涂感 */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.issue-bar,
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

/* 定制光标（仅在桌面端 fx-active 状态下激活） */
.fx-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.fx-cursor-on .fx-cursor {
  opacity: 1;
}

body.fx-cursor-on,
body.fx-cursor-on a,
body.fx-cursor-on button,
body.fx-cursor-on summary,
body.fx-cursor-on .game-stage {
  cursor: none !important;
}

.fx-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  transition: width 0.16s ease, height 0.16s ease, opacity 0.16s ease;
}

.fx-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(23, 23, 23, 0.72);
  background: rgba(250, 247, 240, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  transition:
    width 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.fx-cursor-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.fx-cursor.is-hover .fx-cursor-ring {
  width: 46px;
  height: 46px;
  border-color: var(--accent);
  background: rgba(181, 68, 46, 0.1);
}

.fx-cursor.is-badge .fx-cursor-dot {
  opacity: 0;
}

.fx-cursor.is-badge .fx-cursor-ring {
  width: 68px;
  height: 68px;
  border-color: var(--ink);
  background: var(--accent);
  box-shadow: 2px 2px 0 var(--ink);
}

.fx-cursor.is-badge[data-tone="ink"] .fx-cursor-ring {
  background: var(--ink);
  border-color: var(--ochre);
}

.fx-cursor.is-badge[data-tone="forest"] .fx-cursor-ring {
  background: var(--forest);
  border-color: var(--paper);
}

.fx-cursor.is-badge .fx-cursor-label {
  opacity: 1;
  transform: scale(1);
}

.fx-cursor.is-down .fx-cursor-ring {
  scale: 0.84;
}

/* =========================================================
   顶部深炭黑刊号栏
   ========================================================= */
.issue-bar {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.issue-inner {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  min-height: 34px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.issue-left,
.issue-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.issue-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ochre);
  display: inline-block;
}

.issue-sep,
.issue-sub,
.issue-domain {
  color: rgba(250, 247, 240, 0.68);
}

.fx-toggle {
  border: 1px solid rgba(250, 247, 240, 0.36);
  background: transparent;
  color: var(--ochre);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fx-toggle:hover {
  background: var(--ochre);
  color: var(--ink);
  border-color: var(--ochre);
}

.fx-toggle[aria-pressed="false"] {
  color: rgba(250, 247, 240, 0.55);
  border-color: rgba(250, 247, 240, 0.22);
}

/* =========================================================
   通栏刊头导航
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 236, 225, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--line-strong);
}

.header-inner {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: rgba(181, 68, 46, 0.07);
  transform: rotate(-2deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper);
}

.nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--accent);
}

/* =========================================================
   主内容容器
   ========================================================= */
.view {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  scroll-margin-top: 84px;
}

/* =========================================================
   首页顶部画报封面双栏：牛皮纸作者卡 + 深墨绿云噗工作台
   ========================================================= */
.masthead-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 460px);
  gap: 24px;
  padding: 26px 0 30px;
  border-bottom: 2px solid var(--ink);
  align-items: stretch;
}

.profile-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-ink);
  overflow: hidden;
}

.card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.card-stamp {
  color: var(--ochre);
  font-weight: 700;
}

.profile-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 22px 24px 24px;
  flex: 1;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-frame {
  padding: 3px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--accent);
  flex: none;
}

.avatar {
  width: 74px;
  height: 74px;
  object-fit: cover;
  object-position: 50% 42%;
}

.profile-identity {
  min-width: 0;
}

.profile-kicker {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.profile-card h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}

.profile-bio {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--ink-soft);
  max-width: 48ch;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 14px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.social-link img {
  flex: none;
  object-fit: contain;
}

.social-link .arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.social-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--accent);
  background: #FFFFFF;
}

.social-link:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* =========================================================
   云噗落座：深墨绿刊头 + 点阵纸画板工作台摆件
   ========================================================= */
.arena-widget {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-ink);
  min-width: 0;
}

.arena-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px;
  background: var(--forest);
  color: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}

.arena-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arena-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  background: var(--ochre);
  color: var(--ink);
}

.arena-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.arena-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250, 247, 240, 0.78);
  letter-spacing: 0.06em;
}

.arena-body {
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.game-stage {
  position: relative;
  isolation: isolate;
  border: 1.5px solid var(--ink);
  background-color: #FCF9F2;
  background-image:
    radial-gradient(#BFB5A2 1px, transparent 1px),
    linear-gradient(to right, rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 23, 23, 0.035) 1px, transparent 1px);
  background-size: 16px 16px, 64px 64px, 64px 64px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  cursor: grab;
}

.game-stage[data-grabbed] {
  cursor: grabbing;
}

#field {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.launch-handle {
  position: absolute;
  width: max(18%, 48px);
  height: max(34%, 48px);
  min-width: 48px;
  min-height: 48px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.launch-handle[aria-disabled="true"] {
  pointer-events: none;
}

.arena-footer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arena-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.arena-status[data-success] {
  color: var(--forest);
  font-weight: 700;
}

/* 表情包折叠面板 */
.sticker {
  border-top: 1px dashed var(--line);
  padding-top: 6px;
}

.sticker summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  list-style: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.sticker summary::-webkit-details-marker {
  display: none;
}

.sticker summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.sticker[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.sticker-panel {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
}

.sticker-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sticker-item {
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticker-item img {
  width: 100%;
  max-width: 96px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.sticker-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.qr-link {
  display: block;
  background: #FFFFFF;
  padding: 5px;
  border: 1.5px solid var(--ink);
  width: fit-content;
}

.qr-link img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.sticker-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sticker-caption strong {
  font-size: 12px;
  color: var(--ink);
}

.sticker-caption span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* =========================================================
   首屏核心阅读区：精选作品画报卡 + 深炭黑刊头笔记栏
   ========================================================= */
.reading {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0 34px;
  border-bottom: 2px solid var(--ink);
  align-items: start;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.section-tag-inv {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ochre);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

.section-more {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}

.section-more:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--accent);
  color: var(--accent);
}

/* 作品画报卡片（硬边阴影 + 3D Tilt + 光泽扫光） */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-ink);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.32), transparent 65%);
  transition: opacity 0.2s ease;
}

.work-card:hover {
  box-shadow: var(--shadow-accent);
  border-color: var(--ink);
}

.work-card:hover::after {
  opacity: 1;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  background: var(--surface);
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.cover-frame {
  position: relative;
  padding: 8px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #1B1A18;
}

.work-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}

.work-card h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
  transition: color 0.15s ease;
}

.work-card:hover h3 {
  color: var(--accent);
}

.work-action {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

/* 右侧知识笔记特稿栏 */
.notes-column-box {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-ink);
  overflow: hidden;
}

.notes-column-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--accent);
}

.notes-column-bar h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--paper);
}

.section-more-inv {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ochre);
  white-space: nowrap;
}

.section-more-inv:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.note-list {
  display: flex;
  flex-direction: column;
}

.note-list > a {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.16s ease, padding-left 0.16s ease;
}

.note-list > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 0.16s ease;
}

.note-list > a:last-child {
  border-bottom: 0;
}

.note-list > a:hover {
  background: var(--surface);
  padding-left: 22px;
}

.note-list > a:hover::before {
  width: 4px;
}

.note-num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.note-body {
  min-width: 0;
}

.note-list strong {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 6px;
}

.note-list a:hover strong {
  color: var(--accent);
}

.note-list p {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 13.8px;
  line-height: 1.72;
}

.note-meta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  padding: 2px 7px;
  background: var(--bg);
  border: 1px solid var(--line);
}

/* 笔记独立页面列表 */
.index-list {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-ink);
}

.index-list > a {
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 24px 24px;
}

.index-list .note-num {
  font-size: 28px;
}

.index-list strong {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.3vw, 25px);
}

.index-list p {
  font-size: 15px;
}

/* =========================================================
   首页底部其他栏目撞色目录砖
   ========================================================= */
.index-strip {
  padding: 26px 0 8px;
}

.index-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.index-strip-note {
  font-size: 13px;
  color: var(--muted);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-ink);
  border-top: 5px solid var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.quick-deals {
  border-top-color: var(--accent);
}

.quick-hardware {
  border-top-color: var(--forest);
}

.quick-finds {
  border-top-color: var(--ochre);
}

.quick-card:hover {
  background: #FFFFFF;
  box-shadow: var(--shadow-accent);
}

.quick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.quick-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.quick-card b {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

.quick-desc {
  color: var(--muted);
  font-size: 13.5px;
}

/* =========================================================
   子页面撞色刊头
   ========================================================= */
.subpage {
  min-height: 68vh;
  padding-top: 28px;
  padding-bottom: 24px;
}

.subpage-header {
  padding: 24px 28px;
  margin-bottom: 28px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-accent);
}

.subpage-hardware {
  background: var(--forest);
}

.subpage-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.18;
  margin: 6px 0 8px;
  color: var(--paper);
}

.subpage-header .lede {
  color: rgba(250, 247, 240, 0.8);
  font-size: 15.5px;
  line-height: 1.72;
  margin: 0;
  max-width: 64ch;
}

/* =========================================================
   详情页
   ========================================================= */
.detail-page {
  max-width: 820px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 6px 12px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 22px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.detail-back:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--accent);
  color: var(--accent);
}

.detail-article {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-ink);
  padding: clamp(22px, 4vw, 42px);
}

.detail-article > h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.28;
  margin: 0 0 12px;
}

.detail-article > .lede {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
  margin: 0 0 26px;
  font-size: 16.5px;
  color: var(--muted);
}

.detail-article section {
  margin-top: 28px;
}

.detail-article section h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--ink);
}

.detail-article section p {
  font-size: 16.5px;
  line-height: 1.95;
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.detail-article figure {
  margin: 0 0 26px;
  padding: 10px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
}

.detail-article figcaption {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.detail-article .article-sources {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.article-sources h2 {
  font-size: 14px !important;
  font-family: var(--font-mono) !important;
  letter-spacing: 0.08em;
  color: var(--accent) !important;
}

.article-sources ul {
  margin: 0;
  padding-left: 20px;
}

.article-sources li {
  margin-bottom: 8px;
}

.article-sources a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   羊毛福利 & 捡点垃圾
   ========================================================= */
.content-block {
  max-width: 900px;
}

.deal-grid {
  display: grid;
  gap: 18px;
}

.deal-grid article {
  padding: 20px 24px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-ink);
  display: grid;
  gap: 10px;
}

.deal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 0;
}

.deal-deadline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  padding: 2px 9px;
  border: 1px solid var(--ink);
  background: var(--surface);
  margin: 0;
}

.content-block h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 800;
}

.content-block p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
}

.deal-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 4px;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--paper);
  background: var(--accent);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.deal-action:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--accent-dark);
}

.empty {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 20px;
  color: var(--muted);
}

.find-card {
  display: grid;
  grid-template-columns: minmax(190px, 270px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.find-card + .find-card {
  margin-top: 18px;
}

.find-card:hover {
  box-shadow: var(--shadow-accent);
}

.find-image {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
  padding: 6px;
}

.find-copy {
  display: grid;
  gap: 8px;
}

.find-copy p {
  color: var(--muted);
  font-size: 14.5px;
}

/* =========================================================
   硬件价格手册
   ========================================================= */
.price-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.price-controls {
  display: flex;
  flex-wrap: wrap;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.price-controls button {
  border: 0;
  border-right: 1.5px solid var(--ink);
  background: transparent;
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.price-controls button:last-child {
  border-right: 0;
}

.price-controls button:hover {
  background: var(--surface);
}

.price-controls button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--paper);
}

.table-caption-mirror {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--ink);
}

.table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-ink);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
  text-align: left;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

th, td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

tbody tr:nth-child(even) {
  background: rgba(231, 223, 206, 0.28);
}

tbody tr:hover {
  background: rgba(217, 155, 38, 0.14);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th[scope="row"] {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.num-col,
.price-cell {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-cell {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent);
}

.price-cell.is-empty {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

.date-col,
.date-cell {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

td a {
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

td a:hover {
  color: var(--accent);
}

.quote-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================================================
   深炭黑压底页脚
   ========================================================= */
.site-footer {
  margin-top: 56px;
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--accent);
}

.footer-inner {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 22px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 16px;
}

.footer-brand span {
  font-size: 13px;
  color: rgba(250, 247, 240, 0.68);
}

.footer-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ochre);
}

.no-script {
  padding: 12px 24px;
  background: var(--surface);
  border-top: 1px solid var(--ink);
}

/* =========================================================
   平板与移动端响应式适配
   ========================================================= */
@media (max-width: 960px) {
  .masthead-band {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .issue-sub,
  .issue-sep,
  .issue-domain,
  .fx-toggle {
    display: none;
  }

  .issue-inner,
  .header-inner,
  .view,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0 10px;
  }

  .brand {
    justify-content: space-between;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .nav a {
    font-size: 13px;
    padding: 6px 4px;
    text-align: center;
  }

  .masthead-band {
    padding: 18px 0 22px;
  }

  .profile-body {
    padding: 16px;
  }

  .avatar {
    width: 60px;
    height: 60px;
  }

  .profile-card h1 {
    font-size: 30px;
  }

  .work-grid,
  .work-grid.compact,
  .quick-links {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .subpage-header {
    padding: 18px;
  }

  .find-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .sticker-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sticker-item img {
    max-width: 112px;
  }

  .sticker-download {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .qr-link img {
    width: 132px;
    height: 132px;
  }

  .price-controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .price-controls button {
    padding: 9px 4px;
    text-align: center;
    font-size: 12.5px;
  }

  .detail-article {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .fx-canvas,
  .fx-cursor {
    display: none !important;
  }
}

/* =========================================================
   v3 新增：云噗复古单车剧场、四宫格表情包、灵感笔记与写作台
   ========================================================= */
.bike-stage {
  border: 1.5px solid var(--ink);
  background: #FBF7EE;
  overflow: hidden;
}

#yunpu-bike {
  display: block;
  width: 100%;
  height: auto;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-sparks {
  border-top-color: var(--forest);
}

.subpage-sparks {
  background: var(--forest);
}

.subpage-write {
  background: var(--ink);
  border-bottom: 3px solid var(--ochre);
}

/* 灵感笔记时间流 */
.spark-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.spark-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spark-tags button {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.spark-tags button:hover {
  transform: translate(-1px, -1px);
  background: var(--surface);
}

.spark-tags button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--accent);
}

.spark-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.spark-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.spark-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-ink);
  border-left: 5px solid var(--accent);
}

.spark-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.spark-tag-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--forest);
  background: rgba(27, 59, 47, 0.1);
  border: 1px solid var(--forest);
  padding: 2px 8px;
}

.spark-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.spark-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.spark-card-foot {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* 站内隐藏写作台 */
.write-page {
  max-width: 860px;
}

.write-banner {
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.write-banner[data-mode="cloud"] {
  background: rgba(27, 59, 47, 0.1);
  border-color: var(--forest);
  color: var(--forest);
  font-weight: 600;
}

.write-auth-card,
.editor-card,
.manage-box {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-ink);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.write-auth-card h2,
.manage-box h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 20px;
}

.write-auth-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.write-auth-row input,
.editor-card input[type="text"],
.editor-card input[type="date"],
.editor-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  background: #FFFFFF;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
}

.editor-card {
  display: grid;
  gap: 14px;
}

.editor-card label {
  display: grid;
  gap: 6px;
}

.editor-card label > span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.editor-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
}

.write-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.write-tabs {
  display: flex;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.write-tab {
  border: 0;
  border-right: 1.5px solid var(--ink);
  background: transparent;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
}

.write-tab:last-child {
  border-right: 0;
}

.write-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}

.write-util-btns,
.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 9px 18px;
  border: 1.5px solid var(--ink);
  background: var(--accent);
  color: var(--paper);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-outline:hover {
  background: var(--surface);
}

.write-msg {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  min-height: 18px;
}

.manage-list {
  display: grid;
  gap: 12px;
}

.manage-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.manage-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.manage-info {
  min-width: 0;
}

.manage-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
}

.manage-info p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.manage-btns {
  display: flex;
  gap: 8px;
  flex: none;
}

.btn-sm {
  padding: 4px 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

.btn-danger {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-write-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(250, 247, 240, 0.55);
  border-bottom: 1px dashed rgba(250, 247, 240, 0.35);
  padding-bottom: 1px;
}

.footer-write-link:hover {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}

@media (max-width: 720px) {
  .spark-feed,
  .editor-grid-2 {
    grid-template-columns: 1fr;
  }

  .write-auth-row {
    flex-direction: column;
  }

  .manage-item {
    flex-direction: column;
  }
}
