/* CarePetly — 暗黑高奢登录落地页 */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;450;500&display=swap');

:root {
  --lux-bg: #060608;
  --lux-fg: #f4f0ea;
  --lux-muted: rgba(244, 240, 234, 0.52);
  --lux-gold: #c9a86c;
  --lux-gold-soft: rgba(201, 168, 108, 0.35);
  --lux-glass: rgba(12, 12, 16, 0.42);
  --lux-glass-border: rgba(255, 255, 255, 0.1);
  --lux-divider: rgba(255, 255, 255, 0.06);
  --lux-input-bg: rgba(0, 0, 0, 0.28);
  --lux-input-border: rgba(255, 255, 255, 0.08);
  --lux-placeholder: rgba(244, 240, 234, 0.28);
  --lux-footnote: rgba(244, 240, 234, 0.35);
  --lux-nav-bg: linear-gradient(180deg, rgba(6, 6, 8, 0.72), transparent);
  --lux-vignette: linear-gradient(180deg, rgba(6, 6, 8, 0.55) 0%, transparent 28%, transparent 62%, rgba(6, 6, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 6, 8, 0.65) 0%, transparent 42%, transparent 58%, rgba(6, 6, 8, 0.75) 100%);
  --lux-blur: 28px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body.lux-login[data-theme="light"] {
  --lux-bg: #f4f2ee;
  --lux-fg: #1a1814;
  --lux-muted: rgba(26, 24, 20, 0.58);
  --lux-gold: #9a7b42;
  --lux-gold-soft: rgba(154, 123, 66, 0.28);
  --lux-glass: rgba(255, 255, 255, 0.72);
  --lux-glass-border: rgba(26, 24, 20, 0.1);
  --lux-divider: rgba(26, 24, 20, 0.08);
  --lux-input-bg: rgba(255, 255, 255, 0.88);
  --lux-input-border: rgba(26, 24, 20, 0.12);
  --lux-placeholder: rgba(26, 24, 20, 0.32);
  --lux-footnote: rgba(26, 24, 20, 0.42);
  --lux-nav-bg: linear-gradient(180deg, rgba(244, 242, 238, 0.92), rgba(244, 242, 238, 0.4));
  --lux-vignette: linear-gradient(180deg, rgba(244, 242, 238, 0.35) 0%, transparent 24%, transparent 68%, rgba(244, 242, 238, 0.88) 100%),
    linear-gradient(90deg, rgba(244, 242, 238, 0.45) 0%, transparent 40%, transparent 60%, rgba(244, 242, 238, 0.5) 100%);
}

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

html {
  scroll-behavior: smooth;
  background: var(--lux-bg);
}

body.lux-login {
  font-family: var(--font-body);
  color: var(--lux-fg);
  background: var(--lux-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* —— 滚动进度 —— */
.lux-scroll-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.06);
}

.lux-scroll-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--lux-gold), transparent);
  transition: width 0.08s linear;
}

/* —— 电影级视频背景 —— */
.lux-cinema {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.lux-cinema video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.72) contrast(1.08) brightness(0.55);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

.lux-cinema.is-ready video { opacity: 1; }

.lux-cinema-fallback {
  position: absolute;
  inset: 0;
  background-color: #060608;
  background-image:
    linear-gradient(165deg, rgba(6, 6, 8, 0.35) 0%, rgba(6, 6, 8, 0.55) 100%),
    url('../assets/images/login-hero-poster.png?v=chapters-v2');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.lux-cinema-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lux-cinema-vignette {
  position: absolute;
  inset: 0;
  background: var(--lux-vignette);
  pointer-events: none;
  transition: background 0.45s var(--ease-out);
}

body.lux-login[data-theme="light"] .lux-cinema video {
  filter: saturate(0.92) contrast(1.04) brightness(0.92);
}

body.lux-login[data-theme="light"] .lux-cinema-fallback {
  background-color: #f4f2ee;
  background-image:
    linear-gradient(165deg, rgba(244, 242, 238, 0.72) 0%, rgba(244, 242, 238, 0.88) 100%),
    url('../assets/images/login-hero-poster.png?v=chapters-v2');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.lux-login[data-theme="light"] .lux-cinema-grain {
  opacity: 0.025;
}

/* —— 顶栏 —— */
.lux-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--lux-nav-bg);
  transition: background 0.45s var(--ease-out);
}

.lux-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lux-theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--lux-glass-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--lux-gold);
  cursor: pointer;
  transition: border-color 0.24s var(--ease-out), background 0.24s var(--ease-out), color 0.24s, transform 0.2s;
}

body.lux-login[data-theme="light"] .lux-theme-toggle {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(26, 24, 20, 0.06);
}

.lux-theme-toggle:hover {
  border-color: var(--lux-gold-soft);
  background: rgba(201, 168, 108, 0.1);
  transform: scale(1.04);
}

.lux-theme-toggle:focus-visible {
  outline: 2px solid var(--lux-gold);
  outline-offset: 2px;
}

.lux-theme-icon {
  position: absolute;
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out);
}

.lux-theme-icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.lux-theme-icon--moon {
  opacity: 0;
  transform: rotate(-30deg) scale(0.7);
}

body.lux-login[data-theme="light"] .lux-theme-icon--sun {
  opacity: 0;
  transform: rotate(30deg) scale(0.7);
}

body.lux-login[data-theme="light"] .lux-theme-icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.lux-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--lux-fg);
}

.lux-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--lux-glass-border);
  display: block;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
}

.lux-logo-mark--panel {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 3px;
}

.lux-panel-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.lux-panel-brand h2 {
  margin: 0;
  line-height: 1.2;
}

.lux-panel-sub--inline {
  margin: 2px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-gold);
  opacity: 0.85;
}

.lux-logo span {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lux-muted);
}

.lux-nav-cta {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lux-fg);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--lux-glass-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  transition: border-color 0.24s var(--ease-out), background 0.24s var(--ease-out);
}

.lux-nav-cta:hover {
  border-color: var(--lux-gold-soft);
  background: rgba(201, 168, 108, 0.08);
}

.lux-nav-links {
  display: flex;
  gap: 28px;
}

.lux-nav-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lux-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.lux-nav-links a:hover { color: var(--lux-gold); }

@media (max-width: 900px) {
  .lux-nav-links { display: none; }
}

/* —— 章节导航点 —— */
.lux-chapter-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lux-chapter-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}

.lux-chapter-dot.is-active,
.lux-chapter-dot:hover {
  background: var(--lux-gold);
  border-color: var(--lux-gold);
  transform: scale(1.35);
}

@media (max-width: 900px) {
  .lux-chapter-nav { display: none; }
}

/* —— 滚动后迷你登录条 —— */
.lux-sticky-login {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid var(--lux-glass-border);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.35s;
}

.lux-sticky-login.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.lux-sticky-login__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lux-muted);
  white-space: nowrap;
}

.lux-sticky-login__mark {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 1px;
  flex-shrink: 0;
}

.lux-sticky-login__btn {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0a0806;
  background: var(--lux-gold);
  border-radius: 999px;
}

@media (max-width: 600px) {
  .lux-sticky-login { left: 16px; right: 16px; transform: translateY(80px); width: auto; justify-content: space-between; }
  .lux-sticky-login.is-visible { transform: translateY(0); }
}

/* —— 主布局 —— */
.lux-main {
  position: relative;
  z-index: 1;
}

.lux-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 48px;
  align-items: center;
  padding: 120px 48px 80px;
  max-width: 1320px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .lux-hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 64px;
  }
  .lux-login-panel { order: -1; }
}

/* —— 叙事区 —— */
.lux-story-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lux-gold);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px);
  animation: lux-rise 0.8s var(--ease-out) 0.2s forwards;
}

.lux-hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 14ch;
}

.lux-hero-title .blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(8px);
}

.lux-hero-title .blur-word.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition: opacity 0.65s var(--ease-out), filter 0.75s var(--ease-out), transform 0.65s var(--ease-out);
}

.lux-hero-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--lux-muted);
  max-width: 42ch;
  margin-bottom: 40px;
  opacity: 0;
  animation: lux-rise 0.9s var(--ease-out) 1.1s forwards;
}

.lux-lifecycle-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  animation: lux-rise 0.9s var(--ease-out) 1.4s forwards;
}

.lux-lifecycle-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--lux-divider);
  cursor: default;
  transition: padding-left 0.3s var(--ease-out);
}

.lux-lifecycle-item:last-child { border-bottom: 1px solid var(--lux-divider); }

.lux-lifecycle-item:hover,
.lux-lifecycle-item.is-highlight { padding-left: 6px; }

.lux-lifecycle-item.is-highlight .lux-lifecycle-num { opacity: 1; }

.lux-lifecycle-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--lux-gold);
  line-height: 1;
  opacity: 0.7;
}

.lux-lifecycle-item h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.lux-lifecycle-item p {
  font-size: 13px;
  color: var(--lux-muted);
  line-height: 1.5;
}

/* —— 液态玻璃登录卡 —— */
.lux-glass {
  background: var(--lux-glass);
  backdrop-filter: blur(var(--lux-blur));
  -webkit-backdrop-filter: blur(var(--lux-blur));
  border: 1px solid var(--lux-glass-border);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 32px 80px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.lux-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.lux-glass--liquid {
  animation: lux-border-glow 8s ease-in-out infinite;
}

.lux-glass-shine {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(201, 168, 108, 0.08), transparent 30%);
  animation: lux-shine-spin 12s linear infinite;
  pointer-events: none;
}

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

@keyframes lux-border-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 32px 80px rgba(0,0,0,0.45); }
  50% { box-shadow: 0 0 0 1px rgba(201,168,108,0.12) inset, 0 32px 80px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,108,0.06); }
}

body.lux-login[data-theme="light"] .lux-glass {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 24px 64px rgba(26, 24, 20, 0.08);
}

body.lux-login[data-theme="light"] .lux-login-panel.lux-glass {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(26, 24, 20, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 28px 72px rgba(26, 24, 20, 0.12);
}

body.lux-login[data-theme="light"] .lux-glass::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

body.lux-login[data-theme="light"] .lux-glass--liquid {
  animation: lux-border-glow-light 8s ease-in-out infinite;
}

@keyframes lux-border-glow-light {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.5) inset, 0 24px 64px rgba(26,24,20,0.08); }
  50% { box-shadow: 0 0 0 1px rgba(154,123,66,0.15) inset, 0 28px 72px rgba(26,24,20,0.1), 0 0 32px rgba(154,123,66,0.08); }
}

.lux-login-panel {
  padding: 36px 32px 32px;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: lux-panel-in 1s var(--ease-out) 0.5s forwards;
  z-index: 1;
}

/* 登录卡同时需要入场 + 边框光晕；浅色主题的 .lux-glass--liquid 会覆盖 animation，必须合并 */
.lux-login-panel.lux-glass--liquid {
  animation:
    lux-panel-in 1s var(--ease-out) 0.5s forwards,
    lux-border-glow 8s ease-in-out infinite;
}

body.lux-login[data-theme="light"] .lux-login-panel.lux-glass--liquid {
  animation:
    lux-panel-in 1s var(--ease-out) 0.5s forwards,
    lux-border-glow-light 8s ease-in-out infinite;
}

.lux-login-panel h2,
.lux-login-panel form,
.lux-login-panel .lux-panel-sub,
.lux-login-panel .lux-footnote {
  position: relative;
  z-index: 2;
}

.lux-login-panel h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 6px;
}

.lux-login-panel .lux-panel-sub {
  font-size: 13px;
  color: var(--lux-muted);
  margin-bottom: 28px;
}

.lux-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.lux-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lux-muted);
}

.lux-field input,
.lux-field select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--lux-fg);
  background: var(--lux-input-bg);
  border: 1px solid var(--lux-input-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lux-field input::placeholder { color: var(--lux-placeholder); }

.lux-field input:focus,
.lux-field select:focus {
  border-color: var(--lux-gold-soft);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.12);
}

.lux-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23c9a86c' stroke-width='1.2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.lux-field select option {
  background: var(--lux-bg);
  color: var(--lux-fg);
}

.lux-error {
  display: none;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #ffb4b4;
  background: rgba(207, 32, 48, 0.15);
  border: 1px solid rgba(207, 32, 48, 0.35);
  border-radius: 10px;
}

.lux-error.show { display: block; }

.lux-error.is-info {
  color: #c9e8ff;
  background: rgba(4, 159, 217, 0.12);
  border-color: rgba(4, 159, 217, 0.35);
}

.lux-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}

.lux-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--lux-muted);
  cursor: pointer;
}

.lux-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--lux-gold);
}

.lux-link {
  font-size: 13px;
  color: var(--lux-gold);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.lux-link:hover { opacity: 1; text-decoration: underline; }

.lux-cta {
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0806;
  background: linear-gradient(135deg, #e8d4a8 0%, var(--lux-gold) 45%, #a88648 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s;
  box-shadow: 0 8px 32px rgba(201, 168, 108, 0.28);
}

.lux-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
}

.lux-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(201, 168, 108, 0.38);
}

.lux-cta:hover::after { transform: translateX(120%); }

.lux-cta__text { position: relative; z-index: 1; }

.lux-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,255,255,0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}

.lux-cta:hover .lux-cta__glow { opacity: 1; }

.lux-cta--inline {
  width: auto;
  display: inline-block;
  padding: 16px 40px;
  text-decoration: none;
}

.lux-cta:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.lux-footnote {
  margin-top: 20px;
  font-size: 11px;
  color: var(--lux-footnote);
  text-align: center;
  line-height: 1.5;
}

/* —— 分段叙事区 —— */
.lux-chapters {
  position: relative;
  z-index: 1;
  padding: 0 48px 120px;
  max-width: 1320px;
  margin: 0 auto;
}

.lux-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 70vh;
  padding: 80px 0;
  border-top: 1px solid var(--lux-divider);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.lux-chapter.in-view {
  opacity: 1;
  transform: translateY(0);
}

.lux-chapter:nth-child(even) .lux-chapter-visual { order: 2; }
.lux-chapter:nth-child(even) .lux-chapter-copy { order: 1; }

@media (max-width: 900px) {
  .lux-chapters { padding: 0 24px 80px; }
  .lux-chapter {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
  }
  .lux-chapter:nth-child(even) .lux-chapter-visual { order: 0; }
}

.lux-chapter-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-gold);
  margin-bottom: 16px;
}

.lux-chapter h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.lux-chapter h2 .blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(6px);
}

.lux-chapter.in-view h2 .blur-word.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out), filter 0.7s var(--ease-out), transform 0.6s var(--ease-out);
}

.lux-chapter p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--lux-muted);
  max-width: 48ch;
}

.lux-chapter-visual {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 1px solid var(--lux-glass-border);
  background: var(--lux-glass);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

.lux-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.lux-scene-bg {
  position: absolute;
  inset: 0;
  background-color: #0e0c12;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.92;
}

.lux-scene--puppy .lux-scene-bg {
  background-image:
    linear-gradient(160deg, rgba(6, 6, 8, 0.42), rgba(6, 6, 8, 0.78)),
    url('../assets/images/chapter-puppy-nursery.png?v=chapters-v2');
  background-position: center 35%;
}

.lux-scene--adult .lux-scene-bg {
  background-image:
    linear-gradient(200deg, rgba(6, 6, 8, 0.38), rgba(6, 6, 8, 0.76)),
    url('../assets/images/chapter-adult-active.png?v=chapters-v2');
  background-position: center 40%;
}

.lux-scene--senior .lux-scene-bg {
  background-image:
    linear-gradient(180deg, rgba(6, 6, 8, 0.4), rgba(6, 6, 8, 0.8)),
    url('../assets/images/chapter-senior-comfort.png?v=chapters-v2');
  background-position: center 45%;
}

.lux-scene--ai .lux-scene-bg {
  background-image:
    linear-gradient(135deg, rgba(6, 6, 8, 0.35), rgba(6, 6, 8, 0.72)),
    url('../assets/images/chapter-ai-advisors.png?v=chapters-v2');
  background-position: center center;
}

.lux-scene-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lux-gold);
  margin-bottom: 8px;
}

.lux-scene-metric {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

.lux-scene-desc {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--lux-muted);
}

.lux-scene-nodes {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 1;
}

.lux-node {
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--lux-muted);
}

/* AI 顾问轨道 */
.lux-scene-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border: 1px dashed rgba(201, 168, 108, 0.2);
  border-radius: 50%;
  animation: lux-orbit-spin 24s linear infinite;
}

.lux-orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 108, 0.35);
  background: rgba(0, 0, 0, 0.5);
  color: var(--lux-gold);
  transform:
    rotate(calc(var(--i) * 72deg))
    translateY(-100px)
    rotate(calc(var(--i) * -72deg));
}

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

/* —— 底部 CTA —— */
.lux-finale {
  text-align: center;
  padding: 100px 24px 140px;
  border-top: 1px solid var(--lux-divider);
}

.lux-finale h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}

.lux-finale p {
  font-size: 16px;
  color: var(--lux-muted);
  margin-bottom: 32px;
}

.lux-finale .lux-cta {
  width: auto;
  display: inline-block;
  padding: 16px 40px;
  text-decoration: none;
}

/* —— 动画 —— */
@keyframes lux-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lux-panel-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— 浅色主题补充 —— */
body.lux-login[data-theme="light"] .lux-scroll-track {
  background: rgba(26, 24, 20, 0.06);
}

body.lux-login[data-theme="light"] .lux-logo-mark,
body.lux-login[data-theme="light"] .lux-nav-cta {
  background: #fff;
}

body.lux-login[data-theme="light"] .lux-sticky-login {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 32px rgba(26, 24, 20, 0.1);
}

body.lux-login[data-theme="light"] .lux-chapter-dot {
  border-color: rgba(26, 24, 20, 0.2);
}

body.lux-login[data-theme="light"] .lux-scene--puppy .lux-scene-bg {
  background-image:
    linear-gradient(160deg, rgba(244, 242, 238, 0.35), rgba(244, 242, 238, 0.62)),
    url('../assets/images/chapter-puppy-nursery.png?v=chapters-v2');
}

body.lux-login[data-theme="light"] .lux-scene--adult .lux-scene-bg {
  background-image:
    linear-gradient(200deg, rgba(244, 242, 238, 0.32), rgba(244, 242, 238, 0.58)),
    url('../assets/images/chapter-adult-active.png?v=chapters-v2');
}

body.lux-login[data-theme="light"] .lux-scene--senior .lux-scene-bg {
  background-image:
    linear-gradient(180deg, rgba(244, 242, 238, 0.34), rgba(244, 242, 238, 0.6)),
    url('../assets/images/chapter-senior-comfort.png?v=chapters-v2');
}

body.lux-login[data-theme="light"] .lux-scene--ai .lux-scene-bg {
  background-image:
    linear-gradient(135deg, rgba(244, 242, 238, 0.3), rgba(244, 242, 238, 0.55)),
    url('../assets/images/chapter-ai-advisors.png?v=chapters-v2');
}

body.lux-login[data-theme="light"] .lux-node {
  border-color: rgba(26, 24, 20, 0.1);
  background: rgba(255, 255, 255, 0.65);
}

body.lux-login[data-theme="light"] .lux-orbit-node {
  background: rgba(255, 255, 255, 0.75);
}

body.lux-login,
body.lux-login .lux-cinema video,
body.lux-login .lux-cinema-vignette {
  transition: background-color 0.45s var(--ease-out), color 0.35s var(--ease-out), filter 0.45s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .lux-hero-title .blur-word,
  .lux-chapter h2 .blur-word {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  .lux-story-eyebrow,
  .lux-hero-lead,
  .lux-lifecycle-rail,
  .lux-login-panel,
  .lux-chapter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .lux-cinema video { display: none; }
  .lux-glass--liquid,
  .lux-glass-shine,
  .lux-scene-orbit { animation: none !important; }
  .lux-sticky-login { display: none; }
}
