:root {
  color: #17231c;
  background: #f4f2ea;
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  --paper: #f4f2ea;
  --ink: #17231c;
  --muted: #6f766f;
  --line: rgba(23, 35, 28, 0.14);
  --mono: 'SFMono-Regular', 'JetBrains Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(180deg, #f7f5ee 0%, var(--paper) 62%, #ece9de 100%);
  color: var(--ink);
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
  content: '';
  opacity: 0.2;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
.seo-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.seo-header {
  display: flex;
  height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.seo-logo { display: inline-flex; align-items: center; gap: 11px; }
.seo-logo span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50% 44% 50% 42%;
  background: var(--brand-accent);
  box-shadow: 3px 4px 0 var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  transform: rotate(-5deg);
}
.seo-logo strong { font-size: 16px; letter-spacing: 0.04em; }
.seo-header nav { display: flex; gap: 28px; color: #4e5750; font-size: 13px; font-weight: 700; }
.seo-header nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand-accent); text-underline-offset: 7px; }
.breadcrumbs { display: flex; gap: 8px; margin-top: 29px; color: var(--muted); font-size: 10px; }
.breadcrumbs a:hover { color: var(--ink); }
.brand-hero {
  display: grid;
  min-height: 660px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
  padding: 58px 22px 86px;
}
.brand-intro { animation: rise-in 560ms ease both; }
.eyebrow {
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--brand-accent) 70%, #135d35);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
}
.brand-hero h1, .directory-hero h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 94px);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.95;
}
.brand-hero h1 span, .directory-hero h1 span { color: var(--brand-accent); }
.lead {
  max-width: 570px;
  margin: 29px 0 0;
  color: #626b64;
  font-size: 15px;
  line-height: 1.9;
}
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.primary-cta, .bottom-cta > a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--brand-accent);
  box-shadow: 5px 6px 0 var(--ink);
  font-size: 13px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.primary-cta:hover, .bottom-cta > a:hover { box-shadow: 2px 3px 0 var(--ink); transform: translate(3px, 3px); }
.text-link { color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
.book-stage { position: relative; display: grid; min-height: 500px; place-items: center; animation: rise-in 650ms 80ms ease both; }
.book-stage::before {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 48px solid color-mix(in srgb, var(--brand-accent) 25%, transparent);
  border-radius: 50%;
  content: '';
}
.book-shadow { position: absolute; width: 340px; height: 420px; border-radius: 24px; background: rgba(23, 35, 28, 0.16); transform: translate(19px, 22px) rotate(4deg); }
.number-book {
  position: relative;
  display: flex;
  width: 340px;
  min-height: 420px;
  flex-direction: column;
  padding: 29px 27px 25px 36px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 24px 18px 27px 18px;
  background: #fffdf6;
  box-shadow: inset -9px 0 0 rgba(23, 35, 28, 0.04);
  transform: rotate(-2deg);
}
.book-spine { position: absolute; top: 0; bottom: 0; left: 0; width: 12px; background: var(--brand-accent); }
.number-book header { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.number-book header span { font-size: 17px; font-weight: 900; }
.number-book header small { color: var(--muted); font-family: var(--mono); font-size: 7px; }
.receipt-card { margin: 29px 0 24px; padding: 19px 20px 18px; border: 1px dashed rgba(23, 35, 28, 0.32); border-radius: 16px; background: color-mix(in srgb, var(--brand-accent) 14%, #f1f2ee); }
.receipt-card span, .receipt-card small { display: block; font-family: var(--mono); font-size: 7px; letter-spacing: 0.1em; }
.receipt-card strong { display: block; margin: 9px 0 10px; font-family: var(--mono); font-size: 54px; letter-spacing: -0.08em; line-height: 0.9; }
.mini-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.mini-grid i { display: grid; aspect-ratio: 1; place-items: center; border-radius: 4px; background: #e8e7e1; color: #a6a9a5; font-family: var(--mono); font-size: 5px; font-style: normal; }
.mini-grid i.lit { background: var(--brand-accent); box-shadow: 1px 2px 0 var(--ink); color: var(--ink); }
.content-section {
  display: grid;
  grid-template-columns: 92px minmax(0, 780px);
  gap: 40px;
  padding: 92px 0;
  border-top: 1px solid var(--line);
}
.content-section > div:last-child { max-width: 780px; }
.section-index { color: var(--brand-accent); font-family: var(--mono); font-size: 38px; font-weight: 300; }
.content-section h2, .faq-section h2 { margin: 0 0 22px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.055em; }
.content-section p { margin: 0; color: #59635b; font-size: 15px; line-height: 1.95; }
.code-examples { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 18px; padding: 0; list-style: none; }
.code-examples li { padding: 10px 15px; border: 1px solid var(--ink); border-radius: 10px; background: #fffdf7; box-shadow: inset 0 -3px 0 var(--brand-accent); font-family: var(--mono); font-size: 17px; font-weight: 700; }
.recognition-names { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 22px 0 15px; }
.recognition-names b { margin-right: 4px; font-size: 10px; }
.recognition-names span { padding: 5px 8px; border-radius: 6px; background: rgba(23, 35, 28, 0.055); color: #59635b; font-size: 9px; }
.content-section .evidence-note { color: #818781; font-size: 10px; }
.photo-steps { display: grid; margin: 35px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; counter-reset: step; }
.photo-steps li { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.photo-steps li b::before { margin-right: 12px; color: var(--brand-accent); content: '0' counter(step); font-family: var(--mono); font-size: 9px; }
.photo-steps span { color: var(--muted); font-size: 12px; }
.faq-section { max-width: 872px; margin: 0 0 110px 132px; padding-top: 92px; border-top: 1px solid var(--line); }
.faq-section details { border-bottom: 1px solid var(--line); }
.faq-section summary { padding: 21px 0; font-size: 15px; font-weight: 800; cursor: pointer; }
.faq-section details p { margin: -3px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.bottom-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 25px; margin-bottom: 110px; padding: 38px 42px; border: 2px solid var(--ink); border-radius: 24px; background: color-mix(in srgb, var(--brand-accent) 82%, white); box-shadow: 7px 8px 0 var(--ink); }
.bottom-cta > span { display: grid; width: 54px; height: 54px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-family: var(--mono); }
.bottom-cta p, .bottom-cta h2 { margin: 0; }
.bottom-cta p { margin-bottom: 5px; font-size: 11px; }
.bottom-cta h2 { font-size: 25px; letter-spacing: -0.04em; }
.bottom-cta > a { background: #fff; }
.seo-footer { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.seo-footer > a { color: var(--ink); font-weight: 800; }
.seo-footer p { margin: 0; }
.directory-hero { max-width: 800px; padding: 92px 22px 115px; }
.directory-hero > p:last-child { max-width: 610px; margin: 28px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.directory-group { display: grid; grid-template-columns: 230px 1fr; gap: 52px; padding: 72px 0; border-top: 1px solid var(--line); }
.directory-group > header { position: sticky; top: 25px; align-self: start; }
.directory-group header span { color: var(--brand-accent); font-family: var(--mono); font-size: 9px; letter-spacing: 0.13em; }
.directory-group header h2 { margin: 9px 0 5px; font-size: 33px; letter-spacing: -0.05em; }
.directory-group header small { color: var(--muted); font-family: var(--mono); }
.brand-directory-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.brand-directory-list a { display: grid; min-height: 66px; grid-template-columns: 5px 1fr auto auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); transition: padding 160ms ease, background 160ms ease; }
.brand-directory-list a:hover { padding: 0 11px; background: rgba(255, 255, 255, 0.42); }
.brand-directory-list i { width: 5px; height: 27px; border-radius: 99px; background: var(--item-accent); }
.brand-directory-list span { font-size: 13px; font-weight: 800; }
.brand-directory-list small { color: #a2a6a2; font-family: var(--mono); font-size: 8px; }
.brand-directory-list b { font-size: 13px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .seo-shell { width: calc(100% - 28px); }
  .seo-header { height: 72px; }
  .seo-header nav { gap: 16px; font-size: 11px; }
  .brand-hero { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 55px 0 72px; }
  .brand-hero h1, .directory-hero h1 { font-size: clamp(50px, 15vw, 67px); }
  .lead { font-size: 13px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 17px; }
  .primary-cta { width: calc(100% - 6px); }
  .text-link { text-align: center; }
  .book-stage { min-height: 430px; transform: scale(0.88); margin: -22px 0; }
  .content-section { grid-template-columns: 1fr; gap: 17px; padding: 67px 0; }
  .section-index { font-size: 25px; }
  .content-section h2, .faq-section h2 { font-size: 33px; }
  .photo-steps li { grid-template-columns: 1fr; gap: 7px; }
  .faq-section { margin: 0 0 76px; padding-top: 67px; }
  .bottom-cta { grid-template-columns: auto 1fr; gap: 17px; margin-bottom: 80px; padding: 27px 22px; }
  .bottom-cta > a { grid-column: 1 / -1; width: 100%; }
  .bottom-cta h2 { font-size: 20px; }
  .seo-footer { align-items: flex-start; flex-direction: column; padding: 28px 0; }
  .directory-hero { padding: 70px 0 83px; }
  .directory-group { grid-template-columns: 1fr; gap: 25px; padding: 55px 0; }
  .directory-group > header { position: static; }
  .brand-directory-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
