/* ========== 设计令牌 ========== */
:root {
  /* 游戏真实色彩体系 */
  --red: #e74c3c; --red-dark: #c0392b; --red-light: rgba(231,76,60,.12);
  --blue: #3498db; --blue-dark: #2980b9; --blue-light: rgba(52,152,219,.12);
  --green: #2ecc71; --green-dark: #27ae60; --green-light: rgba(46,204,113,.12);
  --yellow: #f39c12; --yellow-dark: #e67e22; --yellow-light: rgba(243,156,18,.12);
  --purple: #9b59b6; --purple-dark: #8e44ad; --purple-light: rgba(155,89,182,.12);
  --cyan: #1abc9c; --cyan-dark: #16a085; --cyan-light: rgba(26,188,156,.12);
  --orange: #e67e22; --orange-dark: #d35400; --orange-light: rgba(230,126,34,.12);
  --gray: #34495e; --gray-dark: #2c3e50; --gray-light: rgba(52,73,94,.12);

  /* Apple 风格中性色 */
  --bg: #fafafa; --bg2: #f5f5f7; --bg3: #e8e8ed;
  --fg: #1d1d1f; --fg2: #6e6e73; --fg3: #86868b;
  --card: #ffffff; --card-hover: #fbfbfd;
  --border: #d2d2d7; --border-light: rgba(0,0,0,.06);
  --accent: #e74c3c;
  --radius: 20px; --radius-sm: 14px; --radius-xs: 10px;

  /* 暗色模式变量（部分区域） */
  --dark-bg: #1d1d1f; --dark-bg2: #2c2c2e; --dark-fg: #f5f5f7;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }
html { scroll-behavior: smooth; font-size: 16px }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  background: var(--bg); color: var(--fg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }

/* ========== 通用组件 ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fg); color: #fff;
  padding: 17px 44px; border-radius: 980px; border: none;
  font-size: 17px; font-weight: 500; cursor: pointer;
  transition: all .4s cubic-bezier(.25,.46,.45,.94);
  font-family: inherit; letter-spacing: -.2px;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 40px rgba(0,0,0,.15) }
.btn-primary:active { transform: translateY(0) scale(.98) }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--fg);
  padding: 17px 44px; border-radius: 980px;
  border: 1.5px solid var(--border);
  font-size: 17px; font-weight: 500; cursor: pointer;
  transition: all .4s cubic-bezier(.25,.46,.45,.94);
  font-family: inherit;
}
.btn-secondary:hover { border-color: var(--fg); background: rgba(0,0,0,.03) }

.section-label {
  font-size: 14px; font-weight: 600; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 14px;
  display: inline-block;
}
.section-title {
  font-size: clamp(36px,5vw,56px); font-weight: 900;
  line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px;
}
.section-desc {
  font-size: 19px; font-weight: 300; color: var(--fg2);
  line-height: 1.7; max-width: 600px;
}

/* ========== 滚动动画 ========== */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity 1s cubic-bezier(.25,.46,.45,.94), transform 1s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: translateY(0) }
.reveal-delay-1 { transition-delay: .12s }
.reveal-delay-2 { transition-delay: .24s }
.reveal-delay-3 { transition-delay: .36s }
.reveal-delay-4 { transition-delay: .48s }
.reveal-delay-5 { transition-delay: .6s }

/* ========== 导航 ========== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .5s cubic-bezier(.25,.46,.45,.94);
  background: rgba(250,250,250,.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
nav.scrolled {
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(250,250,250,.85);
}
.nav-logo { font-weight: 700; font-size: 19px; letter-spacing: -.4px; display: flex; align-items: center; gap: 10px }
.nav-logo .dice-icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--fg);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 800;
}
.nav-links { display: flex; gap: 36px; font-size: 14px; font-weight: 400; color: var(--fg2) }
.nav-links a { transition: color .3s }
.nav-links a:hover { color: var(--fg) }
.nav-cta {
  font-size: 14px; font-weight: 500; padding: 8px 22px; border-radius: 980px;
  background: var(--fg); color: #fff; cursor: pointer; border: none;
  font-family: inherit; transition: all .3s;
}
.nav-cta:hover { transform: scale(1.04); opacity: .9 }

/* ========== 移动端导航菜单 ========== */
.nav-mobile-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-mobile-btn span {
  display: block; width: 20px; height: 2px; background: var(--fg);
  transition: all .3s; border-radius: 1px;
}

/* ========== 页脚 ========== */
footer { padding: 56px 0; border-top: 1px solid var(--border-light) }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-links { display: flex; gap: 28px; font-size: 13px; color: var(--fg3) }
.footer-links a:hover { color: var(--fg) }
.footer-social { display: flex; gap: 16px }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg3); font-size: 16px; transition: all .3s;
}
.footer-social a:hover { color: var(--fg); background: var(--bg3); transform: translateY(-2px) }

/* ========== 动画装饰 ========== */
@keyframes floatDice {
  0%,100% { transform: translateY(0) rotate(0deg) }
  25% { transform: translateY(-12px) rotate(4deg) }
  75% { transform: translateY(6px) rotate(-3deg) }
}
@keyframes floatSlow { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
@keyframes pulse { 0%,100%{opacity:.12} 50%{opacity:.25} }
@keyframes gradientShift {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}
@keyframes changelogFadeIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes loadingSpin {
  to { transform: rotate(360deg) }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) }
  to { opacity: 1; transform: translateX(0) }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px) }
}

/* ========== 语言切换按钮 ========== */
.nav-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .3s;
}
.nav-lang-switch:hover {
  border-color: var(--blue);
}
.nav-lang-item {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: var(--fg2);
  font-size: 12px;
  font-weight: 400;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
  cursor: default;
}
.nav-lang-item.active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.nav-lang-item:not(.active) {
  color: var(--fg2);
  cursor: pointer;
  text-decoration: none;
}
.nav-lang-item:not(.active):hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* ========== 共享响应式 ========== */
@media(max-width:900px) {
  .container { padding: 0 24px }
  nav { padding: 0 24px }
}
@media(max-width:600px) {
  .container { padding: 0 20px }
  .nav-links { display: none }
  .nav-mobile-btn { display: flex }
}
