:root {
  --bg: #fff8f6;
  --paper: #fffdfb;
  --card: #ffffff;
  --card-2: #fef1ee;
  --ink: #201a19;
  --muted: #837375;
  --label: #514345;
  --rose: #864e5a;
  --rose-deep: #6b3743;
  --blush: #ffb7c5;
  --line: rgba(214, 194, 196, 0.45);
  --shadow: 0 22px 60px -28px rgba(134, 78, 90, 0.28);
  --display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --blobs:
    radial-gradient(58rem 34rem at 8% -12%, #ffd9df90 0%, transparent 58%),
    radial-gradient(36rem 26rem at 108% 8%, #f8dac590 0%, transparent 52%),
    radial-gradient(48rem 28rem at 70% 118%, #ffb7c55c 0%, transparent 58%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(255, 248, 246, 0.2), rgba(255, 248, 246, 0.82)),
    var(--blobs);
  font-family: var(--sans);
  line-height: 1.65;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 80;
  background: var(--rose);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
}

.skip:focus {
  top: 12px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 246, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner,
.footer-inner,
.wrap,
.hero,
.page-hero,
.section,
.login-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.nav-inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--card-2);
}

.product-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 12px;
  overflow-x: auto;
}

.rail-label {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 6px;
}

.product-rail a {
  flex: none;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  color: var(--label);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.product-rail a:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.rail-login {
  margin-left: auto;
  color: var(--rose) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 18px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
}

.btn-primary:hover {
  background: var(--rose-deep);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

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

.hero,
.page-hero {
  padding-top: 64px;
  padding-bottom: 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.page-hero {
  padding-bottom: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 18px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

h1,
h2,
.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
}

.grad {
  color: var(--rose);
}

.lede {
  margin: 0 0 28px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.cluster,
.layer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wallet-board {
  display: grid;
  gap: 14px;
}

.wallet-card,
.hero-card,
.panel,
.layer,
.price,
.wallet,
.step,
.login-list a {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.wallet-card,
.layer,
.price,
.wallet,
.step {
  border-radius: 20px;
  padding: 22px;
}

.wallet-card {
  display: grid;
  gap: 6px;
}

.wallet-card.app {
  background: linear-gradient(180deg, #fff 0%, #fff6f4 100%);
}

.wallet-card.api {
  background: linear-gradient(180deg, #fff 0%, #f7f3f4 100%);
}

.wallet-card span,
.layer span,
.price .tag,
.kicker-strong {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.wallet-card h3,
.wallet-card strong {
  margin: 0 0 8px;
  font-size: 20px;
}

.wallet-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding-bottom: 72px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head p,
.kicker {
  margin: 0;
  color: var(--muted);
}

.cake {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cake .layer:nth-child(-n + 3) {
  grid-column: span 2;
}

.cake .layer:nth-child(n + 4) {
  grid-column: span 3;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.layer,
.price,
.wallet,
.step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.layer p,
.price p,
.wallet p,
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.layer h3,
.price h3,
.wallet h3,
.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.layer-actions,
.price .btn {
  margin-top: auto;
  padding-top: 16px;
}

.layer:hover,
.price:hover,
.login-list a:hover {
  transform: translateY(-2px);
  transition: transform 0.16s ease;
}

.price .amount {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  margin: 8px 0 12px;
}

.price .amount small {
  font-size: 16px;
  color: var(--muted);
}

.price ul {
  margin: 0;
  padding-left: 18px;
  color: var(--label);
  font-size: 14px;
}

.featured {
  border-color: var(--rose);
  box-shadow: 0 24px 50px -24px rgba(134, 78, 90, 0.45);
  transform: translateY(-6px);
}

.login-panel {
  padding: 48px 24px 80px;
}

.login-panel h1 {
  font-size: clamp(34px, 4.4vw, 50px);
}

.login-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: start;
}

.login-copy .lede {
  margin-bottom: 18px;
}

.login-focus-hint {
  margin: 0 0 18px;
  max-width: 34rem;
  color: var(--label);
  font-size: 15px;
  line-height: 1.7;
}

body[data-login-focus] .login-focus-hint {
  padding: 12px 14px 12px 16px;
  border-left: 3px solid var(--rose);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 0 12px 12px 0;
}

.login-portrait {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 0;
  padding: 14px 16px;
  max-width: 34rem;
  background: rgba(255, 253, 251, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.login-portrait img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 10px 24px -12px rgba(134, 78, 90, 0.55);
}

.login-portrait figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.login-error {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(134, 78, 90, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7f8 0%, #ffeef1 100%);
  color: var(--rose-deep);
  font-size: 14px;
}

.login-list {
  display: grid;
  gap: 10px;
}

.login-list a {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 16px;
  text-decoration: none;
  border-radius: 18px;
  padding: 16px 18px;
  overflow: hidden;
  animation: login-rise 0.45s ease both;
}

.login-list a:nth-child(1) {
  animation-delay: 0.04s;
}
.login-list a:nth-child(2) {
  animation-delay: 0.08s;
}
.login-list a:nth-child(3) {
  animation-delay: 0.12s;
}
.login-list a:nth-child(4) {
  animation-delay: 0.16s;
}
.login-list a:nth-child(5) {
  animation-delay: 0.2s;
}

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

.login-seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff8f6;
  color: var(--rose);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
}

.login-body {
  min-width: 0;
}

.login-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.login-list strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.login-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-list .go {
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.login-ticket-store {
  background: linear-gradient(165deg, #ffffff 0%, #fff7f5 100%);
}

.login-ticket-store .login-seal {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(134, 78, 90, 0.7);
}

.login-list a.is-target {
  border-color: var(--rose);
  background: linear-gradient(165deg, #fff 0%, #fff3f0 48%, #ffe6ea 100%);
  box-shadow:
    var(--shadow),
    0 0 0 3px rgba(134, 78, 90, 0.14);
  padding-top: 18px;
  padding-bottom: 18px;
}

.login-list a.is-target .login-kicker::after {
  content: " · 已选中";
}

.login-list a.is-target .go {
  background: var(--rose);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
}

.login-list a.is-target::after {
  content: none;
}

body[data-login-focus="store"] .login-ticket-store.is-target {
  background:
    radial-gradient(18rem 10rem at 100% -10%, #ffd9df88 0%, transparent 70%),
    linear-gradient(165deg, #fff 0%, #fff1ee 45%, #ffdfe4 100%);
}

@media (prefers-reduced-motion: reduce) {
  .login-list a,
  .layer:hover,
  .price:hover,
  .login-list a:hover {
    animation: none;
    transition: none;
  }
}

.note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr;
  gap: 28px;
}

.footer-inner h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 10px;
}

.footer-inner a {
  display: block;
  text-decoration: none;
  color: var(--label);
  font-weight: 600;
  padding: 3px 0;
}

.footer-inner p {
  margin: 8px 0 0;
}

.missing {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 56px 24px 80px;
}

.missing-card {
  width: min(40rem, 100%);
  text-align: center;
}

.missing .lede {
  margin-inline: auto;
}

.missing .hero-actions {
  justify-content: center;
}

.missing-path {
  margin: 0 0 24px;
  color: var(--label);
  font-size: 14px;
}

.missing-path:has(code:empty) {
  display: none;
}

.missing-path code {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--rose-deep);
  font-size: 13px;
}

.missing-portrait {
  margin: 28px auto 0;
  max-width: 28rem;
  text-align: left;
}

@media (max-width: 960px) {
  .hero,
  .cake,
  .grid-3,
  .footer-inner,
  .login-stage {
    grid-template-columns: 1fr 1fr;
  }

  .cake .layer,
  .featured {
    grid-column: span 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand login"
      "links links";
  }

  .nav-inner .brand {
    grid-area: brand;
  }

  .nav-inner .btn {
    grid-area: login;
  }

  .nav-links {
    grid-area: links;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .cake,
  .grid-2,
  .grid-3,
  .footer-inner,
  .login-stage {
    grid-template-columns: 1fr;
  }

  .login-portrait {
    border-radius: 18px;
  }

  .rail-login {
    margin-left: 0;
  }
}
