/* 像素水族馆官网 — 纯静态零框架。深水主题 + 像素点缀。 */
:root {
  --bg0: #061726;
  --bg1: #0a2b40;
  --bg2: #0e3a52;
  --ink: #eaf6f4;
  --muted: #a9c9c4;
  --aqua: #35e0c8;
  --aqua-soft: #8fd8cd;
  --coral: #ff9a62;
  --sand: #e8d5a8;
  --card: rgba(13, 44, 60, 0.66);
  --line: rgba(125, 205, 193, 0.18);
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -5%, rgba(21, 84, 105, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(15, 110, 99, 0.25), transparent 55%),
    linear-gradient(175deg, var(--bg0) 0%, var(--bg1) 48%, var(--bg2) 82%, #092334 100%);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--aqua-soft); text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 20, 31, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: 2px; }
.brand img { width: 34px; image-rendering: pixelated; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.brand small { color: var(--muted); font-weight: 400; letter-spacing: 3px; font-size: 11px; display: block; line-height: 1; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  letter-spacing: 1px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: linear-gradient(135deg, #2fd8b6, #1fae97); color: #04241d; box-shadow: 0 6px 22px rgba(47, 216, 182, 0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(47, 216, 182, 0.45); }
.btn-ghost { border-color: rgba(140, 226, 214, 0.45); color: var(--aqua-soft); }
.btn-ghost:hover { background: rgba(47, 216, 182, 0.08); }
.btn-lg { padding: 14px 30px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.kicker { color: var(--aqua); letter-spacing: 6px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.2; letter-spacing: 1px; font-weight: 800; }
h1 .grad {
  background: linear-gradient(180deg, #f2fffd 0%, #9fe8dc 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.hero .sub { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 34em; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: #6f9a94; }
.fish-tag { color: var(--coral); }

/* 气泡 */
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bubble {
  position: absolute; bottom: -40px; border-radius: 50%;
  border: 2px solid rgba(170, 235, 226, 0.22);
  background: radial-gradient(circle at 30% 30%, rgba(210, 250, 245, 0.10), transparent 60%);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  8% { opacity: .8; }
  100% { transform: translateY(-78vh) scale(1.06); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; opacity: .25; } html { scroll-behavior: auto; } }

/* 手机样机 */
.phone {
  position: relative; z-index: 1;
  border-radius: 34px; overflow: hidden;
  border: 5px solid #123240;
  outline: 1px solid rgba(160, 230, 220, 0.28);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(31, 174, 151, 0.12);
  background: #082435;
}
.phone img { display: block; width: 100%; height: auto; }
.phone::after {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 14px; border-radius: 10px; background: #08131c;
}
.float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ---------- 数字带 ---------- */
.stats { margin: 34px 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 10px; text-align: center;
}
.stat b { display: block; font-size: 30px; color: var(--aqua); letter-spacing: 1px; }
.stat span { font-size: 13px; color: var(--muted); letter-spacing: 2px; }

/* ---------- 通用 Section ---------- */
section { padding: 66px 0; }
.sec-head { max-width: 40em; margin-bottom: 36px; }
.sec-head .tag { color: var(--aqua); letter-spacing: 5px; font-size: 13px; font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: 1px; line-height: 1.35; margin-top: 8px; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.rev .shot-col { order: 2; }
.feat-list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.feat-list li { padding-left: 30px; position: relative; color: var(--ink); }
.feat-list li::before {
  content: "◆"; position: absolute; left: 4px; top: 2px; color: var(--aqua); font-size: 12px;
}
.feat-list b { color: var(--aqua-soft); }
.feat-list p { color: var(--muted); font-size: 15px; }

/* 截图框 */
.shot-col { display: flex; justify-content: center; }
.shot { width: min(340px, 82vw); }
.shot img { border-radius: 26px; }
.shot figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: #6f9a94; letter-spacing: 1px; }

/* 营销裁切框：素材是 720×1280 整屏原图，展示时取精华区（--ar 定形状，--pos 定取景位） */
.cropbox {
  display: block; width: 100%; overflow: hidden; border-radius: 26px;
  background: #082435; aspect-ratio: var(--ar, 4 / 5);
  border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}
.cropbox img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; }

/* hero 手机壳取景窗：壳内展示精裁精华图（4/5），而非整屏 HUD */
.phone.window { aspect-ratio: 3 / 4; }
.phone.window img { width: 100%; height: 100%; object-fit: cover; }

/* 精裁卡片图（离线已裁好构图，原比例展示） */
.ph {
  width: 100%; height: auto; display: block; border-radius: 26px;
  border: 1px solid var(--line); background: #082435;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

/* hero 点缀鱼 */
.hero-spr { position: absolute; image-rendering: pixelated; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); opacity: .9; }

/* 生境四联 */
.biotope-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.biotope-grid .shot { width: 100%; }
.biotope-grid figure { margin: 0; }
.bio-card {
  margin-top: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px;
}
.bio-card b { color: var(--aqua-soft); font-size: 15px; display: block; }
.bio-card span { font-size: 13px; color: var(--muted); }

/* 双列 UI 展示 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; justify-items: center; }
.duo .shot { width: min(300px, 76vw); }

/* 平台带 */
.platform-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.plat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.plat.ready { border-color: rgba(47, 216, 182, 0.4); box-shadow: 0 0 40px rgba(31, 174, 151, 0.08) inset; }
.plat h3 { font-size: 20px; letter-spacing: 1px; }
.plat p { color: var(--muted); font-size: 14px; }
.plat .btn { align-self: flex-start; margin-top: 8px; }
.badge-soon { font-size: 12px; color: var(--sand); border: 1px dashed rgba(232, 213, 168, 0.45); padding: 3px 10px; border-radius: 999px; letter-spacing: 2px; }

/* FAQ 预告 */
.faq-teaser { display: grid; gap: 14px; max-width: 46em; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
}
details summary { cursor: pointer; font-weight: 600; letter-spacing: 0.5px; }
details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- 玩法页 ---------- */
.page-head { padding: 60px 0 10px; }
.bcrumb { font-size: 13px; color: #6f9a94; letter-spacing: 1px; margin-bottom: 14px; }
.bcrumb a { color: var(--aqua-soft); }
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.toc { position: sticky; top: 80px; display: grid; gap: 4px; font-size: 14px; }
.toc a { color: var(--muted); padding: 7px 12px; border-radius: 10px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: rgba(47, 216, 182, 0.06); }
.toc a.cur { color: var(--aqua); border-left-color: var(--aqua); background: rgba(47, 216, 182, 0.07); }
article h2 { margin-top: 18px; padding-top: 34px; }
article h3 { margin-top: 26px; font-size: 19px; color: var(--aqua-soft); letter-spacing: 1px; }
article p { color: #c9e2de; margin-top: 12px; max-width: 44em; }
article p b, article li b { color: var(--ink); }
article ul, article ol { margin: 12px 0 0 22px; color: #c9e2de; max-width: 42em; }
article li { margin-top: 6px; }
.note {
  margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-size: 14px;
  background: rgba(255, 154, 98, 0.08); border: 1px solid rgba(255, 154, 98, 0.3); color: #f4cdb4;
  max-width: 44em;
}
.tip {
  margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-size: 14px;
  background: rgba(53, 224, 200, 0.07); border: 1px solid rgba(53, 224, 200, 0.28); color: #b7ecdf;
  max-width: 44em;
}
table { margin-top: 16px; border-collapse: collapse; width: 100%; max-width: 44em; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--aqua-soft); font-weight: 600; letter-spacing: 1px; }
td { color: #c9e2de; }
td.num { font-variant-numeric: tabular-nums; }
.inline-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.inline-shots .shot { width: 100%; }
.inline-shots img { border-radius: 18px; }
.duo-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.duo-shots .shot { width: 100%; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; margin-top: 40px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 2px; }
.foot-brand img { width: 30px; image-rendering: pixelated; }
.foot-note { color: #6f9a94; font-size: 13px; margin-top: 10px; max-width: 30em; }
.foot-links { display: flex; gap: 40px; font-size: 14px; }
.foot-links div { display: grid; gap: 8px; }
.foot-links b { color: var(--muted); letter-spacing: 2px; font-size: 12px; }
.foot-links a { color: #9cc4be; }
.copy { margin-top: 30px; color: #55807a; font-size: 12px; letter-spacing: 1px; }

/* 滚动浮现（渐进增强：仅 JS 可用时才初始隐藏，爬虫/无 JS 环境内容恒可见） */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-spr { display: none; }
  .hero-grid, .split, .duo { grid-template-columns: 1fr; }
  .split.rev .shot-col { order: 0; }
  .biotope-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(2, 1fr); display: grid; margin-bottom: 10px; }
  .platform-band { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero .phone-col { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .nav-links { gap: 12px; }
  .nav-links .hide-s { display: none; }
  .biotope-grid { grid-template-columns: 1fr; }
  .inline-shots { grid-template-columns: 1fr; }
  .duo-shots { grid-template-columns: 1fr; }
  .stats b { font-size: 24px; }
}
