/* ============== 设计令牌 ============== */
:root {
  /* 主色 - 绿色系 */
  --green-50:  #f0faf4;
  --green-100: #dcf4e3;
  --green-200: #b8e6c8;
  --green-300: #8dd4a5;
  --green-400: #5ebd80;
  --green-500: #3aa55f;   /* 主色 */
  --green-600: #2c8a4a;
  --green-700: #226e3b;
  --green-800: #1c5630;
  --green-900: #163f24;

  /* 中性色 */
  --white:   #ffffff;
  --cream:   #fafdfb;
  --gray-50: #f7faf8;
  --gray-100:#eef3f0;
  --gray-200:#dee6e1;
  --gray-300:#c4d0c9;
  --gray-400:#94a39b;
  --gray-500:#6b7c72;
  --gray-600:#4d5c54;
  --gray-700:#36433c;
  --gray-800:#222b26;
  --gray-900:#131915;

  /* 强调色 */
  --accent-mint: #b8e6d4;
  --accent-sage: #d4e8d4;
  --accent-leaf: #a8d8b9;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(20, 70, 40, 0.04), 0 1px 3px rgba(20, 70, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 70, 40, 0.06), 0 2px 6px rgba(20, 70, 40, 0.04);
  --shadow-lg: 0 12px 28px rgba(20, 70, 40, 0.08), 0 4px 10px rgba(20, 70, 40, 0.05);
  --shadow-xl: 0 24px 48px rgba(20, 70, 40, 0.12), 0 8px 16px rgba(20, 70, 40, 0.06);
  --shadow-green: 0 8px 20px rgba(58, 165, 95, 0.25);

  /* 字体 */
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* 过渡 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============== 基础重置 ============== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; font-weight: 700; color: var(--gray-900); }
p { margin: 0; }

/* ============== 工具样式 ============== */
.text-gradient {
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-underline {
  position: relative;
  display: inline-block;
}
.text-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 12px;
  background: var(--green-200);
  border-radius: 999px;
  z-index: -1;
  opacity: 0.6;
}

/* ============== 按钮 ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(58, 165, 95, 0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: var(--white);
  color: var(--green-700);
  border-color: var(--green-200);
}
.btn-outline:hover {
  border-color: var(--green-500);
  color: var(--green-600);
  background: var(--green-50);
}

.btn-ghost {
  color: var(--gray-700);
  padding: 10px 16px;
}
.btn-ghost:hover {
  color: var(--green-600);
  background: var(--green-50);
}

.btn-large {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-block { width: 100%; }

/* ============== 导航 ============== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(220, 244, 227, 0.6);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--gray-900);
}

.logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-green);
}
.logo-icon svg { width: 20px; height: 20px; }

.logo-text {
  font-size: 19px;
  letter-spacing: 0.5px;
}
.logo-text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--green-600);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--green-700);
  background: var(--green-50);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============== 英雄区 ============== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  background:
    radial-gradient(ellipse at top left, var(--green-50) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #f0faf4 0%, transparent 50%),
    var(--cream);
}

.hero-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.blob-1 {
  width: 380px; height: 380px;
  background: var(--green-200);
  top: -100px; left: -100px;
  animation: float 18s ease-in-out infinite;
}
.blob-2 {
  width: 320px; height: 320px;
  background: var(--accent-mint);
  bottom: -80px; right: 10%;
  animation: float 22s ease-in-out infinite reverse;
}

.leaf {
  position: absolute;
  width: 60px; height: 60px;
  opacity: 0.15;
}
.leaf-1 {
  top: 15%; right: 8%;
  background: radial-gradient(ellipse at center, var(--green-500), transparent 70%);
  border-radius: 50% 0;
  transform: rotate(35deg);
  animation: float 14s ease-in-out infinite;
}
.leaf-2 {
  bottom: 20%; left: 5%;
  background: radial-gradient(ellipse at center, var(--green-400), transparent 70%);
  border-radius: 50% 0;
  transform: rotate(-25deg);
  animation: float 16s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -20px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--green-700);
  font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(58, 165, 95, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(58, 165, 95, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(58, 165, 95, 0); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--green-700);
  font-family: var(--font-serif);
}
.stat strong small {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
  margin-left: 2px;
}
.stat span {
  font-size: 13px;
  color: var(--gray-500);
}
.stat-divider {
  width: 1px; height: 32px;
  background: var(--gray-200);
}

/* 浮卡 */
.hero-visual {
  position: relative;
  height: 520px;
}

.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  padding: 20px;
}

.card-prompt {
  top: 20px; right: 0;
  width: 280px;
  animation: floatY 6s ease-in-out infinite;
}
.card-prompt p {
  margin-top: 8px;
  color: var(--gray-700);
  font-size: 14px;
}

.card-main {
  top: 100px; left: 0;
  right: 60px;
  z-index: 2;
  animation: floatY 7s ease-in-out infinite 0.5s;
}

.card-stats {
  bottom: 30px; right: 20px;
  width: 240px;
  animation: floatY 8s ease-in-out infinite 1s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.float-card-header strong {
  display: block;
  font-size: 14px;
  color: var(--gray-900);
}
.float-card-header small {
  font-size: 12px;
  color: var(--gray-500);
}

.dot-group {
  display: inline-flex;
  gap: 4px;
}
.dot-group i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
}
.dot-group i:nth-child(1) { background: #ff6b6b; }
.dot-group i:nth-child(2) { background: #ffd93d; }
.dot-group i:nth-child(3) { background: var(--green-400); }

.float-tag {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 500;
}

.ai-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
  color: var(--green-700);
  display: grid;
  place-items: center;
}
.ai-avatar svg { width: 22px; height: 22px; }

.typing-text {
  background: linear-gradient(180deg, var(--green-50), transparent);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.typing-text p {
  font-size: 14px;
  color: var(--gray-800);
  line-height: 1.7;
  font-family: var(--font-serif), var(--font-sans);
}
.typing-text .muted { color: var(--gray-400); font-size: 13px; margin-top: 4px;}

.caret {
  display: inline-block;
  color: var(--green-600);
  font-weight: 700;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.float-actions {
  display: flex;
  gap: 6px;
}
.chip {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  transition: all 0.2s;
  cursor: pointer;
}
.chip:hover {
  background: var(--green-100);
  transform: translateY(-1px);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.stat-row.small { font-size: 11px; color: var(--gray-500); margin-top: 8px; margin-bottom: 0; }
.stat-label { color: var(--gray-500); }
.stat-value {
  font-weight: 700;
  font-size: 18px;
  color: var(--green-700);
  font-family: var(--font-serif);
}

.progress-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green-400), var(--green-600));
  border-radius: 999px;
  animation: progressPulse 3s ease-in-out infinite;
}
@keyframes progressPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ============== 公共区块标题 ============== */
section { padding: 100px 24px; }

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--green-700);
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-head p {
  font-size: 16px;
  color: var(--gray-500);
}

/* ============== 功能区 ============== */
.features {
  background: var(--white);
}

.features-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-200);
  box-shadow: var(--shadow-lg);
}

.feature-card.highlight {
  background: linear-gradient(180deg, var(--green-50), var(--white));
  border-color: var(--green-200);
}

.card-tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-600);
  color: var(--white);
  font-weight: 600;
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.icon-emerald { background: var(--green-100); color: var(--green-700); }
.icon-leaf { background: var(--accent-leaf); color: var(--green-800); }
.icon-mint { background: var(--accent-mint); color: var(--green-800); }
.icon-sage { background: var(--accent-sage); color: var(--green-800); }

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============== 写作台 ============== */
.workspace {
  background: linear-gradient(180deg, var(--cream), var(--green-50));
}

.workspace-shell {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  min-height: 640px;
}

.ws-sidebar {
  background: var(--gray-50);
  border-right: 1px solid var(--gray-100);
  padding: 24px 18px;
  overflow-y: auto;
}

.ws-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gray-400);
  text-transform: uppercase;
  margin: 18px 8px 10px;
}
.ws-section-title:first-child { margin-top: 0; }

.scene-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.scene-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.scene-list li:hover {
  background: var(--white);
  color: var(--green-700);
}
.scene-list li.active {
  background: var(--white);
  color: var(--green-700);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.scene-icon { font-size: 16px; }

.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px;
}
.style-tag {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: all 0.2s;
}
.style-tag:hover {
  border-color: var(--green-300);
  color: var(--green-700);
}
.style-tag.active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--white);
}

.length-control {
  padding: 0 4px;
}
.length-control input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--gray-200);
  border-radius: 999px;
  outline: none;
  margin: 8px 0;
}
.length-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-500);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(58, 165, 95, 0.4);
  transition: transform 0.15s;
}
.length-control input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.length-control input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-500);
  cursor: pointer;
  border: none;
}
.length-value {
  font-size: 13px;
  color: var(--green-700);
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
}

/* 主编辑区 */
.ws-main {
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.ws-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
}

.title-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  padding: 4px 0;
}
.title-input::placeholder { color: var(--gray-400); }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tool-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--gray-600);
  transition: all 0.2s;
}
.tool-btn:hover {
  background: var(--green-50);
  color: var(--green-700);
}
.tool-btn svg { width: 16px; height: 16px; }
.tool-btn.primary {
  width: auto;
  padding: 0 14px;
  background: var(--green-500);
  color: var(--white);
  font-size: 13px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}
.tool-btn.primary:hover {
  background: var(--green-600);
  color: var(--white);
}
.tool-divider {
  width: 1px;
  height: 18px;
  background: var(--gray-200);
  margin: 0 6px;
}

.ws-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--green-50);
  border-bottom: 1px solid var(--gray-100);
}

.prompt-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-800);
  white-space: nowrap;
}

.prompt-input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 13.5px;
  color: var(--gray-800);
  transition: border-color 0.2s;
}
.prompt-input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(58, 165, 95, 0.15);
}

.sparkle-icon {
  animation: sparkle 2s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
}

.ws-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.editor-area {
  flex: 1;
  padding: 36px 48px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-800);
  overflow-y: auto;
  min-height: 360px;
  font-family: var(--font-sans);
}
.editor-area:focus { outline: none; }
.editor-area p { margin: 0 0 16px; }
.editor-area .placeholder {
  color: var(--gray-400);
  font-style: italic;
}

/* 自定义滚动条 */
.editor-area::-webkit-scrollbar,
.ws-sidebar::-webkit-scrollbar,
.ws-assistant::-webkit-scrollbar { width: 6px; }
.editor-area::-webkit-scrollbar-thumb,
.ws-sidebar::-webkit-scrollbar-thumb,
.ws-assistant::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 999px;
}
.editor-area::-webkit-scrollbar-thumb:hover,
.ws-sidebar::-webkit-scrollbar-thumb:hover,
.ws-assistant::-webkit-scrollbar-thumb:hover {
  background: var(--green-300);
}

.editor-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  font-size: 12.5px;
  color: var(--gray-500);
}
.meta-divider {
  margin: 0 12px;
  color: var(--gray-300);
}
.meta-divider::before { content: '·'; }
.meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(58, 165, 95, 0.2);
}
.status-dot.busy { background: #ffa940; box-shadow: 0 0 0 3px rgba(255, 169, 64, 0.2); }

/* AI 助手 */
.ws-assistant {
  background: var(--gray-50);
  border-left: 1px solid var(--gray-100);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.assistant-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-100);
}
.assistant-avatar {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-green);
}
.assistant-avatar svg { width: 22px; height: 22px; }
.assistant-header strong { display: block; font-size: 14px; color: var(--gray-900); }
.assistant-header small { font-size: 12px; color: var(--gray-500); }

.quick-title {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gray-400);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--gray-700);
  text-align: left;
  margin-bottom: 6px;
  transition: all 0.2s;
}
.quick-action:hover {
  border-color: var(--green-300);
  color: var(--green-700);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}
.quick-action span:first-child { font-size: 16px; }

.tip-card {
  background: linear-gradient(135deg, var(--green-50), #f0f9f3);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-700);
}

/* ============== 模板 ============== */
.templates {
  background: var(--white);
}

.template-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.template-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.template-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-200);
  box-shadow: var(--shadow-lg);
}

.template-cover {
  height: 140px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.template-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(255,255,255,0.3));
}
.template-emoji {
  font-size: 56px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
  z-index: 1;
}
.cover-1 { background: linear-gradient(135deg, var(--green-100), var(--green-200)); }
.cover-2 { background: linear-gradient(135deg, var(--accent-mint), var(--green-200)); }
.cover-3 { background: linear-gradient(135deg, var(--accent-sage), var(--accent-leaf)); }
.cover-4 { background: linear-gradient(135deg, var(--green-50), var(--accent-mint)); }

.template-body {
  padding: 18px 20px;
}
.template-body h4 {
  font-size: 15px;
  margin-bottom: 6px;
}
.template-body p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 14px;
}
.template-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-500);
}
.template-meta span:first-child { color: var(--green-600); font-weight: 500; }

/* ============== 定价 ============== */
.pricing {
  background: linear-gradient(180deg, var(--white), var(--green-50));
}

.pricing-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all 0.3s var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card.featured {
  background: linear-gradient(180deg, #f7fdf9, var(--white));
  border-color: var(--green-300);
  box-shadow: 0 12px 32px rgba(58, 165, 95, 0.12);
  transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.featured-tag {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-green);
}

.price-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 12px;
}

.price-amount {
  font-size: 42px;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1;
}
.price-amount small {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 400;
  font-family: var(--font-sans);
  margin-left: 2px;
}

.price-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.price-list li {
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--gray-700);
  border-bottom: 1px dashed var(--gray-100);
}
.price-list li:last-child { border-bottom: none; }
.price-list li.muted { color: var(--gray-400); }

/* ============== CTA ============== */
.cta {
  background:
    radial-gradient(ellipse at top, rgba(58, 165, 95, 0.08), transparent 60%),
    var(--white);
  padding: 80px 24px;
}

.cta-container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border-radius: var(--radius-xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(34, 110, 59, 0.3);
}
.cta-container::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.cta-container::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  bottom: -80px; left: -80px;
  border-radius: 50%;
}
.cta-container > * { position: relative; z-index: 1; }

.cta-container h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-container p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}
.cta-container .btn-primary {
  background: var(--white);
  color: var(--green-700);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-container .btn-primary:hover {
  background: var(--cream);
  color: var(--green-800);
}

/* ============== 页脚 ============== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 60px 24px 24px;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gray-500);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h5 {
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--gray-800);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--green-600);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-400);
}

/* ============== Toast ============== */
.toast {
  position: fixed;
  top: 24px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--gray-800);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transition: all 0.35s var(--ease-out);
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { background: var(--green-600); }

/* ============== 响应式 ============== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual { height: 480px; margin-top: 40px; }
  .workspace-shell { grid-template-columns: 200px 1fr; }
  .ws-assistant { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 64px 20px; }
  .hero { padding: 50px 20px 80px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 16px; }
  .stat strong { font-size: 22px; }
  .workspace-shell { grid-template-columns: 1fr; }
  .ws-sidebar { display: none; }
  .ws-toolbar { padding: 12px 16px; flex-wrap: wrap; }
  .editor-area { padding: 24px 20px; }
  .ws-prompt { flex-wrap: wrap; padding: 14px 16px; }
  .prompt-input { width: 100%; }
  .features-grid, .template-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
