:root {
  --pink: #f4a9bd;
  --cream: #fffaf2;
  --shadow-purple: #4b3a5c;
  --pink-light: #fdeef2;
  --deep-purple: #2f2439;
  --light-purple: #c9b8dc;
  --ink: #3a2b33;
  --sub: #7a6670;
  --faint: #a898a0;
  --line-pink: rgba(244, 169, 189, 0.3);
  --mono: "Courier New", Courier, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 导航 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-pink);
  padding: 0.5rem 1rem;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--shadow-purple);
}
.brand img { height: 32px; width: auto; border-radius: 4px; }
.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--sub);
  flex-wrap: wrap;
}
.nav-links a:hover { color: var(--shadow-purple); }
.btn-download {
  background: var(--shadow-purple);
  color: var(--cream);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
}
.btn-download:hover { transform: translateY(-2px); background: var(--deep-purple); }

/* 首屏 */
.hero {
  background: var(--pink-light);
  padding: 4rem 1rem 3rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}
.hero-text { max-width: 600px; }
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--pink);
  background: rgba(244, 169, 189, 0.1);
  border: 1px dashed var(--pink);
  padding: 0.2rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  color: var(--shadow-purple);
  margin-bottom: 1rem;
}
.hero-desc {
  color: var(--sub);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--pink);
  color: var(--cream);
  padding: 0.6rem 1.5rem;
  border-radius: 24px;
  font-weight: bold;
  transition: transform 0.2s, background 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); background: #e895a9; }
.btn-secondary {
  background: transparent;
  color: var(--shadow-purple);
  border: 1px solid var(--shadow-purple);
  padding: 0.6rem 1.5rem;
  border-radius: 24px;
  transition: background 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(75, 58, 92, 0.05); }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.8rem;
  background: var(--cream);
  border: 1px solid var(--line-pink);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  color: var(--sub);
}

/* 包裹卡 */
.package-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(75, 58, 92, 0.08);
  border: 1px solid var(--line-pink);
  position: relative;
  max-width: 450px;
  margin: 0 auto;
  width: 100%;
}
.package-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  border-bottom: 1px dashed var(--line-pink);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}
.fragile {
  border: 2px solid #d9534f;
  color: #d9534f;
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  transform: rotate(-5deg);
  letter-spacing: 1px;
  font-weight: bold;
}
.package-img {
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--line-pink);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #eee;
}
.progress-wrap {
  margin-top: 1rem;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--sub);
  margin-bottom: 0.3rem;
}
.progress-bar {
  height: 8px;
  background: var(--pink-light);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--pink), var(--shadow-purple));
  border-radius: 4px;
}

/* 渐变条 */
.gradient-bar {
  display: flex;
  height: 6px;
  margin-top: 2rem;
  border-radius: 3px;
  overflow: hidden;
}
.gradient-bar span:nth-child(1) { background: #f9d4e0; flex: 1; }
.gradient-bar span:nth-child(2) { background: #f4a9bd; flex: 1; }
.gradient-bar span:nth-child(3) { background: #a87b99; flex: 1; }
.gradient-bar span:nth-child(4) { background: #4b3a5c; flex: 1; }
.gradient-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--faint);
  margin-top: 0.3rem;
}

/* 通用区块 */
.section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title h2 {
  font-size: 1.8rem;
  color: var(--shadow-purple);
  margin-bottom: 0.5rem;
}
.section-title p {
  color: var(--sub);
  font-size: 0.95rem;
}

/* 包裹内容 (6卡) */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-pink);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--pink); }
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #f0f0f0;
  border-bottom: 1px solid var(--line-pink);
}
.card-body { padding: 1rem; }
.card-body h3 {
  font-size: 1.1rem;
  color: var(--shadow-purple);
  margin-bottom: 0.4rem;
}
.card-body p {
  font-size: 0.85rem;
  color: var(--sub);
}

/* 开箱三步 */
.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .steps-container { grid-template-columns: repeat(3, 1fr); }
}
.step-item {
  background: var(--pink-light);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--line-pink);
}
.step-num {
  font-family: var(--mono);
  font-size: 2rem;
  color: var(--pink);
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.step-item h3 {
  font-size: 1.1rem;
  color: var(--shadow-purple);
  margin-bottom: 0.5rem;
}
.step-item p { font-size: 0.9rem; color: var(--sub); }

/* 游戏截图 */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-pink);
  transition: transform 0.2s, border-color 0.2s;
}
.gallery-item:hover { transform: translateY(-2px); border-color: var(--pink); }
.gallery-item img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #000; }

/* 灯箱 */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(47, 36, 57, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 4px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transform: translateY(-50%);
  user-select: none;
  padding: 0 1rem;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* 形态阶段 */
.stages-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .stages-wrapper { grid-template-columns: 3fr 2fr; }
}
.stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stage-box {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--line-pink);
  text-align: center;
}
.stage-box h3 { font-size: 1rem; color: var(--shadow-purple); margin-bottom: 0.5rem; }
.stage-box p { font-size: 0.8rem; color: var(--sub); }
.meter-panel {
  background: var(--shadow-purple);
  border-radius: 12px;
  padding: 2rem;
  color: var(--cream);
}
.meter-panel h3 { font-size: 1.2rem; margin-bottom: 1.5rem; text-align: center; }
.meter-item { margin-bottom: 1.2rem; }
.meter-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}
.meter-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}
.meter-fill-1 { height: 100%; width: 75%; background: var(--pink); border-radius: 3px; }
.meter-fill-2 { height: 100%; width: 40%; background: var(--light-purple); border-radius: 3px; }

/* 结局收集 (心愿榜) */
.wishlist {
  max-width: 800px;
  margin: 0 auto;
}
.wish-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--line-pink);
  gap: 1rem;
  flex-wrap: wrap;
}
.wish-img {
  width: 80px;
  height: 45px;
  object-fit: contain;
  border-radius: 4px;
  background: #eee;
}
.wish-info { flex: 1; min-width: 150px; }
.wish-info h3 { font-size: 1rem; color: var(--shadow-purple); margin-bottom: 0.2rem; }
.wish-bar-wrap { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--faint); }
.wish-bar { flex: 1; height: 4px; background: var(--pink-light); border-radius: 2px; overflow: hidden; }
.wish-bar-fill { height: 100%; background: var(--pink); border-radius: 2px; width: 50%; transition: width 0.3s; }
.wish-btn {
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink);
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
}
.wish-btn:hover { background: var(--pink); color: white; }
.wish-btn.active { background: var(--pink); color: white; border-color: var(--pink); }

/* 游戏特色 (4卡) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
.feature-card {
  background: var(--pink-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--line-pink);
}
.feature-card img {
  width: 120px;
  height: 68px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  flex-shrink: 0;
}
.feature-text h3 { font-size: 1.1rem; color: var(--shadow-purple); margin-bottom: 0.4rem; }
.feature-text p { font-size: 0.85rem; color: var(--sub); }

/* 玩家评价 */
.rating-summary {
  text-align: center;
  margin-bottom: 2rem;
}
.rating-score {
  font-size: 3rem;
  font-weight: bold;
  color: var(--pink);
  font-family: var(--mono);
  line-height: 1;
}
.rating-summary p { color: var(--sub); font-size: 0.9rem; margin-top: 0.5rem; }
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--line-pink);
}
.review-user {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--shadow-purple);
  margin-bottom: 0.5rem;
}
.review-text { font-size: 0.85rem; color: var(--sub); }

/* 下载区 */
.download-section {
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--light-purple) 100%);
  text-align: center;
  padding: 4rem 1rem;
  border-radius: 20px;
  max-width: 1000px;
  margin: 0 auto 4rem;
}
.download-section h2 {
  font-size: 2rem;
  color: var(--shadow-purple);
  margin-bottom: 1rem;
}
.download-section p { color: var(--sub); margin-bottom: 2rem; }
.btn-big {
  font-size: 1.2rem;
  padding: 1rem 3rem;
  background: var(--shadow-purple);
  color: var(--cream);
  border-radius: 30px;
  display: inline-block;
  transition: transform 0.2s, background 0.2s;
  font-weight: bold;
}
.btn-big:hover { transform: translateY(-3px); background: var(--deep-purple); }

/* 页脚 */
footer {
  background: var(--deep-purple);
  color: var(--faint);
  padding: 3rem 1rem 2rem;
  font-size: 0.8rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-inner p { margin-bottom: 0.5rem; }
.footer-inner a { color: var(--light-purple); }
.footer-details {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: left;
}
.footer-details summary {
  cursor: pointer;
  color: var(--faint);
  font-size: 0.8rem;
  list-style: none;
  outline: none;
}
.footer-details summary::-webkit-details-marker { display: none; }
.footer-details summary:hover { color: var(--light-purple); }
.footer-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.footer-links a {
  color: var(--faint);
  font-size: 0.75rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--light-purple); }