:root {
  --bg: #efe2cf;
  --panel: rgba(251, 244, 231, 0.88);
  --panel-strong: #f8efdf;
  --line: rgba(116, 91, 58, 0.18);
  --text: #241d17;
  --muted: #635343;
  --accent: #f1ad2f;
  --accent-deep: #d15d2f;
  --ink: #211f1b;
  --shadow: 0 20px 60px rgba(64, 40, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "STZhongsong", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 222, 155, 0.32), transparent 32%),
    radial-gradient(circle at bottom right, rgba(208, 94, 48, 0.18), transparent 28%),
    linear-gradient(180deg, #f5ebdd 0%, #efe2cf 100%);
  min-height: 100vh;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(88, 65, 41, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 65, 41, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
  pointer-events: none;
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 28px 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.brand-block h1,
.hero-copy h2,
.card-heading h3,
.info-card h3 {
  margin: 0;
  letter-spacing: 0;
}

.brand-chip,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(48, 34, 20, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.7);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.brand-block h1 {
  margin-top: 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

.brand-block p {
  max-width: 600px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.header-actions,
.hero-buttons,
.preview-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.switch-button,
.small-button,
.store-link-pill {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.primary-button,
.ghost-button {
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  background: var(--ink);
  color: #fff7ea;
}

.ghost-button {
  background: rgba(255, 250, 241, 0.72);
  color: var(--text);
  border: 1px solid rgba(54, 40, 24, 0.16);
}

.small-button {
  border-radius: 12px;
}

.primary-button:hover,
.ghost-button:hover,
.switch-button:hover,
.store-link-pill:hover {
  transform: translateY(-1px);
}

.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 44px;
}

.hero-panel,
.preview-card,
.feature-card,
.home-section,
.updates-panel,
.info-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  border-radius: 30px;
  padding: 34px;
}

.hero-copy h2 {
  margin-top: 14px;
  font-size: clamp(32px, 5vw, 52px);
}

.hero-meta {
  margin: 14px 0 0;
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 14px;
}

.hero-text {
  max-width: 620px;
  margin: 14px 0 28px;
  color: var(--muted);
  line-height: 1.75;
}

.hero-stat-card {
  border-radius: 24px;
  padding: 22px 22px 18px;
  background:
    linear-gradient(145deg, rgba(255, 246, 227, 0.92), rgba(243, 226, 202, 0.8)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 14px,
      rgba(88, 65, 41, 0.03) 14px,
      rgba(88, 65, 41, 0.03) 15px
    );
  border: 1px solid rgba(90, 65, 41, 0.12);
}

.store-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(88, 65, 41, 0.14);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row span {
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-top: 22px;
}

.preview-card,
.feature-card,
.home-section,
.updates-panel {
  border-radius: 26px;
  padding: 28px;
}

.home-section {
  margin-top: 22px;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.card-heading h3 {
  margin-top: 10px;
  font-size: 28px;
}

.preview-stage {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  margin-top: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.72), rgba(241, 232, 216, 0.92)),
    radial-gradient(circle at center, rgba(62, 153, 171, 0.1), transparent 62%);
  border: 1px solid rgba(86, 62, 36, 0.08);
}

.preview-aura {
  position: absolute;
  left: 50%;
  bottom: 68px;
  transform: translateX(-50%);
  width: 320px;
  height: 130px;
  border-radius: 50%;
  background: rgba(76, 160, 173, 0.18);
  filter: blur(2px);
}

.pet-button {
  position: absolute;
  left: 50%;
  bottom: 50px;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  animation: floatPet 3.2s ease-in-out infinite;
  transform-origin: center bottom;
}

.pet-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.pet-button.pulse {
  animation:
    floatPet 3.2s ease-in-out infinite,
    bouncePet 0.48s ease;
}

.pet-button.react {
  animation:
    floatPet 3.2s ease-in-out infinite,
    comboPet 0.68s ease;
}

.bubble {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 360px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 249, 236, 0.94);
  color: #3a2e22;
  border: 1px solid rgba(88, 65, 41, 0.24);
  box-shadow: 0 18px 36px rgba(56, 36, 19, 0.12);
  text-align: center;
  line-height: 1.65;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: rgba(255, 249, 236, 0.94);
  border-right: 1px solid rgba(88, 65, 41, 0.24);
  border-bottom: 1px solid rgba(88, 65, 41, 0.24);
  transform: translateX(-50%) rotate(45deg);
}

.preview-controls {
  margin-top: 18px;
}

.preview-switcher {
  display: flex;
  gap: 8px;
}

.switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 6px;
  width: 84px;
  height: 84px;
  background: rgba(255, 248, 235, 0.8);
  border: 1px solid rgba(64, 45, 24, 0.12);
}

.switch-button img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  pointer-events: none;
}

.switch-button.active {
  background: var(--ink);
  border-color: transparent;
}

.card-text {
  margin: 16px 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(64, 45, 24, 0.08);
}

.feature-item strong {
  font-size: 18px;
}

.feature-item span {
  color: var(--muted);
  line-height: 1.7;
}

.store-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.module-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(64, 45, 24, 0.08);
}

.module-card-top,
.module-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-card h3,
.module-card p {
  margin: 0;
}

.module-card h3 {
  font-size: 22px;
}

.module-card p,
.module-note {
  color: var(--muted);
  line-height: 1.7;
}

.module-status,
.module-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.module-card.is-open .module-status {
  background: rgba(74, 127, 68, 0.12);
  color: #3c6a38;
}

.module-card.is-locked .module-status {
  background: rgba(60, 58, 53, 0.08);
  color: #5f574e;
}

.module-action {
  background: var(--ink);
  color: #fff7ea;
}

.module-action.is-disabled {
  background: rgba(60, 58, 53, 0.12);
  color: #72685e;
}

.summary-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.store-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(64, 45, 24, 0.1);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(33, 31, 27, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.empty-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.updates-panel {
  margin-top: 22px;
}

.update-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.update-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(64, 45, 24, 0.08);
}

.update-version {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-version strong {
  font-size: 24px;
}

.update-date {
  color: var(--muted);
  font-size: 14px;
}

.update-item p,
.update-item ul {
  margin: 0;
}

.update-item ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.info-card {
  border-radius: 22px;
  padding: 24px;
}

.info-card h3 {
  margin-top: 12px;
  font-size: 24px;
}

.info-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

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

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes bouncePet {
  0% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.04);
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes comboPet {
  0% {
    transform: translateX(-50%) translateY(0px) scale(1);
  }

  12% {
    transform: translateX(calc(-50% - 10px)) translateY(-4px) rotate(-6deg) scale(1.02);
  }

  24% {
    transform: translateX(calc(-50% + 12px)) translateY(-11px) rotate(8deg) scale(1.06);
  }

  38% {
    transform: translateX(calc(-50% - 8px)) translateY(-6px) rotate(-7deg) scale(1.01);
  }

  52% {
    transform: translateX(calc(-50% + 10px)) translateY(-12px) rotate(6deg) scale(1.05);
  }

  70% {
    transform: translateX(calc(-50% - 6px)) translateY(-5px) rotate(-4deg) scale(1.02);
  }

  84% {
    transform: translateX(calc(-50% + 3px)) translateY(-2px) rotate(2deg) scale(0.99);
  }

  100% {
    transform: translateX(-50%) translateY(0px) rotate(0deg) scale(1);
  }
}

@media (max-width: 1040px) {
  .hero-panel,
  .content-grid,
  .info-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .update-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  .page-shell,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-panel,
  .preview-card,
  .feature-card,
  .updates-panel,
  .info-card {
    padding: 20px;
  }

  .card-heading {
    flex-direction: column;
  }

  .preview-stage {
    min-height: 380px;
  }

  .pet-button {
    width: 260px;
    height: 260px;
    bottom: 62px;
  }

  .preview-aura {
    width: 260px;
    height: 108px;
  }

  .bubble {
    width: calc(100% - 28px);
    max-width: none;
    font-size: 14px;
  }

}
