:root {
  --night-0: #070b18;
  --night-1: #111a3a;
  --night-2: #2b2159;
  --glow: #ffcf95;
  --violet: #8b7bff;
  --paper: #fbf9f4;
  --paper-2: #f4f0e7;
  --ink: #15171f;
  --ink-soft: #5c6070;
  --line: #e6e0d4;
  --radius: 20px;
  --font: "HarmonyOS Sans SC", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* 全站底纹：用书架页的星空插画做极淡的固定背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("assets/bg.jpg") center / cover no-repeat;
  filter: blur(46px) saturate(.7);
  opacity: .06;
  pointer-events: none;
}

a { color: inherit; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(139, 123, 255, .35) 0%, transparent 60%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 58%, var(--night-2) 100%);
  color: #fff;
  text-align: center;
}

/* 首屏背景：烟花插画铺满 + 轻微压暗，保留画面里的烟花 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/bg.jpg") center 38% / cover no-repeat;
  filter: saturate(1.04) brightness(.88);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 24, .58) 0%, rgba(10, 15, 34, .34) 38%, rgba(12, 18, 42, .78) 100%),
    radial-gradient(72% 58% at 50% 46%, rgba(8, 12, 28, .18) 0%, rgba(7, 11, 24, .62) 100%);
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  filter: blur(6px);
  opacity: .22;
  background:
    radial-gradient(closest-side, rgba(255, 226, 180, .55), rgba(255, 207, 149, .12) 42%, transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}

.spark--1 { top: -18vmax; left: 50%; transform: translateX(-50%); }
.spark--2 { top: 8vmax; left: -14vmax; width: 26vmax; height: 26vmax; opacity: .35; animation-delay: -3s; }
.spark--3 { bottom: -16vmax; right: -8vmax; width: 34vmax; height: 34vmax; opacity: .3; animation-delay: -6s; }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.07); opacity: .68; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.eyebrow {
  margin: 0 0 26px;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.hero__title {
  margin: 0;
  font-size: clamp(64px, 13vw, 128px);
  font-weight: 600;
  letter-spacing: .16em;
  text-indent: .16em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 217, 166, .85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__latin {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: .5em;
  text-indent: .5em;
  color: rgba(255, 255, 255, .45);
}

.hero__lead {
  margin: 34px 0 0;
  font-size: clamp(15px, 2.2vw, 18px);
  color: rgba(255, 255, 255, .8);
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .08em;
}

.hero__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}

.hero__cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 64px;
  font-size: 12px;
  letter-spacing: .24em;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
}

.hero__cue span {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
  animation: drip 2.4s ease-in-out infinite;
}

@keyframes drip {
  0% { transform: scaleY(.2); transform-origin: top; opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.rise {
  animation: rise .9s cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- sections ---------- */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child { border-bottom: 0; }

.section__index {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: .28em;
  color: #a39a86;
}

.section__title {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}

.lead {
  margin: 0 0 14px;
  max-width: 46em;
  font-size: 17px;
  color: #2c2f3a;
}

.muted {
  margin: 0;
  max-width: 46em;
  color: var(--ink-soft);
}

/* ---------- modes ---------- */

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.mode {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fdfbf7);
}

.mode__num {
  margin: 0 0 34px;
  font-size: 12px;
  letter-spacing: .24em;
  color: #b9ae97;
}

.mode h3 { margin: 0 0 8px; font-size: 18px; }
.mode p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.card {
  padding: 28px 26px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease, border-color .35s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #d8cfbc;
  box-shadow: 0 18px 40px -24px rgba(38, 30, 15, .45);
}

.card svg {
  width: 26px;
  height: 26px;
  margin-bottom: 22px;
  fill: none;
  stroke: #8a7c5f;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- split ---------- */

.section--split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}

.panel {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: radial-gradient(120% 120% at 100% 0%, #241d45 0%, #10162f 60%, #0a0f21 100%);
  color: rgba(255, 255, 255, .82);
}

.panel__label {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .45);
}

.panel ul { margin: 0; padding: 0; list-style: none; }

.panel li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 14.5px;
}

.panel li:last-child { border-bottom: 0; }

/* ---------- feedback ---------- */

.section--feedback { text-align: center; }

.section--feedback .lead { margin-left: auto; margin-right: auto; }

.qq {
  margin: 34px 0 0;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 600;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #b4884a, #7c6bd6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- footer ---------- */

.footer {
  margin-top: 0;
  padding: 64px 24px 56px;
  background: var(--night-0);
  color: rgba(255, 255, 255, .45);
  text-align: center;
  font-size: 13px;
}

.footer__brand {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .8);
}

.footer__brand span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .35);
}

.footer__links { margin: 18px 0 0; }

.footer__links a {
  margin: 0 10px;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  padding-bottom: 2px;
}

.footer__beian { margin: 22px 0 0; }
.footer__beian a { color: rgba(255, 255, 255, .42); text-decoration: none; }

a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .modes, .grid { grid-template-columns: 1fr 1fr; }
  .section--split { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .hero { min-height: 88vh; }
  .hero__cue { margin-top: 48px; }
  .section { padding: 72px 0; }
  .modes, .grid { grid-template-columns: 1fr; }
  .mode, .card { padding: 24px 22px; }
  .mode__num { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .spark, .hero__cue span { animation: none; }
  .card { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .phone:hover { transform: none; transition: none; }
}

/* ---------- article pages (privacy / terms) ---------- */

.page-hero {
  padding: 116px 24px 76px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(90% 70% at 50% 120%, rgba(139, 123, 255, .3) 0%, transparent 65%),
    linear-gradient(180deg, var(--night-0), var(--night-1));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 600;
  letter-spacing: .1em;
  text-indent: .1em;
}

.page-hero p {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .45);
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.prose h2 {
  margin: 46px 0 12px;
  font-size: 20px;
  letter-spacing: .02em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin: 28px 0 8px;
  font-size: 16px;
  color: #2f323c;
}

.prose p { margin: 0 0 12px; color: #33363f; }
.prose ul { margin: 0 0 14px; padding-left: 20px; color: #33363f; }
.prose li { margin: 6px 0; }

.prose .note { color: var(--ink-soft); font-size: 14px; }
.prose a { color: #6a58c8; text-decoration: none; border-bottom: 1px solid rgba(106, 88, 200, .3); }

/* ---------- motion ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ffcf95, #8b7bff);
  box-shadow: 0 0 12px rgba(139, 123, 255, .6);
  transition: width .08s linear;
}

.hero__parallax {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .85s cubic-bezier(.2, .7, .3, 1),
    transform .85s cubic-bezier(.2, .7, .3, 1);
  transition-delay: var(--rd, 0s);
}

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

/* ---------- screenshots ---------- */

.screens {
  display: flex;
  gap: 20px;
  margin: 44px -24px 0;
  padding: 14px 24px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.screens::-webkit-scrollbar { display: none; }

.phone {
  flex: 0 0 auto;
  width: 224px;
  margin: 0;
  padding: 7px;
  border-radius: 30px;
  scroll-snap-align: center;
  background: linear-gradient(165deg, #1d2545 0%, #0a0f21 100%);
  box-shadow: 0 28px 50px -30px rgba(20, 14, 40, .65);
  transition: transform .55s cubic-bezier(.2, .7, .3, 1), box-shadow .55s ease;
}

.phone:nth-child(odd) { transform: rotate(-1.1deg); }
.phone:nth-child(even) { transform: rotate(1.1deg); }

.phone:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.015);
  box-shadow: 0 40px 70px -34px rgba(20, 14, 40, .8);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #0a0f21;
}

.screens__hint {
  margin: 0;
  font-size: 12px;
  letter-spacing: .18em;
  color: #a39a86;
  font-variant-numeric: tabular-nums;
}

.screens__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2px;
}

.screens__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: #6d654f;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), background .3s ease, color .3s ease, border-color .3s ease;
}

.screens__btn:hover {
  transform: translateY(-2px);
  background: #14162a;
  border-color: #14162a;
  color: #f6e4c8;
}

.screens__btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

/* ---------- 整站沉浸背景 ---------- */

:root {
  --ink: #f2ede3;
  --ink-soft: rgba(242, 237, 227, .62);
  --line: rgba(255, 255, 255, .12);
}

body {
  background: #070b18;
}

body::before {
  background:
    linear-gradient(180deg, rgba(6, 9, 20, .52) 0%, rgba(6, 9, 20, .72) 42%, rgba(5, 8, 18, .88) 100%),
    url("assets/bg.jpg") center 38% / cover no-repeat;
  filter: none;
  opacity: 1;
}

/* 首屏不再单独铺图，让固定的整站背景直接透出来 */
.hero {
  background: transparent;
}

.hero::before {
  display: none;
}

.hero::after {
  background:
    linear-gradient(180deg, rgba(6, 9, 20, .28) 0%, rgba(6, 9, 20, .06) 40%, rgba(6, 9, 20, .55) 100%),
    radial-gradient(80% 60% at 50% 40%, transparent 0%, rgba(5, 8, 18, .3) 100%);
}

.hero__title,
.hero__lead {
  text-shadow: 0 2px 34px rgba(3, 5, 12, .65);
}

.section {
  border-bottom-color: rgba(255, 255, 255, .1);
}

.section__index { color: rgba(255, 214, 160, .55); }
.section__title { color: #fbf6ec; }
.lead { color: rgba(242, 237, 227, .86); }
.muted { color: rgba(242, 237, 227, .58); }

.mode,
.card {
  background: rgba(10, 14, 30, .48);
  border-color: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.mode h3,
.card h3 { color: #fdf8ee; }
.mode p,
.card p { color: rgba(242, 237, 227, .62); }
.mode__num { color: rgba(255, 214, 160, .5); }
.card svg { stroke: rgba(255, 214, 160, .8); }

.card:hover {
  border-color: rgba(255, 214, 160, .34);
  box-shadow: 0 26px 54px -30px rgba(0, 0, 0, .85);
}

.panel {
  background: rgba(8, 11, 24, .66);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.phone {
  background: linear-gradient(165deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
}

.screens__hint { color: rgba(255, 255, 255, .45); }

.screens__btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: #f6e7cf;
}

.screens__btn:hover {
  background: #f6e4c8;
  border-color: #f6e4c8;
  color: #12142a;
}

.footer {
  background: rgba(4, 7, 15, .82);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.page-hero { background: transparent; }

.article {
  margin-top: -44px;
  padding: 52px 44px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 24px;
  background: rgba(8, 12, 26, .62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.prose h2 { color: #fbf6ec; }
.prose h3 { color: rgba(242, 237, 227, .88); }
.prose p,
.prose ul { color: rgba(242, 237, 227, .76); }
.prose .note { color: rgba(242, 237, 227, .5); }
.prose a {
  color: #b7a6ff;
  border-bottom-color: rgba(183, 166, 255, .35);
}

@media (max-width: 600px) {
  .article {
    margin-top: -26px;
    padding: 34px 22px;
    border-radius: 18px;
  }
}
