/* ===== 现代设计系统 ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --success: #10b981;
  --danger: #ef4444;

  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #181822;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text: #f1f5f9;
  --text-2: #c7cbd1;
  --text-muted: #6b7280;

  --glass: rgba(17, 17, 24, 0.75);
  --glass-strong: rgba(17, 17, 24, 0.9);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

  --max-w: 1240px;
}

/* ===== 基础 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
               'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== 动态背景 ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== 容器 ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.nav-logo .logo-text { background: linear-gradient(90deg, #fff, var(--text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.2s;
}
.nav-menu a:hover { color: var(--text); background: var(--surface); }
.nav-menu a.active { color: var(--text); background: var(--surface); }
.nav-menu a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--accent); border-radius: 1px;
}
.nav-cta {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); }
.nav-toggle { display: none; font-size: 1.4rem; color: var(--text); padding: 8px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.85) 100%),
    url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=epic%20Minecraft%20fantasy%20medieval%20city%20panorama%2C%20cinematic%20sunset%2C%20golden%20hour%2C%20volumetric%20lighting%2C%20vibrant%20colors%2C%20ultra%20detailed%2C%20wide%20angle&image_size=landscape_16_9") center/cover no-repeat;
  filter: saturate(1.1);
}
.hero-content {
  position: relative;
  max-width: 900px;
  padding: 60px 24px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .accent { background: linear-gradient(135deg, var(--accent), #fff7ed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #1a1a2e;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(245, 158, 11, 0.5); color: #1a1a2e; }
.btn-secondary {
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--border-hover); color: var(--text); }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ===== Section 通用 ===== */
section { padding: 100px 0; position: relative; }
.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* ===== 特色卡片 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 50%, rgba(99, 102, 241, 0.3) 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(245, 158, 11, 0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.feature-card p { color: var(--text-2); font-size: 0.93rem; line-height: 1.6; }

/* ===== 国家简介 ===== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 15, 0.6) 100%);
}
.about-content .section-title { text-align: left; }
.about-content .section-tag { margin-bottom: 16px; }
.about-content p { color: var(--text-2); margin-bottom: 16px; font-size: 1rem; }

/* ===== 统计 ===== */
.stats-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-item { padding: 20px; }
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); margin-top: 4px; font-size: 0.95rem; }

/* ===== 页面 Hero (子页) ===== */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p { color: var(--text-2); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ===== 内容区 ===== */
.content-section { padding: 80px 0; }
.content-section h2 {
  font-size: 1.75rem;
  margin: 40px 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-section h2 .icon { font-size: 1.5rem; }
.content-section h2:first-child { margin-top: 0; }
.content-section p { color: var(--text-2); margin-bottom: 12px; font-size: 1rem; }
.content-section ul { margin: 12px 0; padding-left: 20px; }
.content-section ul li { list-style: disc; color: var(--text-2); margin-bottom: 8px; padding-left: 4px; }

.callout {
  padding: 20px 24px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin: 24px 0;
}
.callout strong { color: var(--text); }

/* ===== 信息表 ===== */
.info-table {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 28px 0;
}
.info-table .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}
.info-table .row:last-child { border-bottom: none; }
.info-table .label {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  font-size: 0.95rem;
}
.info-table .value { padding: 18px 24px; color: var(--text-2); }
.info-table .value code {
  background: var(--bg-3);
  padding: 2px 10px;
  border-radius: 6px;
  color: var(--accent-light);
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  font-size: 0.9rem;
}
.copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.2s;
  font-weight: 600;
}
.copy-btn:hover { background: var(--primary-dark); }

/* ===== mod 卡片 ===== */
.mod-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.mod-item {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: all 0.25s;
}
.mod-item:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.mod-name { font-weight: 700; margin-bottom: 4px; color: var(--text); }
.mod-desc { font-size: 0.88rem; color: var(--text-muted); }

/* ===== 地图卡片 ===== */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.map-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-lg); }
.map-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  position: relative;
}
.map-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}
.map-info { padding: 18px 22px; }
.map-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.map-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.map-desc { font-size: 0.9rem; color: var(--text-2); }

/* ===== 步骤 ===== */
.steps { counter-reset: step; margin: 32px 0; }
.step {
  position: relative;
  padding: 28px 28px 28px 92px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  transition: all 0.25s;
}
.step:hover { border-color: var(--border-hover); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--text-2); font-size: 0.95rem; }
.step code {
  background: var(--bg-3);
  padding: 2px 10px;
  border-radius: 6px;
  color: var(--accent-light);
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.88rem;
}

/* ===== 联系卡片 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.contact-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s;
}
.contact-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(245, 158, 11, 0.15));
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}
.contact-card h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CTA 区 ===== */
.cta-section {
  text-align: center;
  padding: 80px 0;
}
.cta-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(245, 158, 11, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.cta-card > * { position: relative; }

/* ===== 页脚 ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 { font-size: 0.95rem; margin-bottom: 14px; color: var(--text); font-weight: 700; }
.footer p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; }
.footer a { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; display: block; transition: color 0.2s; }
.footer a:hover { color: var(--accent-light); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== 动画 ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .about-preview { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-table .row { grid-template-columns: 1fr; }
  .info-table .label { padding: 12px 24px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--glass-strong); backdrop-filter: blur(20px); flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--border); }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  section { padding: 64px 0; }
  .hero { min-height: 90vh; }
  .cta-card { padding: 40px 24px; }
  .stat-number { font-size: 2.25rem; }
}
