/* Tianfuduo - bright, candy-color casual-game studio site */
:root {
  --pink: #ff7eb6;
  --pink-soft: #ffd2e4;
  --yellow: #ffd166;
  --blue: #6ec8ff;
  --mint: #7be0c2;
  --purple: #b693ff;
  --text: #2b1e3d;
  --muted: #6f6385;
  --bg: #fff8fb;
  --card: #ffffff;
  --shadow: 0 14px 40px rgba(255, 126, 182, 0.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(120deg, var(--pink), var(--purple) 50%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,248,251,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #ffe3ef;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, #ffe1ee, #ffd166);
  box-shadow: 0 6px 18px rgba(255,126,182,0.35);
}
.brand-text strong { display: block; font-size: 18px; }
.brand-text small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.menu { display: flex; gap: 6px; }
.menu a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--text);
  transition: background .2s, color .2s;
}
.menu a:hover { background: var(--pink-soft); }
.menu a.active { background: var(--text); color: #fff; }

.lang-toggle {
  display: inline-flex; align-items: center;
  background: #fff;
  border: 1px solid #ffd2e4;
  border-radius: 999px;
  padding: 4px;
  margin-left: 14px;
}
.lang-toggle button {
  border: 0; background: transparent;
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s;
}
.lang-toggle button.active {
  background: linear-gradient(120deg, var(--pink), var(--purple));
  color: #fff;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 100px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.blob-1 { width: 380px; height: 380px; background: var(--pink); top: -80px; left: -80px; }
.blob-2 { width: 320px; height: 320px; background: var(--yellow); top: 40px; right: -60px; }
.blob-3 { width: 260px; height: 260px; background: var(--mint); bottom: -80px; left: 35%; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #fff; color: var(--text); font-size: 13px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06); border: 1px solid #ffe3ef;
}
.hero h1 { font-size: 56px; line-height: 1.15; margin: 18px 0 16px; letter-spacing: -1px; }
.lead { font-size: 17px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 14px 28px rgba(182,147,255,0.45);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; border: 1px solid #ffd2e4; color: var(--text); }
.btn-ghost:hover { background: #fff0f7; }
.hero-stats { display: flex; gap: 36px; margin-top: 42px; }
.hero-stats div strong { display: block; font-size: 26px; }
.hero-stats div span { color: var(--muted); font-size: 13px; }

/* Phone illustration */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 260px; height: 540px; border-radius: 42px;
  background: linear-gradient(160deg, #fff, #ffe1ee);
  padding: 14px;
  box-shadow: 0 30px 80px rgba(182,147,255,0.4), inset 0 0 0 2px #fff;
  transform: rotate(-6deg);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 30px;
  background: linear-gradient(135deg, #ffeef7, #fff7da);
  display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 14px;
  padding: 22px;
  align-content: center;
}
.game-tile {
  aspect-ratio: 1/1; border-radius: 22px;
  display: grid; place-items: center;
  font-size: 38px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(255,126,182,0.25);
}
.t1 { background: #ffd9e7; }
.t2 { background: #fff0c9; }
.t3 { background: #d6f0ff; }
.t4 { background: #e6dcff; }
.t5 { background: #d6f7e7; }
.t6 { background: #ffe1c2; }

/* Generic sections */
.section { padding: 90px 0; }
.section-title { font-size: 36px; text-align: center; margin: 0 0 50px; letter-spacing: -.5px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow); border: 1px solid #ffe3ef;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.icon-circle { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; }
.icon-circle.pink { background: #ffe1ee; }
.icon-circle.yellow { background: #fff0c9; }
.icon-circle.blue { background: #d6f0ff; }
.card h3 { margin: 6px 0 8px; font-size: 20px; }
.card p { color: var(--muted); margin: 0; }

/* Game cards */
.game-card { display: block; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid #ffe3ef; box-shadow: var(--shadow); transition: transform .2s; }
.game-card:hover { transform: translateY(-4px); }
.game-cover { height: 180px; display: grid; place-items: center; font-size: 64px; }
.c1 { background: linear-gradient(135deg, #ffd9e7, #ffc1d8); }
.c2 { background: linear-gradient(135deg, #d6f7e7, #a7e8c8); }
.c3 { background: linear-gradient(135deg, #e6dcff, #ffd2e4); }
.game-meta { padding: 18px 22px 22px; }
.game-meta h4 { margin: 0 0 4px; }
.game-meta p { margin: 0; color: var(--muted); font-size: 14px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--pink), var(--purple) 60%, var(--blue));
  color: #fff;
}
.cta-inner { text-align: center; padding: 30px 0; }
.cta-inner h2 { font-size: 32px; margin: 0 0 10px; }
.cta-inner p { opacity: 0.9; margin: 0 0 24px; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--text);
  box-shadow: 0 14px 28px rgba(0,0,0,0.2);
}

/* Footer */
.site-footer { background: #fff; border-top: 1px solid #ffe3ef; padding: 50px 0 24px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; align-items: center; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 13px; margin-top: 24px; padding-top: 18px; border-top: 1px dashed #ffe3ef; }

/* Sub-page hero */
.page-hero { padding: 60px 0 30px; }
.page-hero h1 { font-size: 44px; margin: 0 0 10px; letter-spacing: -.5px; }
.page-hero p { color: var(--muted); max-width: 720px; }

/* Article */
.article { background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); border: 1px solid #ffe3ef; margin-bottom: 60px; }
.article h2 { margin-top: 28px; }
.article h3 { margin-top: 22px; color: var(--text); }
.article p, .article li { color: #4a3d5e; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: #fff; border-radius: 24px; padding: 28px; border: 1px solid #ffe3ef; box-shadow: var(--shadow); }
.contact-card strong { display: block; font-size: 16px; margin-bottom: 8px; }
.contact-card a { color: var(--pink); }

@media (max-width: 900px) {
  .hero { padding: 56px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero-art { order: -1; }
  .phone { width: 220px; height: 460px; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .menu { display: none; }
  .section-title { font-size: 28px; }
  .foot { flex-direction: column; }
}
