/* 樱花校园模拟器 - 官方下载页样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe4ef;
  --pink-200: #ffc9dd;
  --pink-300: #ffa3c5;
  --pink-400: #ff7aac;
  --pink-500: #ff4d8d;
  --pink-600: #e63b7a;
  --sakura: #ffb7c9;
  --ink: #2d1b2e;
  --muted: #6b5a6f;
  --bg: #fffafc;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(255, 77, 141, 0.12);
  --shadow-hover: 0 16px 50px rgba(255, 77, 141, 0.22);
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 樱花飘落 */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
  position: absolute; top: -20px;
  width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--sakura) 60%, var(--pink-300) 100%);
  border-radius: 14px 0 14px 0;
  opacity: 0.85;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(720deg) translateX(80px); opacity: 0.2; }
}

/* 顶部导航（限定 header 内的 nav，避免影响 footer 的 nav） */
header > nav,
nav.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 252, 0.78);
  border-bottom: 1px solid rgba(255, 167, 197, 0.25);
  transition: all 0.3s ease;
}
nav { /* 兼容旧结构：顶部导航作为唯一 nav 时的样式 */
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 252, 0.78);
  border-bottom: 1px solid rgba(255, 167, 197, 0.25);
  transition: all 0.3s ease;
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--pink-300));
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.35);
  display: grid; place-items: center; color: var(--pink-600); font-size: 18px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--pink-500); }
.nav-cta {
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  color: #fff; padding: 9px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 18px rgba(255, 77, 141, 0.4);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 77, 141, 0.5); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 24px; color: var(--ink); }

/* Hero */
.hero {
  position: relative; padding: 140px 0 80px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 167, 197, 0.4), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255, 201, 221, 0.5), transparent 45%),
    linear-gradient(180deg, #fff5f8 0%, #ffeef5 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 77, 141, 0.1);
  color: var(--pink-600); font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 20px;
  border: 1px solid rgba(255, 77, 141, 0.2);
}
.badge::before { content: ""; width: 8px; height: 8px; background: var(--pink-500); border-radius: 50%; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: 54px; line-height: 1.15; font-weight: 900; letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--pink-600) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .accent { color: var(--pink-500); -webkit-text-fill-color: var(--pink-500); }
.hero p.lead { font-size: 18px; color: var(--muted); margin-bottom: 30px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 14px; font-weight: 600; font-size: 16px;
  transition: all 0.25s ease; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 77, 141, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(255, 77, 141, 0.55); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--pink-200);
}
.btn-ghost:hover { border-color: var(--pink-400); color: var(--pink-600); transform: translateY(-3px); }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat .num { font-size: 28px; font-weight: 900; color: var(--pink-600); }
.stat .label { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; }
.hero-img {
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(255, 77, 141, 0.3);
  aspect-ratio: 4 / 3;
  position: relative;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.floating-card {
  position: absolute; background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px); padding: 14px 18px; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 12px;
  animation: float 4s ease-in-out infinite;
}
.floating-card.f1 { top: 24px; left: -24px; }
.floating-card.f2 { bottom: 30px; right: -20px; animation-delay: 1.2s; }
.fc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; }
.fc-icon.pink { background: var(--pink-100); color: var(--pink-600); }
.fc-icon.gold { background: #fff4d6; color: #d99100; }
.fc-text .t { font-size: 13px; font-weight: 700; }
.fc-text .s { font-size: 11px; color: var(--muted); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* 通用 section */
section { padding: 100px 0; position: relative; z-index: 2; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-tag { color: var(--pink-500); font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; display: block; }
.section-head h2 { font-size: 40px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* 介绍 */
.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }
.intro-content h2 { font-size: 36px; font-weight: 900; margin-bottom: 20px; line-height: 1.25; }
.intro-content p { color: var(--muted); margin-bottom: 18px; font-size: 16px; }
.intro-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.meta-item { background: var(--pink-50); padding: 16px; border-radius: 12px; border-left: 3px solid var(--pink-400); }
.meta-item .k { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.meta-item .v { font-size: 15px; font-weight: 700; color: var(--ink); }

/* 特色 */
.features { background: linear-gradient(180deg, #fff5f8 0%, #fff 100%); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: #fff; border-radius: 20px; padding: 32px 28px;
  box-shadow: var(--shadow); transition: all .3s ease;
  border: 1px solid rgba(255, 167, 197, 0.15);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--pink-300), var(--pink-500));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
  display: grid; place-items: center; font-size: 28px;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* 亮点 */
.highlights { background: var(--white); }
.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.hl-card {
  display: flex; gap: 20px; padding: 28px;
  background: linear-gradient(135deg, #fff5f8, #fff);
  border-radius: 20px; border: 1px solid var(--pink-100);
  transition: all .3s ease;
}
.hl-card:hover { border-color: var(--pink-300); transform: translateX(6px); }
.hl-num {
  font-size: 42px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--pink-300), var(--pink-600));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  min-width: 60px;
}
.hl-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.hl-card p { color: var(--muted); font-size: 14.5px; }

/* 截图画廊 */
.gallery { background: linear-gradient(180deg, #fff 0%, #fff5f8 100%); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item {
  border-radius: 16px; overflow: hidden; aspect-ratio: 9/16;
  box-shadow: var(--shadow); cursor: pointer; position: relative;
  transition: transform .3s ease;
}
.gallery-item:hover { transform: scale(1.04); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(45, 27, 46, 0.85));
  color: #fff; font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .cap { opacity: 1; }

/* 下载 */
.download { background: linear-gradient(135deg, var(--pink-500), var(--pink-600)); color: #fff; }
.download .section-head h2 { color: #fff; }
.download .section-head p { color: rgba(255,255,255,0.85); }
.download .section-tag { color: #ffd6e3; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
.dl-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px; padding: 36px 28px;
  text-align: center; transition: all .3s ease;
}
.dl-card:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-6px); }
.dl-icon {
  width: 70px; height: 70px; margin: 0 auto 20px;
  background: #fff; border-radius: 20px;
  display: grid; place-items: center; font-size: 34px;
}
.dl-card.ios .dl-icon { color: #000; }
.dl-card.and .dl-icon { color: #3ddc84; }
.dl-card.pc .dl-icon { color: var(--pink-500); }
.dl-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 28px; }
.dl-btn {
  display: inline-block; width: 100%;
  background: #fff; color: var(--pink-600);
  padding: 13px; border-radius: 12px;
  font-weight: 700; font-size: 15px;
  transition: all .2s;
}
.dl-btn:hover { background: var(--pink-50); transform: scale(1.03); }

.dl-note { text-align: center; margin-top: 40px; font-size: 13px; opacity: 0.85; }

/* FAQ */
.faq { background: var(--white); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--pink-100);
  border-radius: 14px; margin-bottom: 14px;
  overflow: hidden; background: var(--bg);
  transition: all .3s;
}
.faq-item[open] { border-color: var(--pink-300); box-shadow: var(--shadow); }
.faq-item summary {
  padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--pink-500); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* Footer */
footer { background: #2d1b2e; color: #d9c2d4; padding: 60px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-brand .logo { color: #fff; margin-bottom: 16px; }
.foot-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { font-size: 14px; color: #d9c2d4; transition: color .2s; }
footer ul a:hover { color: var(--pink-300); }
/* 重置 footer 内 nav 的固定定位（避免顶部 nav 样式污染 footer） */
footer nav { position: static !important; top: auto !important; left: auto !important; right: auto !important; z-index: auto !important; background: none !important; backdrop-filter: none !important; border: none !important; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center; font-size: 13px; color: #9b8499;
}

/* 响应式 */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 110px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hl-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
  .section-head h2, .intro-content h2 { font-size: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .floating-card.f1 { left: 0; }
  .floating-card.f2 { right: 0; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 20px; }
  .stat .num { font-size: 22px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
}
