/* ============================================================
   桃花源 Minecraft 服务器官网 - 主样式表
   设计基调：Apple 官网 × 中国桃花源美学
   ============================================================ */

/* ============ 1. 主题变量 ============ */
:root {
  /* 主色 */
  --peach: #E8B4B8;
  --peach-light: #F4D5D7;
  --peach-deep: #D89AA0;
  --peach-soft: #FCE4E6;

  --warm-cream: #F6E7C1;
  --warm-cream-deep: #E8D49B;

  --nature-green: #6B8E72;
  --nature-green-deep: #4F6E55;

  --apple-black: #1D1D1F;
  --ink: #2A2A2D;
  --ink-soft: #5C5C63;

  /* 辅助 */
  --gold: #C9A961;
  --gold-light: #E0C58A;
  --gold-deep: #A88B47;
  --mist-cyan: #A8C5C0;
  --cloud-white: #F5F2EC;
  --paper: #FAF7F1;
  --paper-warm: #F3EDE0;
  --paper-deep: #EDE6D8;

  /* 玻璃材质 */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 32px rgba(29, 29, 31, 0.06);

  /* 阴影 */
  --shadow-sm: 0 4px 16px rgba(29, 29, 31, 0.05);
  --shadow-md: 0 12px 40px rgba(29, 29, 31, 0.08);
  --shadow-lg: 0 24px 64px rgba(29, 29, 31, 0.12);
  --shadow-peach: 0 20px 60px rgba(216, 154, 160, 0.25);

  /* 圆角 */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-pill: 999px;

  /* 间距与宽度 */
  --max-width: 1200px;
  --gutter: 24px;

  /* 字体：仅主页 Hero 标题用衬线，其他章节统一系统字体 */
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  /* 缓动 */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ 2. 重置与基础 ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

/* 整体微渐变背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(232, 180, 184, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(246, 231, 193, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(168, 197, 192, 0.15), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ 3. 加载动画 ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  transition: opacity 0.8s var(--ease-out), visibility 0.8s var(--ease-out);
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(29, 29, 31, 0.1);
  border-top-color: var(--peach-deep);
  animation: loaderSpin 0.9s linear infinite;
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

/* ============ 5. 顶部导航 ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.5s var(--ease-soft), backdrop-filter 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height 0.4s var(--ease-soft);
}
.nav.scrolled {
  background: rgba(250, 247, 241, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(29, 29, 31, 0.06);
}
.nav.scrolled .nav-inner { height: 60px; }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--apple-black);
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  border-radius: var(--radius-pill);
}

.nav-cta {
  margin-left: 8px;
  padding: 9px 18px;
  background: var(--apple-black);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: background 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}
.nav-cta:hover {
  background: var(--peach-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(216, 154, 160, 0.4);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--apple-black);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-soft), opacity 0.3s, top 0.4s var(--ease-soft);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ============ 6. 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), background 0.3s;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--peach) 0%, var(--peach-deep) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 10px 30px rgba(216, 154, 160, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 14px 40px rgba(216, 154, 160, 0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============ 7. Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  padding: 120px var(--gutter) 120px;
}
.hero-bg {
  position: absolute;
  inset: -10% -5% -5%;
  background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Minecraft%20voxel%20art%20landscape%2C%20peaceful%20mountain%20valley%20with%20cherry%20blossom%20trees%20in%20full%20bloom%2C%20soft%20morning%20mist%2C%20warm%20golden%20sunlight%2C%20cubic%20terrain%20blocks%2C%20dreamy%20cinematic%20wide%20angle%20illustration%2C%20high%20detail&image_size=landscape_16_9');
  background-size: cover;
  background-position: center;
  z-index: -3;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(29, 29, 31, 0.15), rgba(29, 29, 31, 0.55) 100%),
    linear-gradient(180deg, rgba(29, 29, 31, 0.3) 0%, rgba(29, 29, 31, 0.1) 40%, rgba(250, 247, 241, 0.0) 70%, rgba(250, 247, 241, 0.9) 100%),
    linear-gradient(135deg, rgba(216, 154, 160, 0.25), rgba(201, 169, 97, 0.15));
}
.hero-mist {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 30% at 30% 70%, rgba(245, 242, 236, 0.4), transparent 60%),
    radial-gradient(ellipse 50% 25% at 70% 80%, rgba(245, 242, 236, 0.35), transparent 60%);
  animation: mistDrift 20s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  0% { transform: translateX(-3%); }
  100% { transform: translateX(3%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.hero-text {
  flex: 1;
  min-width: 0;
  max-width: 640px;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(72px, 14vw, 180px);
  line-height: 1;
  letter-spacing: 12px;
  color: #fff;
  text-indent: 12px;
  background: linear-gradient(180deg, #ffffff 0%, var(--peach-light) 60%, var(--warm-cream) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
  margin-bottom: 28px;
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
  text-indent: 8px;
}
.hero-desc {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  align-items: stretch;
  min-width: 200px;
}

.hero-scroll {
  display: none;
}
@keyframes scrollHint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ============ 8. 通用 Section ============ */
.section {
  position: relative;
  padding: 140px 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--peach-deep);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.25;
  letter-spacing: 4px;
  color: var(--apple-black);
  margin-bottom: 20px;
}
.section-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ============ 9. 服务器信息 ============ */
.server { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%); }

.info-list {
  max-width: 760px;
  margin: 0 auto 56px;
  border-top: 1px solid rgba(29, 29, 31, 0.1);
}
.info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 4px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.1);
}
.info-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.info-value {
  font-weight: 500;
  font-size: 17px;
  color: var(--apple-black);
  letter-spacing: 0.5px;
  text-align: right;
}

.ip-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 40px;
  background: linear-gradient(135deg, rgba(29, 29, 31, 0.92), rgba(42, 42, 45, 0.92));
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.ip-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(232, 180, 184, 0.3), transparent 60%);
  pointer-events: none;
}
.ip-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(107, 142, 114, 0.25);
  border: 1px solid rgba(107, 142, 114, 0.4);
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 2px;
  color: #B7D4BD;
  margin-bottom: 28px;
}
.ip-dot {
  width: 8px;
  height: 8px;
  background: #8BC69A;
  border-radius: 50%;
  box-shadow: 0 0 12px #8BC69A;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
.ip-address {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}
.ip-label-mini {
  display: block;
  width: 100%;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
#serverIp {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff, var(--peach-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex: 1;
  min-width: 0;
}
.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--peach), var(--gold));
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}
.ip-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 180, 184, 0.4);
}
.ip-copy:active { transform: translateY(0); }
.ip-help {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.ip-help-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.ip-help-text {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

/* ============ 10. 游戏特色 ============ */
.features { background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%); }
.features-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid rgba(29, 29, 31, 0.1);
}
.feature-item {
  display: flex;
  align-items: baseline;
  gap: 48px;
  padding: 36px 4px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.1);
}
.feature-num {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--peach-deep);
  flex-shrink: 0;
  width: 32px;
}
.feature-body {
  flex: 1;
  min-width: 0;
}
.feature-title {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--apple-black);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ============ 11. 世界展示 ============ */
.world { background: var(--paper); }
.world-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
}
.world-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.world-item-reversed { direction: rtl; }
.world-item-reversed > * { direction: ltr; }

.world-item-reverse {
  grid-template-columns: 1fr 1.1fr;
}
.world-item-reverse .world-image { order: 2; }
.world-item-reverse .world-text { order: 1; }

.world-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.world-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(29, 29, 31, 0.2));
  pointer-events: none;
}
.world-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-text { padding: 0 20px; }
.world-tag {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--peach-deep);
  margin-bottom: 20px;
}
.world-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.4;
  letter-spacing: 3px;
  color: var(--apple-black);
  margin-bottom: 24px;
}
.world-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 2.1;
  color: var(--ink-soft);
}

/* ============ 12. 玩家社区 ============ */
.community { background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%); }
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.community-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
}
.community-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach-soft), var(--warm-cream));
  color: var(--peach-deep);
}
.community-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--apple-black);
  margin-bottom: 14px;
}
.community-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 18px;
}
.community-meta {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--gold-deep);
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.community-cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--peach-deep);
  letter-spacing: 2px;
}

/* ============ 14. 下载 CTA ============ */
.download {
  background: linear-gradient(135deg, var(--apple-black) 0%, #2A2A2D 100%);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.download::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(232, 180, 184, 0.18), transparent 60%);
  pointer-events: none;
}
.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}
.download-text .section-eyebrow { color: var(--peach-light); }
.download-text .section-title {
  color: #fff;
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 40px);
}
.download-text .section-desc { color: rgba(255, 255, 255, 0.7); }
.download-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.download .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.download .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ============ 15. 页脚 ============ */
.footer {
  background: #161618;
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}
.footer-meta {
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.9;
  letter-spacing: 1px;
}

/* ============ 16. Toast ============ */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-size: 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft), visibility 0.4s;
  z-index: 1000;
  letter-spacing: 1px;
}
.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============ 17. 滚动渐入动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero 内部专用渐入：从下淡入（按类名指定延迟，适配新结构） */
.reveal-hero {
  opacity: 0;
  transform: translateY(28px);
  animation: heroReveal 1.2s var(--ease-out) forwards;
}
.hero-eyebrow.reveal-hero { animation-delay: 0.4s; }
.hero-title.reveal-hero { animation-delay: 0.6s; }
.hero-subtitle.reveal-hero { animation-delay: 0.85s; }
.hero-desc.reveal-hero { animation-delay: 1.05s; }
.hero-actions.reveal-hero { animation-delay: 1.25s; }
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 18. 响应式 ============ */
@media (max-width: 1024px) {
  .section { padding: 100px 0; }
  .world-list { gap: 80px; }
  .world-item, .world-item-reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .world-item-reverse .world-image { order: 0; }
  .world-item-reverse .world-text { order: 0; }
  .world-text { padding: 0; }
}

@media (max-width: 768px) {
  :root { --gutter: 18px; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 8px;
    background: rgba(250, 247, 241, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-soft);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-link {
    padding: 16px;
    font-size: 16px;
    border-bottom: 1px solid rgba(29, 29, 31, 0.05);
    border-radius: 0;
  }
  .nav-link::after { display: none; }
  .nav-cta {
    margin: 16px 0 0;
    text-align: center;
    border-radius: var(--radius-pill);
  }
  .nav-toggle { display: block; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 50px; }

  .hero { padding: 100px var(--gutter) 60px; }
  .hero-content { flex-direction: column; align-items: stretch; gap: 32px; }
  .hero-text { max-width: 100%; }
  .hero-actions { flex-direction: row; width: 100%; }
  .hero-actions .btn { flex: 1; }
  .hero-scroll { display: none; }

  .info-row { flex-direction: column; gap: 6px; padding: 18px 4px; }
  .info-value { text-align: left; font-size: 16px; }

  .ip-block { padding: 32px 24px; }
  .ip-address { gap: 12px; }
  .ip-copy { padding: 10px 16px; font-size: 13px; }

  .feature-item { gap: 20px; padding: 28px 4px; }
  .feature-title { font-size: 19px; }

  .world-list { gap: 60px; }

  .community-grid { grid-template-columns: 1fr; gap: 18px; max-width: 420px; margin: 0 auto; }

  .download-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .download-actions { width: 100%; }
  .download-actions .btn { flex: 1; }

  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-meta { text-align: left; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: 8px; text-indent: 8px; }
  .hero-subtitle { letter-spacing: 5px; text-indent: 5px; }
  .section-title { letter-spacing: 2px; }
}

/* ============ 19. 偏好减少动画 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-hero { opacity: 1; transform: none; animation: none; }
}
