:root {
  color-scheme: light;
  --paper: #edf5ff; --ink: #202b3b; --muted: #748197; --accent: #315f9c;
  --sub: #5f6b7d;    /* 次要文字：简介、说明（白底约 5.3:1） */
  --faint: #66748a;  /* 辅助文字：公司、地区、计数（白底约 4.6:1） */
  --deco: #8b97a8;   /* 纯装饰：图标、箭头 */
  --line: rgba(32,43,59,.1);
  --serif: "Iowan Old Style", "Baskerville", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-width: 320px; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 81% 6%, rgba(201,224,255,.7), transparent 28rem),
    radial-gradient(ellipse at 12% 28%, rgba(218,236,255,.58), transparent 25rem),
    var(--paper);
}
a { color: inherit; }
.page { width: min(1180px, calc(100% - 56px)); margin: 0 auto; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(32,43,59,.08); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #274a7d; color: #fff; }
.brand-name { font-size: 16px; }
.top-note { color: var(--muted); font-size: 12px; }
.hero { padding: 64px 0 36px; }
.eyebrow { display: flex; gap: 10px; align-items: center; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .15em; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
h1 { max-width: 700px; margin: 18px 0 13px; font-family: var(--serif); font-size: clamp(43px, 6vw, 72px); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; }
h1 span { color: var(--accent); }
.hero-copy { max-width: 560px; margin: 0; color: var(--sub); font-size: 15px; line-height: 1.8; }

.toolbar { position: sticky; top: 0; z-index: 10; padding: 14px 0 12px; border-top: 1px solid var(--line);
  background: linear-gradient(var(--paper) 80%, rgba(237,245,255,0)); }
.home-toolbar, .api-page .toolbar { padding-top: 0; border-top: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.directory-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.directory-nav::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.directory-link { flex: none; padding: 8px 14px; border: 1px solid #c5d6ec; border-radius: 999px; background: #e3effd;
  color: #274a7d; font: 650 13px var(--sans); text-decoration: none; white-space: nowrap; }
.directory-link:hover { background: #d5e6fa; }
.directory-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.directory-nav .directory-link { background: #f2f7ff; box-shadow: 0 2px 5px rgba(39,74,125,.08); }
.directory-nav .directory-link:hover { background: #e3effd; border-color: #a9c0df; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { appearance: none; border: 1px solid transparent; padding: 8px 14px; border-radius: 999px; background: transparent; color: #66707f;
  font: 600 13px var(--sans); cursor: pointer; transition: .18s ease; white-space: nowrap; }
.chip:hover { color: var(--ink); background: #e3effd; }
.chip.active { color: #fff; background: #274a7d; box-shadow: 0 3px 8px rgba(39,74,125,.16); }
.chip i { font-style: normal; opacity: .6; margin-left: 3px; font-weight: 500; }
.chip.zero:not(.active) { opacity: .45; }
.row2 { margin-top: 10px; }
.api-page .directory-nav { padding-inline-start: 4px; }
.api-page .row2 { margin-top: 0; }
.seg { display: inline-flex; padding: 3px; border: 1px solid #dce7f5; border-radius: 12px; background: rgba(255,255,255,.7); }
.seg button { appearance: none; border: 0; background: transparent; padding: 6px 13px; border-radius: 9px; color: #70798a; font: 600 12px var(--sans); cursor: pointer; }
.seg button.active { background: #274a7d; color: #fff; }
.search { position: relative; width: min(320px, 45vw); }
.search svg { position: absolute; top: 12px; left: 13px; color: var(--deco); }
.search input { width: 100%; height: 41px; padding: 0 16px 0 40px; border: 1px solid #dce7f5; border-radius: 13px; outline: none;
  background: rgba(255,255,255,.85); color: var(--ink); font: 13px var(--sans); transition: .2s ease; }
.search input:focus { border-color: #9ab6df; background: #fff; box-shadow: 0 0 0 3px rgba(67,112,181,.1); }

.group { margin-top: 30px; }
.group[hidden] { display: none; }
.ghead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gicon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; font-size: 17px; color: var(--c); background: var(--bg); }
.ghead h2 { margin: 0; font: 500 22px var(--serif); letter-spacing: -.025em; }
.ghead p { margin: 0; color: var(--sub); font-size: 12px; }
.ghead .n { margin-left: auto; color: var(--sub); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.card { position: relative; display: flex; min-height: 158px; flex-direction: column; padding: 16px 16px 14px; overflow: hidden;
  border: 1px solid #dfe9f6; border-radius: 17px; background: rgba(255,255,255,.82); text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card[hidden] { display: none; }
.card:hover { transform: translateY(-3px); border-color: #bfd2eb; box-shadow: 0 12px 27px rgba(42,65,100,.09); background: #fff; }
.card:focus-visible { outline: 3px solid rgba(49,95,156,.35); outline-offset: 3px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--c); background: var(--bg); font-size: 18px; font-weight: 800; }
.region { padding: 5px 8px; border: 1px solid #e8eef7; border-radius: 999px; color: var(--faint); font-size: 10px; line-height: 1; }
.card h3 { margin: 12px 0 4px; font-size: 15px; font-weight: 680; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--sub); font-size: 12px; line-height: 1.55; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; color: var(--faint); font-size: 11px; }
.company { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-label { color: var(--c); font-weight: 650; white-space: nowrap; }
.api-page .card p { font-size: 14px; }
.api-page .card-bottom { font-size: 13px; }
.arrow { color: var(--deco); font-size: 17px; transition: transform .18s ease; }
.card:hover .arrow { transform: translate(2px,-2px); color: var(--accent); }
.empty { display: none; padding: 58px 20px; margin-top: 30px; text-align: center; border: 1px dashed #c9d7ea; border-radius: 17px; color: var(--sub); }
.empty strong { display: block; margin-bottom: 6px; color: var(--ink); font: 500 22px var(--serif); }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 70px; padding: 18px 0 24px; border-top: 1px solid var(--line); color: var(--sub); font-size: 11px; }
footer span:last-child { text-align: right; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 650px) {
  .page { width: min(100% - 32px, 540px); }
  .topbar { height: 65px; } .top-note { display: none; }
  .hero { padding: 44px 0 28px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .row2 { flex-direction: column-reverse; align-items: stretch; }
  .api-page .row2 { flex-direction: column; }
  .search { width: 100%; } .seg { align-self: flex-start; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .card { min-height: 150px; padding: 13px; border-radius: 15px; }
  .ghead p { display: none; }
  footer { flex-direction: column; gap: 8px; } footer span:last-child { text-align: left; }
}
@media (max-width: 365px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
