:root {
   --ink: #07111c;
  --muted: #677483;
  --navy: #07111c;
  --navy-2: #3f6f87;
  --gold: #a98662;
  --gold-2: #d9e2e6;
  --gold-ink: #6f5947;
  --earth: #756354;
  --line: #ded8d0;
  --soft: #eef0f1;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(10, 42, 79, 0.08);
  --shadow-soft: 0 10px 28px rgba(10, 42, 79, 0.06);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f1efeb;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(201, 161, 69, 0.5);
  outline-offset: 2px;
}
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -0.03em; }
h2 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 48px); }
h3 { margin-bottom: 10px; font-size: 21px; }
p { color: var(--muted); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.f-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 43, 70, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}
.f-nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.f-brand { display: inline-flex; align-items: center; gap: 12px; }
.f-brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 10px 22px rgba(10, 42, 79, 0.18);
  font-size: 17px;
  font-weight: 900;
}
.f-brand-mark { object-fit: contain; padding: 2px; background: #f1efeb; }
.f-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.f-brand-text strong { font-size: 15px; letter-spacing: 0.03em; }
.f-brand-text small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.f-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; }
.f-links a { color: #38536d; transition: color 180ms ease; }
.f-links a:hover { color: var(--gold-ink); }
.f-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(10, 42, 79, 0.16);
  transition: transform 180ms ease, background 180ms ease;
}
.f-cta:hover { transform: translateY(-2px); background: var(--navy-2); }

/* Hero */
.f-hero {
  padding: 78px 0 72px;
  background:
    radial-gradient(circle at 88% 18%, rgba(201, 161, 69, 0.12), transparent 30%),
    radial-gradient(circle at 10% 82%, rgba(111, 166, 216, 0.13), transparent 30%),
    linear-gradient(180deg, #faf9f6 0%, #f1efeb 100%);
}
.f-hero-grid {
  display: grid;
  align-items: center;
  gap: 52px;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
}
.f-eyebrow {
  margin: 0 0 14px;
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.f-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.06em;
}
.f-hero h1 span { color: var(--navy-2); }
.f-hero-sub {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.85;
}
.f-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.f-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.f-btn:hover { transform: translateY(-2px); }
.f-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 14px 30px rgba(10, 42, 79, 0.2);
}
.f-btn-gold {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 14px 30px rgba(201, 161, 69, 0.22);
}
.f-btn-light {
  color: var(--navy);
  border-color: var(--line);
  background: rgba(255,255,255,.8);
}
.f-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.f-hero-tags span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5b7288;
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
}
.f-hero-media {
  overflow: hidden;
  border: 1px solid rgba(10, 42, 79, 0.1);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}
.f-hero-media img { width: 100%; height: auto; }

/* Sections */
.f-section { padding: 82px 0; }
.f-section-soft { background: #e7e2dc; }
.f-section-head { max-width: 760px; margin-bottom: 38px; }
.f-section-head p { margin-bottom: 0; font-size: 16px; }
.f-grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.f-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.f-card:hover { transform: translateY(-5px); border-color: rgba(201, 161, 69, 0.36); box-shadow: var(--shadow); }
.f-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft); }
.f-card-body { padding: 22px; }
.f-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 11px;
  border: 1px solid rgba(201, 161, 69, 0.28);
  border-radius: 999px;
  color: var(--gold-ink);
  background: #fff9ec;
  font-size: 11px;
  font-weight: 900;
}
.f-card p { margin-bottom: 0; font-size: 14px; }

.f-steps { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.f-step b {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
}
.f-step:nth-child(2) b { background: var(--gold); }
.f-step:nth-child(3) b { background: var(--earth); }
.f-step p { margin-bottom: 0; font-size: 14px; }

/* Split cards */
.f-split-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  grid-template-columns: 1fr 1fr;
}
.f-split-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.f-split-body { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.f-split-body p { margin-bottom: 0; font-size: 14px; }

/* Book carousel */
.bk-carousel { position: relative; padding: 0 2px; }
.bk-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.bk-grid::-webkit-scrollbar { display: none; }
.bk-card {
  flex: 0 0 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(10, 42, 79, 0.08);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.bk-card:hover { transform: translateY(-5px); border-color: rgba(201, 161, 69, 0.4); box-shadow: var(--shadow); }
.bk-cover { display: block; width: 100%; aspect-ratio: 5 / 7; background-color: var(--navy); background-position: center; background-size: cover; }
.bk-title { display: block; min-height: 52px; padding: 12px 12px; color: var(--ink); font-size: 13px; line-height: 1.45; }
.bk-arrow {
  position: absolute;
  top: 42%;
  z-index: 5;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease, visibility 180ms ease;
}
.bk-arrow:hover { color: #fff; background: var(--gold); }
.bk-arrow:disabled { opacity: 0; visibility: hidden; }
.bk-prev { left: -10px; }
.bk-next { right: -10px; }

/* Form */
.f-form-section {
  padding: 82px 0;
  background: #f2f6f9;
}
.f-form-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
}
.f-form-copy { padding: 46px; }
.f-form-copy h2 { font-size: clamp(30px, 3.6vw, 46px); }
.f-form { display: grid; align-content: center; gap: 14px; padding: 38px; background: var(--soft); }
.f-form label { display: grid; gap: 7px; }
.f-form label span { color: #567086; font-size: 12px; font-weight: 800; }
.f-form input, .f-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.f-form input:focus, .f-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 161, 69, 0.1); }
.f-form-note { margin: 0; color: #8a9aa8; font-size: 11px; text-align: center; }

/* Footer */
.f-footer { padding: 28px 0; border-top: 1px solid var(--line); background: #fff; }
.f-footer-inner { display: flex; justify-content: space-between; gap: 20px; color: #7b8d9c; font-size: 12px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .f-hero-grid, .f-form-panel { grid-template-columns: 1fr; }
  .f-grid-3, .f-grid-2, .f-steps { grid-template-columns: 1fr 1fr; }
  .f-split-card { grid-template-columns: 1fr; }
  .f-split-card img { min-height: 220px; }
}
@media (max-width: 680px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .f-links { gap: 10px; }
  .f-links a:not(.f-cta) { display: none; }
  .f-links .f-cta { display: inline-flex; padding: 9px 14px; font-size: 12px; }
  .f-hero { padding: 58px 0 52px; }
  .f-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .f-grid-3, .f-grid-2, .f-steps { grid-template-columns: 1fr; }
  .f-card-body, .f-step { padding: 22px; }
  .f-form-copy, .f-form { padding: 28px 22px; }
  .f-footer-inner { flex-direction: column; }
  .bk-arrow { display: none; }
  .bk-card { flex-basis: 142px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

