:root {
  --ink: #22201d;
  --ink-2: #6b655c;
  --muted: #8a8377;
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --brand: #8e2c3b;
  --brand-dark: #75222f;
  --brand-soft: #f4e7e5;
  --accent: #8e2c3b;
  --accent-soft: #f4e7e5;
  --teal: #8e2c3b;
  --teal-soft: #f4e7e5;
  --purple: #8e2c3b;
  --purple-soft: #f4e7e5;
  --line: #e5ded2;
  --shadow: 0 2px 12px rgba(34, 32, 29, 0.05);
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
}
h1, h2, h3, h4, .logo-text, .panel-title strong {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  font-weight: 700;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, select, input, textarea { font: inherit; }
::selection { background: var(--brand); color: #fff; }

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

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 222, 210, 0.9);
}
.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
}
.logo-text { line-height: 1.15; }
.logo-text small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}
.nav-links a {
  padding: 10px 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); font-weight: 800; }
.nav-cta {
  background: var(--ink) !important;
  color: #fff !important;
  padding: 11px 16px !important;
  font-weight: 700;
}
.nav-cta:hover { background: var(--brand) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
  color: var(--ink);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--brand); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(34, 32, 29, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 32, 29, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: center;
}
.hero.compact { padding: 52px 0 40px; }
.hero.compact .hero-grid { grid-template-columns: 1fr; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}
h1 {
  margin-top: 18px;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 700;
}
h1 em { font-style: normal; color: var(--brand); }
.hero-lead {
  margin-top: 20px;
  max-width: 720px;
  color: var(--ink-2);
  font-size: 17.5px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-proof span {
  padding: 7px 11px;
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-title strong { font-size: 18px; }
.panel-tag {
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 21px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: var(--brand);
}
.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-light { background: #fff; color: var(--brand); }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-block { width: 100%; }

/* ===== Strip ===== */
.strip { padding: 22px 0; background: var(--ink); color: #fff; }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.strip-item {
  text-align: center;
  padding: 10px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.strip-item:first-child { border-left: 0; }
.strip-item b { display: block; font-size: 14px; }
.strip-item span { color: rgba(255, 255, 255, 0.62); font-size: 11px; }

/* ===== Sections ===== */
section { padding: 82px 0; }
section.tight { padding: 56px 0; }
section.alt { background: #fff; }
.section-head { max-width: 800px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h3 { line-height: 1.35; }
.section-desc {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ===== Cards ===== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(34, 32, 29, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 44, 59, 0.3);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 18px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 13.5px; }
.card .quote {
  margin-top: 13px;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}
.card-link:hover { text-decoration: underline; }

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 16px;
}
.icon-blue { background: var(--brand-soft); }
.icon-red { background: var(--accent-soft); }
.icon-teal { background: var(--teal-soft); }
.icon-purple { background: var(--purple-soft); }

/* ===== Flow / Method ===== */
.flow { display: grid; gap: 11px; }
.flow-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
}
.flow-no {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: var(--brand);
}
.flow-item:nth-child(2) .flow-no { background: var(--accent); }
.flow-item:nth-child(3) .flow-no { background: var(--teal); }
.flow-item:nth-child(4) .flow-no { background: var(--purple); }
.flow-item b { display: block; font-size: 14.5px; }
.flow-item p { color: var(--ink-2); font-size: 12.5px; margin-top: 3px; }

.method { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.method-item {
  position: relative;
  padding: 22px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.method-item::before {
  content: attr(data-step);
  display: block;
  color: var(--brand);
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.method-item h3 { margin-top: 13px; font-size: 16px; }
.method-item p { margin-top: 8px; color: var(--ink-2); font-size: 12.5px; }

/* ===== Service list ===== */
.service-card { position: relative; overflow: hidden; padding-top: 28px; }
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.service-card ul { margin-top: 14px; display: grid; gap: 8px; }
.service-card li {
  list-style: none;
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13px;
}
.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

/* ===== Practice ===== */
.practice-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  align-items: start;
}
.practice-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--brand-soft);
}
.practice-card:nth-child(2) .practice-icon { background: var(--accent-soft); }
.practice-card:nth-child(3) .practice-icon { background: var(--teal-soft); }
.practice-card:nth-child(4) .practice-icon { background: var(--purple-soft); }
.practice-card h3 { font-size: 19px; }
.practice-card p { margin-top: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.chips span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
}

/* ===== View cards ===== */
.view-card {
  padding: 22px;
  background: var(--surface);
}
.view-card .num {
  font-size: 12px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.12em;
}
.view-card h3 { margin-top: 9px; font-size: 17px; }
.view-card p { margin-top: 9px; font-size: 13px; }

/* ===== Opportunity dark ===== */
.opportunity {
  background: var(--ink);
  color: #fff;
}
.opportunity .section-kicker { color: var(--brand-soft); }
.opportunity .section-desc { color: rgba(255, 255, 255, 0.72); }
.op-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 23px;
}
.op-card b {
  display: block;
  color: var(--brand-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.op-card h3 { margin-top: 8px; font-size: 18px; }
.op-card p { margin-top: 9px; color: rgba(255, 255, 255, 0.7); font-size: 13px; }

/* ===== Content article ===== */
.prose { max-width: 820px; }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  margin-top: 42px;
  font-size: clamp(23px, 2.8vw, 32px);
}
.prose h3 { margin-top: 28px; font-size: 20px; }
.prose p { color: var(--ink-2); font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-2); }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); }
.prose blockquote {
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 14px 14px 0;
  color: var(--ink);
  font-weight: 700;
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.callout {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid rgba(142, 44, 59, 0.16);
}
.callout strong { color: var(--brand); }

.check-list { display: grid; gap: 10px; }
.check-list li {
  list-style: none;
  padding: 13px 16px 13px 42px;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--brand);
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 14px;
}

/* ===== Related links ===== */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related a {
  padding: 18px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.related a:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}
.related b { display: block; color: var(--brand); font-size: 12px; letter-spacing: 0.08em; }
.related span { display: block; margin-top: 6px; font-weight: 800; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card h3 { font-size: 18px; }
.contact-card p { margin-top: 9px; color: var(--ink-2); font-size: 13.5px; }
.contact-card .value {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 900;
  color: var(--brand);
}

/* ===== CTA ===== */
.cta { padding: 72px 0; }
.cta-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
  padding: 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
}
.cta-box h2 { font-size: clamp(26px, 3.6vw, 40px); }
.cta-box > div > p { margin-top: 13px; color: rgba(255, 255, 255, 0.8); max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.contact-mini {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row span { color: rgba(255, 255, 255, 0.62); font-size: 12px; }
.contact-row b { text-align: right; }

/* ===== Footer ===== */
footer {
  padding: 46px 0 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin-top: 12px; max-width: 320px; font-size: 12.5px; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 12px;
}

/* ===== Reveal (progressive enhancement) ===== */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.show { opacity: 1; transform: none; }

/* ===== Post list / article ===== */
.post-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.card .post-meta { margin-bottom: 2px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose code {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ===== Assessment result ===== */
.assessment-result { display: none; }
.assessment-result.show { display: block; }
.assessment-result strong { display: block; font-size: 18px; color: var(--brand); }
.assessment-result p { margin-top: 8px; color: var(--ink-2, #40556b); font-size: 14px; }

/* ===== Direct answer (GEO) ===== */
.direct-answer {
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 15.5px;
}
.direct-answer strong { color: var(--brand); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .cta-box { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
  .method { grid-template-columns: 1fr 1fr; }
  .strip-inner { grid-template-columns: repeat(3, 1fr); }
  .strip-item:nth-child(4) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-inner { padding: 12px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
  }
  .nav-links.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .hero { padding: 52px 0 44px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .method, .related { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(3) { border-left: 0; }
  .cta-box { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 62px 0; }
}
