:root {
  --bg-dark: #07130f;
  --bg-dark-2: #0c1b16;
  --bg-light: #f6f8f7;
  --card: #ffffff;
  --card-muted: #eef3f0;
  --text: #0f1d18;
  --text-soft: #5e6c66;
  --border: #d8e2dd;
  --brand: #19f08f;
  --brand-deep: #0e6e4a;
  --brand-soft: #d9faec;
  --shadow: 0 18px 40px rgba(7, 19, 15, 0.12);
  --radius: 14px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 1000;
  padding: 10px 14px;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 19, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand-wordmark {
  width: 122px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--brand);
  color: #05301f;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 19, 15, 0.96), rgba(12, 27, 22, 0.95)),
    radial-gradient(circle at top, rgba(25, 240, 143, 0.2), transparent 42%);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("../pic/aapoker-hero-download.png") center/cover no-repeat;
  opacity: 0.16;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(7, 19, 15, 0), rgba(246, 248, 247, 1));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 84px 0 96px;
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 auto;
  max-width: 12ch;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 18px auto 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #05301f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.hero-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #fff;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.support-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-label {
  color: #6a7a73;
  margin-bottom: 10px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.download-card,
.step-card,
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download-card {
  padding: 24px;
}

.download-card h3,
.step-card h3 {
  margin: 0;
  font-size: 20px;
}

.download-card p,
.step-card p,
.faq-panel p,
.support-copy p,
.support-list {
  color: var(--text-soft);
}

.download-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.download-card li + li {
  margin-top: 6px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand-deep);
  font-weight: 700;
}

.support-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.support-copy {
  background: #fff;
  padding: 8px 0;
}

.support-list {
  margin: 20px 0 0;
  padding-left: 18px;
}

.support-list li + li {
  margin-top: 8px;
}

.support-media {
  padding: 18px;
  background: var(--card-muted);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.step-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.step-card {
  padding: 22px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 18px;
  height: 2px;
  background: var(--brand-deep);
  border-radius: 99px;
  transform: translateY(-50%);
}

.faq-icon::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-panel {
  padding: 0 20px 18px;
}

.site-footer {
  padding: 38px 0;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.84);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 20px;
  align-items: start;
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 12px;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 0;
}

.footer-meta p + p {
  margin-top: 10px;
}

@media (max-width: 1080px) {
  .download-grid,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(7, 19, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 6px;
  }

  .hero-inner {
    padding: 72px 0 82px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .download-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }
}
