:root {
  --bg: #0b0b10;
  --panel: #14141c;
  --panel-2: #1b1b26;
  --ink: #f4f1ec;
  --muted: #9a96a8;
  --line: rgba(255, 255, 255, 0.08);
  --pink: #ff4d73;
  --cyan: #3ee0d4;
  --header: 60px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.78;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-underline-offset: 3px; }
a:hover { color: #ff88a3; }

.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  background: rgba(11, 11, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.logo img { height: 32px; width: auto; }
.logo span { font-size: 0.78rem; color: var(--muted); }
.nav-desktop { display: none; gap: 18px; }
.nav-desktop a { color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.nav-desktop a.is-current, .nav-desktop a:hover { color: var(--pink); }

.menu-toggle {
  width: 42px; height: 42px; padding: 10px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: #fff; transition: 0.2s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; position: fixed; top: var(--header); left: 0; right: 0; z-index: 49;
  background: #12121a; padding: 8px 16px 18px; border-bottom: 1px solid var(--line);
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block; padding: 12px 8px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
body.nav-lock { overflow: hidden; }

.hero {
  display: grid; gap: 28px; padding: 28px 0 10px; align-items: center;
}
.kicker { color: var(--cyan); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 8px; }
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); line-height: 1.28; margin: 0 0 12px; }
.lede { color: var(--muted); font-size: 1.02rem; margin: 0 0 16px; }
.phones { display: flex; justify-content: center; gap: 14px; }
.phone {
  width: min(220px, 42vw);
  background: #000;
  border: 3px solid #2a2a36;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.phone img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.phone.back { transform: rotate(-6deg) translateY(18px); opacity: 0.88; }
.phone.front { transform: rotate(4deg); }

.ads-top {
  width: min(1120px, calc(100% - 28px));
  margin: 8px auto 0;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}
#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}
#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #c8c8c8;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.applist-title {
  text-align: center;
}

.section { padding: 28px 0; }
.section h2 { font-size: 1.4rem; margin: 0 0 10px; }
.section-desc { color: var(--muted); margin: 0 0 18px; }
.split {
  display: grid; gap: 22px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.split img.shot {
  width: 100%; border-radius: 14px; border: 1px solid var(--line);
  aspect-ratio: 9/16; object-fit: cover; object-position: top; max-height: 560px;
}
.split p { margin: 0 0 1em; color: #ddd8e6; }
.split h3 { margin: 0 0 10px; font-size: 1.15rem; }

.grid-3, .grid-4 {
  display: grid; gap: 12px;
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  color: inherit; text-decoration: none; display: block;
}
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card .cap { padding: 10px 12px 14px; }
.card .cap strong { display: block; font-size: 0.92rem; }
.card .cap small { color: var(--muted); font-size: 0.78rem; }

.prose {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 18px 32px; max-width: 780px;
}
.prose h2 { margin: 1.4em 0 0.5em; font-size: 1.28rem; }
.prose h3 { margin: 1.15em 0 0.4em; }
.prose p, .prose li { color: #ddd8e6; }
.prose p { margin: 0 0 1em; }
.note {
  border-left: 3px solid var(--pink); padding-left: 12px; color: var(--muted);
}

.crumbs { color: var(--muted); font-size: 0.85rem; padding-top: 16px; }
.crumbs a { color: var(--muted); }
.related { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.related a { display: block; margin: 6px 0; }

.site-footer {
  margin-top: 20px; border-top: 1px solid var(--line); padding: 28px 0 40px;
  color: var(--muted); font-size: 0.9rem;
}
.foot-grid { display: grid; gap: 16px; }
.foot-grid a { color: var(--muted); text-decoration: none; margin-right: 12px; }
.err { min-height: 70vh; display: grid; place-content: center; text-align: center; }

@media (min-width: 860px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .hero { grid-template-columns: 1.1fr 0.9fr; min-height: 78vh; padding-top: 40px; }
  .split { grid-template-columns: 280px 1fr; padding: 24px; }
  .split.reverse { grid-template-columns: 1fr 280px; }
  .split.reverse img.shot { order: 2; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .prose { padding: 36px 40px 48px; margin: 0 auto; }
}
