/* ===================================================================
   NoteFlow · 设计系统
   调色：温暖米白 · 卡其金 · ins 留白风
   字体：Lora（品牌英文）+ Noto Sans SC（中文正文）
   =================================================================== */

/* 1. 设计 Token */
:root {
  /* 色彩 */
  --c-primary:        #B8956A;
  --c-primary-hover:  #A07D55;
  --c-primary-light:  #F2EAE0;
  --c-bg:             #FDFAF6;
  --c-bg-warm:        #F7F1E8;
  --c-surface:        #FFFFFF;
  --c-surface-2:      #FAF6F0;
  --c-text-1:         #1C1714;
  --c-text-2:         #6B5E54;
  --c-text-3:         #A0908A;
  --c-border:         #E8E0D4;
  --c-border-light:   #F0EAE0;
  --c-success:        #6A9E7A;
  --c-success-bg:     #EAF4EE;
  --c-warning:        #C8834A;
  --c-warning-bg:     #FDF0E6;
  --c-error:          #B85858;
  --c-error-bg:       #FCF0F0;

  /* 字体 */
  --font-brand:  'Lora', 'Georgia', serif;
  --font-sans:   'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Cascadia Code', monospace;

  /* 间距 */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* 圆角 */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(28, 23, 20, 0.05);
  --shadow-sm: 0 2px 8px rgba(28, 23, 20, 0.07), 0 1px 2px rgba(28, 23, 20, 0.04);
  --shadow-md: 0 6px 20px rgba(28, 23, 20, 0.09), 0 2px 6px rgba(28, 23, 20, 0.05);
  --shadow-lg: 0 16px 40px rgba(28, 23, 20, 0.11), 0 4px 10px rgba(28, 23, 20, 0.06);

  /* 过渡 */
  --tr-fast: 140ms ease;
  --tr-base: 240ms ease;
  --tr-slow: 380ms ease;

  /* 布局 */
  --max-w: 1080px;
  --nav-h: 64px;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text-1);
  background: var(--c-bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* 3. 通用布局 */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.section-title {
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--c-text-1);
  text-align: center;
  margin-bottom: var(--sp-3);
}
.section-subtitle {
  font-size: 1rem;
  color: var(--c-text-2);
  text-align: center;
  margin-bottom: var(--sp-12);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* 4. 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(253, 250, 246, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border-light);
  transition: border-color var(--tr-base);
}
.nav--scrolled { border-bottom-color: var(--c-border); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-6);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  background: var(--c-primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-brand);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-text-1);
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-left: auto;
}
.nav__link {
  font-size: 0.9rem;
  color: var(--c-text-2);
  transition: color var(--tr-fast);
}
.nav__link:hover { color: var(--c-text-1); }

/* 5. 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  transition: all var(--tr-fast);
  white-space: nowrap;
  cursor: pointer;
}
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(184, 149, 106, 0.35);
}
.btn-primary:hover {
  background: var(--c-primary-hover);
  box-shadow: 0 4px 14px rgba(184, 149, 106, 0.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary-light); }
.btn-ghost {
  background: transparent;
  color: var(--c-text-2);
}
.btn-ghost:hover { color: var(--c-text-1); background: var(--c-surface-2); }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-lg { padding: 13px 30px; font-size: 0.95rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--r-md); }

/* 6. 表单元素 */
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-2);
}
.required { color: var(--c-warning); }
.optional { font-weight: 400; color: var(--c-text-3); font-size: 0.82rem; }
.input {
  width: 100%;
  padding: 11px 16px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 0.93rem;
  color: var(--c-text-1);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  outline: none;
}
.input::placeholder { color: var(--c-text-3); }
.input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.15);
}

/* ===================================================================
   7. 首页 Hero
   =================================================================== */
.hero {
  padding: var(--sp-24) 0 var(--sp-20);
  background: radial-gradient(ellipse 80% 50% at 50% -10%, #EDE0CC 0%, var(--c-bg) 65%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.hero__left { display: flex; flex-direction: column; gap: var(--sp-6); }
.hero__title {
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text-1);
  letter-spacing: -0.03em;
}
.hero__title em {
  font-style: italic;
  color: var(--c-primary);
}
.hero__subtitle {
  font-size: 1.02rem;
  color: var(--c-text-2);
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.hero__right { position: relative; }

/* 模拟笔记卡片 */
.note-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-6);
  border: 1px solid var(--c-border-light);
  animation: floatCard 5s ease-in-out infinite;
  max-width: 420px;
  margin-left: auto;
}
.note-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border-light);
}
.note-card__icon { font-size: 1.4rem; }
.note-card__filename {
  font-size: 0.8rem;
  color: var(--c-text-2);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-card__lines { display: flex; flex-direction: column; gap: var(--sp-2); }
.note-line {
  height: 10px;
  border-radius: var(--r-full);
  background: var(--c-border);
  animation: shimmerLine 2.5s ease-in-out infinite;
}
.note-line--h2 { height: 14px; width: 70%; background: var(--c-primary-light); }
.note-line--h3 { height: 12px; width: 50%; margin-top: var(--sp-2); background: var(--c-border); }
.note-line--text { width: 100%; }
.note-line--mid  { width: 85%; }
.note-line--short { width: 55%; }
.note-line--bullet {
  width: 80%;
  padding-left: 16px;
  position: relative;
}

/* ===================================================================
   8. 特性区块
   =================================================================== */
.features {
  padding: var(--sp-24) 0;
  background: var(--c-surface);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.feature-card {
  padding: var(--sp-8) var(--sp-6);
  background: var(--c-bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border-light);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  font-size: 2rem;
  margin-bottom: var(--sp-4);
}
.feature-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--c-text-1);
}
.feature-card__desc {
  font-size: 0.88rem;
  color: var(--c-text-2);
  line-height: 1.7;
}

/* ===================================================================
   9. 工作流程
   =================================================================== */
.how-it-works {
  padding: var(--sp-24) 0;
  background: var(--c-bg-warm);
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  justify-content: center;
}
.step {
  flex: 1;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
}
.step__num {
  width: 52px;
  height: 52px;
  background: var(--c-surface);
  border: 2px solid var(--c-primary);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
  flex-shrink: 0;
}
.step__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text-1);
}
.step__desc {
  font-size: 0.875rem;
  color: var(--c-text-2);
  line-height: 1.7;
}
.step__arrow {
  flex-shrink: 0;
  color: var(--c-border);
  font-size: 1.5rem;
  margin-top: 14px;
}

   10. 页脚
   =================================================================== */
.footer {
  padding: var(--sp-10) 0;
  background: var(--c-bg-warm);
  border-top: 1px solid var(--c-border-light);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.footer__copy {
  font-size: 0.82rem;
  color: var(--c-text-3);
}
.footer__links {
  display: flex;
  gap: var(--sp-5);
}
.footer__links a {
  font-size: 0.82rem;
  color: var(--c-text-3);
  transition: color var(--tr-fast);
}
.footer__links a:hover { color: var(--c-text-2); }

/* ===================================================================
   11. 工具页主体
   =================================================================== */
.tool-main {
  min-height: calc(100vh - var(--nav-h) - 160px);
  padding: var(--sp-12) 0 var(--sp-16);
}
.tool-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* 步骤指示器 */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--sp-12);
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.step-dot__circle {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  border: 2px solid var(--c-border);
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text-3);
  transition: all var(--tr-base);
  z-index: 1;
}
.step-dot__label {
  font-size: 0.75rem;
  color: var(--c-text-3);
  transition: color var(--tr-base);
  white-space: nowrap;
}
.step-dot--active .step-dot__circle {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.15);
}
.step-dot--active .step-dot__label { color: var(--c-primary); font-weight: 500; }
.step-dot--done .step-dot__circle {
  border-color: var(--c-success);
  background: var(--c-success);
  color: #fff;
}
.step-dot--done .step-dot__label { color: var(--c-success); }
.step-line {
  height: 1.5px;
  flex: 1;
  max-width: 100px;
  background: var(--c-border);
  margin: 0 var(--sp-3);
  margin-bottom: 22px;
}
.step-line--done { background: var(--c-success); }

/* 工具状态面板 */
.tool-state { display: none; }
.tool-state--active { display: block; animation: fadeInUp 0.35s ease; }
.tool-state__title {
  font-family: var(--font-brand);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--c-text-1);
  margin-bottom: var(--sp-2);
}
.tool-state__desc {
  font-size: 0.9rem;
  color: var(--c-text-2);
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}

/* ===================================================================
   12. 拖拽上传区
   =================================================================== */
.drop-zone {
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--tr-base);
  background: var(--c-surface-2);
  position: relative;
  margin-bottom: var(--sp-5);
}
.drop-zone:hover, .drop-zone--hover {
  border-color: var(--c-primary);
  background: rgba(184, 149, 106, 0.05);
}
.drop-zone--drag {
  border-color: var(--c-primary);
  background: rgba(184, 149, 106, 0.08);
  transform: scale(1.01);
}
.drop-zone--has-file {
  border-style: solid;
  border-color: var(--c-success);
  background: var(--c-success-bg);
}
.drop-zone__icon { font-size: 2.4rem; margin-bottom: var(--sp-3); }
.drop-zone__text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text-1);
  margin-bottom: var(--sp-1);
}
.drop-zone__hint { font-size: 0.8rem; color: var(--c-text-3); }
.drop-zone__selected {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: 0.88rem;
  color: var(--c-success);
  font-weight: 500;
}
.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* 提示通知 */
.notice {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.87rem;
  margin-bottom: var(--sp-5);
}
.notice--error {
  background: var(--c-error-bg);
  color: var(--c-error);
  border: 1px solid rgba(184, 88, 88, 0.2);
}

/* ===================================================================
   13. 处理中状态
   =================================================================== */
.processing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-12) 0;
  gap: var(--sp-6);
}
.processing-anim {
  position: relative;
  width: 88px;
  height: 88px;
}
.processing-ring {
  width: 88px;
  height: 88px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
  position: absolute;
  top: 0; left: 0;
}
.processing-ring-2 {
  width: 60px;
  height: 60px;
  border: 2px solid var(--c-border);
  border-bottom-color: rgba(184, 149, 106, 0.5);
  border-radius: 50%;
  animation: spinReverse 2s linear infinite;
  position: absolute;
  top: 14px; left: 14px;
}
.processing-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  animation: pulse 2s ease-in-out infinite;
}
.processing-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-text-1);
}
.processing-desc {
  font-size: 0.9rem;
  color: var(--c-text-2);
  max-width: 360px;
  line-height: 1.7;
}
.processing-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-align: left;
  min-width: 240px;
}
.proc-step {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.87rem;
  color: var(--c-text-3);
  background: var(--c-surface-2);
  transition: all var(--tr-base);
}
.proc-step--done {
  color: var(--c-success);
  background: var(--c-success-bg);
}
.proc-step--active {
  color: var(--c-primary);
  background: var(--c-primary-light);
  font-weight: 500;
}
.proc-step__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.proc-step--active .proc-step__dot { animation: pulseDot 1.2s ease-in-out infinite; }

.ws-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--c-text-3);
}
.ws-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-border);
  transition: background var(--tr-base);
}
.ws-dot--connected { background: var(--c-success); }
.ws-dot--error     { background: var(--c-error); }

/* ===================================================================
   14. 结果展示
   =================================================================== */
.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}
.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--c-success-bg);
  color: var(--c-success);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: var(--sp-2);
}
.result-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-text-1);
  margin-bottom: 4px;
}
.result-meta { font-size: 0.8rem; color: var(--c-text-3); }
.result-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Markdown 预览容器 */
.md-preview {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-10);
  line-height: 1.85;
  font-size: 0.95rem;
  color: var(--c-text-1);
}
.md-preview h1 {
  font-family: var(--font-brand);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-text-1);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--c-border-light);
}
.md-preview h2 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-text-1);
  margin: var(--sp-8) 0 var(--sp-3);
  padding-left: var(--sp-3);
  border-left: 3px solid var(--c-primary);
}
.md-preview h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text-1);
  margin: var(--sp-6) 0 var(--sp-2);
}
.md-preview p { margin-bottom: var(--sp-4); }
/* 笔记正文里的列表需要项目符号。
   reset 里那句 `ul, ol { list-style: none }` 是为导航等自绘列表准备的，但
   Markdown 渲染出来的列表没有符号会糊成一整片——「三、全局要点」是有序列表、
   「🔑 要点提炼」是无序列表，它们本来就靠符号来分隔。在这里显式恢复。 */
.md-preview ul { list-style: disc; }
.md-preview ol { list-style: decimal; }
.md-preview ul, .md-preview ol {
  margin: var(--sp-3) 0 var(--sp-4) var(--sp-6);
}
.md-preview li { margin-bottom: var(--sp-1); }
.md-preview blockquote {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-surface-2);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--c-text-2);
  font-style: italic;
}
.md-preview code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  color: var(--c-warning);
}
.md-preview pre {
  background: var(--c-text-1);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  overflow-x: auto;
  margin: var(--sp-4) 0;
}
.md-preview pre code {
  background: none;
  border: none;
  padding: 0;
  color: #E8DDD0;
  font-size: 0.87rem;
}
.md-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 0.88rem;
}
.md-preview th {
  background: var(--c-bg-warm);
  padding: var(--sp-2) var(--sp-4);
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--c-border);
}
.md-preview td {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border);
}
.md-preview tr:nth-child(even) td { background: var(--c-surface-2); }
.md-preview hr {
  border: none;
  height: 1px;
  background: var(--c-border-light);
  margin: var(--sp-8) 0;
}
.md-preview strong { font-weight: 600; }

/* ===================================================================
   15. 历史记录
   =================================================================== */
.history-section {
  padding: var(--sp-12) 0;
  background: var(--c-bg-warm);
  border-top: 1px solid var(--c-border-light);
}
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.history-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text-1);
}
.history-hint {
  font-size: 0.78rem;
  color: var(--c-text-3);
  font-weight: 400;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-light);
  cursor: pointer;
  transition: all var(--tr-fast);
  gap: var(--sp-4);
}
.history-item:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.history-item__title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-1);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-item__date {
  font-size: 0.78rem;
  color: var(--c-text-3);
  flex-shrink: 0;
}
.history-empty {
  text-align: center;
  padding: var(--sp-10);
  color: var(--c-text-3);
  font-size: 0.88rem;
}

/* ===================================================================
   16. 动画关键帧
   =================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes shimmerLine {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.7; }
  50%       { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%       { transform: scale(1.4); opacity: 1; }
}
@keyframes dotFlow {
  0%   { content: '.'; }
  33%  { content: '..'; }
  66%  { content: '...'; }
  100% { content: ''; }
}

/* 入场动画工具类 */
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 隐藏工具类 */
.hidden { display: none !important; }

/* ===================================================================
   17. 响应式
   =================================================================== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__right { display: none; }
  .features__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 var(--sp-4); }
  .hero { padding: var(--sp-16) 0 var(--sp-12); }
  .hero__title { font-size: 2rem; }
  .features__grid { grid-template-columns: 1fr; }
  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step__arrow { transform: rotate(90deg); }
  .nav__links { display: none; }
  .result-header { flex-direction: column; }
  .md-preview { padding: var(--sp-5); }
  .footer__inner { flex-direction: column; text-align: center; }
}
