/* ==========================================================================
   乐童游戏 · 官网样式表
   现代商务风：深墨蓝 + 品牌蓝 + 浅灰画布，克制边框、充分留白
   单一文件、无外部依赖、无 CDN 字体
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
:root {
  /* 色板 */
  --ink: #0b1220;
  --ink-2: #23304a;
  --text: #35425c;
  --muted: #6b7891;
  --line: #e6e9f1;
  --line-strong: #d3d9e6;
  --bg: #f7f8fb;
  --bg-warm: #eceff6;
  --card: #ffffff;

  --brand: #2b59d4;
  --brand-dark: #1c3fa6;
  --brand-light: #4e7bf0;
  --brand-tint: #eef3ff;
  --brand-tint-2: #dfe8ff;

  /* 分类色 */
  --c-kids: #1d7fd0;
  --c-kids-tint: #e9f3fd;
  --c-creative: #6d4fd6;
  --c-creative-tint: #f1ecff;
  --c-culture: #b06a1f;
  --c-culture-tint: #fdf1e3;

  /* 排版 */
  --font: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas,
    monospace;

  /* 尺寸 */
  --container: 1180px;
  --gutter: 24px;
  --header-h: 68px;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;

  /* 阴影 */
  --shadow-s: 0 1px 2px rgba(11, 18, 32, 0.04),
    0 2px 8px rgba(11, 18, 32, 0.04);
  --shadow: 0 2px 6px rgba(11, 18, 32, 0.05), 0 12px 28px rgba(11, 18, 32, 0.07);
  --shadow-l: 0 6px 18px rgba(11, 18, 32, 0.07),
    0 28px 64px rgba(11, 18, 32, 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-tint-2);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  background: var(--brand);
  color: #fff;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   3. 布局工具
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 860px;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--warm {
  background: var(--bg-warm);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.9vw, 2.25rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
}

/* 只有 eyebrow + h2 的简化版块，去掉 h2 多余下边距 */
.section-head > :last-child {
  margin-bottom: 0;
}

.section-foot {
  margin-top: 40px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(43, 89, 212, 0.24);
}

.btn--primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(43, 89, 212, 0.3);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--light {
  background: #fff;
  color: var(--brand-dark);
}

.btn--light:hover {
  background: var(--brand-tint);
}

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn svg {
  flex: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 0.9375rem;
  font-weight: 600;
}

.link-arrow svg {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. 页头
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 248, 251, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(43, 89, 212, 0.28);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand__en {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav a:hover {
  color: var(--brand);
  background: var(--brand-tint);
}

.nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.header-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 8px;
  color: var(--ink);
}

.nav-toggle:hover {
  background: var(--brand-tint);
}

/* --------------------------------------------------------------------------
   6. 首页 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background: radial-gradient(
      52% 60% at 18% 8%,
      rgba(78, 123, 240, 0.16),
      transparent 62%
    ),
    radial-gradient(46% 54% at 82% 0%, rgba(43, 89, 212, 0.13), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 52% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 52% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand) 8%, #7a5cf0 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 30em;
  margin-top: 24px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* Hero 手机群 */
.hero__showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  height: 392px;
}

.hero__showcase::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(78, 123, 240, 0.22),
    rgba(122, 92, 240, 0.06) 55%,
    transparent 72%
  );
  filter: blur(6px);
}

.hero-phone {
  position: relative;
  width: 30%;
  min-width: 118px;
  transform: translateY(16px);
}

.hero-phone--mid {
  width: 34%;
  transform: translateY(-14px);
  z-index: 2;
}

.hero-phone--left {
  transform: translateY(16px) rotate(-4deg);
}

.hero-phone--right {
  transform: translateY(16px) rotate(4deg);
}

/* --------------------------------------------------------------------------
   7. 手机外框（可复用）
   -------------------------------------------------------------------------- */
.phone {
  position: relative;
  padding: 7px;
  border-radius: 26px;
  background: linear-gradient(160deg, #1b2434, #0b1220 42%, #2a3448);
  box-shadow: var(--shadow-l);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 5px;
  border-radius: 999px;
  background: #0b1220;
  transform: translateX(-50%);
  opacity: 0.9;
}

.phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 18.6;
  border-radius: 20px;
  background: #0e1524;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.24s var(--ease);
}

/* --------------------------------------------------------------------------
   8. 图片兜底（外链失效时不留破图）
   -------------------------------------------------------------------------- */
.shot {
  position: relative;
  overflow: hidden;
  background: #eef1f7;
}

.shot__fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(150deg, #1f3a8a, #2b59d4 46%, #6f5bd8);
  color: #fff;
  text-align: center;
}

.shot.is-empty .shot__fallback {
  display: flex;
}

/* 兜底生效时隐藏原图，避免 alt 文字与占位层重叠 */
.shot.is-empty img {
  display: none;
}

/* 列表筛选隐藏态（用 class 而非 hidden，避免被 display:flex 覆盖） */
.app-card.is-filtered {
  display: none;
}

.shot__mono {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.125rem;
  font-weight: 700;
}

.shot__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.92;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. 应用卡片
   -------------------------------------------------------------------------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow-s);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease),
    border-color 0.26s var(--ease);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.app-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-warm);
}

.app-card__media .shot {
  position: absolute;
  inset: 0;
}

.app-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}

.app-card:hover .app-card__media img {
  transform: scale(1.035);
}

.app-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(11, 18, 32, 0.16) 100%
  );
  pointer-events: none;
}

.app-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.12);
}

.app-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.app-card__title {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.app-card__desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.app-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
}

.app-card__tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.app-card__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.app-card:hover .app-card__go {
  background: var(--brand);
  color: #fff;
  transform: translateX(2px);
}

/* 分类色标签 */
.tag--kids {
  color: var(--c-kids);
  background: var(--c-kids-tint);
}

.tag--creative {
  color: var(--c-creative);
  background: var(--c-creative-tint);
}

.tag--culture {
  color: var(--c-culture);
  background: var(--c-culture-tint);
}

/* --------------------------------------------------------------------------
   10. 分类卡片
   -------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cat-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-tint-2);
  box-shadow: var(--shadow);
}

.cat-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--brand-tint);
  color: var(--brand);
}

.cat-card__name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.125rem;
}

.cat-card__desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   11. 关于 / 价值主张
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.about-grid h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 18px;
}

.about-grid p {
  color: var(--text);
}

.about-grid p + p {
  margin-top: 16px;
  color: var(--muted);
}

.value-list {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.value-item {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: var(--card);
}

.value-item__num {
  flex: none;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  padding-top: 3px;
}

.value-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.value-item p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   12. CTA 横幅
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 56px 56px 56px;
  border-radius: 26px;
  background: linear-gradient(122deg, #0d1a35, #16306b 48%, #2b59d4 130%);
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 152, 255, 0.35), transparent 68%);
}

.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9375rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
  color: #fff;
}

.cta-band .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --------------------------------------------------------------------------
   13. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 68px 0 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 52px;
}

.site-footer__brand p {
  max-width: 30em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.site-footer h3 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer li a,
.site-footer li span {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.16s var(--ease);
}

.site-footer li a:hover {
  color: var(--brand);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ICP 备案：与版权同行，前置工信部备案图标 */
.site-footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.site-footer__icp {
  display: inline-block;
  color: inherit;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.site-footer__icp:hover {
  color: var(--brand);
}

.site-footer__icp img {
  width: 18px;
  height: 18px;
  margin: 2px 6px 0 0;
}

.site-footer__bottom a:hover {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   14. 内页：面包屑 + 页头
   -------------------------------------------------------------------------- */
.page-head {
  padding: 40px 0 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb svg {
  opacity: 0.5;
}

.page-title {
  margin-top: 22px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.page-sub {
  max-width: 40em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   15. 应用列表页：筛选
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 38px;
}

.filter-chip {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.18s var(--ease);
}

.filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(43, 89, 212, 0.22);
}

.filter-chip span {
  margin-left: 6px;
  opacity: 0.66;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  display: none;
  padding: 72px 0;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   16. 应用详情页
   -------------------------------------------------------------------------- */
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
  padding: 28px 0 84px;
}

.detail-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.detail-hero h1 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -0.025em;
}

.detail-hero__tagline {
  margin-top: 14px;
  color: var(--brand-dark);
  font-size: 1.0625rem;
  font-weight: 500;
}

.detail-hero__intro {
  margin-top: 20px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
}

/* hero 内的三条亮点胶囊，替代整段简介（正文里有完整介绍） */
.detail-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.detail-hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.03);
}

.detail-hero__points svg {
  flex: none;
  color: var(--brand);
}

.detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.detail-hero__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.meta-list__item {
  padding: 14px 18px;
  background: #fff;
}

.meta-list__k {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.meta-list__v {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

/* 详情页右侧手机 + 缩略图 */
.detail-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.detail-showcase .phone {
  width: min(292px, 100%);
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.thumb {
  position: relative;
  width: 52px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.thumb .shot {
  aspect-ratio: 9 / 16;
  border-radius: 6px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.thumb[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-tint-2);
}

.thumb .shot__mono {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 0.625rem;
}

.thumb .shot__label {
  display: none;
}

/* 内容区块 */
.content-block {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.prose {
  max-width: 68ch;
}

.prose p {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.9;
}

.prose p + p {
  margin-top: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-item {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.03);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-s);
}

.feature-item__num {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.feature-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* 截图滑动区 */
.gallery {
  display: flex;
  gap: 20px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 8px var(--gutter) 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
  height: 6px;
}

.gallery::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-strong);
}

.gallery::-webkit-scrollbar-track {
  background: transparent;
}

.gallery__item {
  flex: none;
  width: 208px;
  scroll-snap-align: start;
}

.gallery__item .phone {
  padding: 5px;
  border-radius: 20px;
}

.gallery__item .phone__screen {
  border-radius: 16px;
}

.gallery .shot__mono {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
}

/* 多张同时失效时给占位层换几个渐变，避免整排完全一样 */
.gallery__item:nth-child(2n) .shot__fallback {
  background: linear-gradient(150deg, #24437f, #3f6fd8 52%, #8f6ad4);
}

.gallery__item:nth-child(3n) .shot__fallback {
  background: linear-gradient(150deg, #16264a, #2b59d4 58%, #5a7fe0);
}

.gallery__hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* 相关应用 */
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.related .app-card__media {
  aspect-ratio: 16 / 9;
}

/* 上下篇 */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.pager__link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 46%;
}

.pager__label {
  color: var(--muted);
  font-size: 0.75rem;
}

.pager__name {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.pager__link:hover .pager__name {
  color: var(--brand);
}

.pager__link--next {
  margin-left: auto;
  text-align: right;
}

/* 免责声明 */
.disclaimer {
  margin-top: 44px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.disclaimer strong {
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   17. 通用内容页（关于 / 联系 / 404）
   -------------------------------------------------------------------------- */
.doc {
  padding: 20px 0 88px;
}

.doc h2 {
  margin: 42px 0 16px;
  font-size: 1.25rem;
}

.doc h2:first-child {
  margin-top: 8px;
}

.doc p {
  color: var(--text);
  line-height: 1.9;
}

.doc p + p {
  margin-top: 14px;
}

.doc ul {
  margin-top: 12px;
  padding-left: 2px;
}

.doc li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.9;
}

.doc li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.contact-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-card dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.contact-card dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
}

.contact-card dd a {
  color: var(--brand);
}

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--brand-tint);
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.8;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 56vh;
  padding: 60px 0;
  text-align: center;
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--brand-tint-2);
  line-height: 1;
}

.error-page h1 {
  margin-top: 8px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.error-page p {
  margin-top: 12px;
  color: var(--muted);
}

.error-page .btn {
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   18. 滚动揭示动效
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   19. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__showcase {
    height: 348px;
  }

  .hero-phone {
    width: 28%;
  }

  .app-grid,
  .cat-grid,
  .feature-grid,
  .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .detail-hero {
    padding-bottom: 56px;
  }

  .detail-showcase {
    order: -1;
  }

  .detail-showcase .phone {
    width: min(260px, 74%);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .cta-band {
    padding: 44px 38px;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav a {
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 1rem;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .section {
    padding: 66px 0;
  }

  .hero {
    padding: 52px 0 66px;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 18px;
  }

  .section {
    padding: 52px 0;
  }

  .app-grid,
  .cat-grid,
  .feature-grid,
  .related,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__showcase {
    height: 330px;
    gap: 8px;
  }

  .hero-phone--left,
  .hero-phone--right {
    display: none;
  }

  .hero-phone {
    width: 58%;
  }

  .hero-phone--mid {
    width: 62%;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .cta-band {
    padding: 34px 22px;
    border-radius: 18px;
  }

  .cta-band__actions .btn {
    flex: 1 1 auto;
  }

  .site-footer {
    padding-top: 52px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery__item {
    width: 168px;
  }

  .content-block {
    padding: 52px 0;
  }

  .pager__link {
    max-width: 100%;
  }

  .pager__link--next {
    margin-left: 0;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   20. 动效降级 / 打印
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .detail-showcase,
  .gallery__hint,
  .pager {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
