/* 开镜 KAIJING · soft 3D design tokens
 * register=brand+product · white porcelain, pastel aurora, rounded hardware
 * typography: heavy geometric sans · depth: nested bezels + tinted ambient shadow
 */
:root {
  color-scheme: light;
  --paper: #f4f2fb;
  --paper-2: #eceaf7;
  --paper-3: #e1ddf1;
  --surface: #ffffff;
  --surface-2: #fbfaff;
  --surface-3: #f3f0fb;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --ink: #211d33;
  --ink-2: #3d3652;
  --ink-3: #6b6480;
  --ink-4: #948da8;
  --line: rgba(72, 60, 112, 0.11);
  --line-soft: rgba(72, 60, 112, 0.07);
  --line-strong: rgba(72, 60, 112, 0.2);
  --accent: #ff6b57;
  --accent-deep: #e65340;
  --accent-soft: #ffe8e2;
  --accent-wash: #fff4f0;
  --sage: #5dc7ab;
  --sage-deep: #2f9c82;
  --sage-soft: #e2faf3;
  --butter: #f4c36a;
  --butter-soft: #fff4dc;
  --sky: #6aa9ff;
  --sky-soft: #e8f1ff;
  --violet: #8d7bf6;
  --violet-deep: #6e5be0;
  --violet-soft: #eeeaff;
  --success: #2f9c82;
  --success-soft: #e2faf3;
  --warning: #9a6a21;
  --warning-soft: #fff2d8;
  --danger: #e65340;
  --danger-soft: #ffe8e2;
  --shadow-xs: 0 2px 5px rgba(48, 38, 82, 0.07);
  --shadow-sm: 0 14px 32px -16px rgba(58, 45, 104, 0.27), 0 3px 8px rgba(58, 45, 104, 0.06);
  --shadow-md: 0 32px 70px -30px rgba(58, 45, 104, 0.38), 0 8px 20px -12px rgba(58, 45, 104, 0.14);
  --shadow-lg: 0 50px 110px -36px rgba(58, 45, 104, 0.46), 0 14px 34px -18px rgba(58, 45, 104, 0.2);
  --shadow-glow: 0 20px 48px -22px rgba(255, 107, 87, 0.55);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 34px;
  --r-3xl: 44px;
  --font-sans: "Avenir Next", "Segoe UI Variable Display", "Noto Sans SC", "Noto Sans SC VF", "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  --font-display: "Avenir Next", "Segoe UI Variable Display", "Noto Sans SC", "Noto Sans SC VF", "Microsoft YaHei UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --font-serif: var(--font-display);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --nav-h: 84px;
  --pad-x: clamp(20px, 4vw, 48px);
  --max: 1280px;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1000px 720px at -8% -12%, #ffe3d9 0%, rgba(255, 227, 217, 0) 62%),
    radial-gradient(900px 700px at 106% -2%, #e5e0ff 0%, rgba(229, 224, 255, 0) 58%),
    radial-gradient(1000px 760px at 50% 108%, #ddf8ef 0%, rgba(221, 248, 239, 0) 58%),
    linear-gradient(180deg, #fbfaff 0%, var(--paper) 48%, #f2f0fb 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote {
  margin: 0;
}

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

::selection {
  background: #ffd7cf;
  color: #b53b28;
}

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

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad-x) * 2));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.brand img {
  border-radius: 14px;
  flex: 0 0 auto;
  box-shadow: 0 6px 16px -8px rgba(33, 29, 51, 0.35);
}

.brand-cn {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  transform: translateY(1px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: currentColor;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.brand-icon {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(33, 29, 51, 0.14);
}

.brand-icon-sm {
  width: 13px !important;
  height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  border-radius: 4px;
}

.brand-icon-lg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 8px;
}

.tag.has-brand {
  gap: 5px;
  padding-left: 5px;
}

.tag.has-brand .brand-icon {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  box-shadow: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  backdrop-filter: blur(12px);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9d7e, var(--accent));
  box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.12);
}

.display {
  font-family: var(--font-display);
  font-weight: 780;
  font-size: clamp(3.4rem, 7.2vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 780;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.82;
  color: var(--ink-2);
  text-wrap: pretty;
}

.muted {
  color: var(--ink-3);
}

.accent {
  color: var(--accent-deep);
}

.serif {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.balance {
  text-wrap: balance;
}

/* ---------------------------------- buttons --------------------------------- */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.82);
  --btn-fg: var(--ink);
  --btn-border: rgba(255, 255, 255, 0.95);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.4s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-inset);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn .btn-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(33, 29, 51, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.45s var(--spring), background 0.35s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px) scale(1.04);
}

.btn-primary {
  --btn-bg: linear-gradient(135deg, #ff9678 0%, #ff6b57 48%, #f65b72 100%);
  --btn-fg: #ffffff;
  --btn-border: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn-primary:hover {
  --btn-bg: linear-gradient(135deg, #ffa489 0%, #ff735e 48%, #fa6479 100%);
  box-shadow: 0 26px 60px -24px rgba(246, 91, 114, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary .btn-arrow {
  background: rgba(255, 255, 255, 0.2);
}

.btn-accent {
  --btn-bg: linear-gradient(135deg, #a092ff 0%, #8573f4 55%, #6e5be0 100%);
  --btn-fg: #ffffff;
  --btn-border: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 48px -22px rgba(110, 91, 224, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-accent:hover {
  --btn-bg: linear-gradient(135deg, #ae9fff 0%, #9281fa 55%, #7a67ea 100%);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.62);
  --btn-border: rgba(255, 255, 255, 0.94);
  padding-right: 20px;
  backdrop-filter: blur(16px);
}

.btn-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.92);
}

.btn-soft {
  --btn-bg: var(--surface-3);
  --btn-border: transparent;
  padding-right: 20px;
  box-shadow: none;
}

.btn-soft:hover {
  --btn-bg: var(--violet-soft);
}

.btn-plain {
  --btn-bg: transparent;
  --btn-border: transparent;
  padding: 0 12px;
  color: var(--ink-2);
  box-shadow: none;
}

.btn-plain:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn-sm {
  min-height: 40px;
  padding-left: 16px;
  font-size: 12px;
}

.btn-sm .btn-arrow {
  width: 26px;
  height: 26px;
}

.btn-icon-only {
  width: 46px;
  height: 46px;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------------------------------- chips ---------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  box-shadow: var(--shadow-xs), var(--shadow-inset);
}

.chip.is-active {
  border-color: rgba(255, 107, 87, 0.3);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.chip.is-sage {
  border-color: transparent;
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.chip.is-ink {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* ---------------------------------- surfaces -------------------------------- */
.card {
  background: linear-gradient(180deg, #ffffff 0%, #fdfcff 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.shell {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: calc(var(--r-2xl) + 8px);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-sm);
}

.shell-inner {
  border-radius: var(--r-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-inset);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.016;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ---------------------------------- motion ---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.95s var(--ease) var(--delay, 0ms),
    transform 1s var(--spring) var(--delay, 0ms),
    filter 0.95s var(--ease) var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(33, 29, 51, 0.12);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------------------------------- helpers --------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stack {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
}

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.sr-divider {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

::placeholder {
  color: var(--ink-4);
  opacity: 1;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 60, 112, 0.2) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(72, 60, 112, 0.16);
  border-radius: 999px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
