/* ============================================================
   HK Life: Legacy 香港人生：傳承 — 官方網站樣式
   純 CSS，無外部依賴
   ============================================================ */

/* ---------- 變數 ---------- */
:root {
  --navy-900: #0e1630;
  --navy-800: #16203f;
  --navy-700: #1f2c52;
  --navy-600: #2a3a68;
  --ink: #101a38;

  --sunset-pink: #ff7aa8;
  --sunset-orange: #ffab6b;
  --sunset-peach: #ffd3a1;
  --sunset-glow: #ffe9d2;

  --text-main: #f4f0ff;
  --text-soft: #cfd3ec;
  --text-dark: #101a38;
  --text-dark-soft: #3c4668;

  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --maxw: 1080px;

  --font-body: "PingFang HK", "PingFang TC", "Microsoft JhengHei",
               "Noto Sans TC", "Noto Sans HK", -apple-system,
               "Segoe UI", sans-serif;
}

/* ---------- 重設 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sunset-peach);
}

a:hover {
  color: var(--sunset-glow);
}

/* 鍵盤焦點狀態 */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sunset-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- SVG 線條圖示系統 ----------
   全站統一：24x24 viewBox、currentColor、stroke-width 2、
   圓角端點，不依賴任何外部圖示 CDN 或 JavaScript 圖示庫 */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* ---------- 無障礙輔助 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--sunset-orange);
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   導覽列
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 22, 48, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* iPhone 安全區（瀏海／圓角螢幕） */
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-en {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-zh {
  white-space: nowrap;
}

.brand-zh {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* 導覽列右側：語言切換＋選單按鈕 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 3;
  flex-shrink: 0;
}

/* 頂部社交圖示按鈕（官方 glyph，40x40 可點擊範圍） */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.social-btn img {
  display: block;
  height: 22px;
  width: auto;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-current {
  padding: 3px 12px;
  border-radius: 999px;
  color: var(--text-dark);
  background: linear-gradient(100deg, var(--sunset-peach), var(--sunset-orange));
}

.lang-soon {
  padding: 3px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  opacity: 0.55;
  cursor: not-allowed;
}

/* 可點擊的另一語言連結 */
.lang-link {
  padding: 3px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.12);
}

/* 選單按鈕（手機） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  order: 2;
}

.nav-menu li {
  flex-shrink: 0;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sunset-peach);
}

/* 手機選單內的社交連結（桌面導覽改用圖示按鈕，故 ≥1024px 隱藏） */
.nav-menu .nav-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 600;
}

.nav-menu .nav-social img {
  display: block;
}

@media (min-width: 1024px) {
  .nav-menu .nav-social {
    display: none;
  }
}

/* 英文版導覽標籤較長：1024–1220px 之間稍為收窄，避免溢出 */
@media (min-width: 1024px) and (max-width: 1220px) {
  html[lang="en"] .nav-menu a {
    padding: 8px 8px;
    font-size: 0.86rem;
  }

  html[lang="en"] .nav {
    gap: 10px;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 70% at 50% 115%,
      rgba(255, 122, 168, 0.55) 0%,
      rgba(255, 171, 107, 0.35) 35%,
      rgba(14, 22, 48, 0) 70%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 60%, #2b2350 100%);
  text-align: center;
  padding: 96px 20px 120px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.hero-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
  border-radius: 26px;
  box-shadow: 0 10px 34px rgba(255, 122, 168, 0.35);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sunset-peach);
  border: 1px solid rgba(255, 211, 161, 0.4);
  border-radius: 999px;
  background: rgba(255, 211, 161, 0.08);
}

.hero-title {
  margin: 0 0 24px;
  line-height: 1.2;
}

.hero-title-en {
  display: block;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  /* 修正：background-clip: text 令漸變只畫在行高範圍內，
     行高太緊時 g / y 的下伸部會被裁走。
     加高行高並以少量 padding-bottom 擴大背景範圍即可。 */
  line-height: 1.2;
  padding-bottom: 0.08em;
  overflow: visible;
  background: linear-gradient(100deg, var(--sunset-glow) 10%, var(--sunset-orange) 55%, var(--sunset-pink) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-zh {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  font-weight: 800;
  color: var(--text-main);
}

.hero-desc {
  margin: 0 auto 36px;
  max-width: 560px;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-note {
  margin: 22px 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* 裝飾星星（四角星 SVG） */
.hero-stars .star {
  position: absolute;
  color: rgba(255, 211, 161, 0.5);
  animation: twinkle 4s ease-in-out infinite;
}

.star-1 { top: 14%; left: 12%; width: 16px; animation-delay: 0s; }
.star-2 { top: 24%; right: 14%; width: 24px; animation-delay: 0.9s; }
.star-3 { top: 58%; left: 7%; width: 20px; animation-delay: 1.7s; }
.star-4 { top: 68%; right: 9%; width: 16px; animation-delay: 2.4s; }
.star-5 { top: 10%; right: 40%; width: 13px; animation-delay: 3.1s; }

.hero-stars .star svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* ============================================================
   按鈕
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: var(--text-dark);
  background: linear-gradient(100deg, var(--sunset-peach), var(--sunset-orange) 55%, var(--sunset-pink));
  box-shadow: 0 8px 24px rgba(255, 138, 120, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 138, 120, 0.5);
  color: var(--text-dark);
}

.btn-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

/* ============================================================
   通用區段
   ============================================================ */
.section {
  /* 響應式區段間距：桌面 84px，手機約 48px */
  padding: clamp(48px, 8vw, 84px) 20px;
}

.section-alt {
  background: var(--navy-800);
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-title {
  margin: 0 0 32px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900;
  text-align: center;
}

.section-title .section-star {
  color: var(--sunset-orange);
  margin-right: 10px;
}

.section-lead {
  margin: -12px auto 36px;
  max-width: 640px;
  text-align: center;
  color: var(--text-soft);
}

/* ---------- 主題宣傳圖 ---------- */
.section-promo {
  padding-top: 0;
  margin-top: -56px;
  position: relative;
  z-index: 3;
}

.promo-figure {
  margin: 0;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.promo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 211, 161, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: var(--navy-800);
}

.promo-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.promo-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------- 遊戲介紹 ---------- */
.intro-text {
  max-width: 720px;
  margin: 0 auto;
}

.intro-text p {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ---------- 開發者的話 ---------- */
.dev-statement {
  max-width: 640px;
  margin: 44px auto 0;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}

.dev-statement-star {
  display: block;
  margin: 0 auto 10px;
  color: var(--sunset-orange);
}

.dev-statement h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sunset-peach);
}

.dev-statement p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

/* 創作理念：引文為視覺重心 */
.dev-statement .dev-quote {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 800;
  line-height: 1.8;
  padding-bottom: 0.06em;
  color: var(--text-main);
  background: linear-gradient(100deg, var(--sunset-glow) 10%, var(--sunset-orange) 60%, var(--sunset-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.dev-statement .dev-note {
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto 18px;
}

.dev-statement .dev-credit {
  font-size: 0.88rem;
}

/* ---------- 特色卡片 ---------- */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 171, 107, 0.45);
}

.feature-icon {
  display: inline-block;
  color: var(--sunset-orange);
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--sunset-peach);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ---------- 遊戲畫面（真實截圖畫廊） ---------- */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

@media (min-width: 1100px) {
  .screenshot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shot {
  margin: 0;
}

.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: #0a1024;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.shot-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 171, 107, 0.45);
}

.shot-btn img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: contain;
}

.shot figcaption {
  margin-top: 12px;
  text-align: center;
}

.shot figcaption strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.shot figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ---------- 截圖放大檢視 Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 16, 36, 0.93);
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(92vw, 460px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- 社群里程碑 ---------- */
.section-milestone {
  background:
    radial-gradient(ellipse 100% 90% at 50% 120%,
      rgba(255, 122, 168, 0.4) 0%,
      rgba(255, 171, 107, 0.22) 40%,
      rgba(22, 32, 63, 0) 75%),
    var(--navy-800);
}

.milestone-inner {
  text-align: center;
  max-width: 680px;
}

.milestone-star {
  display: block;
  margin: 0 auto 14px;
  color: var(--sunset-orange);
}

.milestone-title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 4.4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.25;
  padding-bottom: 0.08em;
  background: linear-gradient(100deg, var(--sunset-glow), var(--sunset-orange) 60%, var(--sunset-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.milestone-desc {
  margin: 0 0 30px;
  color: var(--text-soft);
}

/* ---------- 追蹤最新消息 ---------- */
.news-inner {
  text-align: center;
  max-width: 620px;
}

.news-desc {
  margin: 0 0 30px;
  color: var(--text-soft);
}

.social-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* ---------- 手機版 ---------- */
.mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 640px;
  margin: 0 auto 30px;
}

.mobile-card {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
}

.mobile-icon {
  display: block;
  margin: 0 auto 10px;
  color: var(--sunset-peach);
}

.mobile-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.mobile-status {
  display: inline-block;
  margin: 0;
  padding: 5px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sunset-peach);
  border: 1px solid rgba(255, 211, 161, 0.4);
  border-radius: 999px;
  background: rgba(255, 211, 161, 0.08);
}

.mobile-note {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.mobile-note + .mobile-note {
  margin-top: 8px;
}

/* ============================================================
   頁尾
   ============================================================ */
.site-footer {
  background: #0a1024;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 20px 30px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.footer-title {
  margin: 0 0 4px;
  font-weight: 800;
}

.footer-studio {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

/* 頁尾社交連結：圖示＋文字整體可點擊 */
.footer-nav .footer-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-nav .footer-social img {
  display: block;
}

.footer-nav a:hover {
  color: var(--sunset-peach);
  text-decoration: underline;
}

.footer-copy {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 0.85rem;
  text-align: center;
}

/* ============================================================
   內容頁（privacy / support / terms / 404）
   ============================================================ */
.page-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 64px) 20px clamp(56px, 9vw, 90px);
}

.page-title {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 900;
  margin: 0 0 8px;
}

.page-subtitle {
  color: var(--text-soft);
  margin: 0 0 34px;
}

.page-main h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 40px 0 12px;
  color: var(--sunset-peach);
}

.page-main p,
.page-main li {
  color: var(--text-soft);
}

.page-main ul {
  padding-left: 22px;
}

.draft-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: inherit;
  background: rgba(255, 171, 107, 0.12);
  border: 1px solid rgba(255, 171, 107, 0.45);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 34px;
}

.draft-banner strong {
  color: var(--sunset-peach);
}

.draft-icon {
  color: var(--sunset-orange);
  margin-top: 3px;
}

/* 開發狀態橫額（資訊性質，非警告） */
.status-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 211, 161, 0.28);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 34px;
}

.status-banner strong {
  color: var(--sunset-peach);
}

.status-banner p {
  margin: 0;
}

.status-icon {
  color: var(--sunset-peach);
  margin-top: 3px;
  flex-shrink: 0;
}

/* 法律頁底部資料行 */
.legal-meta {
  margin: 40px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: var(--text-soft);
}

.legal-meta + .legal-meta {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
}

.draft-banner p {
  margin: 0;
}

.back-home {
  display: inline-block;
  margin-top: 40px;
}

/* ---------- 合作與服務頁 ---------- */
.wordmark {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--sunset-peach);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.97rem;
}

.service-list .icon {
  color: var(--sunset-orange);
  margin-top: 2px;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.work-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--sunset-peach);
}

.work-card p {
  margin: 0 0 10px;
}

.process-list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.process-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 52px;
}

.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-dark);
  background: linear-gradient(100deg, var(--sunset-peach), var(--sunset-orange));
  border-radius: 50%;
}

.process-list li strong {
  color: var(--text-main);
}

/* ---------- 支持遊戲開發頁 ---------- */
.paycode-box {
  max-width: 340px;
  margin: 26px auto;
  text-align: center;
  border: 2px dashed rgba(255, 211, 161, 0.4);
  border-radius: var(--radius-lg);
  padding: 44px 26px;
  background: linear-gradient(160deg, rgba(255, 122, 168, 0.08), rgba(255, 171, 107, 0.05));
}

.paycode-box .icon {
  color: rgba(255, 211, 161, 0.7);
  margin-bottom: 12px;
}

.paycode-box p {
  margin: 0;
  font-weight: 700;
  color: var(--text-main);
}

.paycode-box .paycode-note {
  margin-top: 8px;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.support-links {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.support-links .icon {
  color: var(--sunset-orange);
}

.support-links img {
  display: block;
}

.voluntary-note {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 26px 0;
}

/* ---------- 404 ---------- */
.notfound-main {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.notfound-code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 900;
  margin: 0;
  line-height: 1.15;
  padding-bottom: 0.05em;
  background: linear-gradient(100deg, var(--sunset-glow), var(--sunset-orange) 55%, var(--sunset-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound-main h1 {
  margin: 16px 0 10px;
  font-size: 1.5rem;
}

.notfound-main p {
  color: var(--text-soft);
  margin: 0 0 30px;
}

/* ============================================================
   響應式
   ============================================================ */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≤1023px：導覽項目放不下時直接轉用漢堡選單，避免壓縮或逐字換行 */
@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(14, 22, 48, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px 14px;
    font-size: 1rem;
  }
}

/* ≤767px：精簡頂部——[Logo＋名稱] [繁中｜EN] [選單]
   IG／Threads 圖示收入漢堡選單（選單內已有文字連結），
   避免與品牌名互相擠壓 */
@media (max-width: 767px) {
  .nav {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 10px;
  }

  .social-btn {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .brand-en {
    font-size: 0.95rem;
  }

  .brand-zh {
    font-size: 0.72rem;
  }
}

/* ≤640px：手機版面精簡 */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  /* --- Hero：大幅減少首屏佔用 --- */
  .hero {
    padding: 40px 20px 64px;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: 0 6px 22px rgba(255, 122, 168, 0.3);
  }

  .hero-eyebrow {
    margin-bottom: 14px;
    padding: 5px 14px;
    font-size: 0.78rem;
  }

  .hero-title {
    margin-bottom: 16px;
  }

  .hero-title-en {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-title-zh {
    margin-top: 6px;
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 15px 22px;
    font-size: 0.98rem;
  }

  .hero-note {
    margin-top: 14px;
    font-size: 0.85rem;
  }

  .section-promo {
    margin-top: -32px;
  }

  /* --- 單欄排版 --- */
  .feature-grid,
  .screenshot-grid,
  .mobile-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px 22px;
  }

  /* --- 遊戲畫面：直向截圖限制闊度，避免一張佔滿整個畫面 --- */
  .screenshot-grid {
    gap: 22px;
  }

  .shot {
    width: 100%;
    max-width: 250px;
    margin-inline: auto;
  }

  .shot figcaption {
    margin-top: 10px;
  }

  .shot figcaption strong {
    font-size: 0.95rem;
  }

  .shot figcaption span {
    font-size: 0.82rem;
  }

  .social-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 15px 22px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* 極窄螢幕（320px 級別）安全處理 */
@media (max-width: 380px) {
  .nav {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    gap: 8px;
  }

  .brand-zh {
    display: none;
  }

  .brand-en {
    font-size: 0.9rem;
  }

  .lang-switch {
    font-size: 0.76rem;
  }

  .lang-current,
  .lang-soon,
  .lang-link {
    padding: 2px 8px;
  }

  .shot {
    max-width: 230px;
  }

  .hero {
    padding: 30px 16px 48px;
  }

  .hero-logo {
    width: 68px;
    height: 68px;
    border-radius: 15px;
    margin-bottom: 12px;
  }

  .hero-desc {
    margin-bottom: 20px;
  }

  .hero-title-en {
    font-size: clamp(1.8rem, 10vw, 2.1rem);
  }
}

/* ============================================================
   減少動態（無障礙）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
