/* 百宝湾「夜海珍珠」：白天是晨雾沙滩，夜里是深蓝的海；银白做字，珍珠光做点缀，一点粉。 */
:root {
  --sea-top: #f6f3ee; --sea-bottom: #dde6ef; --mist: #f2f0eb; --ink: #17203a; --ink-soft: #636b81; --line: rgba(23, 32, 58, .1);
  --glass: rgba(255, 255, 255, .66); --glass-edge: rgba(255, 255, 255, .95); --shade: rgba(30, 45, 90, .12); --card: rgba(255, 255, 255, .72);
  --wave: rgba(56, 96, 158, .2); --glow: rgba(255, 233, 210, .95);
  --primary: linear-gradient(135deg, #1b2a52 0%, #2c4a84 62%, #5468aa 100%); --primary-ink: #fff;
  --primary-glow: 0 8px 22px rgba(27, 42, 82, .26), inset 0 1px 0 rgba(255, 255, 255, .28);
  --pearl: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .7) 44%, rgba(255, 214, 233, .45) 50%, rgba(214, 240, 255, .4) 56%, rgba(255, 255, 255, 0) 70%);
  --accent: #e0528f; --deep: #2b2f5e;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  --settle: cubic-bezier(.22, 1, .36, 1);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sea-top: #0e1a33; --sea-bottom: #050a15; --mist: #0a1222; --ink: #edf1fa; --ink-soft: #95a1bc; --line: rgba(237, 241, 250, .1);
    --glass: rgba(18, 30, 56, .62); --glass-edge: rgba(210, 225, 255, .14); --shade: rgba(0, 0, 0, .45); --card: rgba(20, 33, 62, .6);
    --wave: rgba(190, 210, 255, .16); --glow: rgba(196, 212, 255, .2);
    --primary: linear-gradient(135deg, #ffffff 0%, #e2eafb 46%, #f5d8e8 100%); --primary-ink: #14203d;
    --primary-glow: 0 8px 26px rgba(190, 210, 255, .2), inset 0 1px 0 #fff;
    --pearl: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .14) 44%, rgba(255, 170, 210, .1) 50%, rgba(160, 210, 255, .1) 56%, rgba(255, 255, 255, 0) 70%);
    --accent: #ff8cc0; --deep: #a9b2ff; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--sans); line-height: 1.7; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .08em; line-height: 1.3; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* 海：上亮下深的底色、一团月光（白天是晨光）、几层很慢的细线浪。 */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--sea-top) 0%, var(--sea-bottom) 100%); }
.glow { position: absolute; width: 90vmax; height: 90vmax; right: -38vmax; top: -48vmax; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, transparent 60%); animation: breathe 16s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.06); opacity: .85; } }
.wave { position: absolute; left: 0; right: 0; height: 120px; background: var(--wave);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='120'%3E%3Cpath d='M0 60 Q60 40 120 60 T240 60 T360 60 T480 60' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M0 84 Q60 66 120 84 T240 84 T360 84 T480 84' fill='none' stroke='black' stroke-width='.8'/%3E%3C/svg%3E") repeat-x 0 0 / 480px 120px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='120'%3E%3Cpath d='M0 60 Q60 40 120 60 T240 60 T360 60 T480 60' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M0 84 Q60 66 120 84 T240 84 T360 84 T480 84' fill='none' stroke='black' stroke-width='.8'/%3E%3C/svg%3E") repeat-x 0 0 / 480px 120px;
  animation: tide 38s linear infinite; }
.wave--a { bottom: 22vh; opacity: .55; }
.wave--b { bottom: 12vh; opacity: .8; animation-duration: 52s; animation-direction: reverse; -webkit-mask-size: 620px 140px; mask-size: 620px 140px; }
.wave--c { bottom: 2vh; animation-duration: 66s; -webkit-mask-size: 820px 160px; mask-size: 820px 160px; }
@keyframes tide { to { -webkit-mask-position: 480px 0; mask-position: 480px 0; } }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 15px; letter-spacing: .04em; text-decoration: none; cursor: pointer; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 6px 20px var(--shade); transition: transform .16s var(--settle);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; box-shadow: var(--primary-glow); }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.glass { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 6px 20px var(--shade); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* 顶栏 */
.nav { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: var(--gutter); z-index: 20; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.nav a { padding: 5px 13px; border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

/* 开头 */
.hero { max-width: 1040px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + clamp(72px, 13vh, 120px)) var(--gutter) 28px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; color: var(--ink-soft); }
.title { font-size: clamp(46px, 11vw, 78px); letter-spacing: .16em; margin-top: 10px; }
.lede { margin-top: 12px; color: var(--ink-soft); font-size: clamp(15px, 3.8vw, 18px); }
.chars > span { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(8px); animation: char-in .9s var(--settle) forwards; }
@keyframes char-in { to { opacity: 1; transform: none; filter: none; } }

.steps { list-style: none; margin: clamp(28px, 5vh, 44px) 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; }
.steps__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px;
  background: var(--primary); color: var(--primary-ink); box-shadow: var(--primary-glow); }
.steps h2 { font-size: 16px; }
.steps p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 2px; }
.steps a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; gap: 0; border-radius: 20px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 6px 20px var(--shade); }
  .steps li { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 12px 14px; align-items: center; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .steps li + li { border-top: 1px solid var(--line); }
  .steps li div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .steps p { margin: 0; }
}

/* 分区通用 */
.band { max-width: 1040px; margin: 0 auto; padding: clamp(56px, 10vh, 96px) var(--gutter) 0; scroll-margin-top: 20px; }
.band__head { max-width: 620px; margin-bottom: 22px; }
.band__head h2 { font-size: clamp(26px, 6vw, 36px); }
.band__head p { margin-top: 8px; color: var(--ink-soft); }

.footer { max-width: 1040px; margin: 0 auto; padding: 56px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px); color: var(--ink-soft); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 40; transform: translate(-50%, 16px);
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--mist); font-size: 14px; opacity: 0;
  transition: opacity .38s var(--settle), transform .38s var(--settle); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow, .wave { animation: none; }
  .chars > span { animation: char-fade .3s ease forwards; transform: none; filter: none; }
  @keyframes char-fade { to { opacity: 1; } }
}
