/* ─── 开场动画专用样式 ──────────────────────────────────────────── */

#screen-intro {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  background: #080816;
  color: #fff;
}

/* intro 存在时，锁住底层 body，避免出现两条滚动条 */
body:has(#screen-intro) {
  overflow: hidden;
}

.section {
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.box-wrap {
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 24px;
}

.box {
  height: 180px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff6ec4, #7873f5);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 20px 60px rgba(120, 115, 245, 0.35);
}

.box.blue   { background: linear-gradient(135deg, #00d2ff, #3a7bd5); }
.box.green  { background: linear-gradient(135deg, #00f260, #0575e6); }
.box.orange { background: linear-gradient(135deg, #f7971e, #ffd200); color: #222; }
.box.purple { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.box.red    { background: linear-gradient(135deg, #ff416c, #ff4b2b); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 360px;
}

.small-box {
  height: 150px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #8ec5fc);
  color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.hero {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(120, 115, 245, 0.5), transparent 40%),
    #080816;
  text-align: center;
  padding: 120px 24px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  opacity: 0.75;
}

/* 最后一屏：进入按钮 */
.intro-enter-btn {
  margin-top: 40px;
  padding: 16px 48px;
  background: linear-gradient(135deg, #FF6B35, #e85a22);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255,107,53,0.5);
  letter-spacing: 1px;
}
.intro-enter-btn:active { opacity: 0.85; }
