/* ============================================================
   原型托管 · 温润编辑派（Kenya Hara 式东方极简）
   暖米底 · 墨黑 · 赤土橙 · 衬线标题 · 发丝线分隔
   零 emoji · 零渐变 · 近直角 + 微动效 + SVG 装饰
   ============================================================ */

:root {
  /* —— 色 —— */
  --bg: #faf7f2;          /* 暖米底 */
  --bg-alt: #f3ede2;      /* 略深暖米，section 交替 */
  --card: #fffdf9;        /* 卡片，比底色更亮 */
  --ink: #1c1917;         /* 墨黑 · 主文字 */
  --ink-2: #44403c;       /* 次级墨色 */
  --muted: #78716c;       /* 暖灰 · 辅助文字 */
  --muted-2: #a8a29e;     /* 更淡暖灰 */
  --accent: #b4451f;      /* 赤土橙 · 唯一强调色 */
  --accent-d: #9a3a1a;    /* 赤土橙 hover */
  --accent-bg: #f6ece2;   /* 赤土橙浅底 */
  --line: #e7ddcd;        /* 发丝分隔线 */
  --line-strong: #d6cab4; /* 略强分隔线 */
  --ink-deep: #211d19;    /* 暖墨深色（CTA/侧栏用） */

  /* —— 新增装饰色 —— */
  --accent-light: #e8a68c;  /* 浅赤土橙，用于装饰 */
  --accent-soft: #f6e8e0;   /* 极浅赤土橙，用于背景装饰 */

  /* —— 字 —— */
  --font-serif: "Source Serif 4", "Noto Serif SC", "Songti SC", "Source Han Serif SC", STSong, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* —— 圆角 · 近直角 —— */
  --radius: 5px;
  --radius-sm: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
code {
  font-family: var(--font-mono); font-size: .9em;
  background: var(--bg-alt); padding: 2px 7px; border-radius: var(--radius-sm);
  color: var(--ink-2);
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ===== 滚动动画效果 ===== */
@media (prefers-reduced-motion: no-preference) {
  .card, .step, .flow, .btn {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ===== 按钮 + 阴影优化 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: .92em; font-weight: 500; letter-spacing: .01em;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  transition: all 0.2s ease; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.btn:hover {
  border-color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.btn:active { transform: translateY(0); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(180, 69, 31, 0.3);
}
.btn.primary:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
  box-shadow: 0 4px 12px rgba(180, 69, 31, 0.4);
}
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { color: var(--ink); background: transparent; }
.btn.lg { padding: 13px 26px; font-size: 1em; }

/* ===== 导航 + 微妙阴影 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  display: flex; align-items: baseline; gap: 9px;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.15em;
  color: var(--ink); letter-spacing: .01em;
  transition: all 0.2s ease;
}
.brand:hover { text-decoration: none; color: var(--ink); transform: translateY(-1px); }
.brand .logo-mark { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--muted);
  font-size: .92em;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ===== Hero + 背景装饰 ===== */
.hero {
  padding: 92px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

/* Hero 背景装饰元素 */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.4;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
  opacity: 0.5;
  animation: pulse 6s ease-in-out infinite reverse;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kicker {
  font-size: .76em; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::after { content: ""; display: inline-block; width: 44px; height: 1px; background: var(--line-strong); }

.hero h1 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.95em, 4.2vw, 2.95em); line-height: 1.2; letter-spacing: -.005em;
  margin-bottom: 22px; color: var(--ink);
  text-shadow: 0 2px 10px rgba(180, 69, 31, 0.1);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.08em; color: var(--muted); margin-bottom: 32px; max-width: 520px; line-height: 1.78; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta { display: flex; gap: 0; flex-wrap: wrap; font-size: .86em; color: var(--muted); }
.hero-meta span { padding-right: 16px; margin-right: 16px; border-right: 1px solid var(--line); }
.hero-meta span:last-child { border-right: none; padding-right: 0; margin-right: 0; }

/* Hero · 编辑式三步（替代 emoji 流程图） + 装饰图形 */
.hero-art {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Hero 装饰 SVG */
.hero-decoration {
  position: absolute;
  top: -30px;
  right: -40px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

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

.flow {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(180, 69, 31, 0.08);
  position: relative;
  z-index: 1;
  transition: transform 0.3s, box-shadow 0.3s;
}

.flow:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(180, 69, 31, 0.12);
}

.flow-step {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.flow-step:hover {
  background: var(--bg-alt);
}

.flow-step:last-of-type {
  border-bottom: none;
}

.flow-num {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 1.6em;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  width: 26px;
}

.flow-text h5 {
  font-size: .97em;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.flow-text p {
  font-size: .84em;
  color: var(--muted);
  line-height: 1.55;
}

.flow-foot {
  padding: 20px 30px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-2);
  font-size: .96em;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

/* ===== 通用 section ===== */
.section { padding: 84px 0; position: relative; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
  position: relative;
  z-index: 1;
}
.section-head h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 2em; letter-spacing: -.01em; margin-bottom: 14px; color: var(--ink);
}
.section-head p { color: var(--muted); font-size: 1.04em; line-height: 1.7; }
.group-title {
  font-family: var(--font-serif); font-size: 1.1em; font-weight: 600;
  margin: 44px 0 20px; color: var(--ink);
  position: relative;
  z-index: 1;
}
.group-title:first-of-type { margin-top: 0; }

/* ===== 功能卡片（去图标 · 编辑式 + 悬停动效） ===== */

/* 背景装饰 SVG */
.features-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; z-index: 1; }
.card {
  background: transparent;
  padding: 28px 28px 28px 0;
  transition: all 0.25s ease;
  position: relative;
  border-radius: var(--radius-sm);
}

.card::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.25s ease;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.card:hover {
  background: var(--card);
  padding-left: 14px;
  padding-right: 14px;
  box-shadow: 0 2px 12px rgba(180, 69, 31, 0.08);
  transform: translateY(-2px);
}

.card:hover::before {
  height: calc(100% - 56px);
}

.grid .card:nth-child(3n) { padding-right: 0; }
.grid .card:nth-child(3n):hover { padding-right: 14px; }

.card .ord {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: .82em;
  font-weight: 600;
  letter-spacing: .05em;
  display: block;
  margin-bottom: 10px;
  transition: transform 0.25s ease;
}

.card:hover .ord {
  transform: translateX(4px);
}

.card h4 {
  font-size: 1.02em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.card p {
  color: var(--muted);
  font-size: .9em;
  line-height: 1.68;
}

/* ===== 工作流步骤 + 装饰箭头 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step {
  padding: 8px 26px 8px 0;
  position: relative;
  border-right: 1px solid var(--line);
  transition: all 0.3s ease;
}

.step::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-light);
  font-size: 1.2em;
  opacity: 0;
  transition: opacity 0.3s ease, right 0.3s ease;
}

.step:hover::after {
  opacity: 1;
  right: -18px;
}

.step:hover {
  background: var(--card);
  transform: translateY(-2px);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(180, 69, 31, 0.06);
}

.steps .step:last-child { border-right: none; padding-right: 0; }
.steps .step:last-child::after { content: none; }
.step:not(:first-child) { padding-left: 26px; }

.step-num {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 2.4em;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s ease;
}

.step:hover .step-num {
  transform: scale(1.05);
}

.step h4 {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}

.step p {
  color: var(--muted);
  font-size: .88em;
  line-height: 1.65;
}

/* ===== CTA 区（暖墨深底 + 装饰图案） ===== */
.cta-section {
  padding: 88px 0;
  text-align: center;
  background: var(--ink-deep);
  color: #f5efe6;
  position: relative;
  overflow: hidden;
}

/* CTA 装饰图案 */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(245, 239, 230, 0.03) 10px, rgba(245, 239, 230, 0.03) 20px);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 2.1em; margin-bottom: 14px; letter-spacing: -.01em;
  position: relative;
  z-index: 1;
}
.cta-section p { opacity: .78; margin-bottom: 30px; font-size: 1.06em; position: relative; z-index: 1; }
.cta-section .cta { justify-content: center; position: relative; z-index: 1; }
.cta-section .btn { background: transparent; color: #f5efe6; border-color: rgba(245, 239, 230, .35); }
.cta-section .btn:hover { border-color: #f5efe6; }
.cta-section .btn.primary { background: #f5efe6; color: var(--ink-deep); border-color: #f5efe6; }
.cta-section .btn.primary:hover { background: #fff; border-color: #fff; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 52px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-serif); font-weight: 600; font-size: 1.1em; color: var(--ink); }
.footer-brand .logo-mark { color: var(--accent); }
.footer-brand p { font-family: var(--font-sans); font-size: .84em; color: var(--muted); font-weight: 400; margin-top: 8px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--muted); font-size: .92em; }
.footer-links a:hover { color: var(--accent); }
.copy { text-align: center; color: var(--muted-2); font-size: .82em; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ===== 响应式 + 装饰元素适配 ===== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { order: -1; }
  .hero-decoration { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid .card:nth-child(3n) { padding-right: 28px; }
  .grid .card:nth-child(2n) { padding-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step { border-right: none; padding-left: 0; }
  .steps .step:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 26px; }
  .step::after { display: none; }
  .features-bg { opacity: 0.5; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid, .steps { grid-template-columns: 1fr; }
  .grid .card, .steps .step { border-right: none !important; padding-right: 0 !important; padding-left: 0; }
  .section, .hero { padding: 56px 0; }
  .nav-cta .ghost { display: none; }
  .hero::before, .hero::after { display: none; }
  .cta-section::before { opacity: 0.5; }
  .card:hover { padding-left: 28px; }
  .card:hover::before { display: none; }
}
