/* ============================================
   MayeAPI Landing — Light · Flashy · Animated
   ============================================ */

:root {
  --bg: #f4f7ff;
  --bg-soft: #eef3ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(99, 120, 180, 0.14);
  --primary: #4f6ef7;
  --primary-2: #7c5cfc;
  --accent: #12c2a4;
  --pink: #ff6bcb;
  --orange: #ff9f43;
  --shadow: 0 20px 50px rgba(79, 110, 247, 0.12);
  --shadow-lg: 0 30px 80px rgba(79, 110, 247, 0.16);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

html {
  /* clip 不会破坏 sticky；hidden 在部分浏览器会让 sticky 失效 */
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.65;
  /* 整页下移，顶部预留空白 */
  
  /* 不要用 overflow-x:hidden，否则 position:sticky 在 Chrome/Edge 常会失效 */
  overflow-x: clip;
  /* 永远保留系统指针，避免自定义光标失效时“指针消失” */
  cursor: auto;
}

a,
button,
.btn,
.menu-toggle,
.nav-link {
  cursor: pointer;
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow,
  .cursor-dot,
  .cursor-trail {
    display: none !important;
  }
}

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

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

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------- Custom Cursor ---------- */
.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: multiply;
  opacity: 0;
}

/* 装饰性光标点：不再替代系统指针，仅作光效 */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(79, 110, 247, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.15s ease;
  will-change: left, top;
  /* 略微偏移，避免完全挡住系统箭头 */
  margin: 14px 0 0 14px;
}

body.has-fx .cursor-glow,
body.has-fx .cursor-dot {
  opacity: 0.85;
}

body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.6);
  opacity: 1;
}

/* Mouse trail dots */
.cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  overflow: hidden;
}

.trail-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.9), rgba(79, 110, 247, 0.15) 70%, transparent);
  box-shadow: 0 0 12px rgba(79, 110, 247, 0.35);
  opacity: 0;
  transform: scale(0.4);
  will-change: transform, opacity, left, top;
}

/* ---------- Particles & Atmosphere ---------- */
.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orb-float 14s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, #a8bfff, transparent 70%);
  animation-duration: 16s;
}

.orb-2 {
  width: 360px;
  height: 360px;
  top: 20%;
  right: -8%;
  background: radial-gradient(circle, #d2c4ff, transparent 70%);
  animation-duration: 18s;
  animation-delay: -4s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: 20%;
  background: radial-gradient(circle, #b8f5e8, transparent 70%);
  animation-duration: 20s;
  animation-delay: -8s;
}

.orb-4 {
  width: 260px;
  height: 260px;
  bottom: -5%;
  right: 25%;
  background: radial-gradient(circle, #ffd0ee, transparent 70%);
  animation-duration: 15s;
  animation-delay: -2s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 20px) scale(0.95); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 110, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 110, 247, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 10%, transparent 75%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(244, 247, 255, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.82);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  position: relative;
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  z-index: 2;
}

.logo-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.35);
  overflow: hidden;
}

.logo-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine-sweep 3.5s ease-in-out infinite;
}

@keyframes shine-sweep {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.logo-text {
  background: linear-gradient(135deg, #1e293b, #4f6ef7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-right-mobile {
  display: none;
  align-items: center;
  gap: 0.45rem;
}

/* ---------- Language switcher ---------- */
.lang-switch {
  position: relative;
  z-index: 60;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover {
  background: #fff;
  border-color: rgba(79, 110, 247, 0.28);
  box-shadow: 0 8px 20px rgba(79, 110, 247, 0.1);
}

.lang-current {
  min-width: 3.6em;
  text-align: left;
}

.lang-caret {
  font-size: 0.7rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.lang-switch.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.lang-menu[hidden] {
  display: none !important;
}

.lang-menu li {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-menu li:hover {
  background: rgba(79, 110, 247, 0.1);
  color: var(--primary);
}

.lang-menu li.is-active {
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.14), rgba(124, 92, 252, 0.1));
  color: var(--primary);
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn > * {
  pointer-events: none;
}

.btn-primary {
  color: #fff;
  padding: 0.8rem 1.45rem;
  background: transparent;
  box-shadow: 0 12px 30px rgba(79, 110, 247, 0.3);
}

.btn-primary .btn-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-2) 55%, #9b6bff);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(79, 110, 247, 0.42);
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.4) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: none;
  pointer-events: none;
}

.btn-primary:hover .btn-shine {
  animation: btn-shine 0.7s ease;
}

@keyframes btn-shine {
  to { transform: translateX(120%); }
}

.btn-lg {
  padding: 1rem 1.85rem;
  font-size: 1.05rem;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  padding: 0.8rem 1.4rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.btn-ghost:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost .chevron {
  display: inline-block;
  animation: bounce-y 1.6s ease-in-out infinite;
}

@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.pulse-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(79, 110, 247, 0.45);
  animation: pulse-ring 2s ease-out infinite;
  z-index: -2;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  color: #4c5d8a;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.08);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(18, 194, 164, 0.5);
  animation: ping-dot 1.8s ease infinite;
  position: relative;
  z-index: 1;
}

.badge-ping {
  position: absolute;
  left: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(18, 194, 164, 0.4);
  animation: ping-ring 1.8s ease infinite;
}

@keyframes ping-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.9); }
}

@keyframes ping-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title .line:nth-child(1) .word { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) .word { animation-delay: 0.28s; }
.hero-title .line:nth-child(3) .word { animation-delay: 0.41s; }

@keyframes word-up {
  to { transform: translateY(0); }
}

.gradient-text {
  background: linear-gradient(120deg, #4f6ef7, #7c5cfc, #ff6bcb, #12c2a4, #4f6ef7);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.animated-gradient {
  animation: gradient-shift 5s ease infinite;
}

/* Typewriter — caret must sit right after the last character */
.typewriter-line {
  display: block;
  min-height: 1.75em;
  margin: 0 0 1.1rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: normal;
}

.typewriter-prefix {
  color: var(--muted);
  font-weight: 600;
}

/* 内层 inline 包裹：文字宽度随内容变化，光标紧贴字后 */
.typewriter-run {
  display: inline;
  color: #4f6ef7;
  font-weight: 800;
  text-shadow: 0 0 24px rgba(79, 110, 247, 0.25);
}

.typewriter-text {
  display: inline;
  color: inherit;
  font-weight: inherit;
}

.typewriter-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  border-radius: 1px;
  background: #4f6ef7;
  box-shadow: 0 0 10px rgba(79, 110, 247, 0.7);
  animation: caret-blink 0.85s step-end infinite;
  vertical-align: -0.08em;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-trust strong {
  color: var(--text);
}

.avatars {
  display: flex;
}

.avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: linear-gradient(135deg, #a8bfff, #7c5cfc);
  box-shadow: 0 4px 12px rgba(79, 110, 247, 0.2);
}

.avatars span:first-child { margin-left: 0; background: linear-gradient(135deg, #4f6ef7, #7c5cfc); }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #12c2a4, #4f6ef7); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #ff6bcb, #7c5cfc); }
.avatars span:nth-child(4) { background: linear-gradient(135deg, #ff9f43, #ff6bcb); }

/* Hero visual / code card */
.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card {
  position: relative;
  width: min(100%, 420px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.visual-glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 60%;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.25), transparent 70%);
  pointer-events: none;
  animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbff, #f3f6ff);
}

.visual-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.visual-title {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.code-block {
  padding: 1.25rem 1.3rem 1.5rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #334155;
  overflow-x: auto;
  position: relative;
  z-index: 1;
}

.c-key { color: #7c5cfc; font-weight: 600; }
.c-var { color: #0f172a; }
.c-fn { color: #4f6ef7; }
.c-prop { color: #0ea5e9; }
.c-str { color: #12a37e; }

.code-cursor {
  color: var(--primary);
  font-weight: 700;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.float-y {
  animation: float-y 5s ease-in-out infinite;
}

.float-y-delay {
  animation: float-y 5.5s ease-in-out infinite;
  animation-delay: -1.5s;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-chip {
  position: absolute;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(79, 110, 247, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.chip-a { top: 12%; left: 0; }
.chip-b { top: 48%; right: -4%; }
.chip-c { bottom: 10%; left: 8%; }

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  padding: 1.3rem 1.1rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #1e293b, #4f6ef7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Glass */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* ---------- Model Story：GPT / Claude 上下分章 ---------- */
.model-story {
  position: relative;
  z-index: 2;
  /* 必须远高于 100vh，滚动进度才有“逐步”空间；否则 total≈0 会瞬间满进度 */
  height: 360vh;
  min-height: 2400px;
  overflow: visible;
}

.model-story-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* 注意：不要给 sticky 或其祖先加 transform，否则 sticky 会失效 */
}

.model-story-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.model-story.is-gpt .model-story-bg {
  background:
    radial-gradient(700px 420px at 18% 40%, rgba(79, 110, 247, 0.22), transparent 60%),
    radial-gradient(500px 360px at 80% 70%, rgba(124, 92, 252, 0.12), transparent 55%),
    linear-gradient(180deg, #f3f6ff 0%, #fafbff 50%, #ffffff 100%);
}

.model-story.is-claude .model-story-bg {
  background:
    radial-gradient(700px 420px at 18% 40%, rgba(217, 119, 87, 0.2), transparent 60%),
    radial-gradient(500px 360px at 80% 70%, rgba(255, 180, 140, 0.16), transparent 55%),
    linear-gradient(180deg, #fff7f2 0%, #fffaf7 50%, #ffffff 100%);
}

.model-story-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: center;
}

.model-story-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 280px;
}

.model-logo {
  position: relative;
  width: min(260px, 42vw);
  height: min(260px, 42vw);
  display: grid;
  place-items: center;
  /* 初始必须是小图标；由 JS 按滚动进度放大 */
  transform: scale(0.28);
  transform-origin: center center;
  will-change: transform, opacity;
  opacity: 0.65;
  backface-visibility: hidden;
}

.model-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(79, 110, 247, 0.18);
  box-shadow:
    0 0 0 18px rgba(79, 110, 247, 0.05),
    0 30px 80px rgba(79, 110, 247, 0.12);
  animation: logo-ring-pulse 4s ease-in-out infinite;
}

.model-story.is-claude .model-logo-ring {
  border-color: rgba(217, 119, 87, 0.22);
  box-shadow:
    0 0 0 18px rgba(217, 119, 87, 0.06),
    0 30px 80px rgba(217, 119, 87, 0.14);
}

@keyframes logo-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.75; }
}

.model-logo-mark {
  width: 58%;
  height: 58%;
  border-radius: 28%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  position: relative;
  z-index: 1;
}

.model-logo-mark img {
  width: 56%;
  height: 56%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.model-story-copy {
  /* 标题区随滚动显现（由 JS 驱动） */
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
  /* 禁止内部滚动，不出现滑动条 */
  overflow: hidden;
  max-height: none;
}

.model-story-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.model-story.is-gpt .model-story-tag {
  color: #4f6ef7;
  background: rgba(79, 110, 247, 0.1);
}

.model-story.is-claude .model-story-tag {
  color: #c45d38;
  background: rgba(217, 119, 87, 0.12);
}

.model-story-copy h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.model-story-accent {
  display: inline-block;
}

.model-story.is-gpt .model-story-accent {
  background: linear-gradient(135deg, #412991, #4f6ef7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.model-story.is-claude .model-story-accent {
  color: #d97757;
}

.model-story-lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.95rem;
  max-width: 38rem;
}

.model-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.model-benefits li {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(99, 120, 180, 0.12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  /* 初始隐藏，滚动时逐条出现 */
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.model-benefits strong {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.model-benefits span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.model-story.is-gpt .model-benefits li {
  border-left: 3px solid rgba(79, 110, 247, 0.55);
}

.model-story.is-claude .model-benefits li {
  border-left: 3px solid rgba(217, 119, 87, 0.65);
}

.model-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

.model-chip {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(99, 120, 180, 0.14);
  color: #475569;
}

.model-chip.hot {
  color: #fff;
  border-color: transparent;
}

.model-story.is-gpt .model-chip.hot {
  background: linear-gradient(135deg, #4f6ef7, #7c5cfc);
  box-shadow: 0 8px 20px rgba(79, 110, 247, 0.28);
}

.model-story.is-claude .model-chip.hot {
  background: linear-gradient(135deg, #d97757, #e8a07a);
  box-shadow: 0 8px 20px rgba(217, 119, 87, 0.28);
}

.model-story.is-active .model-logo-ring {
  animation-duration: 2.6s;
}

@media (max-width: 900px) {
  .model-story {
    height: 340vh;
    min-height: 2200px;
  }

  .model-story-inner {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    align-content: start;
    padding: 4.5rem 0 1rem;
    max-height: none;
  }

  .model-story-sticky {
    align-items: flex-start;
  }

  .model-story-visual {
    min-height: auto;
    gap: 0.5rem;
  }

  .model-logo {
    width: min(140px, 34vw);
    height: min(140px, 34vw);
  }

  .model-story-copy h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  }

  .model-benefits li {
    padding: 0.55rem 0.7rem;
  }

  .model-benefits span {
    font-size: 0.78rem;
  }
}

/* ---------- Marquee ---------- */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 1rem;
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  margin-bottom: 0.8rem;
}

.marquee-track {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee.reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 38s;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: #475569;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(79, 110, 247, 0.06);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, transparent, rgba(238, 243, 255, 0.8), transparent);
}

.section-head {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Bento features ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.bento-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.6rem;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.bento-card.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  transition-delay: var(--delay, 0ms);
}

.bento-card.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bento-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 110, 247, 0.28);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.12), rgba(124, 92, 252, 0.1));
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card:hover .card-icon {
  transform: scale(1.1) rotate(-6deg);
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.bento-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 42px;
  margin-top: 1.4rem;
}

.wave-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  opacity: 0.75;
  animation: wave 1.2s ease-in-out infinite;
  animation-play-state: paused;
}

.bento-card.reveal.visible .wave-bars i {
  animation-play-state: running;
}

.wave-bars i:nth-child(1) { height: 35%; animation-delay: 0s; }
.wave-bars i:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.wave-bars i:nth-child(3) { height: 45%; animation-delay: 0.2s; }
.wave-bars i:nth-child(4) { height: 85%; animation-delay: 0.3s; }
.wave-bars i:nth-child(5) { height: 55%; animation-delay: 0.4s; }
.wave-bars i:nth-child(6) { height: 95%; animation-delay: 0.5s; }
.wave-bars i:nth-child(7) { height: 40%; animation-delay: 0.6s; }
.wave-bars i:nth-child(8) { height: 70%; animation-delay: 0.7s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.45); }
}

/* ---------- Models (GPT + Claude) ---------- */
.model-series {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.series-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.series-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 110, 247, 0.28);
}

.series-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.series-head h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.series-head p {
  color: var(--muted);
  font-size: 0.9rem;
}

.model-orb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
  animation: orb-spin 8s linear infinite;
}

.model-orb::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.o1 { background: conic-gradient(from 0deg, #4f6ef7, #7c5cfc, #12c2a4, #4f6ef7); }
.o2 { background: conic-gradient(from 0deg, #ff6bcb, #7c5cfc, #ff9f43, #ff6bcb); animation-duration: 10s; }

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

.model-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.model-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.model-list li:hover {
  transform: translateX(4px);
  border-color: rgba(79, 110, 247, 0.3);
  box-shadow: 0 10px 24px rgba(79, 110, 247, 0.1);
}

.model-name {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.model-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.15);
}

.model-tag.hot {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 110, 247, 0.3);
  animation: tag-pulse 2s ease-in-out infinite;
}

@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(79, 110, 247, 0.3); }
  50% { box-shadow: 0 8px 24px rgba(124, 92, 252, 0.45); }
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.step {
  flex: 1 1 200px;
  max-width: 280px;
  padding: 1.8rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.step h3 {
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--muted);
  font-size: 0.94rem;
}

.step-line {
  width: 48px;
  height: 2px;
  align-self: center;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.step-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: line-shimmer 1.8s ease-in-out infinite;
}

@keyframes line-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- CTA ---------- */
.cta-section {
  padding-bottom: 4rem;
}

.cta-panel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 4rem 2rem;
  text-align: center;
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(124, 92, 252, 0.2), transparent 70%),
    linear-gradient(135deg, #ffffff, #eef2ff 50%, #f5f0ff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.cta-rays {
  position: absolute;
  inset: -40%;
  background:
    conic-gradient(from 0deg at 50% 50%,
      transparent 0deg,
      rgba(79, 110, 247, 0.07) 20deg,
      transparent 40deg,
      rgba(124, 92, 252, 0.07) 60deg,
      transparent 80deg,
      rgba(18, 194, 164, 0.05) 100deg,
      transparent 120deg);
  animation: rays-spin 20s linear infinite;
  pointer-events: none;
}

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

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.cta-content p {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 1.8rem;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.8rem 0 2.4rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--primary);
  font-weight: 600;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 统计卡 / 步骤 入场略带缩放 */
.stat-card.reveal,
.step.reveal,
.series-card.reveal {
  transform: translateY(32px) scale(0.97);
}

.stat-card.reveal.visible,
.step.reveal.visible,
.series-card.reveal.visible {
  transform: translateY(0) scale(1);
}

/* Tilt will be handled by JS transform; keep transition smooth */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    min-height: 360px;
    order: -1;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .bento-card.span-2 {
    grid-column: span 2;
  }

  .model-series {
    grid-template-columns: 1fr;
  }

  .step-line {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: flex;
    gap: 0.55rem;
  }

  .nav-links .btn {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }

  .lang-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
  }

  .lang-current {
    min-width: 0;
  }

  .menu-toggle,
  .mobile-menu,
  .nav-right-mobile {
    display: none !important;
  }

  .lang-menu {
    right: 0;
    left: auto;
  }

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

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .model-series {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .chip-b {
    right: 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1160px, calc(100% - 1.4rem));
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow,
  .cursor-dot,
  .cursor-trail {
    display: none !important;
  }
}
