:root {
  color-scheme: light;
  --paper: #f5f4ed;
  --white: #fdfcf8;
  --ink: #242820;
  --muted: #686b61;
  --olive: #59633c;
  --line: #dcded2;
  --image: #eceee4;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; }
a:focus-visible { outline: 3px solid var(--olive); outline-offset: 6px; }
::selection { background: #d9dfbf; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 18px; background: var(--ink); color: white; border-radius: 8px; z-index: 20; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 120px; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; }
.site-brand img { flex: 0 0 44px; }
.site-brand-name { font-size: 20px; font-weight: 500; letter-spacing: .12em; line-height: 1.35; }
.site-brand-name small { display: block; padding-top: 5px; color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: .3em; }
.back-link { display: inline-flex; align-items: center; gap: 24px; font-size: 13px; padding: 10px 0; }
.back-link span { font-size: 19px; }
.back-link:hover, .text-link:hover { color: var(--olive); }
.directory-hero { padding: 92px 0 64px; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
h1 { margin-top: 36px; font-size: clamp(54px, 6.2vw, 84px); line-height: 1.2; font-weight: 400; letter-spacing: -.045em; }
h1 > span { color: var(--olive); }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 38px; }
.hero-bottom p { color: var(--muted); font-size: 15px; line-height: 1.85; }
.hero-arrow { font-size: 42px; font-weight: 300; color: var(--olive); line-height: 1; }
.directory { padding-block: 32px 0; }
.directory-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 26px; font-size: 14px; }
.directory-heading > span { color: var(--muted); font-size: 12px; }
.directory-heading > span > span { margin-inline: 12px; color: #aaa; }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.brand-entry { min-width: 0; }
.brand-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.brand-card:hover { border-color: #bbc1ac; box-shadow: 0 12px 32px -22px #333e2950; }
.brand-media { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--image); aspect-ratio: 4 / 3; }
.brand-media img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 22px; }
.brand-image-pending { padding: 48px 24px; text-align: center; color: var(--olive); }
.brand-image-pending > span { display: block; font-size: 24px; }
.brand-image-pending small { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; }
.brand-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 30px; }
.brand-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 22px; }
.brand-meta > span + span { border-left: 1px solid var(--line); padding-left: 14px; }
.brand-wordmark { color: var(--olive); margin-bottom: 10px; font-size: 10px; letter-spacing: .13em; overflow-wrap: anywhere; }
.brand-body h2 { font-size: 30px; line-height: 1.35; font-weight: 400; letter-spacing: -.025em; overflow-wrap: anywhere; }
.brand-description { margin-top: 14px; margin-bottom: 6px; color: var(--muted); max-width: 31em; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.brand-cta { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; margin-top: auto; padding-top: 32px; font-size: 13px; }
.brand-cta > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; transition: background-color .2s ease, color .2s ease; }
.brand-card:hover .brand-cta > span { background: var(--olive); border-color: var(--olive); color: var(--white); }
.brand-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.brand-grid[data-count="1"] .brand-card { display: grid; grid-template-columns: 1.18fr 1fr; }
.brand-grid[data-count="1"] .brand-media { min-height: 440px; aspect-ratio: 5 / 4; }
.brand-grid[data-count="1"] .brand-body { justify-content: center; padding: clamp(32px, 4vw, 64px); }
.brand-grid[data-count="1"] .brand-body h2 { font-size: clamp(32px, 3.2vw, 44px); }
.brand-grid[data-count="1"] .brand-cta { margin-top: 38px; }
.directory-empty { display: flex; flex-direction: column; align-items: center; min-height: 350px; justify-content: center; border: 1px solid var(--line); border-radius: 24px; text-align: center; padding: 56px 24px; }
.empty-mark { color: var(--olive); font-size: 28px; line-height: 1; margin-bottom: 24px; }
.directory-empty h2 { font-weight: 400; font-size: 26px; }
.directory-empty p { margin-top: 16px; color: var(--muted); font-size: 14px; }
.text-link { margin-top: 30px; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.text-link span { padding-left: 16px; }
.directory-note { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-block: 84px 92px; }
.directory-note p { font-size: 22px; font-weight: 400; }
.directory-note > span { max-width: 32em; font-size: 13px; line-height: 1.8; color: var(--muted); }
.site-footer { display: flex; align-items: center; gap: 24px; padding-block: 28px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer > a { margin-left: auto; }
.site-footer a span { margin-left: 12px; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
  .site-header { min-height: 100px; }
  .directory-hero { padding-top: 60px; }
  .brand-grid { gap: 20px; }
  .brand-body { padding: 24px; }
  .brand-grid[data-count="1"] .brand-media { min-height: 360px; }
  .brand-grid[data-count="1"] .brand-body { padding: 32px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 90px; gap: 16px; }
  .site-brand { gap: 10px; }
  .site-brand img { width: 36px; height: 36px; flex-basis: 36px; }
  .site-brand-name { font-size: 17px; }
  .site-brand-name small { font-size: 8px; }
  .back-link { font-size: 12px; gap: 12px; }
  .directory-hero { padding: 52px 0 40px; }
  .eyebrow { font-size: 10px; letter-spacing: .04em; }
  h1 { margin-top: 28px; font-size: clamp(43px, 11vw, 66px); }
  .hero-bottom { margin-top: 26px; gap: 12px; }
  .hero-bottom p { font-size: 13px; }
  .hero-arrow { font-size: 32px; }
  .directory { padding-top: 26px; }
  .directory-heading { margin-bottom: 18px; gap: 12px; font-size: 13px; }
  .directory-heading > span { font-size: 11px; }
  .directory-heading > span > span { margin-inline: 6px; }
  .brand-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-card { border-radius: 20px; }
  .brand-grid[data-count="1"] .brand-card { display: flex; }
  .brand-grid[data-count="1"] .brand-media { min-height: 0; aspect-ratio: 4 / 3; }
  .brand-grid[data-count="1"] .brand-body { padding: 26px; }
  .brand-grid[data-count="1"] .brand-body h2 { font-size: 32px; }
  .brand-grid[data-count="1"] .brand-cta { margin-top: 10px; }
  .brand-meta { margin-bottom: 16px; }
  .brand-description { font-size: 13px; }
  .directory-note { grid-template-columns: 1fr; gap: 16px; padding-block: 54px 60px; }
  .directory-note p { font-size: 20px; }
  .directory-note > span { font-size: 12px; }
  .site-footer { gap: 14px; padding-block: 24px 30px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
