/* ==========================================================================
   作文批改台 · 首页
   ========================================================================== */

.home {
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
}

.home main { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- 顶栏 */

.hnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 40px);
  background: rgba(255, 253, 248, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(213, 199, 174, .55);
}

.hnav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.hnav-brand .brand-seal {
  width: 40px;
  height: 40px;
  font-size: 24px;
}

.hnav-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.hnav-brand-text b { font-size: 17px; letter-spacing: .04em; }
.hnav-brand-text i { font-style: normal; font-size: 11px; color: var(--ink-faint); letter-spacing: .06em; }

.hnav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13.5px;
}

.hnav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.hnav-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- Hero */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 40px) 40px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .28em;
  color: var(--accent);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: .6;
}

.hero h1 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.16;
  letter-spacing: .01em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 4px;
  height: 9px;
  background: rgba(178, 71, 42, .16);
  z-index: -1;
  border-radius: 2px;
}

.hero-lead {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 248, .8);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

.hero-tags li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
  opacity: .7;
}

/* 右侧样张 */

.hero-visual { margin: 0; display: flex; flex-direction: column; align-items: center; }

.paper-stack {
  position: relative;
  width: min(400px, 100%);
  transform: rotate(-1.4deg);
  animation: rise .9s cubic-bezier(.2, .9, .3, 1) both;
}

.paper-stack::before {
  content: "";
  position: absolute;
  inset: 10px -10px -12px 12px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: rotate(2.6deg);
  box-shadow: 0 18px 40px rgba(60, 42, 22, .12);
  z-index: -1;
}

.paper-stack img {
  display: block;
  width: 100%;
  border: 1px solid #e4d8c2;
  border-radius: 4px;
  box-shadow: 0 26px 60px rgba(60, 42, 22, .22), 0 3px 8px rgba(60, 42, 22, .1);
  background: #fffefa;
}

.hero-visual figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-visual .hint { margin-left: 6px; }

.swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: -1px;
}

.swatch.good { background: #fdeaa8; border: 1px solid #d9ae35; }
.swatch.fix { background: #ffd6cc; border: 1px solid #d1715e; }
.swatch.ink { background: #2f4f43; }

/* ---------------------------------------------------------------- 通用 section */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 40px);
}

.section-head { max-width: 660px; margin-bottom: 36px; }

.section-head h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.35;
  letter-spacing: .01em;
}

.section-head p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.section--paper {
  background: linear-gradient(180deg, #fbf6ea, #f7efe0);
  border: 1px solid #e8ddc9;
  border-radius: 28px;
  padding: clamp(34px, 5vw, 56px);
}

.section--dark {
  background: #241f1a;
  color: #f3ece0;
  border-radius: 28px;
  display: flex;
  gap: clamp(28px, 5vw, 70px);
  align-items: flex-start;
  padding: clamp(34px, 5vw, 56px);
  flex-wrap: wrap;
}

.section--dark .eyebrow { color: #e2a58e; }
.section--dark .eyebrow::before { background: #e2a58e; }
.section--dark h2 { margin: 14px 0 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.4; text-wrap: balance; }
.section--dark p { color: #c9bfae; font-size: 14px; line-height: 1.95; margin: 14px 0 0; max-width: 34em; }
.section--dark code { background: rgba(255, 255, 255, .1); color: #f3ece0; }
.private-copy { flex: 1 1 420px; }
.private-points { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.private-points > div { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.private-points b { font-family: var(--serif); font-size: 17px; min-width: 74px; color: #f3ece0; }
.private-points span { font-size: 12.5px; color: #b9ad9b; }

/* ---------------------------------------------------------------- 功能卡 */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature {
  padding: 24px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.feature-no {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--accent);
}

.feature h3 { margin: 8px 0 8px; font-size: 18px; letter-spacing: .02em; }
.feature p { margin: 0; font-size: 13.5px; line-height: 1.95; color: var(--ink-soft); }

.feature code, .section--dark code, .hfoot code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- 流程 */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.flow li {
  position: relative;
  padding: 26px 24px 24px;
  background: rgba(255, 253, 248, .72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.flow-no {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff8ef;
  font-family: var(--serif);
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(150, 55, 30, .25);
}

.flow h3 { margin: 14px 0 6px; font-size: 18px; }
.flow p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--ink-soft); }

/* ---------------------------------------------------------------- 样张 */

.sample-frame {
  margin: 0 auto;
  max-width: 560px;
  padding: 14px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.sample-frame img { display: block; width: 100%; border: 1px solid #e8dcc6; }

.sample-legend {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.sample-legend b { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- CTA / 页脚 */

.cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(50px, 7vw, 96px) 24px;
  text-align: center;
}

.cta h2 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.4; }
.cta p { margin: 12px 0 26px; color: var(--ink-faint); font-size: 13.5px; }

.hfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px clamp(18px, 4vw, 40px);
  border-top: 1px solid rgba(213, 199, 174, .5);
  font-size: 12px;
  color: var(--ink-faint);
}

.hfoot-links { display: flex; gap: 18px; }
.hfoot a { color: var(--ink-faint); text-decoration: none; }
.hfoot a:hover { color: var(--accent); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) rotate(-2.6deg); }
  to { opacity: 1; transform: translateY(0) rotate(-1.4deg); }
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 900px) {
  .hnav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { order: 2; margin-top: 8px; }
  .paper-stack { width: min(340px, 88%); transform: rotate(-1deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .section--dark { flex-direction: column; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
}

@media (max-width: 520px) {
  .hnav { gap: 10px; }
  .hnav-brand-text i { display: none; }
  .hnav .btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-tags li { font-size: 11px; }
}
