@font-face {
  font-family: "Bradford LL";
  font-style: normal;
  font-weight: 450;
  font-display: swap;
  src:
    url("https://microsoft.ai/wp-content/themes/wp-base-theme/dist/assets/fonts/BradfordLLWeb-Regular.woff2") format("woff2"),
    url("https://microsoft.ai/wp-content/themes/wp-base-theme/dist/assets/fonts/BradfordLLWeb-Regular.woff") format("woff");
}

@font-face {
  font-family: "Bradford LL";
  font-style: italic;
  font-weight: 450;
  font-display: swap;
  src:
    url("https://microsoft.ai/wp-content/themes/wp-base-theme/dist/assets/fonts/BradfordLLWeb-Italic.woff2") format("woff2"),
    url("https://microsoft.ai/wp-content/themes/wp-base-theme/dist/assets/fonts/BradfordLLWeb-Italic.woff") format("woff");
}

:root {
  --ink-900: #1b1916;
  --ink-700: #3a332c;
  --ink-500: #5e564c;
  --paper-100: #fdfaf4;
  --paper-200: #f7f1e6;
  --paper-300: #efe3d3;
  --sea-500: #4da8b6;
  --sea-600: #2f7b86;
  --sun-500: #e5a46f;
  --sun-400: #f0c29a;
  --moss-500: #8d9a7b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-soft: 0 18px 40px rgba(20, 18, 14, 0.12);
  --shadow-strong: 0 30px 70px rgba(20, 18, 14, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1200px, 92vw);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Fraunces", "Noto Serif SC", "Songti SC", serif;
  --font-bradford: "Bradford LL", "Fraunces", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Space Grotesk", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

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

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

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

body.lw-landing {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-100);
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.lw-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict; /* 限制重排范围 */
  background:
    radial-gradient(60% 60% at 10% 20%, rgba(240, 194, 154, 0.4), transparent 70%),
    radial-gradient(70% 70% at 90% 10%, rgba(77, 168, 182, 0.32), transparent 70%),
    radial-gradient(80% 80% at 20% 80%, rgba(141, 154, 123, 0.25), transparent 70%),
    radial-gradient(80% 80% at 80% 75%, rgba(229, 164, 111, 0.25), transparent 70%);
}

.lw-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35)),
    linear-gradient(transparent 0, rgba(255, 255, 255, 0.4) 120%);
  mix-blend-mode: screen;
  opacity: 0.65;
}

.lw-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
}

.lw-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px); /* 从120px优化到 80px */
  opacity: 0.55;
  /* GPU优化: 将orb提升到独立图层 */
  transform: translateZ(0);
  will-change: auto; /* 静态元素不需要始终保持 */
  contain: strict; /* 限制渲染边界 */
}

.lw-orb--one {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -80px;
  background: rgba(240, 194, 154, 0.8);
}

.lw-orb--two {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -120px;
  background: rgba(77, 168, 182, 0.65);
}

.lw-orb--three {
  width: 520px;
  height: 520px;
  bottom: -120px;
  left: 10%;
  background: rgba(141, 154, 123, 0.45);
}

.lw-orb--four {
  width: 560px;
  height: 560px;
  bottom: -160px;
  right: 10%;
  background: rgba(229, 164, 111, 0.45);
}

.lw-header-wrap {
  position: sticky;
  top: 16px;
  z-index: 10;
}

.lw-header {
  width: var(--container);
  margin: 0 auto;
  padding: 14px 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: all 0.3s ease;
}

.lw-header.is-scrolled {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px); /* 从12px优化到 8px */
  box-shadow: var(--shadow-soft);
}

.lw-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lw-brand__mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 16px rgba(20, 18, 14, 0.08);
  overflow: hidden;
}

.lw-brand__mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.lw-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lw-brand__name {
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.lw-brand__tagline {
  font-size: 0.9rem;
  color: var(--ink-500);
}

.lw-nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--ink-500);
}

.lw-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.lw-nav a:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-900);
}

.lw-header__actions {
  display: flex;
  gap: 10px;
}

.lw-lang {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  padding: 4px;
  gap: 4px;
}

.lw-lang__btn {
  border: none;
  background: transparent;
  color: var(--ink-500);
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lw-lang__btn.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-900);
  box-shadow: 0 6px 16px rgba(20, 18, 14, 0.12);
}

.lw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  gap: 8px;
}

.lw-btn--primary {
  background: linear-gradient(135deg, var(--sea-500), #6fd6c6);
  color: #fff;
  box-shadow: 0 12px 30px rgba(77, 168, 182, 0.3);
}

.lw-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(77, 168, 182, 0.35);
}

.lw-btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--ink-700);
}

.lw-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
  contain: layout; /* 限制布局重排范围 */
}

.lw-hero {
  width: var(--container);
  margin: 110px auto 90px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.lw-hero__content {
  display: grid;
  justify-items: center;
  max-width: 900px;
}

.lw-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--ink-500);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lw-hero__title {
  font-family: var(--font-bradford);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 24px 0 18px;
}

.lw-hero__line {
  display: block;
  white-space: nowrap;
}

.lw-hero__line--accent {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.lw-hero-typing {
  background: linear-gradient(120deg, var(--sea-600), var(--sun-500));
  -webkit-background-clip: text;
  color: transparent;
  min-height: 1.05em;
  white-space: nowrap;
}

.lw-hero-caret {
  width: 0.08em;
  height: 0.9em;
  background: linear-gradient(120deg, var(--sea-600), var(--sun-500));
  border-radius: 999px;
  display: inline-block;
  transform: translateY(0.08em);
  animation: lw-caret-blink 1s step-end infinite;
}

@keyframes lw-caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lw-hero-caret {
    animation: none;
    opacity: 0;
  }
}

.lw-hero__subtitle {
  font-size: 1rem;
  color: var(--ink-700);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: balance;
}

.lw-hero__actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.lw-chip-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.lw-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

.lw-hero__meta {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.lw-meta-card {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
  color: var(--ink-700);
}

.lw-meta__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
}

.lw-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px); /* 从14px优化到 8px */
}

.lw-card__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-500);
}

.lw-card__title {
  font-size: 1.2rem;
  margin: 8px 0 14px;
}

.lw-hero__visual {
  display: grid;
  place-items: center;
  margin-top: 36px;
}

.lw-hero-window {
  width: min(720px, 100%);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(18, 22, 32, 0.98), rgba(12, 16, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(8, 10, 18, 0.35);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(8px);
}

.lw-hero-window::before {
  content: "";
  position: absolute;
  inset: -60px 35% 40% -30px;
  background: radial-gradient(circle at top left, rgba(77, 168, 182, 0.35), transparent 62%);
  opacity: 0.55;
  pointer-events: none;
}

.lw-hero-window__bar {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(10, 14, 22, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: rgba(220, 230, 245, 0.88);
  position: relative;
  z-index: 1;
  min-height: 58px;
}

.lw-hero-window__dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lw-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}

.lw-hero-dot--red {
  background: #ff5f57;
}

.lw-hero-dot--yellow {
  background: #ffbd2e;
}

.lw-hero-dot--green {
  background: #28c840;
}

.lw-hero-window__title {
  justify-self: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lw-hero-window__center {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.lw-hero-segment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lw-hero-segment__btn {
  border: none;
  background: transparent;
  color: rgba(190, 205, 228, 0.7);
  font-size: 0.66rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-body);
}

.lw-hero-segment__btn.is-active {
  background: linear-gradient(135deg, rgba(77, 168, 182, 0.9), rgba(111, 214, 198, 0.9));
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 120, 130, 0.35);
}

.lw-hero-window__tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.lw-hero-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.62rem;
  color: rgba(220, 230, 245, 0.82);
  white-space: nowrap;
}

.lw-hero-window__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.96), rgba(10, 12, 20, 0.95));
  position: relative;
  z-index: 1;
}

.lw-hero-pane {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.lw-hero-pane__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(186, 202, 230, 0.7);
}

.lw-hero-pane--editor {
  background: linear-gradient(160deg, rgba(18, 22, 32, 0.98), rgba(10, 14, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px;
  color: rgba(214, 226, 245, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lw-hero-pane--editor .lw-hero-pane__label {
  color: rgba(186, 202, 230, 0.75);
}

.lw-hero-editor {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(214, 226, 245, 0.85);
}

.lw-hero-gutter {
  display: grid;
  gap: 6px;
  text-align: right;
  color: rgba(140, 160, 190, 0.65);
  font-size: 0.68rem;
  padding-top: 2px;
}

.lw-hero-editor__content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.lw-hero-code-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lw-hero-pane--render {
  align-content: start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 14px;
}

.lw-hero-paper {
  background: rgba(22, 26, 36, 0.96);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 18px 32px rgba(8, 12, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
  font-family: var(--font-display);
  color: rgba(232, 238, 248, 0.92);
}

.lw-hero-paper__title {
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.lw-hero-paper__meta {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: rgba(180, 196, 220, 0.75);
}

.lw-hero-paper__text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(210, 222, 240, 0.85);
  line-height: 1.4;
}

.lw-hero-paper__text.is-muted {
  color: rgba(170, 186, 210, 0.72);
  font-style: italic;
}

/* 可交互的卡片堆叠 */
.lw-stack-interactive {
  cursor: pointer;
}

.lw-stack-interactive .lw-visual-card {
  transition: all 0.4s var(--ease-out);
}

/* Highlights 区域卡片堆叠 */
.lw-visual-stack--highlights {
  width: min(720px, 92vw);
  height: 500px;
  margin: 36px auto 0;
}

.lw-visual-stack--highlights .lw-visual-card[data-card="0"] {
  z-index: 1;
  transform: translate(-150px, -18px) rotate(4deg);
}

.lw-visual-stack--highlights .lw-visual-card[data-card="1"] {
  z-index: 2;
  transform: translate(-40px, 6px) rotate(-2deg);
}

.lw-visual-stack--highlights .lw-visual-card[data-card="2"] {
  z-index: 3;
  transform: translate(70px, -14px) rotate(2deg);
}

.lw-visual-stack--highlights .lw-visual-card[data-card="3"] {
  z-index: 0;
  transform: translate(170px, 8px) rotate(-3deg);
}

.lw-visual-stack--highlights .lw-visual-card.is-front {
  z-index: 10 !important;
  transform: translate(12px, 20px) rotate(1deg) !important;
  box-shadow: 0 35px 70px rgba(12, 12, 24, 0.45);
}

/* Tab 切换样式 */
.lw-highlight-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.lw-highlight-tab {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.lw-highlight-tab:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.lw-highlight-tab.is-active {
  background: linear-gradient(135deg, var(--sea-500), #6fd6c6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(77, 168, 182, 0.3);
}

/* 角色与章节卡片样式 */
.lw-visual-card--characters {
  z-index: 2;
}

.lw-visual-card--ai {
  z-index: 1;
}

.lw-visual-card--agent {
  z-index: 0;
}

.lw-agent-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(10, 14, 24, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lw-agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(220, 230, 245, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lw-agent-title {
  font-weight: 600;
}

.lw-agent-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: rgba(145, 255, 209, 0.9);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
}

.lw-agent-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(120, 255, 200, 0.9);
  box-shadow: 0 0 8px rgba(120, 255, 200, 0.6);
}

.lw-agent-block {
  display: grid;
  gap: 6px;
}

.lw-agent-label {
  font-size: 0.7rem;
  color: rgba(180, 196, 220, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lw-agent-input {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 16, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: rgba(210, 222, 240, 0.8);
  line-height: 1.4;
}

.lw-agent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.lw-agent-badge {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(230, 236, 250, 0.9);
}

.lw-agent-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.lw-agent-check {
  position: relative;
  padding-left: 18px;
  font-size: 0.74rem;
  color: rgba(200, 212, 236, 0.8);
}

.lw-agent-check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.9));
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.18);
}

.lw-agent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lw-agent-btn {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  color: rgba(220, 230, 245, 0.85);
}

.lw-agent-btn.is-primary {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(59, 130, 246, 0.9));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(91, 140, 255, 0.25);
}

.lw-agent-note {
  font-size: 0.68rem;
  color: rgba(170, 184, 206, 0.6);
}

.lw-characters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.lw-char-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lw-char-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.lw-char-avatar--1 {
  background: linear-gradient(135deg, #6fd6c6, #4da8b6);
}

.lw-char-avatar--2 {
  background: linear-gradient(135deg, #e5a46f, #d4845a);
}

.lw-char-avatar--3 {
  background: linear-gradient(135deg, #8d9a7b, #6b7a5e);
}

.lw-char-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lw-char-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(240, 245, 255, 0.95);
}

.lw-char-role {
  font-size: 0.7rem;
  color: rgba(200, 210, 230, 0.7);
}

.lw-chapter-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  background: linear-gradient(135deg, rgba(77, 168, 182, 0.6), rgba(229, 164, 111, 0.6));
  border-radius: 3px;
  vertical-align: middle;
}

.lw-chapter-list {
  display: grid;
  gap: 8px;
}

.lw-chapter-item {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(12, 16, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: rgba(210, 220, 240, 0.8);
  transition: all 0.2s ease;
}

.lw-chapter-item.is-active {
  background: rgba(77, 168, 182, 0.2);
  border-color: rgba(77, 168, 182, 0.4);
  color: rgba(180, 230, 240, 0.95);
}

/* AI 操作按钮 */
.lw-ai-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.lw-ai-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(220, 230, 250, 0.9);
  transition: all 0.2s ease;
}

.lw-ai-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.lw-visual-stack {
  position: relative;
  width: min(520px, 90vw);
  height: 360px;
  perspective: 1200px;
  contain: layout style; /* 限制重排范围 */
}

.lw-visual-stack::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 32px;
  background: radial-gradient(circle at top right, rgba(120, 200, 218, 0.18), transparent 60%);
  opacity: 0.6;
  filter: blur(12px);
  z-index: 0;
}

.lw-visual-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(18, 22, 32, 0.97), rgba(10, 14, 24, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(12, 12, 24, 0.35);
  padding: 18px;
  color: rgba(233, 238, 248, 0.92);
  display: grid;
  gap: 12px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transform-style: preserve-3d;
  /* 优化: 移除will-change持久状态，改为动态开启 */
  contain: layout style; /* 限制重排范围 */
  isolation: isolate;
}

.lw-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(90, 160, 190, 0.18), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.lw-visual-card > * {
  position: relative;
  z-index: 1;
}

.lw-visual-tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lw-visual-card--split {
  transform: translate(22px, -6px) rotate(2deg);
  animation: float-gentle 10s ease-in-out infinite; /* 合并为统一的轻量级动画 */
  z-index: 3;
}

.lw-visual-card--diff {
  transform: translate(-12px, 20px) rotate(-3deg);
  animation: float-gentle 10s ease-in-out infinite 1.5s; /* 同样动画，不同延迟 */
  z-index: 2;
}

.lw-visual-card--story {
  transform: translate(-44px, 46px) rotate(4deg);
  animation: float-gentle 10s ease-in-out infinite 3s; /* 同样动画，不同延迟 */
  z-index: 1;
  opacity: 0.9;
}

.lw-split-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px;
  position: relative;
  z-index: 2;
}

.lw-split-col {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(210, 220, 240, 0.8);
}

.lw-split-col--preview {
  font-family: var(--font-display);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px;
  color: rgba(240, 245, 255, 0.92);
}

.lw-split-line {
  white-space: nowrap;
}

.lw-diff-lines {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(210, 220, 240, 0.82);
}

.lw-diff-line {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(12, 16, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lw-diff-line.is-add {
  background: rgba(86, 170, 122, 0.22);
  border-color: rgba(96, 190, 140, 0.32);
  color: #dff7eb;
}

.lw-diff-line.is-remove {
  background: rgba(190, 86, 86, 0.22);
  border-color: rgba(210, 100, 100, 0.32);
  color: #f6d4d4;
}

.lw-story-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.lw-story-paragraph {
  position: relative;
  padding: 6px 12px 6px 22px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  background: rgba(12, 16, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(214, 224, 244, 0.85);
}

.lw-story-paragraph.is-add {
  background: rgba(86, 170, 122, 0.18);
  border-color: rgba(96, 190, 140, 0.28);
  color: #dff7eb;
}

.lw-story-paragraph.is-remove {
  background: rgba(190, 86, 86, 0.18);
  border-color: rgba(210, 100, 100, 0.28);
  color: #f6d4d4;
}

.lw-story-paragraph.is-add::before,
.lw-story-paragraph.is-remove::before {
  position: absolute;
  left: 8px;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.lw-story-paragraph.is-add::before {
  content: "+";
  color: rgba(170, 245, 205, 0.9);
}

.lw-story-paragraph.is-remove::before {
  content: "-";
  color: rgba(245, 180, 180, 0.9);
}

/* 合并浮动动画为轻量级单一动画 */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 保留响应式简化版本 */
@keyframes float-split-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes float-diff-sm {
  0%, 100% { transform: translate(-8px, 12px) rotate(-2deg); }
  50% { transform: translate(-4px, 4px) rotate(-1deg); }
}

@keyframes float-story-sm {
  0%, 100% { transform: translate(-28px, 34px) rotate(3deg); }
  50% { transform: translate(-22px, 24px) rotate(2deg); }
}

.lw-ritual__list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.lw-ritual__item {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--ink-700);
}

.lw-ritual__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-500);
  background: transparent;
}

.lw-ritual__item.is-done::before {
  background: var(--sea-500);
  border-color: var(--sea-500);
  box-shadow: 0 0 0 4px rgba(77, 168, 182, 0.15);
}

.lw-ritual__item.is-done::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.lw-preview__pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lw-preview__col {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-700);
  display: grid;
  gap: 6px;
}

.lw-preview__col--paper {
  background: var(--paper-200);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.lw-preview__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
}

.lw-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.lw-stat {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-align: center;
}

.lw-stat__value {
  font-weight: 600;
  font-size: 1rem;
}

.lw-stat__label {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.lw-section {
  width: var(--container);
  margin: 0 auto 90px;
  contain: layout; /* 限制布局重排范围 */
}

.lw-section__header {
  max-width: 720px;
  margin-bottom: 36px;
  display: grid;
  gap: 12px;
}

.lw-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-500);
}

.lw-section h2 {
  font-family: var(--font-bradford);
  font-style: normal;
  font-weight: 450;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.lw-section p {
  color: var(--ink-700);
}

.lw-highlights {
  display: grid;
  gap: 18px;
}

.lw-highlights__visual {
  display: grid;
  place-items: center;
  margin-top: 24px;
}

.lw-highlight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.lw-highlight-card {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
}

.lw-flow {
  display: grid;
  gap: 22px;
}

.lw-flow-scenes {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  width: min(768px, 90vw);
  margin-left: auto;
  margin-right: auto;
}

.lw-flow-scene {
  --flow-scene-image: none;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(260px, 24vw, 300px);
  aspect-ratio: 2.56 / 1;
  padding: clamp(20px, 2vw, 30px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-strong);
  isolation: isolate;
  background-color: #6a4f53;
  background-image:
    linear-gradient(104deg, rgba(17, 12, 12, 0.5) 0%, rgba(21, 16, 17, 0.26) 38%, rgba(16, 12, 15, 0.16) 62%, rgba(14, 10, 14, 0.44) 100%),
    linear-gradient(180deg, rgba(10, 8, 9, 0.04) 0%, rgba(10, 8, 12, 0.38) 100%),
    var(--flow-scene-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.lw-flow-scene:hover {
  transform: translateY(-2px);
  box-shadow: 0 34px 76px rgba(20, 18, 14, 0.24);
}

.lw-flow-scene--1 {
  background-position: center 72%;
}

.lw-flow-scene--2 {
  background-position: center 74%;
}

.lw-flow-scene--3 {
  background-position: center 76%;
}

.lw-flow-scene__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.68'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.lw-flow-scene__motif {
  position: absolute;
  right: clamp(24px, 3.2vw, 48px);
  bottom: clamp(-10px, -0.2vw, 16px);
  width: min(272px, 34%);
  height: min(176px, 54%);
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(12, 10, 11, 0.16);
  opacity: 0.52;
  transform: rotate(-6deg);
  transform-origin: center;
  z-index: 1;
  pointer-events: none;
}

.lw-flow-scene__motif::before,
.lw-flow-scene__motif::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.lw-flow-scene__motif--outline {
  right: clamp(16px, 2.6vw, 34px);
  bottom: clamp(-14px, -0.2vw, 12px);
  transform: rotate(8deg);
}

.lw-flow-scene__motif--outline::before {
  inset: 18px 10px 24px 34px;
  border-radius: 16px;
  border: 1px solid rgba(255, 245, 233, 0.3);
  background:
    repeating-linear-gradient(180deg, rgba(255, 249, 241, 0.26) 0 2px, transparent 2px 16px),
    linear-gradient(160deg, rgba(255, 250, 244, 0.2), rgba(255, 224, 204, 0.08));
}

.lw-flow-scene__motif--outline::after {
  inset: 8px 26px 44px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 243, 232, 0.26);
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 253, 248, 0.52) 0 4px, transparent 5px),
    repeating-linear-gradient(180deg, rgba(255, 250, 243, 0.24) 0 2px, transparent 2px 14px),
    linear-gradient(150deg, rgba(255, 250, 242, 0.2), rgba(247, 215, 195, 0.06));
}

.lw-flow-scene__motif--draft {
  right: clamp(28px, 4vw, 58px);
  bottom: clamp(-18px, -0.4vw, 10px);
  transform: rotate(-6deg);
}

.lw-flow-scene__motif--draft::before {
  inset: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 245, 236, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.2), rgba(255, 230, 214, 0.08));
}

.lw-flow-scene__motif--draft::after {
  inset: 24px 18px 18px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 11% 22%, rgba(255, 247, 236, 0.44) 0 6px, transparent 7px),
    radial-gradient(circle at 11% 53%, rgba(255, 247, 236, 0.38) 0 6px, transparent 7px),
    repeating-linear-gradient(180deg, rgba(255, 249, 240, 0.26) 0 2px, transparent 2px 18px);
  border: 1px solid rgba(255, 243, 233, 0.26);
}

.lw-flow-scene__motif--polish {
  right: clamp(24px, 3.5vw, 56px);
  bottom: clamp(-16px, -0.2vw, 12px);
  transform: rotate(6deg);
}

.lw-flow-scene__motif--polish::before {
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 245, 236, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.2), rgba(255, 231, 216, 0.07));
}

.lw-flow-scene__motif--polish::after {
  inset: 24px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 243, 232, 0.24);
  background:
    radial-gradient(circle at 11% 20%, rgba(245, 255, 244, 0.62) 0 5px, transparent 6px),
    linear-gradient(90deg, rgba(255, 248, 240, 0.38) 0 52%, transparent 52%) 20px 14px / calc(100% - 36px) 2px no-repeat,
    radial-gradient(circle at 11% 50%, rgba(245, 255, 244, 0.58) 0 5px, transparent 6px),
    linear-gradient(90deg, rgba(255, 248, 240, 0.34) 0 66%, transparent 66%) 20px 50% / calc(100% - 36px) 2px no-repeat,
    radial-gradient(circle at 11% 80%, rgba(245, 255, 244, 0.54) 0 5px, transparent 6px),
    linear-gradient(90deg, rgba(255, 248, 240, 0.32) 0 44%, transparent 44%) 20px calc(100% - 14px) / calc(100% - 36px) 2px no-repeat;
}

.lw-flow-scene__content {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 8px;
  max-width: min(540px, 58%);
}

.lw-flow-index {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249, 243, 233, 0.82);
  text-shadow: 0 2px 14px rgba(10, 8, 10, 0.5);
}

.lw-flow-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  line-height: 1.12;
  color: #fffdf8;
  text-wrap: balance;
  text-shadow: 0 4px 22px rgba(10, 8, 10, 0.52);
}

.lw-flow-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.45;
  color: rgba(255, 249, 238, 0.9);
  text-wrap: balance;
  text-shadow: 0 3px 16px rgba(10, 8, 10, 0.46);
}

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

.lw-preview-copy {
  display: grid;
  gap: 14px;
}

.lw-preview-copy .lw-chip-row {
  justify-content: flex-start;
}

.lw-preview-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lw-preview-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.lw-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.lw-feature {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.lw-feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(77, 168, 182, 0.15), rgba(229, 164, 111, 0.15));
  color: var(--sea-600);
}

.lw-feature h3 {
  font-size: 1.05rem;
}

.lw-feature p {
  font-size: 0.92rem;
  color: var(--ink-700);
}

.lw-pipeline {
  position: relative;
}

.lw-steps {
  list-style: none;
  display: grid;
  gap: 14px;
  background: var(--glass-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.lw-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.lw-step__index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(77, 168, 182, 0.2), rgba(229, 164, 111, 0.2));
  font-weight: 600;
  color: var(--sea-600);
}

.lw-steps h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.lw-steps p {
  font-size: 0.9rem;
  color: var(--ink-700);
}

.lw-studio {
  margin-bottom: 100px;
}

.lw-studio__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.lw-studio__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.lw-studio__content {
  display: grid;
  gap: 16px;
}

.lw-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
}

.lw-checklist li {
  padding-left: 24px;
  position: relative;
  color: var(--ink-700);
}

.lw-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--sea-500), var(--sun-500));
}

.lw-studio__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lw-cta {
  width: var(--container);
  margin: 0 auto 100px;
}

.lw-cta__inner {
  background: linear-gradient(135deg, rgba(77, 168, 182, 0.18), rgba(229, 164, 111, 0.18));
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-soft);
}

.lw-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lw-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px); /* 从12px优化到 8px */
}

.lw-footer__inner {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 32px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.lw-footer__brand {
  font-weight: 600;
}

.lw-footer__note {
  font-size: 0.85rem;
  color: var(--ink-500);
}

.lw-footer__links {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--ink-500);
  flex-wrap: wrap;
  justify-content: center;
}

.lw-transition {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 168, 182, 0.45), rgba(229, 164, 111, 0.45));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 20;
}

body.is-leaving .lw-transition {
  opacity: 1;
}

body.is-leaving main,
body.is-leaving .lw-header,
body.is-leaving .lw-footer {
  opacity: 0.2;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .lw-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .lw-flow-scene {
    min-height: 250px;
  }

  .lw-flow-scene__motif {
    width: min(280px, 42%);
    height: min(188px, 54%);
    opacity: 0.46;
  }

  .lw-flow-scene__content {
    max-width: min(560px, 72%);
  }

  .lw-preview-grid {
    grid-template-columns: 1fr;
  }

  .lw-visual-stack {
    height: 300px;
    margin-top: 10px;
  }

  .lw-visual-stack--highlights {
    height: 400px;
  }

  .lw-hero-window {
    width: min(680px, 100%);
  }

  .lw-hero__visual {
    margin-top: 24px;
  }

  /* 响应式卡片堆叠位置 */
  .lw-visual-stack--highlights .lw-visual-card[data-card="0"] {
    transform: translate(-100px, -10px) rotate(3deg);
  }

  .lw-visual-stack--highlights .lw-visual-card[data-card="1"] {
    transform: translate(-20px, 6px) rotate(-1deg);
  }

  .lw-visual-stack--highlights .lw-visual-card[data-card="2"] {
    transform: translate(70px, -12px) rotate(2deg);
  }

  .lw-visual-stack--highlights .lw-visual-card[data-card="3"] {
    transform: translate(130px, 4px) rotate(-3deg);
  }

  .lw-visual-stack--highlights .lw-visual-card.is-front {
    transform: translate(8px, 20px) rotate(1deg) !important;
  }

  .lw-characters-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .lw-header {
    flex-wrap: wrap;
    border-radius: 24px;
  }

  .lw-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .lw-header__actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .lw-hero {
    margin-top: 80px;
    gap: 22px;
  }

  .lw-hero__visual {
    margin-top: 18px;
  }

  .lw-flow-scenes {
    gap: 14px;
  }

  .lw-flow-scene {
    min-height: 242px;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .lw-flow-scene__motif {
    display: none;
  }

  .lw-flow-scene__content {
    max-width: 100%;
    gap: 6px;
  }

  .lw-flow-title {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
  }

  .lw-flow-desc {
    font-size: 0.92rem;
  }

  .lw-visual-stack {
    height: 260px;
  }

  .lw-visual-stack--highlights {
    height: 360px;
  }

  .lw-visual-stack--highlights .lw-visual-card[data-card="0"] {
    transform: translate(-60px, -6px) rotate(3deg);
  }

  .lw-visual-stack--highlights .lw-visual-card[data-card="1"] {
    transform: translate(-12px, 6px) rotate(-1deg);
  }

  .lw-visual-stack--highlights .lw-visual-card[data-card="2"] {
    transform: translate(40px, -10px) rotate(2deg);
  }

  .lw-visual-stack--highlights .lw-visual-card[data-card="3"] {
    transform: translate(78px, 2px) rotate(-3deg);
  }

  .lw-visual-stack--highlights .lw-visual-card.is-front {
    transform: translate(6px, 28px) rotate(1deg) !important;
  }

  .lw-visual-card {
    padding: 14px;
  }

  .lw-split-col {
    font-size: 0.7rem;
  }

  .lw-diff-lines {
    font-size: 0.72rem;
  }

  .lw-story-paragraph {
    font-size: 0.78rem;
  }

  .lw-highlight-tabs {
    justify-content: center;
  }

  .lw-highlight-tab {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .lw-char-card {
    padding: 10px;
  }

  .lw-char-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .lw-char-name {
    font-size: 0.8rem;
  }

  .lw-ai-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .lw-ai-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .lw-hero-window__bar {
    grid-template-columns: 1fr;
    padding: 10px 14px;
    justify-items: center;
  }

  .lw-hero-window__dots {
    justify-content: center;
  }

  .lw-hero-window__tools {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .lw-hero-tool {
    font-size: 0.65rem;
  }

  .lw-hero-segment__btn {
    font-size: 0.66rem;
    padding: 3px 8px;
  }

  .lw-hero-window__body {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .lw-hero-pane--editor {
    padding: 12px;
  }

  .lw-hero-pane--render {
    padding: 12px;
  }

  .lw-hero-editor {
    font-size: 0.7rem;
  }

  .lw-hero-paper {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
