/* ==========================
   点点消大冒险 官网样式
   ========================== */
:root {
  --pink: #ff5e7d;
  --orange: #ffb340;
  --yellow: #ffd93d;
  --green: #3ddc97;
  --blue: #45aaf2;
  --purple: #8e6cf0;
  --dark: #3a3550;
  --gray: #7d7a8c;
  --bg: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(58, 53, 80, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all .3s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, .08);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 22px;
  font-weight: 700;
}
.logo-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}
.dot-1 { background: var(--pink); }
.dot-2 { background: var(--yellow); animation-delay: .15s; }
.dot-3 { background: var(--blue); animation-delay: .3s; }
.logo-text { margin-left: 6px; color: var(--dark); }
.navbar:not(.scrolled) .logo-text { color: #fff; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.nav-menu { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 16px;
  color: #fff;
  transition: all .25s;
}
.navbar.scrolled .nav-link { color: var(--dark); }
.nav-link:hover,
.nav-link.active {
  background: var(--pink);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  border-radius: 3px;
  background: #fff;
  transition: all .3s;
}
.navbar.scrolled .nav-toggle span { background: var(--dark); }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ff5e7d 0%, #ff9a44 35%, #8e6cf0 100%);
  overflow: hidden;
  padding: 120px 0 140px;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.hero-text { flex: 1; color: #fff; }
.hero-title {
  font-size: 62px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.hero-title .highlight { color: var(--yellow); }
.hero-slogan {
  font-size: 26px;
  margin: 14px 0 10px;
  font-weight: 600;
}
.hero-desc {
  font-size: 17px;
  opacity: .92;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-btns { display: flex; gap: 16px; }

.btn {
  display: inline-block;
  padding: 13px 38px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.btn-primary {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 6px 20px rgba(255, 217, 61, .45);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(255, 217, 61, .6);
}
.btn-outline {
  border: 2px solid rgba(255, 255, 255, .8);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-3px);
}

/* 手机模型 + 点点棋盘 */
.hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.phone-mock {
  width: 290px; height: 560px;
  background: #fff;
  border-radius: 42px;
  padding: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
.phone-screen {
  width: 100%; height: 100%;
  background: #fdf6ff;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dot-grid {
  display: grid;
  grid-template-columns: repeat(5, 40px);
  grid-gap: 12px;
}
.game-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .2s;
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .12);
}
.game-dot:hover { transform: scale(1.15); }
.game-dot.pop { animation: pop .4s forwards; }
@keyframes pop {
  50% { transform: scale(1.35); opacity: .7; }
  100% { transform: scale(0); opacity: 0; }
}

/* 漂浮泡泡 */
.hero-bubbles { position: absolute; inset: 0; z-index: 1; }
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: .35;
  animation: drift 8s ease-in-out infinite;
}
.b1 { width: 90px; height: 90px; background: #ffd93d; top: 15%; left: 6%; }
.b2 { width: 46px; height: 46px; background: #3ddc97; top: 62%; left: 12%; animation-delay: 1s; }
.b3 { width: 70px; height: 70px; background: #45aaf2; top: 22%; right: 10%; animation-delay: 2s; }
.b4 { width: 34px; height: 34px; background: #fff; top: 74%; right: 18%; animation-delay: 3s; }
.b5 { width: 56px; height: 56px; background: #ff5e7d; top: 45%; left: 42%; animation-delay: 1.5s; }
.b6 { width: 26px; height: 26px; background: #ffd93d; top: 10%; left: 52%; animation-delay: 2.5s; }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 90px; display: block; }

/* ---------- 通用 Section ---------- */
.section { padding: 90px 0; }
.section-title {
  text-align: center;
  font-size: 38px;
  font-weight: 800;
  position: relative;
  display: table;
  margin: 0 auto;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 6px;
  border-radius: 6px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}
.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 17px;
  margin: 16px 0 50px;
}

/* 滚动淡入 */
.fade-item {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 游戏特色 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, opacity .7s ease;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(58, 53, 80, .16);
}
.feature-icon {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.icon-pink { background: rgba(255, 94, 125, .15); }
.icon-orange { background: rgba(255, 179, 64, .18); }
.icon-green { background: rgba(61, 220, 151, .16); }
.icon-blue { background: rgba(69, 170, 242, .15); }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--gray); font-size: 15px; }

/* ---------- 玩法介绍 ---------- */
.gameplay { background: #fff8f0; }
.step-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
}
.step-item {
  flex: 1;
  max-width: 300px;
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}
.num-1 { background: var(--pink); }
.num-2 { background: var(--orange); }
.num-3 { background: var(--green); }
.step-body h3 { font-size: 19px; margin-bottom: 8px; }
.step-body p { color: var(--gray); font-size: 15px; }
.step-arrow {
  align-self: center;
  font-size: 26px;
  color: var(--orange);
}

/* ---------- 游戏界面展示轮播 ---------- */
.screenshot-carousel {
  margin-top: 60px;
}
.carousel-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}
.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}
.carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.carousel-item {
  flex: 0 0 33.3333%;
  padding: 0 10px;
  box-sizing: border-box;
}
.carousel-item img {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.carousel-item img:hover { transform: translateY(-6px); }
.carousel-arrow {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all .25s;
  user-select: none;
}
.carousel-arrow:hover {
  background: var(--pink);
  color: #fff;
  transform: scale(1.08);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.carousel-dots .c-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 94, 125, .25);
  cursor: pointer;
  transition: all .25s;
}
.carousel-dots .c-dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--pink);
}

.gameplay-banner {
  margin-top: 56px;
  background: linear-gradient(120deg, var(--purple), var(--blue));
  border-radius: var(--radius);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
}
.gameplay-banner p { font-size: 19px; font-weight: 600; }

/* ---------- 关于我们 ---------- */
.about-card {
  background: linear-gradient(180deg, #fff 0%, #fef4f7 100%);
  border: 1px solid rgba(255, 94, 125, .18);
  border-radius: var(--radius);
  padding: 46px 50px;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.about-card h3 {
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--pink);
}
.about-card > p { color: var(--gray); font-size: 16px; }
.contact-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-label { color: var(--gray); font-size: 14px; }
.contact-value { font-size: 17px; font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .75);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
}
.footer-game {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-tip {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(255, 94, 125, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s;
  z-index: 99;
}
.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover { background: #ff4069; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 50, .55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 42px 48px;
  max-width: 380px;
  width: 88%;
  text-align: center;
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-icon { font-size: 48px; margin-bottom: 10px; }
.modal-box h3 { font-size: 22px; margin-bottom: 10px; }
.modal-box p { color: var(--gray); font-size: 15px; margin-bottom: 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero { padding: 130px 0 150px; }
  .hero-title { font-size: 46px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .phone-mock { width: 250px; height: 490px; }
  .dot-grid { grid-template-columns: repeat(5, 34px); grid-gap: 10px; }
  .game-dot { width: 34px; height: 34px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list { flex-direction: column; align-items: center; }
  .step-item { max-width: 420px; width: 100%; }
  .step-arrow { transform: rotate(90deg); }
  .gameplay-banner { flex-direction: column; text-align: center; }
  .carousel-item { flex: 0 0 50%; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 20px 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    display: none;
  }
  .nav-menu .nav-link { color: var(--dark); text-align: center; }
  .hero-title { font-size: 38px; }
  .hero-slogan { font-size: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .about-card { padding: 34px 24px; }
  .contact-row { gap: 24px; }
  .section-title { font-size: 30px; }
  .carousel-item { flex: 0 0 100%; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 15px; }
}
