/* =========================================================
   SHIQI · 个人站
   梵高星空 / 滚动换视角 / 深蓝 + 金色
   ========================================================= */

:root {
  --ink: #050c1e;
  --navy: #0a1a38;
  --navy-soft: #102547;
  --gold: #f0ca74;
  --gold-strong: #ffdc95;
  --cream: #f5f1e6;
  --muted: rgba(232, 238, 252, 0.66);
  --muted-strong: rgba(232, 238, 252, 0.82);
  --line: rgba(240, 202, 116, 0.2);
  --line-strong: rgba(240, 202, 116, 0.5);
  --card: rgba(7, 18, 40, 0.58);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.72, 0.28, 1);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--cream);
  background: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

::selection {
  background: rgba(240, 202, 116, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(240, 202, 116, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #040a18; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(240, 202, 116, 0.5), rgba(240, 202, 116, 0.18));
  border-radius: 99px;
  border: 2px solid #040a18;
}

/* ---------- 背景层 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #04081a;
  pointer-events: none;
}

.bg-base {
  position: absolute;
  inset: -3%;
  background: url("../assets/starry-main.jpg") center center / cover no-repeat;
  opacity: 0.42;
  filter: saturate(1.08) brightness(0.78);
  transform: scale(1.02);
}

.ghost-fibers-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.bg-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 75% at 50% 8%, rgba(3, 8, 20, 0) 0%, rgba(3, 8, 20, 0.1) 48%, rgba(3, 8, 20, 0.42) 100%),
    linear-gradient(180deg, rgba(4, 10, 26, 0.08) 0%, rgba(4, 10, 26, 0.28) 34%, rgba(4, 10, 26, 0.66) 70%, rgba(4, 10, 26, 0.9) 100%);
}

/* ---------- 顶部滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(240, 202, 116, 0.45), var(--gold-strong));
  box-shadow: 0 0 12px rgba(240, 202, 116, 0.55);
}

/* ---------- 导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

/* 用伪元素承载背景，避免 backdrop-filter 影响内部 fixed 导航的定位 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: rgba(4, 10, 24, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid rgba(240, 202, 116, 0.14);
  transition: opacity 0.4s var(--ease);
}

.site-header.is-scrolled {
  padding-top: 13px;
  padding-bottom: 13px;
}

.site-header.is-scrolled::before { opacity: 1; }

.brand {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
}

.brand span { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: rgba(240, 244, 255, 0.68);
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active { color: var(--gold-strong); }

.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 20, 42, 0.55);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--cream);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }

.nav-toggle.is-open span:nth-child(1) { transform: translate(-50%, 3.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translate(-50%, -3.5px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 130px;
}

.hero-inner {
  max-width: 780px;
  will-change: opacity, transform;
}

.avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 30px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(240, 202, 116, 0.95), rgba(240, 202, 116, 0.25) 45%, rgba(130, 170, 230, 0.7));
  box-shadow:
    0 0 0 1px rgba(240, 202, 116, 0.28),
    0 22px 50px -18px rgba(0, 0, 0, 0.85),
    0 0 46px -12px rgba(240, 202, 116, 0.35);
  animation: avatar-float 7s ease-in-out infinite;
}

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 1px solid rgba(240, 202, 116, 0.42);
  border-left-color: transparent;
  border-bottom-color: transparent;
  animation: ring-spin 18s linear infinite;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes avatar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: rgba(240, 202, 116, 0.86);
  text-indent: 0.42em;
}

.hero-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  color: #fffaf0;
  text-shadow:
    0 2px 30px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(240, 202, 116, 0.18);
}

.hero-name-en {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: rgba(240, 202, 116, 0.85);
  text-shadow: none;
}

/* ---------- Warp Text（React Bits 效果移植） ---------- */
.warp-text {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.warp-text canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.warp-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4%;
  text-align: center;
  white-space: pre-line;
}

.warp-text.is-ready .warp-fallback { display: none; }

/* ---------- Depth Text（React Bits 深度文本） ---------- */
.depth-text {
  display: inline-block;
  perspective: var(--depth-text-perspective, 900px);
  perspective-origin: 50% 48%;
  isolation: isolate;
}

.depth-text__stage {
  position: relative;
  display: inline-grid;
  place-items: center;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.depth-text__layer,
.depth-text__face {
  grid-area: 1 / 1;
  display: inline-block;
  font-size: var(--depth-text-font-size);
  font-weight: var(--depth-text-font-weight);
  line-height: 0.86;
  letter-spacing: 0.02em;
  white-space: nowrap;
  user-select: none;
  text-shadow: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  text-rendering: geometricPrecision;
}

.depth-text__layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.depth-text__layer--back {
  text-shadow: var(--depth-text-shadow);
}

.depth-text__face {
  position: relative;
  z-index: 1;
  color: var(--depth-text-face-color);
  text-shadow: var(--depth-text-face-shadow);
  transform: translateZ(0.6px);
}

.hero-depth-name {
  --depth-text-font-size: clamp(3.2rem, 9vw, 6rem);
  --depth-text-font-weight: 700;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fffaf0;
}

.hero-depth-name .depth-text__layer,
.hero-depth-name .depth-text__face {
  font-family: var(--serif);
}

@media (prefers-reduced-motion: reduce) {
  .depth-text__stage { will-change: auto; }
}

.warp-intro {
  width: min(640px, 90vw);
  height: 92px;
  margin: 26px auto 0;
  color: rgba(243, 247, 255, 0.86);
  font-family: var(--sans);
  font-size: clamp(0.94rem, 1.4vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.9;
}

.warp-intro canvas {
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.55));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Variable Proximity ---------- */
.proximity { display: inline; }

.prox-letter {
  display: inline-block;
  transform-origin: 50% 82%;
  will-change: transform;
}

.prox-space {
  display: inline-block;
  width: 0.28em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.28s var(--ease), background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-strong), #e0b458);
  color: #1a1505;
  font-weight: 600;
  box-shadow: 0 14px 34px -16px rgba(240, 202, 116, 0.75);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -16px rgba(240, 202, 116, 0.9);
}

.btn-ghost {
  border-color: rgba(240, 202, 116, 0.35);
  color: rgba(245, 241, 230, 0.88);
  background: rgba(7, 18, 40, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(240, 202, 116, 0.75);
  color: #fff;
  transform: translateY(-3px);
}

.btn-mini {
  padding: 7px 16px;
  font-size: 0.78rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(236, 241, 255, 0.55);
  transition: color 0.3s ease;
}

.scroll-hint:hover { color: var(--gold); }

.scroll-hint-text {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.scroll-hint-line {
  position: relative;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(240, 202, 116, 0.5), transparent);
  overflow: hidden;
}

.scroll-hint-line i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 3px;
  margin-left: -1px;
  border-radius: 50%;
  background: var(--gold-strong);
  box-shadow: 0 0 8px var(--gold);
  animation: scroll-dot 2.2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  80% { opacity: 0.9; }
  100% { transform: translateY(44px); opacity: 0; }
}

/* ---------- 通用区块 ---------- */
main { position: relative; z-index: 1; }

.section {
  position: relative;
  padding: clamp(86px, 11vw, 130px) 0;
  scroll-margin-top: 72px;
}

.container {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

.container-narrow { width: min(820px, calc(100% - 48px)); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(38px, 5vw, 56px);
}

.kicker {
  margin: 0 0 14px;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  color: rgba(240, 202, 116, 0.8);
  text-indent: 0.42em;
}

.section-head h2,
.about-main h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.95rem, 4vw, 2.9rem);
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: #fffaf0;
}

.section-head h2 .sub,
.about-main h2 .sub {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.section-desc {
  margin: 18px 0 0;
  max-width: 640px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- 筛选 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: none;
  color: rgba(236, 241, 255, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filter:hover {
  border-color: rgba(240, 202, 116, 0.45);
  color: var(--gold-strong);
}

.filter.is-active {
  background: none;
  border-color: rgba(240, 202, 116, 0.7);
  color: var(--gold-strong);
  box-shadow: 0 0 22px -12px rgba(240, 202, 116, 0.8);
}

/* ---------- 项目列表（单列 / 透明底） ---------- */
.card-grid {
  display: flex;
  flex-direction: column;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 28px;
  row-gap: 8px;
  padding: 24px 4px;
  border: 0;
  border-bottom: 1px solid rgba(240, 202, 116, 0.16);
  border-radius: 0;
  background: none;
  box-shadow: none;
  cursor: pointer;
  transition: padding-left 0.35s var(--ease), border-color 0.35s ease;
}

.card:hover {
  padding-left: 16px;
  border-bottom-color: rgba(240, 202, 116, 0.55);
}

.card-top {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.card-date {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(232, 238, 252, 0.5);
}

.card h3 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #fffaf0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.card-foot {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(240, 202, 116, 0.8);
  opacity: 0.55;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.card:hover .card-foot {
  opacity: 1;
  transform: translateX(0);
}

.card-foot .arrow {
  transition: transform 0.3s var(--ease);
}

.card:hover .card-foot .arrow { transform: translateX(4px); }

.empty-state {
  margin: 40px 0 0;
  padding: 30px;
  text-align: center;
  border: 1px dashed rgba(240, 202, 116, 0.24);
  border-radius: 16px;
  background: none;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- 游戏（单列 / 透明底） ---------- */
.game-grid {
  display: flex;
  flex-direction: column;
}

.game-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  border: 0;
  border-bottom: 1px solid rgba(240, 202, 116, 0.14);
  border-radius: 0;
  background: none;
  box-shadow: none;
  transition: padding-left 0.35s var(--ease), border-color 0.35s ease;
}

.game-card:hover {
  padding-left: 16px;
  border-bottom-color: rgba(240, 202, 116, 0.5);
}

.game-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-width: 0;
}

.game-badge {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.game-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fffaf0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.game-tags span {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(236, 241, 255, 0.5);
}

.game-tags span + span::before {
  content: "/";
  margin-right: 12px;
  color: rgba(240, 202, 116, 0.32);
}

/* ---------- 外链（图标一行 / 透明底） ---------- */
.icon-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 46px);
}

.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 78px;
  color: rgba(236, 241, 255, 0.62);
  transition: color 0.3s ease, transform 0.35s var(--ease);
}

.icon-link:hover {
  color: var(--gold-strong);
  transform: translateY(-4px);
}

.link-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(240, 202, 116, 0.28);
  background: none;
  color: inherit;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.icon-link:hover .link-icon {
  border-color: rgba(240, 202, 116, 0.8);
  box-shadow: 0 0 26px -8px rgba(240, 202, 116, 0.65);
}

.icon-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* ---------- 文章管理 ---------- */
.lock-card {
  padding: clamp(30px, 5vw, 46px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: none;
  box-shadow: none;
  text-align: center;
}

.lock-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid rgba(240, 202, 116, 0.4);
  background: none;
  color: var(--gold-strong);
}

.lock-icon svg { width: 26px; height: 26px; }

.lock-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fffaf0;
}

.lock-card > p {
  margin: 0 0 26px;
  font-size: 0.88rem;
  color: var(--muted);
}

.unlock-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.form-hint {
  margin: 14px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: rgba(232, 238, 252, 0.42);
}

.form-error {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #ff9b8f;
}

input[type="text"],
input[type="password"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(3, 10, 24, 0.55);
  color: var(--cream);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input::placeholder,
textarea::placeholder { color: rgba(232, 238, 252, 0.32); }

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(240, 202, 116, 0.65);
  background: rgba(3, 10, 24, 0.75);
  box-shadow: 0 0 0 3px rgba(240, 202, 116, 0.1);
}

select { cursor: pointer; }
select option { background: #0a1a38; color: var(--cream); }

textarea { resize: vertical; min-height: 70px; line-height: 1.7; }

.shake { animation: shake 0.4s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.admin-panel {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: none;
  box-shadow: none;
  padding: clamp(22px, 4vw, 36px);
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(232, 238, 252, 0.66);
}

.admin-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fe0a4;
  box-shadow: 0 0 10px rgba(127, 224, 164, 0.75);
}

.publish-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: rgba(232, 238, 252, 0.6);
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.form-actions .form-hint { margin: 0; }

.admin-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 34px 0 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-list-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #fffaf0;
}

.admin-list-head span {
  margin-left: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--gold);
}

.admin-list { display: flex; flex-direction: column; gap: 10px; }

.admin-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
}

.admin-row .tag { flex: 0 0 auto; }

.admin-row-title {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  color: rgba(245, 241, 230, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row-date {
  font-size: 0.72rem;
  color: rgba(232, 238, 252, 0.4);
  white-space: nowrap;
}

.admin-row .delete-btn {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 130, 110, 0.32);
  background: rgba(255, 100, 80, 0.08);
  color: #ff9b8f;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.admin-row .delete-btn:hover {
  background: rgba(255, 100, 80, 0.18);
  border-color: rgba(255, 130, 110, 0.6);
}

.admin-empty {
  margin: 6px 0;
  padding: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

/* ---------- 关于 ---------- */
.section-about { padding-bottom: clamp(70px, 9vw, 110px); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.about-main h2 { margin-bottom: 26px; }

.about-main p {
  margin: 0 0 18px;
  font-size: 0.94rem;
  line-height: 2;
  color: var(--muted-strong);
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.about-facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: none;
  font-size: 0.8rem;
}

.about-facts span { color: rgba(232, 238, 252, 0.45); letter-spacing: 0.08em; }
.about-facts strong { font-weight: 500; color: var(--gold-strong); }

.contact {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: rgba(232, 238, 252, 0.45);
}

.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-mail {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: 0.04em;
  color: var(--gold-strong);
  border-bottom: 1px solid rgba(240, 202, 116, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.contact-mail:hover { color: #fff; border-color: #fff; }

.about-side {
  position: relative;
  padding: 34px 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: none;
  box-shadow: none;
  overflow: hidden;
}

.about-side::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 202, 116, 0.16), transparent 66%);
}

.about-side blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  line-height: 2;
  color: rgba(255, 250, 240, 0.9);
}

.about-side-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(240, 202, 116, 0.65);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px clamp(20px, 5vw, 56px) 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(4, 10, 24, 0.45);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: rgba(232, 238, 252, 0.4);
}

.site-footer p { margin: 0; }

.back-top { color: rgba(240, 202, 116, 0.7); transition: color 0.25s ease; }
.back-top:hover { color: var(--gold-strong); }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open { visibility: visible; opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 22px;
  border: 1px solid rgba(240, 202, 116, 0.28);
  background: linear-gradient(165deg, rgba(13, 31, 64, 0.97), rgba(5, 13, 28, 0.98));
  box-shadow: 0 50px 100px -40px #000;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.35s var(--ease);
}

.modal.is-open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 241, 230, 0.75);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-close:hover {
  border-color: rgba(240, 202, 116, 0.55);
  color: var(--gold-strong);
  transform: rotate(90deg);
}

.modal-cat {
  margin: 0 0 12px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-indent: 0.3em;
}

.modal-card h2 {
  margin: 0 0 12px;
  padding-right: 28px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fffaf0;
}

.modal-meta {
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: rgba(232, 238, 252, 0.42);
}

.modal-body p {
  margin: 0 0 16px;
  font-size: 0.93rem;
  line-height: 2;
  color: rgba(236, 241, 255, 0.8);
}

.modal-link {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  font-size: 0.84rem;
  color: var(--gold-strong);
  border-bottom: 1px solid rgba(240, 202, 116, 0.4);
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 140;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(240, 202, 116, 0.35);
  background: rgba(9, 22, 46, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--cream);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  box-shadow: 0 20px 50px -20px #000;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.card.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), padding-left 0.35s var(--ease), border-color 0.35s ease;
}

.game-card.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), padding-left 0.35s var(--ease), border-color 0.35s ease;
}

.icon-link.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), color 0.3s ease;
}

.icon-link.reveal.is-visible:hover { transform: translateY(-4px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { max-width: 520px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(310px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 80px 34px;
    background: rgba(4, 10, 24, 0.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(240, 202, 116, 0.16);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 85;
  }

  .nav.is-open { transform: translateX(0); }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link::after { display: none; }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 86;
  }

  .site-header { padding-top: 16px; padding-bottom: 16px; }

  .hero { padding-top: 100px; }

  .publish-form { grid-template-columns: 1fr; }

  .section { scroll-margin-top: 60px; }
}

@media (max-width: 600px) {
  .container, .container-narrow { width: min(1140px, calc(100% - 36px)); }

  .avatar-wrap { width: 108px; height: 108px; margin-bottom: 24px; }

  .hero-depth-name {
    --depth-text-font-size: clamp(2.6rem, 13vw, 3.6rem);
    font-size: clamp(2.6rem, 13vw, 3.6rem);
  }

  .warp-intro { height: 156px; font-size: 0.9rem; line-height: 1.8; }

  .hero-actions { width: 100%; }

  .hero-actions .btn { flex: 1; padding: 12px 18px; }

  .scroll-hint-text { font-size: 0.64rem; letter-spacing: 0.16em; }

  .card-grid { grid-template-columns: 1fr; }

  .unlock-form { flex-direction: column; }

  .unlock-form .btn { width: 100%; }

  .admin-bar { flex-wrap: wrap; }

  .admin-row { flex-wrap: wrap; }

  .admin-row-title { flex: 1 1 100%; order: 3; }

  .about-side { padding: 28px 24px; }

  .icon-row { gap: 16px 22px; }

  .icon-link { min-width: 62px; gap: 8px; }

  .link-icon { width: 52px; height: 52px; font-size: 0.88rem; }

  .icon-label { font-size: 0.72rem; }

  .modal { padding: 14px; }

  .modal-card { max-height: 88vh; }

  .site-footer { justify-content: center; text-align: center; }
}

/* ---------- 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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