/* 星星小游戏 · aixingxing.cn
   手写样式，无外部依赖：系统字体 + 内联 SVG，国内网络直接可用。 */

:root {
  --ink: #1f3a33;
  --ink-soft: #3c5c52;
  --muted: #5a7568;
  --line: #dbe8e0;
  --paper: #ffffff;
  --cream: #fffaf0;
  --teal: #3f7d63;
  --teal-dark: #2c5c48;
  --teal-wash: #eaf4ee;
  --amber: #e08a4e;
  --amber-ink: #8a4d1e;
  --amber-wash: #fdf1e0;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px rgba(31, 58, 51, .06);
  --shadow: 0 10px 30px rgba(31, 58, 51, .10);
  --shadow-lg: 0 24px 60px rgba(31, 58, 51, .14);
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background-color: #f7fbf8;
  background-image:
    radial-gradient(1100px 620px at 8% -8%, #dff0e8 0%, rgba(223, 240, 232, 0) 62%),
    radial-gradient(880px 520px at 96% -2%, #fdeeda 0%, rgba(253, 238, 218, 0) 58%),
    linear-gradient(180deg, #f6fbf8 0%, #fdf8ee 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* 淡淡的星点：呼应「星星小游戏」，纯 CSS，不增加请求 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 11% 16%, rgba(224, 138, 78, .30) 0 1.6px, transparent 1.7px),
    radial-gradient(circle at 27% 8%, rgba(63, 125, 99, .26) 0 1.4px, transparent 1.5px),
    radial-gradient(circle at 44% 22%, rgba(224, 138, 78, .22) 0 1.2px, transparent 1.3px),
    radial-gradient(circle at 62% 6%, rgba(63, 125, 99, .24) 0 1.6px, transparent 1.7px),
    radial-gradient(circle at 78% 20%, rgba(224, 138, 78, .26) 0 1.3px, transparent 1.4px),
    radial-gradient(circle at 91% 11%, rgba(63, 125, 99, .22) 0 1.5px, transparent 1.6px),
    radial-gradient(circle at 18% 34%, rgba(63, 125, 99, .18) 0 1.2px, transparent 1.3px),
    radial-gradient(circle at 84% 38%, rgba(224, 138, 78, .18) 0 1.2px, transparent 1.3px);
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: .01em; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--teal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 253, 251, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(31, 58, 51, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 14px;
  background: linear-gradient(160deg, #f3b46f, #e08a4e);
  color: #fffdf6;
  box-shadow: 0 4px 0 rgba(154, 84, 33, .28);
  transform: rotate(-6deg);
}
.brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.06rem; letter-spacing: .06em; }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .14em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--teal-wash); color: var(--teal-dark); }
.nav a[aria-current="page"] { background: var(--teal-wash); color: var(--teal-dark); }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 9vw, 96px) 0 clamp(36px, 6vw, 64px); }
.hero-inner { max-width: 720px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--amber-ink);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-wash);
}

.hero h1 {
  font-size: clamp(2.1rem, 6.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: .02em;
}
.hero h1 span {
  display: block;
  margin-top: .18em;
  background: linear-gradient(100deg, #e08a4e, #c96f3a 55%, #3f7d63);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--muted);
  max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  padding: 14px 24px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .18s ease;
}
.btn-primary {
  background: var(--teal);
  color: #fffdf6;
  box-shadow: 0 4px 0 var(--teal-dark), 0 12px 24px rgba(63, 125, 99, .22);
}
.btn-primary:hover { background: #458a6c; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal-dark); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink-soft);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: #bcd8cb; color: var(--teal-dark); transform: translateY(-1px); }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .55;
}

/* ---------- 通用区块 ---------- */

.section { padding: clamp(44px, 7vw, 76px) 0; }

.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); font-weight: 800; }
.section-lead { margin: 14px 0 0; color: var(--muted); font-size: 1.02rem; }

/* ---------- 卡片（游戏与其他作品共用） ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cfe4d9;
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--teal-wash);
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.game-card:hover .card-cover img { transform: scale(1.03); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--teal-dark);
  background: rgba(255, 253, 246, .92);
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  flex: 1;
}
.card-title { font-size: 1.3rem; font-weight: 800; }
.card-sub { margin: 0; color: var(--amber-ink); font-size: .92rem; font-weight: 600; }
.card-desc { margin: 0; color: var(--muted); font-size: .95rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; padding: 0; list-style: none; }
.tags li {
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-wash);
  border-radius: 999px;
  padding: 4px 11px;
}

.card-actions { margin-top: auto; padding-top: 6px; }

/* 主推游戏：宽卡片，桌面端左右分栏 */
.game-card.featured { grid-column: 1 / -1; flex-direction: row; }
.game-card.featured .card-cover { flex: 1 1 56%; aspect-ratio: 16 / 10; }
.game-card.featured .card-body { flex: 1 1 44%; justify-content: center; padding: clamp(24px, 3.4vw, 40px); }
.game-card.featured .card-title { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.game-card.featured .card-desc { font-size: 1rem; }

/* ---------- 关于 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-card h3::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 4px;
  background: linear-gradient(160deg, #f3b46f, #e08a4e);
  transform: rotate(12deg);
}
.about-card p { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- 定制开发 ---------- */

.services-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid #cfe4d9;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--teal-wash) 0%, var(--paper) 66%);
  box-shadow: var(--shadow-sm);
}
.services-teaser h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); font-weight: 800; }

.page-note { margin: 22px 0 0; color: var(--muted); font-size: .9rem; }

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 22px 24px 22px 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--teal-wash);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: .95rem;
}
.step h3 { font-size: 1.05rem; font-weight: 800; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }

.pricing-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.pricing-card h2 { font-size: clamp(1.25rem, 2.8vw, 1.6rem); font-weight: 800; }
.pricing-card p { margin: 12px 0 0; color: var(--muted); }

.notes { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.notes li { display: flex; gap: 10px; color: var(--muted); font-size: .92rem; }
.notes li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: .68em;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- 联系 ---------- */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 32px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid #f0e0c8;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--cream) 0%, var(--paper) 66%);
  box-shadow: var(--shadow-sm);
}
.contact-copy { max-width: 560px; }
.contact-copy h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); font-weight: 800; }
.contact-mail { flex: 0 0 auto; }

/* ---------- 页脚 ---------- */

.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 40px 0 46px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
}
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-size: 1.02rem; letter-spacing: .06em; }
.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 600; }
.footer-nav a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-nav a[aria-current="page"] { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }

.footer-note { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.9; }
.footer-note a { color: inherit; text-decoration: none; }
.footer-note a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */

.notfound { padding: clamp(60px, 12vw, 140px) 0; text-align: center; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; }
.notfound p { color: var(--muted); margin: 18px 0 28px; }

/* ---------- 响应式 ---------- */

@media (max-width: 760px) {
  .game-card.featured { flex-direction: column; }
  .game-card.featured .card-cover { aspect-ratio: 16 / 9; }
  .header-inner { min-height: 62px; }
  .nav a { padding: 8px 10px; font-size: .88rem; }
}

@media (max-width: 420px) {
  .brand-text small { display: none; }
  .btn { width: 100%; }
  .hero-actions { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
