/* ============================================================================
   mineland · 全站样式
   ----------------------------------------------------------------------------
   想改主题色？改下面 :root 里的变量即可（--grass 是主绿色，--gold 是金色）。
   想改字体大小/间距？每个区块前都有中文注释，找到对应名字改数字。
   ============================================================================ */

:root {
  /* 颜色 */
  --bg: #0e110b;
  --bg-soft: #12160f;
  --panel: #1a1f16;
  --panel-2: #22281c;
  --panel-3: #2c3324;
  --line: #05070a;
  --text: #ece9dc;
  --text-soft: #c9cbbd;
  --muted: #a3a894;
  --dim: #7c826e;
  --grass: #7ec850;
  --grass-2: #5fae35;
  --gold: #f0c04a;
  --cyan: #57d9d0;
  --pink: #fb7299;

  /* 立体边框 */
  --bevel: inset 2px 2px 0 rgba(255, 255, 255, .09), inset -2px -2px 0 rgba(0, 0, 0, .5);
  --bevel-sm: inset 1px 1px 0 rgba(255, 255, 255, .1), inset -1px -1px 0 rgba(0, 0, 0, .45);

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "Consolas", "Cascadia Mono", "SFMono-Regular", "Courier New", monospace;

  --header-h: 72px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: url("../assets/textures/stone.png");
  background-size: 220px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; }

a { color: inherit; }

button { font-family: inherit; }

h1, h2, h3, p, figure, blockquote { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--grass); color: #0d1c05; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0d08; }
::-webkit-scrollbar-thumb { background: #343b29; border: 2px solid #0a0d08; }
::-webkit-scrollbar-thumb:hover { background: #49523a; }

/* 通用容器 */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 26px;
}

/* 像素小标题 */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--gold);
  flex: none;
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 65;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--grass-deep), var(--grass), var(--cyan));
  box-shadow: 0 0 12px rgba(126, 200, 80, .5);
}

/* ============================== 按钮 ============================== */

.btn {
  --btn-bg: var(--panel-2);
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 3px solid var(--line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--bevel), 0 6px 0 rgba(0, 0, 0, .38);
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--bevel), 0 8px 0 rgba(0, 0, 0, .38);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: var(--bevel), 0 2px 0 rgba(0, 0, 0, .38);
}

.btn-primary {
  --btn-bg: linear-gradient(180deg, #93da62, #5fae35);
  --btn-fg: #0c1c04;
  border-color: #03060a;
}

.btn-primary:hover { --btn-bg: linear-gradient(180deg, #a4ea72, #6cbb3e); }

.btn-ghost {
  --btn-bg: linear-gradient(180deg, #262d1f, #1b2016);
  --btn-fg: var(--text-soft);
}

.btn-ghost:hover { --btn-fg: var(--text); --btn-bg: linear-gradient(180deg, #2f3726, #22281b); }

.btn-sm { padding: 10px 16px; font-size: 13px; }

.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ============================== 顶部导航 ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 15, 9, .86);
  border-bottom: 3px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 12px 32px rgba(0, 0, 0, .35);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  transition: background .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 13, 8, .96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 16px 36px rgba(0, 0, 0, .45);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  background: #0e110b;
  object-fit: cover;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
  flex: none;
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .16s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--grass);
  transition: right .22s var(--ease);
}

.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after,
.site-nav a.is-active::after { right: 0; }
.site-nav a.is-active { color: var(--grass); }

.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  margin-left: auto;
  padding: 8px;
  border: 3px solid var(--line);
  background: var(--panel-2);
  box-shadow: var(--bevel-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.nav-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 18px;
}

.nav-bars span {
  display: block;
  height: 3px;
  background: var(--text-soft);
  transition: transform .2s ease, opacity .2s ease;
}

/* ============================== 首屏 ============================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(920px, calc(100svh - var(--header-h)));
  padding: clamp(56px, 7vh, 90px) 26px 100px;
  text-align: center;
  overflow: hidden;
  border-bottom: 3px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 54% 42% at 50% 32%, rgba(126, 200, 80, .20), transparent 68%),
    radial-gradient(ellipse 38% 34% at 78% 82%, rgba(87, 217, 208, .10), transparent 70%),
    linear-gradient(180deg, rgba(10, 13, 8, .35), rgba(10, 13, 8, .88) 88%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(236, 233, 220, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 233, 220, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.float-block {
  position: absolute;
  display: block;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .5));
  animation: floaty 9s ease-in-out infinite;
  opacity: .9;
}

.float-block img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  image-rendering: pixelated;
}

.fb-1 { left: 5%; top: 26%; width: clamp(56px, 7vw, 110px); animation-delay: -1s; }
.fb-2 { right: 7%; top: 20%; width: clamp(46px, 5.8vw, 88px); animation-delay: -3.4s; opacity: .8; }
.fb-3 { left: 12%; bottom: 16%; width: clamp(36px, 4.2vw, 66px); animation-delay: -5.2s; opacity: .75; filter: blur(.4px) drop-shadow(0 16px 16px rgba(0, 0, 0, .5)); }
.fb-4 { right: 13%; bottom: 20%; width: clamp(52px, 6.4vw, 100px); animation-delay: -2.2s; }
.fb-5 { left: 44%; top: 7%; width: clamp(30px, 3vw, 52px); animation-delay: -6.4s; opacity: .65; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-24px) rotate(2deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1120px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .38em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: clamp(18px, 3vh, 34px);
  padding: 8px 14px;
  border: 1px solid rgba(240, 192, 74, .28);
  background: rgba(240, 192, 74, .05);
}

.hero-logo {
  position: relative;
  width: min(1080px, 90vw);
  animation: logo-float 8s ease-in-out infinite;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 36px 46px rgba(0, 0, 0, .55));
}

.hero-logo img.is-missing { display: none; }

.hero-logo-text {
  display: none;
  font-family: var(--font-mono);
  font-size: clamp(44px, 10vw, 110px);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--grass);
  text-shadow: 0 6px 0 #2b4a17, 0 12px 0 #1b2f0e;
}

.hero-logo img.is-missing + .hero-logo-text { display: block; }

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-sub {
  max-width: 640px;
  margin-top: clamp(16px, 2.4vh, 28px);
  color: var(--text-soft);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.9;
  letter-spacing: .01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: clamp(26px, 4vh, 40px);
}

.hero-stats {
  display: flex;
  margin-top: clamp(30px, 4.4vh, 48px);
  border: 3px solid var(--line);
  background: rgba(12, 16, 9, .72);
  box-shadow: var(--bevel), 0 8px 0 rgba(0, 0, 0, .3);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 11px clamp(18px, 3.6vw, 34px);
}

.hero-stats li + li { border-left: 2px solid rgba(255, 255, 255, .08); }

.hero-stats strong {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--gold);
}

.hero-stats span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--dim);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 3px solid rgba(236, 233, 220, .3);
  border-radius: 14px;
  text-decoration: none;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--grass);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================== 区块通用 ============================== */

.section {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0;
}

.section + .section { border-top: 1px solid rgba(236, 233, 220, .06); }

.section--dark {
  background: rgba(6, 8, 5, .36);
  border-top: 1px solid rgba(236, 233, 220, .06);
  border-bottom: 1px solid rgba(236, 233, 220, .06);
}

.section-head { max-width: 100%; }

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
  text-wrap: balance;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 16px;
  background-image: repeating-linear-gradient(90deg, var(--grass) 0 10px, transparent 10px 16px);
}

.section-desc {
  max-width: 660px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.head-text { min-width: 0; }

/* ============================== 成员名单 ============================== */

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}

.member-card {
  --accent: var(--grass);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 40px 12px 12px;
  border: 3px solid var(--line);
  background: linear-gradient(180deg, #232a1d, #191e14);
  box-shadow: var(--bevel), 0 6px 0 rgba(0, 0, 0, .3);
  color: inherit;
  text-decoration: none;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s ease;
}

.member-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  opacity: .55;
  transition: opacity .16s ease;
}

.member-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #2b3324, #1f2518);
  box-shadow: var(--bevel), 0 9px 0 rgba(0, 0, 0, .32), 0 0 0 3px rgba(126, 200, 80, .16);
}

.member-card:hover::before { opacity: 1; }

.avatar-slot {
  width: 60px;
  height: 60px;
  flex: none;
  padding: 4px;
  border: 3px solid var(--line);
  background: #0a0c08;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .8), inset -2px -2px 0 rgba(255, 255, 255, .07);
  display: block;
}

.avatar-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform .2s var(--ease);
}

.member-card:hover .avatar-slot img { transform: scale(1.06); }

.member-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.member-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .16s ease;
}

.member-card:hover .member-name { color: var(--gold); }

.member-bili {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  color: var(--dim);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity .16s ease, transform .16s ease, color .16s ease;
}

.member-card:hover .member-bili {
  opacity: 1;
  transform: none;
  color: var(--pink);
}

/* 礼物浮层 */
.gift-layer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 248px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
  transition: opacity .16s ease;
}

.gift-layer.is-visible { opacity: 1; visibility: visible; }

.gift-card {
  border: 3px solid var(--line);
  background: #0f130b;
  box-shadow: 0 0 0 2px rgba(240, 192, 74, .5), 0 24px 44px rgba(0, 0, 0, .65);
  transform: rotate(-2deg);
}

.gift-card img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.gift-name {
  display: block;
  padding: 8px 10px;
  border-top: 2px solid var(--line);
  background: #0a0d07;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================== 视频动态 ============================== */

.video-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin-top: 30px;
  padding-bottom: 2px;
}

.chip {
  flex: none;
  padding: 8px 14px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .07), 0 3px 0 rgba(0, 0, 0, .32);
  cursor: pointer;
  transition: color .15s ease, background .15s ease, transform .12s ease;
  white-space: nowrap;
}

.chip:hover { color: var(--text); background: var(--panel-2); }

.chip.is-active {
  background: linear-gradient(180deg, #93da62, #5fae35);
  border-color: var(--line);
  color: #0c1c04;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .14), 0 3px 0 rgba(0, 0, 0, .32);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px 22px;
  margin-top: clamp(28px, 4vw, 44px);
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid var(--line);
  background: #0a0c08;
  box-shadow: 0 7px 0 rgba(0, 0, 0, .34);
}

.video-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease), filter .3s ease;
}

.video-card:hover .video-thumb > img { transform: scale(1.045); filter: brightness(1.06); }

.video-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(5, 7, 4, .65));
  pointer-events: none;
}

.video-duration {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.video-duration {
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  background: rgba(5, 7, 4, .85);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--text-soft);
}

.video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(6, 9, 5, .22);
  opacity: 0;
  transition: opacity .2s ease;
}

.video-card:hover .video-play { opacity: 1; }

.video-play img {
  width: 52px;
  height: 52px;
  padding: 12px;
  border: 3px solid var(--line);
  background: var(--grass);
  object-fit: contain;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .4);
  transform: translateY(6px) scale(.92);
  transition: transform .22s var(--ease);
}

.video-card:hover .video-play img { transform: none; }

.video-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 0 2px;
}

.video-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
}

.video-author img {
  width: 24px;
  height: 24px;
  flex: none;
  object-fit: cover;
  border: 2px solid var(--line);
  image-rendering: pixelated;
}

.video-author-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .15s ease;
}

.video-card:hover .video-author-name { color: var(--grass); }

.video-author time {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}

.video-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  transition: color .15s ease;
}

.video-card:hover .video-title { color: var(--gold); }

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.empty-note {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border: 2px dashed rgba(236, 233, 220, .16);
  color: var(--muted);
  text-align: center;
}

/* ============================== 一分钟看麦地 ============================== */

.section-news {
  background:
    radial-gradient(ellipse 55% 70% at 8% 0%, rgba(240, 192, 74, .10), transparent 62%),
    radial-gradient(ellipse 45% 60% at 95% 100%, rgba(126, 200, 80, .05), transparent 70%),
    rgba(9, 12, 7, .52);
  border-top: 1px solid rgba(240, 192, 74, .16);
  border-bottom: 1px solid rgba(236, 233, 220, .07);
}

.news-tag {
  flex: none;
  padding: 9px 12px;
  border: 1px solid rgba(240, 192, 74, .3);
  background: rgba(240, 192, 74, .05);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
  color: var(--gold);
  white-space: nowrap;
}

.news-carousel { margin-top: clamp(28px, 4vw, 44px); }

.news-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.news-track::-webkit-scrollbar { display: none; }

.news-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.news-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 360px;
  border: 3px solid var(--line);
  background: linear-gradient(180deg, #1d2317, #151a11);
  box-shadow: var(--bevel), 0 8px 0 rgba(0, 0, 0, .34);
  color: inherit;
  text-decoration: none;
}

.news-feature-cover {
  position: relative;
  overflow: hidden;
  border-right: 3px solid var(--line);
  background: #060805;
}

.news-feature-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .3s ease;
}

.news-feature:hover .news-feature-cover img {
  transform: scale(1.025);
  filter: brightness(1.12);
}

.news-ep,
.news-latest,
.news-duration {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .1em;
}

.news-ep {
  left: 12px;
  top: 12px;
  padding: 6px 8px;
  background: var(--gold);
  border: 1px solid rgba(0, 0, 0, .4);
  color: #1a1303;
}

.news-latest {
  right: 12px;
  top: 12px;
  padding: 6px 8px;
  background: var(--grass);
  border: 1px solid rgba(0, 0, 0, .4);
  color: #0b1a04;
}

.news-duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 7px;
  background: rgba(5, 7, 4, .85);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--text-soft);
}

.news-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 40px 44px;
}

.news-season {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
}

.news-feature-title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.news-feature-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--dim);
}

.news-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--grass);
}

.news-watch svg {
  width: 14px;
  height: 14px;
  transition: transform .2s var(--ease);
}

.news-feature:hover .news-watch svg { transform: translate(2px, -2px); }

.news-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.news-arrow {
  width: 46px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  background: var(--panel-2);
  color: var(--text-soft);
  box-shadow: var(--bevel-sm), 0 4px 0 rgba(0, 0, 0, .35);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}

.news-arrow:hover:not(:disabled) {
  background: var(--gold);
  color: #1a1303;
  transform: translateY(-1px);
}

.news-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.news-counter {
  min-width: 74px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
}

.news-hint {
  margin-top: 9px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--dim);
}

/* ============================== 存档下载 ============================== */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(28px, 4vw, 44px);
}

.archive-card {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--line);
  background: linear-gradient(180deg, #1e2418, #171b12);
  box-shadow: var(--bevel), 0 8px 0 rgba(0, 0, 0, .34);
  overflow: hidden;
}

.archive-thumb {
  position: relative;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  border-bottom: 3px solid var(--line);
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.archive-card:hover .archive-thumb img { transform: scale(1.03); }

.archive-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 4, .1), rgba(5, 7, 4, .55));
}

.archive-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 10px;
  border: 2px solid var(--line);
  background: var(--gold);
  color: #1a1303;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}

.archive-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.archive-head h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.archive-head h3 span {
  font-size: 12px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: .04em;
}

.archive-version {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

.archive-note {
  margin-top: auto;
  padding: 14px 0 2px;
  border-top: 1px dashed rgba(255, 255, 255, .08);
  color: var(--dim);
  font-size: 13px;
  line-height: 1.7;
}

.download-list { display: flex; flex-direction: column; }

.download-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 2px dashed rgba(236, 233, 220, .12);
}

.download-row:last-child { padding-bottom: 0; }

.download-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 3px solid var(--line);
  background: #10140c;
  box-shadow: var(--bevel-sm);
  color: var(--grass);
}

.download-icon svg { width: 20px; height: 20px; }

.download-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  margin-right: auto;
}

.download-text strong {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.download-text small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--dim);
  line-height: 1.5;
}

.btn-download {
  padding: 10px 16px;
  font-size: 13px;
  flex: none;
  --btn-bg: linear-gradient(180deg, #93da62, #5fae35);
  --btn-fg: #0c1c04;
}

.btn-download.is-pending {
  --btn-bg: linear-gradient(180deg, #2b3223, #20261a);
  --btn-fg: var(--muted);
}

.btn-download svg { width: 14px; height: 14px; }

.section-note {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: .02em;
}

/* ============================== 页脚 ============================== */

.site-footer {
  border-top: 3px solid var(--line);
  background: rgba(7, 9, 6, .82);
  padding: clamp(48px, 6vw, 72px) 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: start;
}

.footer-logo {
  display: block;
  width: min(360px, 76%);
  height: auto;
  margin-bottom: 14px;
  opacity: .92;
}

.footer-brand p {
  max-width: 380px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.footer-brand .footer-site-name {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-self: end;
  text-align: right;
}

.footer-nav a {
  width: fit-content;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}

.footer-nav a:hover { color: var(--grass); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(236, 233, 220, .08);
  font-size: 11.5px;
  color: var(--dim);
}

.footer-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: rgba(240, 192, 74, .7);
}

/* ============================== 子页面头部 ============================== */

.page-hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(38px, 5vw, 56px);
  border-bottom: 1px solid rgba(236, 233, 220, .07);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 80% at 18% 0%, rgba(126, 200, 80, .16), transparent 65%),
    radial-gradient(ellipse 40% 70% at 88% 10%, rgba(87, 217, 208, .08), transparent 70%);
  pointer-events: none;
}

.page-hero-inner { position: relative; z-index: 1; max-width: 860px; }

.page-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .01em;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 8px;
  margin-top: 20px;
  background-image: repeating-linear-gradient(90deg, var(--grass) 0 12px, transparent 12px 20px);
}

.page-desc {
  max-width: 640px;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.9;
}

.page-count {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
}

/* ============================== 粉丝画作 ============================== */

.gallery-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 24px 28px;
  border: 3px solid var(--line);
  border-left: 6px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(240, 192, 74, .07), transparent 70%),
    linear-gradient(180deg, #1d2317, #171b12);
  box-shadow: var(--bevel), 0 6px 0 rgba(0, 0, 0, .3);
}

.gallery-callout-text { min-width: 0; }

.gallery-callout-tag {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold);
}

.gallery-callout-text p:last-child {
  max-width: 720px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-soft);
}

.gallery-callout-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: none;
}

.gallery-callout-link {
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  transition: color .15s ease;
}

.gallery-callout-link:hover { color: var(--grass); }

.masonry {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.art-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 3px solid var(--line);
  background: #0e120a;
  box-shadow: 0 7px 0 rgba(0, 0, 0, .32);
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 11px 0 rgba(0, 0, 0, .32), 0 0 0 3px rgba(126, 200, 80, .16);
}

.art-media { display: block; line-height: 0; }

.art-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s var(--ease), filter .3s ease;
}

.art-card:hover .art-media img { transform: scale(1.035); filter: brightness(1.04); }

.art-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(5, 7, 4, .9));
}

.art-overlay strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.art-overlay span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

.submit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: clamp(26px, 4vw, 44px);
  border: 3px solid var(--line);
  background:
    linear-gradient(180deg, rgba(126, 200, 80, .07), transparent 60%),
    linear-gradient(180deg, #1d2317, #171b12);
  box-shadow: var(--bevel), 0 8px 0 rgba(0, 0, 0, .32);
}

.submit-card h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 10px 0 8px; }

.submit-card p { color: var(--muted); font-size: 14px; max-width: 560px; }

/* ============================== 建筑展示 ============================== */

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.build-card {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--line);
  background: linear-gradient(180deg, #1e2418, #171b12);
  box-shadow: var(--bevel), 0 8px 0 rgba(0, 0, 0, .32);
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.build-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bevel), 0 12px 0 rgba(0, 0, 0, .32), 0 0 0 3px rgba(126, 200, 80, .14);
}

.build-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 3px solid var(--line);
  background: #0a0c08;
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
  position: relative;
}

.build-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.build-card:hover .build-media img { transform: scale(1.035); }

.build-media .build-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  background: rgba(8, 11, 6, .85);
  color: var(--grass);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s var(--ease);
}

.build-card:hover .build-zoom { opacity: 1; transform: none; }

.build-zoom svg { width: 16px; height: 16px; }

.build-example {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 7px;
  background: rgba(240, 192, 74, .92);
  border: 1px solid rgba(0, 0, 0, .35);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  color: #201803;
}

.build-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.build-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.build-title-row h3 { font-size: 19px; font-weight: 800; line-height: 1.35; }

.build-tags {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--gold);
  opacity: .85;
}

.build-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.build-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(236, 233, 220, .08);
}

.build-builder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-soft);
  text-decoration: none;
  min-width: 0;
}

.build-builder img {
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  object-fit: cover;
  image-rendering: pixelated;
}

.build-builder:hover { color: var(--grass); }

/* ============================== 建筑地图 ============================== */

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.map-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-toolbar-actions[hidden] { display: none; }

.map-help[hidden] { display: none; }

.map-hint {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.map-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.map-dimensions {
  display: inline-flex;
  border: 3px solid var(--line);
  background: #0b1007;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .3);
}

.map-dim {
  padding: 9px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
}

.map-dim + .map-dim { border-left: 2px solid var(--line); }

.map-dim.is-active {
  background: var(--grass);
  color: #0d1c05;
}

.map-drag-hint {
  margin: 0;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}

.map-frame {
  margin-top: 18px;
  border: 3px solid var(--line);
  background: #f5f2e7;
  box-shadow: 0 12px 0 rgba(0, 0, 0, .3);
  overflow: hidden;
}

.map-viewport {
  position: relative;
  height: clamp(420px, 62vh, 680px);
  overflow: hidden;
  background: #0b1007;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-viewport.is-dragging { cursor: grabbing; }

.map-viewport.is-editing { cursor: crosshair; }

.map-viewport.is-nether {
  height: auto;
  overflow: visible;
  cursor: default;
}

.map-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  transform-origin: 0 0;
}

.map-viewport.is-nether .map-stage {
  position: relative;
  transform: none !important;
}

.map-stage > img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.map-pins {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.map-zoom {
  position: absolute;
  left: 10px;
  right: auto;
  bottom: 10px;
  z-index: 6;
  display: none;
  gap: 10px;
}

.map-zoom button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid var(--line);
  background: rgba(10, 14, 7, .9);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.map-zoom button:disabled {
  opacity: .38;
  cursor: default;
}

@media (max-width: 720px) {
  .map-zoom { display: flex; }
  .map-viewport.is-nether .map-zoom { display: none; }
}

.map-pin {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: auto;
  cursor: pointer;
}

.map-pin:hover,
.map-pin:focus-visible { z-index: 30; }

.map-pin-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--grass);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 0, 0, .55), 0 2px 0 rgba(0, 0, 0, .35);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}

.map-pin:hover .map-pin-dot,
.map-pin:focus-visible .map-pin-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0, 0, 0, .6), 0 2px 0 rgba(0, 0, 0, .35);
}

.map-viewport.is-editing .map-pin-dot { background: var(--gold); }

.map-pin-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  z-index: 40;
  transform: translateX(-50%);
  padding: 4px 6px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 7, .94);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.map-pin:hover .map-pin-label,
.map-pin:focus-visible .map-pin-label { opacity: 1; }

.map-save-notice {
  margin: 14px 0;
  padding: 11px 14px;
  border: 2px solid var(--gold);
  background: rgba(240, 192, 74, .08);
  color: var(--gold);
  font-size: 13px;
  line-height: 1.7;
}

.map-save-notice[hidden] { display: none; }

.map-empty {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed rgba(126, 200, 80, .35);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.map-empty[hidden] { display: none; }

.map-help {
  margin-top: 26px;
  padding: 0 18px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, .02);
}

.map-help summary {
  padding: 16px 0;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
}

.map-help ol {
  margin: 0 0 14px 20px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.map-help code {
  padding: 1px 4px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.map-help p {
  margin: 0 0 16px;
  color: var(--dim);
  font-size: 12px;
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 7, 2, .8);
  backdrop-filter: blur(3px);
}

.map-modal[hidden] { display: none; }

.map-modal-card {
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border: 3px solid var(--line);
  background: #12180d;
  box-shadow: 0 14px 0 rgba(0, 0, 0, .4);
}

.map-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.map-modal-head h2 { margin: 0; font-size: 24px; }

.map-modal-close {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.map-modal-close:hover { color: var(--text); }

.map-field { display: block; margin-bottom: 16px; }

.map-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.map-field input[type="text"],
.map-field select {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid var(--line);
  background: #0b1007;
  color: var(--text);
  font: inherit;
}

.map-field select { cursor: pointer; }

.map-field select option {
  background: #0b1007;
  color: var(--text);
}

.map-field input[type="text"]:focus,
.map-field select:focus {
  outline: none;
  border-color: var(--grass);
}

.map-field input[type="file"] {
  width: 100%;
  color: var(--muted);
  font-size: 13px;
}

.map-preview {
  margin: 0 0 14px;
  padding: 8px;
  border: 2px solid var(--line);
  background: #0b1007;
  text-align: center;
}

.map-preview[hidden] { display: none; }

.map-preview img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  margin: 0 auto;
  object-fit: contain;
}

.map-form-note {
  min-height: 20px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.map-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.map-actions-spacer { flex: 1; }

/* ============================== 右侧咨询浮窗 ============================== */

.contact-widget {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 70;
  transform: translateY(-50%);
}

.contact-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 46px;
  padding: 10px 0 9px;
  border: 3px solid var(--line);
  border-right: 0;
  background: var(--grass);
  color: #0d1c05;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: background .18s ease, transform .18s var(--ease);
}

.contact-tab svg { width: 20px; height: 20px; }

.contact-tab span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}

.contact-widget:hover .contact-tab,
.contact-widget.is-open .contact-tab {
  background: var(--gold);
  transform: translateX(-2px);
}

.contact-panel {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  width: 280px;
  padding: 18px;
  border: 3px solid var(--line);
  background: #12180d;
  box-shadow: 0 12px 0 rgba(0, 0, 0, .38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(10px);
  transition: opacity .18s ease, transform .18s var(--ease), visibility .18s;
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  width: 18px;
  height: 100%;
}

.contact-widget:focus-within .contact-panel,
.contact-widget.is-open .contact-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

@media (hover: hover) {
  .contact-widget:hover .contact-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }
}

.contact-kicker {
  margin-bottom: 7px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
}

.contact-panel h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.contact-text {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.contact-qq {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  background: #0b1007;
}

.contact-qq > span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
}

.contact-qq strong {
  flex: 1;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: .08em;
}

.contact-copy {
  padding: 4px 8px;
  border: 2px solid var(--grass);
  background: transparent;
  color: var(--grass);
  font-size: 11px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.contact-copy:hover {
  background: var(--grass);
  color: #0d1c05;
}

.contact-note {
  margin-top: 10px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.65;
}

/* ============================== 灯箱 ============================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 84px;
  background: rgba(5, 7, 4, .95);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox.is-tall {
  align-items: flex-start;
  overflow-y: auto;
  padding-top: 84px;
  padding-bottom: 70px;
}

.lightbox.is-tall .lb-figure { max-height: none; }

.lightbox.is-tall .lb-img {
  max-height: none;
  width: auto;
  max-width: min(92vw, 720px);
}

.lb-figure {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: min(1040px, 100%);
  max-height: 100%;
  min-height: 0;
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  align-self: center;
  border: 3px solid var(--line);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 70px rgba(0, 0, 0, .7);
  background: #0a0c08;
}

.lb-caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.lb-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--gold);
}

.lb-title { font-size: 17px; font-weight: 700; color: var(--text); }

.lb-meta { font-size: 12.5px; color: var(--muted); }

.lb-close,
.lb-nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  background: var(--panel-2);
  color: var(--text-soft);
  box-shadow: var(--bevel), 0 5px 0 rgba(0, 0, 0, .35);
  cursor: pointer;
  z-index: 2;
}

.lb-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
}

.lb-nav {
  top: 50%;
  width: 46px;
  height: 64px;
  margin-top: -32px;
  font-size: 30px;
  line-height: 1;
}

.lb-prev { left: 22px; }
.lb-next { right: 22px; }

.lb-close:hover,
.lb-nav:hover { background: var(--grass); color: #0b1a04; }

.lb-close:disabled,
.lb-nav:disabled { opacity: .3; cursor: default; }

/* ============================== 提示 & 回到顶部 ============================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 300;
  max-width: min(560px, calc(100vw - 40px));
  padding: 13px 18px;
  border: 3px solid var(--line);
  background: #20261a;
  box-shadow: var(--bevel), 0 10px 0 rgba(0, 0, 0, .35);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s var(--ease), visibility .2s;
}

.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  background: var(--panel-2);
  color: var(--grass);
  box-shadow: var(--bevel), 0 5px 0 rgba(0, 0, 0, .35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s var(--ease), visibility .2s, background .15s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--grass); color: #0b1a04; }

/* ============================== 进场动画 ============================== */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ============================== 响应式 ============================== */

@media (max-width: 1080px) {
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .header-inner { gap: 16px; padding: 0 20px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - var(--header-h));
    padding: 12px 22px 26px;
    overflow-y: auto;
    background: #0a0d08;
    border-bottom: 3px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .45);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform .28s var(--ease), visibility .28s;
    margin-left: 0;
  }

  .site-nav.is-open { transform: none; visibility: visible; }

  .site-nav a {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(236, 233, 220, .08);
    font-size: 16px;
  }

  .site-nav a::after { display: none; }

  .header-cta {
    display: inline-flex;
    margin-left: auto;
    padding: 8px 10px;
    font-size: 12px;
  }

  .nav-toggle { margin-left: 12px; }

  .nav-toggle[aria-expanded="true"] .nav-bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero { min-height: auto; padding-top: 64px; padding-bottom: 96px; }

  .fb-2, .fb-4 { display: none; }

  .section-head--split { align-items: flex-start; }

  .section-head--split .video-filter { max-width: 100%; width: 100%; }

  .archive-grid { grid-template-columns: 1fr; }

}

@media (max-width: 820px) {
  .news-feature { grid-template-columns: 1fr; min-height: 0; }
  .news-feature-cover { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 3px solid var(--line); }
  .news-feature-cover img { height: 100%; }
  .news-feature-body { padding: 24px 22px 28px; gap: 9px; }
  .news-feature-title { font-size: 28px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .header-inner { padding: 0 18px; }

  .brand-text { font-size: 15px; letter-spacing: .14em; }

  .hero { padding-left: 18px; padding-right: 18px; }

  .hero-logo { width: 92vw; }

  .float-block { display: none; }

  .video-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 22px -18px 0;
    padding: 2px 18px 10px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
  }

  .video-filter::-webkit-scrollbar { display: none; }

  .hero-stats li { padding: 10px 16px; }
  .hero-stats strong { font-size: 18px; }
  .hero-stats span { font-size: 8px; letter-spacing: .18em; }

  .member-grid { grid-template-columns: 1fr; gap: 10px; }

  .video-grid { grid-template-columns: 1fr; gap: 26px; }

  .build-grid { grid-template-columns: 1fr; }

  .map-toolbar { align-items: flex-start; }
  .map-hint { font-size: 13px; }
  .map-bar { align-items: flex-start; }
  .map-dimensions { width: 100%; }
  .map-dim { flex: 1; }
  .map-drag-hint { font-size: 10px; }
  .map-viewport { height: 430px; }
  .map-viewport.is-nether { height: auto; }
  .map-frame { margin-top: 18px; }
  .map-modal { padding: 12px; }
  .map-modal-card { padding: 18px; }
  .map-modal-actions .btn { flex: 1 1 auto; }
  .map-actions-spacer { display: none; }

  .contact-widget {
    top: auto;
    bottom: 96px;
    transform: none;
  }

  .contact-tab { width: 44px; }

  .contact-panel {
    right: calc(100% + 10px);
    top: auto;
    bottom: 0;
    width: min(260px, calc(100vw - 70px));
    transform: translateX(10px);
  }

  .contact-widget:focus-within .contact-panel,
  .contact-widget.is-open .contact-panel,
  .contact-widget:hover .contact-panel {
    transform: translateX(0);
  }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }

  .footer-nav {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .lightbox { padding: 20px 14px 84px; }
  .lb-close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lb-nav { top: auto; bottom: 16px; width: 52px; height: 46px; margin-top: 0; }
  .lb-prev { left: 18px; }
  .lb-next { right: 18px; }
  .lb-img { max-height: calc(100vh - 210px); }

  .archive-body { padding: 18px; }

  .download-row { gap: 10px; flex-wrap: nowrap; }
  .download-text { flex: 1; min-width: 0; }
  .btn-download { margin-left: 0; }
}

@media (hover: none) {
  .gift-layer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
