:root {
    --bg-1: #0a1620;
    --bg-2: #0f2818;
    --primary: #f43f5e;
    --primary-strong: #be123c;
    --accent: #4ade80;
    --accent-soft: #bbf7d0;
    --text-main: #f0fdf4;
    --text-muted: rgba(240, 253, 244, 0.78);
    --panel: rgba(10, 22, 16, 0.62);
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 60px rgba(5, 20, 12, 0.55);
  }
  
  * {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    min-height: 100%;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--text-main);
    background:
      radial-gradient(circle at 12% 12%, rgba(74, 222, 128, 0.2), transparent 32%),
      radial-gradient(circle at 88% 20%, rgba(244, 63, 94, 0.18), transparent 28%),
      linear-gradient(145deg, var(--bg-1), var(--bg-2) 52%, #04120c);
    overflow-x: hidden;
  }
  
  body::before,
  body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
  }
  
  body::before {
    top: -140px;
    right: -100px;
    background: rgba(244, 63, 94, 0.35);
  }
  
  body::after {
    bottom: -180px;
    left: -60px;
    background: rgba(74, 222, 128, 0.28);
  }
  
  .page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .lang-switch {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(10px);
    font-size: 13px;
  }
  
  .lang-switch-sep {
    color: var(--border);
    user-select: none;
  }
  
  .lang-switch-btn {
    margin: 0;
    padding: 4px 8px;
    border: none;
    border-radius: 999px;
    font: inherit;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
  }
  
  .lang-switch-btn:hover {
    color: var(--text-main);
  }
  
  .lang-switch-btn.is-active {
    color: var(--accent);
    background: rgba(74, 222, 128, 0.14);
    font-weight: 600;
  }
  
  .site-header {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-main);
    text-decoration: none;
  }
  
  .nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .nav a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  
  .nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
  }
  
  .nav a.active {
    color: var(--accent-soft);
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.12);
  }
  
  main {
    flex: 1;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 12px 0 32px;
  }
  
  .eyebrow {
    margin: 0 0 12px;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fde68a;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    padding: 28px 0 8px;
  }
  
  .hero-copy h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
  }
  
  .lead {
    margin: 18px 0 0;
    max-width: 560px;
    font-size: clamp(15px, 1.9vw, 18px);
    line-height: 1.85;
    color: var(--text-muted);
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
  }
  
  .primary-btn,
  .ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    padding: 16px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  
  .primary-btn {
    color: #fff;
    border: none;
    background: linear-gradient(90deg, var(--primary), var(--primary-strong));
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.32);
  }
  
  .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(249, 115, 22, 0.4);
  }
  
  .ghost-btn {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  .ghost-btn:hover {
    transform: translateY(-2px);
  }
  
  .battle-card {
    position: relative;
    min-height: 380px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
      linear-gradient(160deg, rgba(56, 189, 248, 0.18), rgba(249, 115, 22, 0.16));
  }
  
  .battle-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
  }
  
  .unit,
  .enemy {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    animation: float 5s ease-in-out infinite;
  }
  
  .unit {
    background: rgba(56, 189, 248, 0.2);
    color: var(--accent-soft);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  }
  
  .enemy {
    background: rgba(239, 68, 68, 0.22);
    color: #fecaca;
    animation-delay: 0.5s;
  }
  
  .unit-a {
    top: 56px;
    left: 36px;
    width: 88px;
    height: 44px;
  }
  
  .unit-b {
    top: 120px;
    right: 48px;
    width: 88px;
    height: 44px;
    animation-delay: 0.3s;
  }
  
  .unit-c {
    bottom: 120px;
    left: 52px;
    width: 88px;
    height: 44px;
    animation-delay: 0.6s;
  }
  
  .enemy-a {
    top: 96px;
    left: 42%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
  }
  
  .enemy-b {
    bottom: 64px;
    right: 20%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    animation-delay: 0.9s;
  }
  
  .loot-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    max-width: 240px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
  }
  
  .loot-card span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
  }
  
  .loot-card strong {
    font-size: 14px;
    line-height: 1.5;
    color: #fde68a;
  }
  
  .section {
    margin-top: 22px;
    padding: 28px 30px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
  }
  
  .stats-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  
  .stats-panel article {
    padding: 20px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .stats-panel strong {
    display: block;
    font-size: 18px;
    color: #fde68a;
    margin-bottom: 8px;
  }
  
  .stats-panel span {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
  }
  
  .section-header h2 {
    margin: 10px 0 0;
    font-size: clamp(24px, 3.2vw, 36px);
  }
  
  .section-header > p:last-child {
    margin: 14px 0 0;
    max-width: 720px;
    color: var(--text-muted);
    line-height: 1.85;
  }
  
  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
  }
  
  .info-card {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
  
  .info-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 800;
    color: #fde68a;
    margin-bottom: 14px;
  }
  
  .info-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
  }
  
  .info-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-muted);
  }
  
  .cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background:
      radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 34%),
      linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(249, 115, 22, 0.08), rgba(56, 189, 248, 0.08));
  }
  
  .cta-panel p {
    margin: 12px 0 0;
    max-width: 560px;
    color: var(--text-muted);
    line-height: 1.85;
  }
  
  .footer {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
  }
  
  .footer a {
    color: var(--accent-soft);
    text-decoration: none;
  }
  
  .footer a:hover {
    text-decoration: underline;
  }
  
  .document .doc-hero h1 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 40px);
  }
  
  .document .doc-hero > p {
    margin: 16px 0 0;
    max-width: 720px;
    color: var(--text-muted);
    line-height: 1.85;
  }
  
  .doc-card {
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }
  
  .doc-card h2 {
    margin: 0 0 12px;
    font-size: 18px;
  }
  
  .doc-card p,
  .doc-card li {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 14px;
  }
  
  .doc-card ul {
    margin: 0;
    padding-left: 20px;
  }
  
  .doc-card li + li {
    margin-top: 8px;
  }
  
  .doc-card a {
    color: var(--accent-soft);
  }
  
  .legal-updated {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
  }
  
  @keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }
  
    50% {
      transform: translateY(-8px);
    }
  }
  
  @media (max-width: 960px) {
    .hero {
      grid-template-columns: 1fr;
    }
  
    .battle-card {
      min-height: 320px;
    }
  
    .stats-panel,
    .card-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 640px) {
    .site-header,
    main,
    .footer {
      width: calc(100% - 32px);
    }
  
    .section {
      padding: 22px 18px;
    }
  }
  