/* ===== 基础与变量 ===== */
:root {
  --bg-dark: #0f1419;
  --bg-card: #1a2332;
  --bg-card-hover: #223040;
  --text: #e8eaed;
  --text-muted: #9ca3af;
  --accent: #c9a227;
  --accent-soft: #d4af37;
  --border: #2d3a4d;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== 布局容器 ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 页头 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent-soft);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

/* ===== 语言选择 ===== */
.lang-wrap {
  position: relative;
}

.lang-btn {
  padding: 6px 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text);
  border-color: var(--accent-soft);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 0;
  z-index: 200;
}

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.lang-dropdown button:hover {
  background: var(--bg-card-hover);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 35, 50, 0.97) 0%, rgba(15, 20, 25, 0.98) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(201, 162, 39, 0.04) 40px,
      rgba(201, 162, 39, 0.04) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(201, 162, 39, 0.04) 40px,
      rgba(201, 162, 39, 0.04) 41px
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero-desc {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  margin-top: 8px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.08);
}

/* ===== 通用区块 ===== */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 28px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ===== 介绍 ===== */
.intro-text {
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.intro-text strong {
  color: var(--accent-soft);
}

/* ===== 玩法卡片 ===== */
.mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.mode-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: var(--shadow);
}

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--accent-soft);
  line-height: 1;
}

.mode-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.mode-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== 特色列表 ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.feature-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-soft);
  border-radius: 50%;
}

/* ===== 下载区 ===== */
.download-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.download-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.download-badge:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 162, 39, 0.25);
  color: var(--text);
}

.download-badge.download-coming {
  cursor: default;
  opacity: 0.9;
}

.download-badge.download-coming:hover {
  border-color: var(--border);
}

.download-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.download-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== 页脚 ===== */
.footer {
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-soft);
}

.footer-sep {
  margin: 0 8px;
  color: var(--border);
}

/* ===== 子页面（Support / Privacy） ===== */
.page-main {
  padding: 40px 0 56px;
}

.page-title {
  margin: 0 0 24px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.content-section {
  margin-bottom: 36px;
}

.content-section h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.content-section p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.support-lead,
.privacy-lead {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.support-muted {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.steps-list {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.steps-list li {
  margin-bottom: 10px;
}

.faq-list {
  margin: 0;
}

.faq-list dt {
  margin-top: 18px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.98rem;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  padding-bottom: 4px;
}

.content-list {
  list-style: disc;
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.content-list li {
  margin-bottom: 8px;
}

.content-list strong {
  color: var(--text);
}

.support-back {
  margin-top: 32px;
  text-align: center;
}

.support-back a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.support-back a:hover {
  color: var(--accent-soft);
}

/* ===== 技术支持（首页旧区块，保留以兼容） ===== */
.support-intro,
.support-contact {
  margin: 0 0 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.support-contact {
  margin-bottom: 28px;
}

.support-label {
  margin-right: 6px;
  color: var(--text);
}

.support-email {
  color: var(--accent-soft);
}

.support-faq {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.support-faq h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.support-faq dl {
  margin: 0;
}

.support-faq dt {
  margin-top: 14px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.support-faq dt:first-of-type {
  margin-top: 0;
}

.support-faq dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== 隐私政策 ===== */
.privacy-intro {
  margin: 0 0 24px;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.privacy-block {
  max-width: 640px;
  margin: 0 auto 20px;
  text-align: left;
}

.privacy-block:last-of-type {
  margin-bottom: 0;
}

.privacy-block h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.privacy-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.privacy-contact {
  margin: 24px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.privacy-contact a {
  margin-left: 4px;
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 16px;
  }

  .lang-wrap {
    margin-left: auto;
  }

  .section {
    padding: 40px 0;
  }

  .mode-cards {
    grid-template-columns: 1fr;
  }

  .download-badges {
    flex-direction: column;
    align-items: center;
  }

  .download-badge {
    width: 100%;
    max-width: 200px;
  }
}
