* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fffaf0;
  --paper: #ffffff;
  --text: #22242a;
  --muted: #6f7480;
  --yellow: #ffc94d;
  --yellow-2: #fff1b8;
  --blue: #4b78ff;
  --blue-soft: #edf3ff;
  --line: #ebe6dc;
  --dark: #242936;
  --shadow: 0 18px 60px rgba(50, 52, 62, 0.12);
  --radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

.brand img,
.footer-brand img {
  width: 44px;
  height: 44px;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: .7px;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  transition: .2s;
}

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

.nav-cta {
  background: var(--text);
  color: white !important;
  padding: 11px 18px;
  border-radius: 999px;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.hero {
  min-height: 690px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(255,218,111,.45), transparent 28%),
    radial-gradient(circle at 87% 22%, rgba(111,160,255,.22), transparent 25%),
    linear-gradient(180deg, #fffaf0 0%, #fff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 1.8px;
  font-size: 12px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 10px;
  background: var(--yellow);
  border-radius: 999px;
  z-index: -1;
  opacity: .7;
}

.hero-copy > p {
  max-width: 610px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 30px rgba(75,120,255,.25);
}

.btn-secondary {
  background: white;
  border: 1px solid var(--line);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.about-pills span {
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-art {
  position: relative;
  min-height: 520px;
}

.phone-card {
  position: absolute;
  width: 300px;
  padding: 10px;
  background: white;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.phone-card img {
  border-radius: 25px;
}

.phone-front {
  right: 50px;
  top: 35px;
  transform: rotate(5deg);
  z-index: 2;
}

.phone-back {
  left: 10px;
  top: 115px;
  transform: rotate(-8deg) scale(.88);
  opacity: .9;
}

.floating-badge {
  position: absolute;
  z-index: 3;
  background: white;
  box-shadow: 0 10px 35px rgba(44,44,55,.13);
  padding: 12px 16px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 14px;
}

.badge-1 {
  right: 0;
  top: 150px;
}

.badge-2 {
  left: 25px;
  bottom: 90px;
}

.hero-deco {
  position: absolute;
  opacity: .2;
  font-size: 58px;
  font-weight: 900;
  user-select: none;
}

.hero-deco-1 { left: 5%; top: 12%; color: #ffb300; transform: rotate(-15deg); }
.hero-deco-2 { right: 4%; bottom: 10%; color: #74a6ff; }
.hero-deco-3 { left: 45%; bottom: 8%; color: #ffcb3c; }

.section {
  padding: 105px 0;
}

.section-soft {
  background: var(--bg);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 42px;
}

.section-heading.center {
  display: block;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 42px;
}

.section-heading h2,
.showcase-copy h2,
.about-grid h2,
.contact-card h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.15;
}

.section-heading > p,
.section-heading.center p {
  color: var(--muted);
  max-width: 470px;
}

.section-heading.center p {
  margin: 8px auto 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.game-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.game-cover {
  position: relative;
  padding: 12px;
}

.game-cover img {
  width: 100%;
  border-radius: 20px;
}

.game-status {
  position: absolute;
  left: 24px;
  top: 24px;
  padding: 7px 10px;
  background: var(--yellow);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.game-info {
  padding: 10px 24px 26px;
}

.game-type {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.game-info h3 {
  font-size: 23px;
  margin: 4px 0 10px;
}

.game-info p {
  min-height: 82px;
  color: var(--muted);
  font-size: 14px;
}

.game-info a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
  margin-top: 14px;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ability-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 24px;
}

.ability-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border-radius: 16px;
  font-size: 25px;
  margin-bottom: 18px;
}

.ability-card h3 {
  margin-bottom: 8px;
}

.ability-card p {
  color: var(--muted);
  font-size: 14px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 70px;
  align-items: center;
}

.showcase-image {
  padding: 15px;
  border-radius: 34px;
  background: var(--bg);
}

.showcase-image img {
  border-radius: 26px;
}

.showcase-copy p {
  color: var(--muted);
  margin: 22px 0 28px;
  font-size: 16px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-stats div {
  padding: 18px;
  background: var(--bg);
  border-radius: 18px;
}

.mini-stats strong,
.mini-stats span {
  display: block;
}

.mini-stats strong {
  font-size: 18px;
}

.mini-stats span {
  font-size: 12px;
  color: var(--muted);
}

.section-dark {
  background: var(--dark);
  color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}

.eyebrow.light {
  color: #8eacff;
}

.about-copy p {
  color: #c7cbd6;
  font-size: 17px;
  margin-bottom: 18px;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.about-pills span {
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list article {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: .2s;
}

.news-list article:hover {
  padding-left: 12px;
  background: #fffdf8;
}

.news-list time {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.news-list article div span {
  font-size: 11px;
  color: var(--blue);
  font-weight: 900;
}

.news-list h3 {
  font-size: 18px;
  margin-top: 3px;
}

.news-arrow {
  font-size: 22px;
  color: var(--blue);
}

.contact {
  padding-top: 30px;
}

.contact-card {
  background:
    radial-gradient(circle at 90% 20%, rgba(255,255,255,.45), transparent 25%),
    linear-gradient(135deg, var(--yellow), #ffdf79);
  border-radius: 34px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}

.contact-card .eyebrow {
  color: #755800;
}

.contact-card p {
  margin-top: 12px;
  color: #62562f;
}

.contact-info {
  display: grid;
  gap: 12px;
}

.contact-info a,
.contact-info div {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 20px;
  padding: 16px 18px;
}

.contact-info span,
.contact-info strong {
  display: block;
}

.contact-info span {
  font-size: 11px;
  color: #756b49;
}

.contact-info strong {
  margin-top: 2px;
}

.footer {
  margin-top: 100px;
  background: #171a22;
  color: white;
  padding: 55px 0 25px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand p {
  color: #9196a3;
  font-size: 13px;
  margin-top: 3px;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: #c7cbd3;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  margin-top: 34px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: #737988;
  font-size: 12px;
}

@media (max-width: 980px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav-cta {
    border-radius: 12px;
    text-align: center;
    margin-top: 4px;
  }

  .hero-grid,
  .showcase-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px 0 30px;
  }

  .hero-art {
    min-height: 500px;
    margin-top: 10px;
  }

  .phone-front {
    right: 12%;
  }

  .phone-back {
    left: 12%;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 30px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-art {
    min-height: 390px;
  }

  .phone-card {
    width: 225px;
  }

  .phone-front {
    right: 3%;
    top: 28px;
  }

  .phone-back {
    left: 0;
    top: 90px;
  }

  .badge-1 {
    top: 125px;
  }

  .badge-2 {
    bottom: 45px;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 10px;
  }

  .game-grid,
  .ability-grid,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .game-info p {
    min-height: auto;
  }

  .news-list article {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .news-list time {
    grid-column: 1 / -1;
  }

  .contact-card {
    padding: 32px 22px;
  }

  .footer-grid,
  .footer-bottom {
    display: block;
  }

  .footer-links {
    margin-top: 24px;
    flex-wrap: wrap;
  }

  .footer-bottom span {
    display: block;
    margin-top: 6px;
  }
}


/* 宣传图轮播 */
.promo-section {
  padding-top: 90px;
}

.promo-carousel {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #f7f8fb;
  box-shadow: var(--shadow);
}

.promo-track {
  position: relative;
  aspect-ratio: 16 / 7;
}

.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}

.promo-slide.active {
  opacity: 1;
  visibility: visible;
}

.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: .2s;
  z-index: 3;
}

.promo-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.promo-prev {
  left: 22px;
}

.promo-next {
  right: 22px;
}

.promo-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 3;
}

.promo-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  cursor: pointer;
  transition: .25s;
}

.promo-dots button.active {
  width: 30px;
  background: white;
}

@media (max-width: 680px) {
  .promo-track {
    aspect-ratio: 4 / 3;
  }

  .promo-arrow {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .promo-prev {
    left: 10px;
  }

  .promo-next {
    right: 10px;
  }
}


/* 首页右侧单张宣传图 */
.hero-promo {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-promo-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  border-radius: 28px;
  display: block;
}

/* 旧叠卡元素不再使用 */
.hero-promo .phone-card,
.hero-promo .floating-badge {
  display: none;
}

@media (max-width: 980px) {
  .hero-promo {
    min-height: 0;
    margin-top: 30px;
  }

  .hero-promo-image {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .hero-promo {
    min-height: 0;
  }

  .hero-promo-image {
    max-width: 100%;
    border-radius: 20px;
  }
}
