/* =========================================================
   飞双傲白 · 作品合集
   纯静态站：所有视觉变量集中在 :root[data-theme]
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--bg-image, none);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--grain, 0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img { max-width: 100%; }

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

button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

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

/* ---------------- 主题变量 ---------------- */

:root,
[data-theme="noir"] {
  --bg: #08080a;
  --bg-soft: #0d0d10;
  --surface: #121215;
  --surface-2: #19191e;
  --text: #f2efe7;
  --muted: #9b958b;
  --dim: #6d685f;
  --accent: #c43b32;
  --accent-2: #c9a227;
  --on-accent: #fff8f2;
  --line: rgba(242, 239, 231, 0.13);
  --line-strong: rgba(242, 239, 231, 0.3);
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 3px;
  --radius-lg: 5px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.36);
  --header-bg: rgba(8, 8, 10, 0.74);
  --grain: 0.07;
  --bg-image:
    radial-gradient(1100px 680px at 88% -12%, rgba(196, 59, 50, 0.2), transparent 62%),
    radial-gradient(900px 620px at -8% 36%, rgba(201, 162, 39, 0.07), transparent 60%);
  --glow: none;
}

[data-theme="sky"] {
  --bg: #eaf6ff;
  --bg-soft: #dff0fb;
  --surface: #ffffff;
  --surface-2: #e9f4fc;
  --text: #102a43;
  --muted: #52708c;
  --dim: #7a95a9;
  --accent: #2f8fd0;
  --accent-2: #ffb62e;
  --on-accent: #ffffff;
  --line: rgba(16, 42, 67, 0.14);
  --line-strong: rgba(16, 42, 67, 0.32);
  --font-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 26px 70px rgba(47, 120, 170, 0.2);
  --shadow-soft: 0 12px 30px rgba(47, 120, 170, 0.14);
  --header-bg: rgba(234, 246, 255, 0.78);
  --grain: 0.03;
  --bg-image:
    radial-gradient(760px 440px at 84% 4%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(560px 360px at 6% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #d9efff 0%, #eaf7ff 48%, #fff6e4 100%);
  --glow: none;
}

[data-theme="paper"] {
  --bg: #f2ede2;
  --bg-soft: #eae3d5;
  --surface: #fbf8f1;
  --surface-2: #e9e1d1;
  --text: #1c1813;
  --muted: #6f6659;
  --dim: #8e867a;
  --accent: #8e3125;
  --accent-2: #3f5a42;
  --on-accent: #fdf8ef;
  --line: rgba(28, 24, 19, 0.16);
  --line-strong: rgba(28, 24, 19, 0.34);
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: 0 24px 60px rgba(70, 58, 36, 0.18);
  --shadow-soft: 0 10px 28px rgba(70, 58, 36, 0.12);
  --header-bg: rgba(242, 237, 226, 0.8);
  --grain: 0.05;
  --bg-image:
    radial-gradient(900px 600px at 95% 0%, rgba(142, 49, 37, 0.06), transparent 60%),
    radial-gradient(700px 500px at 0% 80%, rgba(63, 90, 66, 0.06), transparent 60%);
  --glow: none;
}

[data-theme="neon"] {
  --bg: #04050c;
  --bg-soft: #070a16;
  --surface: #0a1020;
  --surface-2: #101830;
  --text: #e9f8ff;
  --muted: #8296b0;
  --dim: #5d7089;
  --accent: #45e9ff;
  --accent-2: #ff4ecd;
  --on-accent: #021018;
  --line: rgba(69, 233, 255, 0.18);
  --line-strong: rgba(69, 233, 255, 0.42);
  --font-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 0 34px rgba(69, 233, 255, 0.12);
  --header-bg: rgba(4, 5, 12, 0.72);
  --grain: 0.06;
  --bg-image:
    radial-gradient(900px 640px at 80% -10%, rgba(69, 233, 255, 0.16), transparent 60%),
    radial-gradient(800px 620px at 8% 30%, rgba(255, 78, 205, 0.13), transparent 62%),
    radial-gradient(700px 500px at 50% 110%, rgba(69, 233, 255, 0.1), transparent 60%);
  --glow: 0 0 26px rgba(69, 233, 255, 0.32);
}

[data-theme="pixel"] {
  --bg: #131625;
  --bg-soft: #171b2c;
  --surface: #1d2233;
  --surface-2: #262d43;
  --text: #eaf7d9;
  --muted: #9dab8b;
  --dim: #7b8869;
  --accent: #a6ff4d;
  --accent-2: #ffcc33;
  --on-accent: #0e1506;
  --line: #33405c;
  --line-strong: #51617f;
  --font-display: "Courier New", "Consolas", monospace;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
  --shadow-soft: 4px 4px 0 rgba(0, 0, 0, 0.35);
  --header-bg: rgba(19, 22, 37, 0.9);
  --grain: 0;
  --bg-image:
    linear-gradient(rgba(166, 255, 77, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 255, 77, 0.035) 1px, transparent 1px);
  --glow: none;
  background-size: 32px 32px;
}

/* ---------------- 通用 ---------------- */

.wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-head .index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.section-link {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
}

.section-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.25em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--glow);
}

.btn-primary:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
  border-color: var(--accent);
}

.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-pending {
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-pending:hover {
  transform: none;
  color: var(--muted);
  border-color: var(--line);
}

/* ---------------- 顶栏 ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.header-inner {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding-block: 10px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  line-height: 1.25;
}

.brand-text span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-block: 6px;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }

.theme-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  flex-shrink: 0;
}

.theme-switch .ts-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  padding-inline: 6px 2px;
  text-transform: uppercase;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 7px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.theme-btn .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.theme-btn[data-theme-set="sky"] .dot { background: linear-gradient(135deg, #eaf6ff 45%, #2f8fd0 46%); }
.theme-btn[data-theme-set="noir"] .dot { background: linear-gradient(135deg, #0a0a0b 45%, #c43b32 46%); }
.theme-btn[data-theme-set="paper"] .dot { background: linear-gradient(135deg, #f2ede2 45%, #8e3125 46%); }
.theme-btn[data-theme-set="neon"] .dot { background: linear-gradient(135deg, #45e9ff 46%, #ff4ecd 47%); }
.theme-btn[data-theme-set="pixel"] .dot { background: linear-gradient(135deg, #131625 45%, #a6ff4d 46%); }

.theme-btn:hover { color: var(--text); border-color: var(--line); }

.theme-btn[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ---------------- 首页 Hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 118px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 74px);
  width: 100%;
}

.hero-copy { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }

.hero-title {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7.6vw, 7.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.06em;
}

.hero-title span { display: block; }

.hero-handle {
  margin: 0 0 28px;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-tagline {
  margin: 0 0 14px;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  letter-spacing: 0.04em;
  color: var(--text);
}

.hero-desc {
  max-width: 46ch;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 30px;
}

.tag {
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.tag-sky { background: rgba(47, 143, 208, 0.16); border-color: rgba(47, 143, 208, 0.28); color: #1b6fa8; }
.tag-pink { background: rgba(232, 95, 147, 0.16); border-color: rgba(232, 95, 147, 0.3); color: #b53a6a; }
.tag-mint { background: rgba(63, 168, 148, 0.18); border-color: rgba(63, 168, 148, 0.32); color: #2c7a6a; }
.tag-yellow { background: rgba(255, 182, 46, 0.24); border-color: rgba(255, 182, 46, 0.42); color: #8f6100; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 46px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.1;
  color: var(--text);
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--dim);
}

/* 右侧：看板娘 + 作品小卡 */
.hero-visual {
  position: relative;
  min-height: clamp(480px, 52vw, 660px);
  animation: rise 1.1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mascot-frame {
  position: absolute;
  top: 3%;
  right: 0;
  width: 74%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #cfeaff;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  z-index: 3;
}

.mascot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.mascot-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.on-air {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0d2b45;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  backdrop-filter: blur(6px);
}

.on-air i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8524a;
  animation: pulse 1.6s ease-in-out infinite;
}

.mascot-id {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #0d2b45;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  backdrop-filter: blur(6px);
}

.mascot-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 52px 18px 16px;
  background: linear-gradient(transparent, rgba(9, 30, 48, 0.8));
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.mascot-note {
  font-size: 1.35rem;
  line-height: 1;
  color: #ffe08a;
}

.mascot-sticker {
  position: absolute;
  left: -2%;
  bottom: 11%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transform: rotate(-3deg);
}

.mascot-sticker span {
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.mascot-sticker strong {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}

.shot {
  position: absolute;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), z-index 0s;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}

.shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(4px);
}

.shot-a {
  width: 38%;
  aspect-ratio: 4 / 3;
  top: 5%;
  left: -4%;
  transform: rotate(-7deg);
  z-index: 4;
}

.shot-b {
  width: 28%;
  aspect-ratio: 3 / 4;
  bottom: 2%;
  right: -2%;
  transform: rotate(6deg);
  z-index: 5;
}

.shot:hover { transform: rotate(0deg) scale(1.04); z-index: 7; }

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4% 8%;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--dim);
  text-transform: uppercase;
}

.scroll-hint .line {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 2.2s ease-in-out infinite;
}

/* ---------------- 跑马灯 ---------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 16px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.7rem;
}

/* ---------------- 精选作品 ---------------- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.feature-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  min-height: 280px;
  isolation: isolate;
  transition: border-color 0.35s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.feature-card .fc-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface-2)) 0%, var(--surface) 72%);
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s;
}

.feature-card:hover img { transform: scale(1.05); filter: brightness(0.86); }

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.82) 100%);
  z-index: 1;
}

.feature-card .fc-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: clamp(18px, 2.4vw, 30px);
  color: #fff;
}

.feature-card .fc-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 10px;
}

.feature-card .fc-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin: 0;
}

.feature-card .fc-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.3s, transform 0.3s;
}

.feature-card:hover .fc-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }

.feature-card.fc-a { grid-column: span 7; aspect-ratio: 16 / 10; }
.feature-card.fc-b { grid-column: span 5; aspect-ratio: 4 / 5; }
.feature-card.fc-c { grid-column: span 5; aspect-ratio: 4 / 4.4; }
.feature-card.fc-d { grid-column: span 7; aspect-ratio: 16 / 10; }

/* ---------------- 关于 ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.about-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.about-quote em {
  font-style: normal;
  color: var(--accent);
}

.about-copy p { color: var(--muted); margin: 0 0 18px; }
.about-copy p strong { color: var(--text); font-weight: 500; }

.about-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.about-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.about-list .k { color: var(--dim); letter-spacing: 0.1em; font-size: 0.72rem; }
.about-list .v { color: var(--text); }

/* ---------------- 联系 ---------------- */

.contact {
  position: relative;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.contact h2 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.contact p { max-width: 52ch; color: var(--muted); margin: 0; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 280px;
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.25s, padding 0.25s;
}

.contact-links a span:last-child { color: var(--dim); }
.contact-links a:hover { color: var(--text); padding-left: 6px; }

/* ---------------- 页脚 ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.footer-inner .sep { color: var(--accent); margin-inline: 8px; }

/* ---------------- 作品页 ---------------- */

.page-hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: clamp(38px, 5vw, 64px);
  overflow: hidden;
}

.page-hero h1 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.page-hero h1 .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  text-stroke: 1px var(--line-strong);
  font-size: 0.42em;
  letter-spacing: 0.18em;
  margin-top: 12px;
}

.page-hero-desc {
  max-width: 58ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.page-hero-meta b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  margin-right: 8px;
}

.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 14px;
  margin-bottom: 34px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }

.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.result-count {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  white-space: nowrap;
}

.wall {
  column-count: 3;
  column-gap: clamp(16px, 2vw, 26px);
  padding-bottom: 40px;
}

.work-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: clamp(16px, 2vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.work-media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface-2)) 0%, var(--surface) 70%);
}

.work-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s;
}

.work-card:hover .work-media img { transform: scale(1.045); filter: brightness(1.04); }

.work-media.is-missing img { display: none; }

.work-media .fallback-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0;
}

.work-media.is-missing .fallback-title { opacity: 0.9; }

.work-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.work-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.work-no {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.work-body { padding: clamp(16px, 1.8vw, 22px); }

.work-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 9px;
}

.work-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.9vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.work-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-actions .btn {
  padding: 0.6em 0.95em;
  font-size: 0.76rem;
  flex: 1 1 auto;
}

/* ---------------- 详情弹层 ---------------- */

.work-modal {
  width: min(980px, calc(100vw - 40px));
  max-width: 980px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
}

.work-modal::backdrop {
  background: rgba(4, 4, 6, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: min(86vh, 760px);
  box-shadow: var(--shadow);
}

.modal-media {
  position: relative;
  min-height: 320px;
  background: var(--surface-2);
  overflow: hidden;
}

.modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-body {
  padding: clamp(24px, 3.4vw, 44px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  font-size: 1rem;
  backdrop-filter: blur(6px);
}

.modal-close:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.modal-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.modal-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.modal-desc {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.modal-detail {
  margin: 0 0 24px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.8;
}

.modal-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.modal-highlights li {
  padding: 11px 14px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.modal-note {
  margin: 0 0 26px;
  font-size: 0.76rem;
  color: var(--dim);
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* ---------------- 动效 ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes drip {
  0%, 100% { opacity: 0.35; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- 主题细节 ---------------- */

[data-theme="paper"] .hero-title,
[data-theme="paper"] .page-hero h1 { font-weight: 500; }

[data-theme="paper"] .site-header { border-bottom-color: var(--line-strong); }

[data-theme="paper"] .feature-card::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 32%, rgba(20, 16, 10, 0.86) 100%);
}

[data-theme="neon"] .hero-title {
  background: linear-gradient(120deg, #ffffff 0%, var(--accent) 46%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(69, 233, 255, 0.18));
}

[data-theme="neon"] .brand-mark,
[data-theme="neon"] .btn-primary { box-shadow: var(--glow); }

[data-theme="neon"] .work-card:hover {
  box-shadow: 0 0 32px rgba(69, 233, 255, 0.14), var(--shadow);
}

[data-theme="pixel"] .hero-title,
[data-theme="pixel"] .page-hero h1,
[data-theme="pixel"] .work-title,
[data-theme="pixel"] .feature-card .fc-title {
  font-family: "Courier New", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

[data-theme="pixel"] .hero-title { font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.1; }

[data-theme="pixel"] .work-card,
[data-theme="pixel"] .feature-card,
[data-theme="pixel"] .shot,
[data-theme="pixel"] .btn,
[data-theme="pixel"] .filter-btn,
[data-theme="pixel"] .modal-shell {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

[data-theme="pixel"] .btn:hover,
[data-theme="pixel"] .work-card:hover,
[data-theme="pixel"] .feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
}

[data-theme="pixel"] .work-badge {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="pixel"] .work-badge::before { border-radius: 0; }

[data-theme="pixel"] .shot img,
[data-theme="pixel"] .work-media img,
[data-theme="pixel"] .feature-card img,
[data-theme="pixel"] .modal-media img {
  image-rendering: pixelated;
}

[data-theme="pixel"] .site-header { border-bottom: 3px solid var(--accent); }

[data-theme="pixel"] .marquee-track span { text-transform: uppercase; }

/* ---------------- 作品专属皮肤 ---------------- */

.work-card[data-skin] { --card-accent: var(--tint, var(--accent)); }

.work-card .btn-primary {
  background: var(--card-accent, var(--accent));
  border-color: var(--card-accent, var(--accent));
  color: var(--on-accent);
}

.work-card .btn-primary:hover {
  color: var(--on-accent);
  border-color: var(--card-accent, var(--accent));
}

.work-card .work-badge::before { background: var(--card-accent, var(--accent)); }

/* 恐怖游戏站：黑底、暗红、扫描线 */
.work-card[data-skin="horror"] {
  --surface: #0b0b0d;
  --surface-2: #151518;
  --text: #f2efe7;
  --muted: #9b958b;
  --dim: #6d685f;
  --line: rgba(242, 239, 231, 0.13);
  --line-strong: rgba(242, 239, 231, 0.3);
  --accent: #c43b32;
  --on-accent: #fff8f2;
  --card-accent: #c43b32;
  background: #0b0b0d;
  border-color: rgba(196, 59, 50, 0.34);
}

.work-card[data-skin="horror"] .work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px);
  opacity: 0.45;
  pointer-events: none;
}

.work-card[data-skin="horror"] .work-title,
.work-card[data-skin="horror"] .work-kicker {
  font-family: "Songti SC", "STSong", "SimSun", serif;
}

.work-card[data-skin="horror"] .work-body {
  background: linear-gradient(180deg, rgba(196, 59, 50, 0.07), transparent 45%);
}

/* MC 服务器：像素、硬阴影、网格 */
.work-card[data-skin="pixel"] {
  --surface: #1d2233;
  --surface-2: #262d43;
  --text: #eaf7d9;
  --muted: #9dab8b;
  --dim: #7b8869;
  --line: #33405c;
  --line-strong: #51617f;
  --accent: #a6ff4d;
  --on-accent: #0e1506;
  --card-accent: #a6ff4d;
  border: 2px solid #33405c;
  border-radius: 0;
  background-color: #1d2233;
  background-image:
    linear-gradient(rgba(166, 255, 77, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 255, 77, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}

.work-card[data-skin="pixel"] .work-title {
  font-family: "Courier New", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0;
}

.work-card[data-skin="pixel"] .work-media img { image-rendering: pixelated; }

.work-card[data-skin="pixel"] .work-badge {
  background: #1d2233;
  border-color: #a6ff4d;
  border-radius: 0;
  color: #a6ff4d;
}

.work-card[data-skin="pixel"] .work-badge::before { border-radius: 0; }

.work-card[data-skin="pixel"] .btn {
  border-radius: 0;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.work-card[data-skin="pixel"] .btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.work-card[data-skin="pixel"]:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.45);
}

/* ECHO：晴空渐变、圆角、音符 */
.work-card[data-skin="echo"] {
  --surface: #f2fbff;
  --surface-2: #e6f6ff;
  --text: #0c2b44;
  --muted: #4f7089;
  --dim: #7e99ad;
  --line: rgba(12, 43, 68, 0.14);
  --line-strong: rgba(12, 43, 68, 0.3);
  --accent: #2f9fe0;
  --on-accent: #04202f;
  --card-accent: #2f9fe0;
  background: linear-gradient(155deg, #e8f8ff 0%, #fff0f8 62%, #fff8dd 100%);
  border-color: rgba(47, 159, 224, 0.32);
  border-radius: 20px;
}

.work-card[data-skin="echo"] .work-body {
  position: relative;
  overflow: hidden;
}

.work-card[data-skin="echo"] .work-body::before {
  content: "♪";
  position: absolute;
  right: 10px;
  bottom: -22px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(47, 159, 224, 0.16);
  pointer-events: none;
}

.work-card[data-skin="echo"] .work-title {
  font-family: var(--font-body);
  font-weight: 700;
}

.work-card[data-skin="echo"] .work-badge {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(47, 159, 224, 0.4);
  border-radius: 999px;
  color: #0c2b44;
}

.work-card[data-skin="echo"] .work-badge::before { background: #ff4ecd; }

/* 小说：纸张、书脊、每本一个书色 */
.work-card[data-skin="literary"] {
  --surface: #fbf7ee;
  --surface-2: #f3ecdd;
  --text: #211c16;
  --muted: #6f6659;
  --dim: #8e867a;
  --line: rgba(33, 28, 22, 0.16);
  --line-strong: rgba(33, 28, 22, 0.32);
  --accent: var(--tint, #8e3125);
  --on-accent: #fffaf2;
  --card-accent: var(--tint, #8e3125);
  background: #fbf7ee;
  border-color: color-mix(in srgb, var(--tint, #8e3125) 38%, transparent);
  box-shadow: inset 4px 0 0 var(--tint, #8e3125);
}

.work-card[data-skin="literary"] .work-title,
.work-card[data-skin="literary"] .work-kicker {
  font-family: "Songti SC", "STSong", "SimSun", serif;
}

.work-card[data-skin="literary"] .work-media {
  border-bottom: 1px solid rgba(33, 28, 22, 0.12);
}

.work-card[data-skin="literary"] .work-badge {
  background: color-mix(in srgb, var(--tint, #8e3125) 88%, #000);
  border-color: transparent;
  color: #fff;
}

.work-card[data-skin="literary"] .work-badge::before { background: rgba(255, 255, 255, 0.85); }

/* 动画：影院黑、金色、上下遮幅 */
.work-card[data-skin="cinema"] {
  --surface: #0a1114;
  --surface-2: #101a1e;
  --text: #eef6f4;
  --muted: #93a6a8;
  --dim: #6b7c80;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --accent: #e0a33c;
  --on-accent: #171005;
  --card-accent: #e0a33c;
  background: #0a1114;
  border-color: rgba(224, 163, 60, 0.3);
}

.work-card[data-skin="cinema"] .work-media { border-block: 10px solid #050809; }

.work-card[data-skin="cinema"] .work-title { letter-spacing: 0.06em; }

.work-card[data-skin="cinema"] .work-badge {
  background: rgba(10, 17, 20, 0.82);
  border-color: rgba(224, 163, 60, 0.45);
  color: #f3d9a4;
}

/* 精选大卡：顶部色条区分项目 */
.feature-card[data-skin] { --card-accent: var(--tint, var(--accent)); }

.feature-card[data-skin]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 5px;
  background: var(--card-accent);
}

.feature-card[data-skin="echo"] {
  border-radius: 26px;
}

.feature-card[data-skin="echo"]::before {
  background: linear-gradient(90deg, #45c8ff, #ff4ecd 55%, #ffd166);
}

.feature-card[data-skin="echo"] .fc-arrow {
  background: rgba(47, 159, 224, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

[data-theme="sky"] .hero-title {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0d2b45;
}

[data-theme="sky"] .brand-mark {
  background: linear-gradient(135deg, #2f8fd0, #8fd4ff);
  border-color: transparent;
  color: #fff;
}

[data-theme="sky"] .btn-primary {
  box-shadow: 0 10px 26px rgba(47, 143, 208, 0.28);
}

[data-theme="sky"] .site-header {
  box-shadow: 0 6px 24px rgba(47, 120, 170, 0.06);
}

[data-theme="sky"] .marquee { background: rgba(255, 255, 255, 0.42); }

[data-theme="sky"] .page-hero h1 { color: #0d2b45; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1180px) {
  .wall { column-count: 2; }
  .hero-grid { gap: 40px; }
}

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 12px 18px; min-height: 64px; }
  .nav { margin-left: auto; gap: 18px; }
  .theme-switch { margin-left: 0; }
  .theme-switch .ts-label { display: none; }
  .theme-btn span { display: none; }
  .filter-bar { top: 64px; }
  .hero { padding-top: 132px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; max-width: 560px; width: 100%; margin-top: 12px; }
  .mascot-frame { position: relative; width: 72%; margin-left: auto; }
  .feature-card.fc-a,
  .feature-card.fc-b,
  .feature-card.fc-c,
  .feature-card.fc-d { grid-column: span 12; aspect-ratio: 16 / 10; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
  .contact-links { min-width: 0; width: 100%; }
  .modal-shell { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
  .modal-media { min-height: 260px; max-height: 320px; }
  .modal-body { overflow: visible; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .brand-text span { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.76rem; letter-spacing: 0.06em; }
  .theme-switch { border: none; background: transparent; padding: 0; }
  .hero { padding-top: 126px; }
  .hero-title { font-size: clamp(2.9rem, 13vw, 4rem); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .hero-visual { min-height: 0; }
  .mascot-frame { width: 82%; }
  .shot-a { width: 36%; top: 2%; left: 0; }
  .shot-b { width: 27%; right: 0; bottom: 0; }
  .mascot-sticker { left: 0; bottom: 9%; }
  .wall { column-count: 1; }
  .filter-bar {
    top: 64px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .result-count { margin-left: 0; }
  .modal-highlights { grid-template-columns: 1fr; }
  .page-hero { padding-top: 130px; }
  .page-hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .page-hero h1 .outline { font-size: 0.36em; }
  .section { padding-block: 56px; }
  .footer-inner { font-size: 0.66rem; }
}

@media (max-width: 460px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding-top: 110px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { min-height: 0; }
  .mascot-frame { width: 88%; }
  .shot-a { width: 34%; }
  .shot-b { width: 26%; }
  .mascot-sticker { display: none; }
  .work-actions .btn { flex: 1 1 100%; }
}

/* =========================================================
   V2 · 视觉升级层
   深空主题 / 自定义光标 / 背景粒子 / 滚动揭示 / 磁吸
   ========================================================= */

[data-theme="void"] {
  --bg: #05060a;
  --bg-soft: #080a11;
  --surface: #0c0e15;
  --surface-2: #12151f;
  --text: #f2f2ef;
  --muted: #8b8f99;
  --dim: #5b606b;
  --accent: #f4f4f2;
  --accent-2: #7fd6ff;
  --on-accent: #05060a;
  --line: rgba(242, 242, 239, 0.12);
  --line-strong: rgba(242, 242, 239, 0.34);
  --font-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.78);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(5, 6, 10, 0.58);
  --grain: 0.05;
  --bg-image:
    radial-gradient(1200px 720px at 78% -12%, rgba(127, 214, 255, 0.1), transparent 62%),
    radial-gradient(1000px 640px at 4% 22%, rgba(255, 118, 180, 0.06), transparent 60%),
    linear-gradient(180deg, #05060a 0%, #06070c 46%, #04050a 100%);
  --glow: none;
}

[data-theme="void"] .hero-title { letter-spacing: -0.035em; font-weight: 600; }
[data-theme="void"] .section-head h2 { letter-spacing: -0.015em; font-weight: 600; }
[data-theme="void"] .brand-mark { border-radius: 0; }
[data-theme="void"] .work-card,
[data-theme="void"] .feature-card { backdrop-filter: blur(2px); }

/* ---------- 光标 ---------- */

html.has-cursor,
html.has-cursor * { cursor: none !important; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-200px, -200px, 0);
  opacity: 0;
  transition: opacity 0.35s;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--text);
  mix-blend-mode: difference;
}

/* 外圈的大小由 JS 写进 transform（scale 与位移同一矩阵），这里只负责颜色变化 */
.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid var(--line-strong);
  transition: opacity 0.35s, background 0.3s, border-color 0.3s;
}

html.cursor-on .cursor-dot,
html.cursor-on .cursor-ring { opacity: 1; }

.cursor-ring.is-hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
}

/* ---------- 背景粒子 ---------- */

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

main,
.site-footer { position: relative; z-index: 1; }

/* ---------- 页面转场 ---------- */

.page-veil {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: var(--bg);
  transform-origin: top;
  animation: veilOut 0.75s cubic-bezier(0.76, 0, 0.24, 1) 0.04s both;
}

@keyframes veilOut {
  from { transform: scaleY(1); }
  to { transform: scaleY(0); }
}

/* ---------- 顶栏进度 ---------- */

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------- 排版 ---------- */

.hero-title {
  font-size: clamp(3.4rem, 9.2vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hairline {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- 滚动揭示 ---------- */

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 1ms);
}

.rv.in { opacity: 1; transform: none; }

.rv.fade { transform: none; }

.mask-line {
  display: block;
  overflow: hidden;
}

.mask-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 1ms);
}

.in > .mask-line > span,
.mask-line.in > span { transform: none; }

/* ---------- 交互增强 ---------- */

.magnetic { will-change: transform; }

.link-line {
  position: relative;
  display: inline-block;
}

.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

[data-par] { will-change: transform; }

/* ---------- 作品卡视觉升级 ---------- */

.work-card {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.work-media { overflow: hidden; }

.work-media img {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s;
}

.work-card:hover .work-media img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.03);
}

.work-title {
  transition: color 0.35s, letter-spacing 0.45s;
}

.work-card:hover .work-title { letter-spacing: 0.02em; }

.work-no {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

/* 悬停时沿皮肤色描边 */
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--card-accent, var(--accent));
  opacity: 0;
  transition: opacity 0.4s;
}

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

/* ---------- 精选卡 ---------- */

.feature-card {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover { transform: translateY(-6px) scale(1.008); }

.fc-media img { transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.feature-card:hover .fc-media img { transform: scale(1.06); }

.fc-arrow { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.feature-card:hover .fc-arrow { transform: translate(4px, -4px); }

/* ---------- 主题切换（多主题可换行） ---------- */

.theme-switch { flex-wrap: wrap; }

.theme-btn span { white-space: nowrap; }

/* ---------- 降低动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .mask-line > span, .page-veil { transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
  .mask-line > span { transform: none; }
  .bg-canvas { display: none; }
}

@media (max-width: 720px) {
  html.has-cursor,
  html.has-cursor * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
  .hero-title { font-size: clamp(3rem, 14vw, 4.2rem); }
  .display { font-size: clamp(2.2rem, 11vw, 3.2rem); }
}

/* ---------- 首页小说条 ---------- */

.book-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.book-mini {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s, background 0.4s;
}

.book-mini::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tint);
}

.book-mini:hover {
  transform: translateY(-4px);
  border-color: var(--tint);
  background: var(--surface-2);
}

.bm-no {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.bm-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.04em;
}

.bm-meta {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (max-width: 900px) {
  .book-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .book-strip { grid-template-columns: 1fr; }
}
