/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #ff8a3d;
  --orange-dark: #f0711e;
  --blue: #4a90e2;
  --yellow: #ffd166;
  --green: #4cc38a;
  --ink: #33303e;
  --gray: #7a7585;
  --card: #ffffff;
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: #fff9f2;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(255, 249, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #ffe9d1;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links { display: flex; gap: clamp(14px, 3vw, 34px); }

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
  transition: .2s;
}

.nav-links a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* ===== 首页 ===== */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 20px clamp(70px, 10vw, 120px);
  background: linear-gradient(160deg, #fff2e0 0%, #ffe9f3 55%, #eaf4ff 100%);
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }

.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(255, 138, 61, .28);
  border: 5px solid #fff;
  animation: floaty 3.2s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(30px, 5.4vw, 52px);
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hero h1 .name {
  color: var(--orange);
  background: linear-gradient(transparent 62%, #ffe0b3 62%);
  padding: 0 6px;
}

.slogan {
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--gray);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.hero-text {
  font-size: clamp(15px, 2.2vw, 18px);
  color: #5c5768;
  max-width: 520px;
  margin: 0 auto 30px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: .22s;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 138, 61, .38);
}

.btn-primary:hover { background: var(--orange-dark); transform: translateY(-3px); }

.btn-secondary {
  background: #fff;
  color: var(--blue);
  border: 2px solid #cfe3ff;
}

.btn-secondary:hover { border-color: var(--blue); transform: translateY(-3px); }

/* 漂浮的小圆点 */
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: .55;
  z-index: 1;
}
.bubble-1 { width: 120px; height: 120px; background: #ffd166; top: 12%; left: 8%; }
.bubble-2 { width: 80px; height: 80px; background: #9fd3ff; bottom: 14%; right: 10%; }
.bubble-3 { width: 56px; height: 56px; background: #ffb3d1; top: 22%; right: 20%; }

/* ===== 通用区块 ===== */
.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 64px);
  max-width: 1100px;
  margin: 0 auto;
}

.section-head { text-align: center; margin-bottom: clamp(30px, 5vw, 50px); }

.section-head h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  margin-bottom: 8px;
}

.section-sub { color: var(--gray); font-size: 16px; }

/* ===== 分类筛选 ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 9px 22px;
  border: 2px solid #ffe0c2;
  border-radius: 999px;
  background: #fff;
  color: var(--gray);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: .2s;
}

.filter-btn:hover { border-color: var(--orange); color: var(--orange); }

.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 138, 61, .35);
}

.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray);
  font-size: 16px;
  padding: 40px 0;
}

/* ===== 照片墙 ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.photo-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(90, 70, 120, .10);
  cursor: pointer;
  transition: .25s;
  aspect-ratio: 4 / 3;
}

.photo-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 16px 34px rgba(90, 70, 120, .18); }

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 40px;
  color: rgba(255, 255, 255, .95);
}

.photo-placeholder span { font-size: 14px; font-weight: 600; }

.photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}

.photo-date {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #6b6478;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
}

.photo-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 138, 61, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.photo-card:hover .photo-tag { background: var(--orange-dark); }

.photo-tip {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--gray);
}

.photo-tip code {
  background: #fff0df;
  color: #b9661f;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13px;
}

/* ===== 小游戏 ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.game-card {
  display: block;
  padding: 30px 26px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 26px rgba(90, 70, 120, .10);
  border: 3px solid transparent;
  transition: .25s;
}

.game-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(90, 70, 120, .18); }

.game-1:hover { border-color: #ffb3d1; }
.game-2:hover { border-color: var(--yellow); }
.game-3:hover { border-color: var(--green); }
.game-4:hover { border-color: #c4b5fd; }
.game-5:hover { border-color: #ffc9a0; }
.game-6:hover { border-color: #ffd0a8; }

.game-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.game-1 .game-icon { background: #ffe3ee; }
.game-2 .game-icon { background: #fff3d1; }
.game-3 .game-icon { background: #dff7ea; }
.game-4 .game-icon { background: #ece5ff; }
.game-5 .game-icon { background: #ffeede; }
.game-6 .game-icon { background: #fff0d9; }

.game-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }

.game-card p { font-size: 15px; color: var(--gray); margin-bottom: 18px; min-height: 50px; }

.game-play { font-size: 15px; font-weight: 800; color: var(--orange); }

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 40px 20px 50px;
  background: #fff2e0;
  color: #8a7f70;
  font-size: 15px;
}

.footer-small { font-size: 13px; color: #b0a597; margin-top: 6px; }

/* ===== 照片放大 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(20, 16, 30, .88);
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(920px, 92vw);
  max-height: 76vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-caption { margin-top: 16px; color: #fff; font-size: 17px; font-weight: 700; }

.lightbox-counter { margin-top: 6px; color: rgba(255, 255, 255, .65); font-size: 13px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: .2s;
  user-select: none;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, .3); }

.lightbox-prev { left: 3vw; }
.lightbox-next { right: 3vw; }

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: .2s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, .3); }

/* ===== 手机适配 ===== */
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .logo { font-size: 17px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .photo-caption { font-size: 13px; padding: 20px 10px 8px; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .filter-btn { padding: 7px 16px; font-size: 14px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 30px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .photo-tag, .photo-date { font-size: 11px; padding: 2px 8px; }
}
