/* Happy Bubble - 青绿色调官网 */
:root {
  --color-primary: #0d9488;
  --color-dark: #134e4a;
  --color-yarn-cream: #f0f9ff;
  --color-yarn-soft: #e0f2f1;
  --color-bg: #f0f9ff;
  --color-bg-section: #fff;
  --color-border: rgba(15, 118, 110, 0.15);
  --color-text: #1e3a38;
  --color-text-muted: #5a7a77;
  --color-text-light: #6b8f8a;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-card: 0 4px 20px rgba(13, 148, 136, 0.08);
  --radius: 16px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header - 青绿调，上下极简分隔 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  min-height: 56px;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.nav {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo：与顶栏同背景、尺寸适配导航高度 */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  background: transparent;
  padding: 8px 0;
}

/* 同时选择 .logo img，确保无 class 时也生效 */
.logo img,
.logo-img {
  display: block;
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
  background: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-dark);
}

/* Hero - 青绿渐变首屏 */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #134e4a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: 1;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}

.hero-yarn-texture {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 640px;
}

.hero-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.35);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

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

/* Section 通用 */
section {
  padding: 72px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

/* About - 左侧配图，右侧文案 */
.about {
  background: linear-gradient(180deg, #fff 0%, var(--color-yarn-soft) 100%);
}

.about-wrap {
  display: flex;
  align-items: stretch;
  gap: 48px;
  max-width: 1000px;
}

.about-media {
  flex: 0 0 42%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-yarn-soft) 0%, #e0f2f1 100%);
  min-height: 320px;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}

.about-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.about-text {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.about-text:has(+ .about-text) {
  margin-bottom: 0;
}
.about-text + .about-text {
  margin-top: 0;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature {
  text-align: center;
  padding: 20px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.feature:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}

.feature-icon {
  display: block;
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* 产品区块 - 每行不同背景 + 商店描述 */
.games {
  background: var(--color-yarn-cream);
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.game-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  border-bottom: none;
  transition: background var(--transition), border-color var(--transition);
}

/* 每行均为绿色系渐变，深浅略有区分 */
.game-row:nth-child(1) {
  background: linear-gradient(135deg, #e0f2f1 0%, #f0f9ff 50%, #fff 100%);
}
.game-row:nth-child(2) {
  background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 50%, #fff 100%);
}
.game-row:nth-child(3) {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 50%, #fff 100%);
}
.game-row:nth-child(4) {
  background: linear-gradient(135deg, #cffafe 0%, #ecfeff 50%, #f0f9ff 100%);
}
.game-row:nth-child(5) {
  background: linear-gradient(135deg, #e0f2f1 0%, #f0fdfa 50%, #fff 100%);
}
.game-row:nth-child(n+6) {
  background: linear-gradient(135deg, #ccfbf1 0%, #f0f9ff 100%);
}

.game-row:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.game-row:last-child {
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius) var(--radius);
}

.game-row:only-child {
  border-radius: var(--radius);
  border-bottom: 1px solid var(--color-border);
}

.game-row:hover {
  filter: brightness(1.02);
  border-color: var(--color-primary);
  z-index: 1;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}

.game-row-icon-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(19, 78, 74, 0.12);
}

.game-row-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-icon-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-yarn-soft);
}

.game-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.game-row-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.game-row-name {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-dark);
}

.game-row-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* 商店描述：最多 3 行，超出显示 ... */
.game-row-desc-store {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-row-cta {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}

.game-row-cta:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Contact - 青绿调 */
.contact {
  background: linear-gradient(180deg, var(--color-yarn-soft) 0%, #fff 100%);
}

.contact-lead {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  font-size: 0.98rem;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 36px;
  background: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}

.contact-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.contact-value {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.98rem;
}

/* Footer - 深青绿底 */
.footer {
  padding: 22px 24px;
  text-align: center;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact {
  width: 100%;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 60vh;
  }

  section {
    padding: 56px 0;
  }

  .section-title {
    margin-bottom: 28px;
    font-size: 1.5rem;
  }

  .about-wrap {
    flex-direction: column;
    gap: 32px;
  }

  .about-media {
    flex: none;
    min-height: 240px;
  }

  .about-image {
    min-height: 240px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .game-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .game-row-body {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .game-row-cta {
    align-self: flex-start;
  }

  .game-row-icon-wrap {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .game-row-name {
    font-size: 1.25rem;
  }
}
