/* ============ 快乐柠檬 Happy Lemon 仿制版 ============ */
:root {
  --yellow: #ffbc00;
  --yellow-soft: #ffe500;
  --yellow-bg: #ffeb3c;
  --navy: #32377e;
  --ink: #212121;
  --gray: #333333;
  --gray-light: #999999;
  --bg-hover: #f7f7f7;
  --maxw: 1680px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.08); }

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { flex-shrink: 0; }
.logo img { width: 88px; height: 88px; object-fit: contain; }

.nav ul { display: flex; align-items: stretch; }

.nav a {
  display: block;
  padding: 0 22px;
  line-height: 100px;
  font-size: 14px;
  color: var(--gray);
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover,
.nav a.active { background: var(--bg-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--gray);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 吉祥物横幅 ---------- */
.mascot-strip {
  width: 100%;
  aspect-ratio: 2000 / 847;
  background: var(--yellow-bg) url("../assets/mascot.gif") center / cover no-repeat;
}

/* ---------- 数字统计 ---------- */
.stats { background: #fff; padding: 64px 20px 56px; }

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  text-align: center;
}

.stat-num {
  font-size: clamp(52px, 6.4vw, 80px);
  color: var(--ink);
  line-height: 1.05;
}

.stat-unit {
  margin-top: 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ink);
  line-height: 1.2;
}

/* ---------- 全屏幻灯片 ---------- */
.slide {
  height: 100vh;
  min-height: 520px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.slide-1 { background-image: url("../assets/slide1.png"); background-color: var(--yellow-bg); }
.slide-2 { background-image: url("../assets/slide2.png"); background-color: var(--yellow-bg); }

/* ---------- 品牌口号 ---------- */
.slogan {
  text-align: center;
  padding: 116px 20px 40px;
  background: #fff;
}

.slogan h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 3px;
}

.slogan p {
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 24px);
  color: var(--navy);
}
.slogan .hl { color: #ffd100; }

/* ---------- 视频卡片 ---------- */
.videos {
  max-width: 1400px;
  margin: 0 auto;
  padding: 52px 20px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2%;
  background: #fff;
}

.video-card .poster {
  position: relative;
  aspect-ratio: 100 / 65.67;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.10);
  transition: transform .3s ease, box-shadow .3s ease;
}
.video-card .poster:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.16); }

.video-card .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.06);
  transition: background-color .3s ease;
}
.video-card .poster:hover .play { background: rgba(0,0,0,.12); }

.video-card .play .btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  transition: transform .25s ease;
}
.video-card .poster:hover .play .btn { transform: scale(1.08); }

.video-card .play .btn::after {
  content: "";
  margin-left: 5px;
  border-left: 22px solid var(--yellow);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.video-card h3 {
  margin-top: 16px;
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 1px;
}

.video-card video { width: 100%; display: block; border-radius: 6px; }

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 26px 16px 34px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-light);
  background: #fff;
}
.site-footer p + p { margin-top: 8px; }
.site-footer a { color: var(--gray-light); }
.site-footer a:hover { color: var(--gray); }

.site-footer .police { display: flex; align-items: center; justify-content: center; gap: 6px; }
.site-footer .police-badge { flex-shrink: 0; }

/* ---------- 滚动出现动画 ---------- */
.section-reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.section-reveal.revealed { opacity: 1; transform: none; }

/* ---------- 子页面 ---------- */
.page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--yellow-bg);
  background-size: cover;
  background-position: center;
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 6px;
  text-shadow: 0 2px 12px rgba(255,255,255,.6);
}
.page-body { max-width: 1100px; margin: 0 auto; padding: 70px 20px 110px; }
.page-body p { font-size: 17px; line-height: 1.9; color: #555; margin-top: 14px; }
.page-body h2 { font-size: 26px; color: var(--navy); margin-top: 44px; font-weight: 700; }
.page-body .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-top: 30px; }
.page-body .card { border: 1px solid #eee; border-radius: 10px; padding: 28px 26px; background: #fdfcf7; }
.page-body .card h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.page-body .card p { font-size: 14px; color: #777; margin-top: 0; line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .header-inner { height: 68px; padding: 0 18px; }
  .logo img { width: 56px; height: 56px; }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 12px 24px rgba(0,0,0,.10);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.open { max-height: 420px; }
  .nav ul { flex-direction: column; }
  .nav a { line-height: 52px; padding: 0 24px; }

  .nav-toggle { display: flex; }

  .stats-inner { flex-direction: column; gap: 44px; }
  .videos { grid-template-columns: 1fr; gap: 40px; padding-bottom: 90px; }
  .slogan { padding: 84px 20px 30px; }
}
