/* 钢铁壁垒官方落地页样式。配色镜像游戏 PAL(cocos_game/assets/ui/pal.ts,单一来源)。
   移动优先、响应式;竖屏(430×880)与矮横屏(844×390)均不溢出。禁 Web 专属能力,纯展示。 */
:root {
  --bg: #0e1116; --bg-bot: #161c24;
  --steel: #1c222b; --steel-lite: #303a4a; --steel-dark: #0b0e13;
  --edge: #3a4554; --rivet-lite: #4e5a6a;
  --amber: #f2a93b; --amber-lite: #ffc247;
  --teal: #2fd0c6;
  --text: #ececec; --text-dim: #8c96a4;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-bot) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── 顶栏 ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(14px, 4vw, 32px);
  background: rgba(11, 14, 19, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--edge);
}
.brand { font-weight: 800; letter-spacing: 2px; font-size: clamp(14px, 3.6vw, 20px); }
.brand-mark { color: var(--amber); }
.brand-zh { color: var(--text-dim); font-weight: 600; letter-spacing: 3px; margin-left: 4px; }
.lang-switch { display: flex; gap: 6px; }
.lang-btn {
  cursor: pointer; border: 1px solid var(--edge); background: var(--steel);
  color: var(--text-dim); border-radius: 6px; padding: 4px 12px; font-size: 13px; font-weight: 700;
}
.lang-btn.active { color: var(--bg); background: var(--amber); border-color: var(--amber); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 78vh; display: flex; align-items: center;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 5vw, 48px);
}
.hero-art {
  position: absolute; inset: 0;
  background: url("./assets/hero.jpg") center / cover no-repeat;
  opacity: 0.5;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 30% 40%, transparent 0%, var(--bg) 78%),
              linear-gradient(180deg, rgba(14,17,22,0.35) 0%, var(--bg-bot) 96%);
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero-title {
  font-size: clamp(34px, 10vw, 76px); font-weight: 900; letter-spacing: clamp(2px, 1vw, 8px);
  line-height: 1.05; text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.hero-sub { color: var(--amber); font-weight: 800; letter-spacing: 6px; font-size: clamp(15px, 4vw, 24px); margin-top: 6px; }
.hero-tag { color: var(--text-dim); margin-top: 14px; font-size: clamp(13px, 3.4vw, 18px); max-width: 30em; }

/* ── CTA 按钮 ── */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 800; font-size: clamp(13px, 3.4vw, 16px);
  border: 1px solid var(--edge); background: var(--steel); color: var(--text);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--steel-dark); border-color: var(--amber-lite); box-shadow: 0 6px 20px rgba(242,169,59,0.28); }
.btn-primary:hover { background: var(--amber-lite); }
.btn-store { background: var(--steel-lite); }
/* 未配置链接的下载入口直接隐藏(不显示「即将上线」);主页与 app 同时上线,公开时只出现真实可用入口。
   [hidden] 默认 display:none 会被 .btn 的 inline-flex 覆盖,故显式压回。 */
.btn[hidden] { display: none; }

/* ── 通用 section ── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 32px); }
.section-alt { max-width: none; background: rgba(28,34,43,0.4); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(22px, 5.4vw, 34px); font-weight: 800; text-align: center; letter-spacing: 1px; }

/* ── 四大支柱卡片 ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: clamp(24px, 5vw, 44px); }
.card {
  background: linear-gradient(180deg, var(--steel) 0%, var(--steel-dark) 100%);
  border: 1px solid var(--edge); border-radius: 14px; padding: 22px;
  box-shadow: inset 0 1px 0 rgba(78,90,106,0.25);
}
.card-icon { color: var(--teal); font-size: 26px; margin-bottom: 8px; }
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--amber-lite); }
.card p { color: var(--text-dim); font-size: 14px; }

/* ── 模式 + 画廊 ── */
.modes-line { text-align: center; color: var(--teal); font-weight: 700; margin-top: 12px; font-size: clamp(13px, 3.6vw, 17px); }
/* 固定列数(竖屏 2、宽屏 3),配 6 张图 → 两种朝向都整行排满、无残行。 */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: clamp(24px, 5vw, 40px); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; background: var(--steel-dark); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }

/* ── 二次 CTA ── */
.cta-final { text-align: center; }
.cta-final .cta-group { justify-content: center; margin-top: 26px; }

/* ── 页脚 ── */
.footer { border-top: 1px solid var(--edge); padding: 32px 16px 48px; text-align: center; color: var(--text-dim); }
.foot-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.foot-links a { font-weight: 700; }
.foot-links a:hover { color: var(--amber); }
.foot-note { font-size: 12px; max-width: 34em; margin: 0 auto 8px; }
.foot-copy { font-size: 12px; letter-spacing: 1px; }

/* ── 法律页(隐私政策 / 服务条款):长文可读排版,复用同一钢铁配色 ── */
.legal { max-width: 760px; }
.legal .updated { color: var(--text-dim); font-size: 13px; margin-top: 8px; text-align: center; }
.legal h2 { font-size: clamp(16px, 4vw, 21px); color: var(--amber-lite); margin: 30px 0 10px; letter-spacing: .5px; }
.legal p { color: var(--text-dim); font-size: 15px; margin-bottom: 10px; }
.legal ul { color: var(--text-dim); font-size: 15px; padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--amber); font-weight: 700; }
.legal .back { display: inline-block; margin-top: 32px; }
/* 双语:一次只显示一个语言块(与顶栏 .lang-btn 联动;共享 landing 的 sb_lang) */
.lang-block[hidden] { display: none; }

/* ── 矮横屏(如 844×390):压缩 hero 高度,避免首屏被拉爆 ── */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 24px; padding-bottom: 24px; }
  .hero-title { font-size: clamp(28px, 7vw, 48px); }
}
