:root {
  --bg: #0c0d12;
  --surface: #16141a;
  --surface-elevated: #1e1b24;
  --text-main: #f7f4f1;
  --text-secondary: #a39aa8;
  --accent: #e07a5f;
  --accent-gradient: linear-gradient(135deg, #e8916a 0%, #c45c42 100%);
  --accent-glow: rgba(224, 122, 95, 0.28);
  --border-color: #2a2632;
  --border-accent: rgba(224, 122, 95, 0.42);
  --font-stack: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-narrow: 880px;
  --container-wide: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.65;
  background-image: radial-gradient(circle at 50% 0%, rgba(224, 122, 95, 0.1) 0%, transparent 58%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(12, 13, 18, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  color: #140c0a;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 6px;
  background: var(--accent-gradient);
  color: #140c0a;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.header-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Hero */
.hero-section {
  padding-top: 150px;
  padding-bottom: 70px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(224, 122, 95, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 38%, #d4c8c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  background: var(--accent-gradient);
  color: #140c0a;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-accent:hover {
  box-shadow: 0 8px 24px rgba(224, 122, 95, 0.42);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(224, 122, 95, 0.06);
}

.hero-media {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.hero-media img {
  border-radius: 8px;
  width: 100%;
}

/* Stats */
.stats-section {
  padding: 40px 0 70px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.3s;
}

.stat-card:hover {
  border-color: var(--border-accent);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Features 2×2 */
.features-section {
  padding: 70px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #121018 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Platforms */
.platforms-section {
  padding: 70px 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.3s, border-color 0.3s;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.plat-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.plat-ver {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(224, 122, 95, 0.1);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(224, 122, 95, 0.22);
}

.plat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.plat-download {
  display: block;
  width: 100%;
  padding: 9px 0;
  background: var(--surface-elevated);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.plat-download:hover {
  background: var(--accent-gradient);
  color: #140c0a;
  border-color: transparent;
}

/* FAQ */
.faq-section {
  padding: 70px 0;
  background: var(--surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: var(--border-accent);
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 4px;
  padding-top: 14px;
}

/* News */
.news-section {
  padding: 80px 0;
}

.news-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.news-header-wrap .section-title {
  margin-bottom: 0;
  text-align: left;
}

.news-more-link {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.news-more-link:hover {
  text-decoration: underline;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s;
}

.news-card:hover {
  border-color: var(--border-accent);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.news-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(224, 122, 95, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #ffffff;
}

.news-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.news-tag {
  font-size: 0.75rem;
  color: #72687a;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  display: block;
}

/* CTA */
.cta-section {
  padding: 80px 0;
  background: radial-gradient(circle at 50% 50%, rgba(224, 122, 95, 0.14) 0%, transparent 70%);
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 32px;
}

/* Footer */
.footer {
  background: var(--bg);
  padding: 60px 0 30px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  color: #5c5566;
  font-size: 0.82rem;
}

/* Download page extras */
.dl-hero {
  padding: 140px 0 40px;
  text-align: center;
}

.dl-hero .hero-tag {
  margin-bottom: 18px;
}

.dl-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 40%, #d4c8c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dl-hero p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.page-platforms {
  padding-bottom: 80px;
}

@media (max-width: 992px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-section {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-media {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 30px;
  }

  .cta-title {
    font-size: 1.7rem;
  }

  .dl-hero {
    padding-top: 110px;
  }

  .dl-hero h1 {
    font-size: 1.9rem;
  }
}
