
:root {
  --bg: #ffffff;
  --ink: #12233a;
  --muted: #5d6d80;
  --line: #dce7ec;
  --soft: #f3f9f7;
  --soft-blue: #eef7fb;
  --teal: #168a83;
  --green: #1d7a52;
  --orange: #f3a33a;
  --navy: #0f2742;
  --shadow: 0 18px 45px rgba(15, 39, 66, .12);
  --radius: 8px;
}
[data-theme="dark"] {
  --bg: #07131e;
  --ink: #edf7f8;
  --muted: #a9bac7;
  --line: #203646;
  --soft: #0d2130;
  --soft-blue: #0b1d2b;
  --teal: #39c8bb;
  --green: #62d19a;
  --orange: #f5b24d;
  --navy: #f3fbff;
  --shadow: 0 18px 45px rgba(0, 0, 0, .38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); cursor: pointer; font: inherit;
}
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 21px; height: 21px; }
.theme-toggle svg { width: 19px; height: 19px; }
.preview-label {
  background: #123d5a; color: #fff; text-align: center; font-size: 13px; font-weight: 800;
  letter-spacing: .04em; padding: 8px 12px;
}
[data-theme="dark"] .preview-label { background: #39c8bb; color: #051018; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 780; color: var(--navy); }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: #2e4157; }
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: var(--bg);
}
.mobile-menu .wrap {
  display: grid; gap: 8px; padding: 12px 20px 18px;
}
.mobile-menu a {
  padding: 12px 10px; border-radius: var(--radius); color: var(--ink); font-weight: 760;
}
.mobile-menu a:hover { background: var(--soft); color: var(--teal); }
.mobile-menu[data-open="true"] { display: block; }
[data-theme="dark"] .site-header { background: rgba(7,19,30,.92); }
[data-theme="dark"] .nav-links { color: #d7e5ea; }
.nav-cta, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--teal);
  background: var(--teal); color: #fff; border-radius: 999px;
  padding: 11px 18px; font-weight: 720; line-height: 1;
}
.button.secondary { background: #fff; color: var(--teal); }
[data-theme="dark"] .button.secondary { background: transparent; color: var(--teal); }
.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(243,163,58,.16), transparent 32%),
    radial-gradient(circle at 10% 10%, rgba(22,138,131,.12), transparent 34%),
    linear-gradient(180deg, #f8fcfb 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(245,178,77,.14), transparent 32%),
    radial-gradient(circle at 10% 10%, rgba(57,200,187,.14), transparent 34%),
    linear-gradient(180deg, #0a1c2a 0%, #07131e 100%);
}
.hero-grid { min-height: 590px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 70px 0; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: 0; margin: 0 0 22px; color: var(--navy); }
.hero p { max-width: 690px; font-size: 20px; color: #40566d; margin: 0 0 30px; }
[data-theme="dark"] .hero p { color: var(--muted); }
.search-panel {
  display: flex; gap: 10px; align-items: center; background: #fff;
  border: 1px solid #cddfe5; border-radius: 999px; padding: 8px;
  box-shadow: var(--shadow); max-width: 760px;
}
[data-theme="dark"] .search-panel,
[data-theme="dark"] .hero-card,
[data-theme="dark"] .card,
[data-theme="dark"] .directory-toolbar,
[data-theme="dark"] .detail-panel {
  background: #0b1d2b;
  border-color: var(--line);
}
.search-panel input {
  flex: 1; border: 0; outline: 0; font: inherit; padding: 13px 18px; min-width: 0;
  background: transparent; color: var(--ink);
}
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; border: 1px solid #cfe0df;
  color: #18364f; background: rgba(255,255,255,.82); border-radius: 999px;
  padding: 8px 12px; font-size: 14px; font-weight: 680;
}
[data-theme="dark"] .chip { background: rgba(13,33,48,.86); color: #e9f7f7; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 26px; position: relative;
}
.map-shape {
  aspect-ratio: 1 / 1; border-radius: 18px; background:
    linear-gradient(135deg, rgba(22,138,131,.12), rgba(243,163,58,.12)),
    var(--soft);
  display: grid; place-items: center; margin-bottom: 20px;
}
.map-shape img { width: 58%; max-width: 250px; border-radius: 18px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fbfdfd; }
[data-theme="dark"] .stat { background: #071824; }
.stat strong { display: block; font-size: 28px; color: var(--navy); line-height: 1; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; color: var(--navy); }
.section-head p, .lede { color: var(--muted); max-width: 680px; margin: 10px 0 0; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 20px; min-height: 120px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
[data-theme="dark"] .card p,
[data-theme="dark"] .listing-meta,
[data-theme="dark"] .section-head p,
[data-theme="dark"] .lede,
[data-theme="dark"] .source-note { color: var(--muted); }
.card:hover { transform: translateY(-2px); border-color: #b7d7d1; box-shadow: 0 12px 30px rgba(15,39,66,.08); color: inherit; }
.card h3 { margin: 0 0 8px; font-size: 21px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }
.category-card {
  position: relative; overflow: hidden; min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.category-card::after {
  content: ""; position: absolute; right: -34px; bottom: -38px; width: 140px; height: 140px;
  border-radius: 50%; background: var(--category-soft, var(--soft)); z-index: 0;
}
.category-card > * { position: relative; z-index: 1; }
.category-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--category-soft, var(--soft)); color: var(--category-accent, var(--teal));
  margin-bottom: 14px;
}
.category-icon svg { width: 24px; height: 24px; }
.category-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.arrow-dot {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: var(--category-accent, var(--teal)); color: #fff; font-weight: 800;
}
.brand-logo {
  width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; padding: 8px; margin-bottom: 14px;
}
.brand-logo.small {
  width: 44px; height: 44px; border-radius: 12px; margin: 0;
}
.listing-thumb {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line); margin-bottom: 14px; background: var(--soft);
}
.listing-card { padding: 0; overflow: hidden; }
.listing-card .listing-body { padding: 18px; }
.listing-topline { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.listing-topline .count { display: block; }
.enhanced-listing-card {
  position: relative;
  border-color: color-mix(in srgb, var(--category-accent, var(--teal)) 25%, var(--line));
}
.enhanced-listing-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--category-accent, var(--teal)), var(--orange));
}
.listing-card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 760;
}
.mini-brand-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--category-soft, var(--soft)); color: var(--category-accent, var(--teal));
  border: 1px solid var(--line); font-weight: 900; letter-spacing: .02em;
}
.guide-card { padding: 0; overflow: hidden; }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.guide-card .guide-body { padding: 18px; }
.directory-intro {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-bottom: 22px;
}
.directory-intro .card {
  background:
    radial-gradient(circle at 92% 20%, rgba(243,163,58,.16), transparent 30%),
    linear-gradient(135deg, #ffffff, var(--soft-blue));
}
[data-theme="dark"] .directory-intro .card {
  background:
    radial-gradient(circle at 92% 20%, rgba(245,178,77,.14), transparent 30%),
    linear-gradient(135deg, #0b1d2b, #0d2130);
}
.brand-hero-logo {
  width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line);
  border-radius: 18px; background: #fff; padding: 14px; margin-bottom: 18px;
}
.count { color: var(--teal); font-weight: 760; font-size: 14px; }
.band { background: var(--soft); border-block: 1px solid var(--line); }
.listing-card { display: grid; gap: 14px; }
.listing-meta { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.directory-toolbar {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 22px;
}
.directory-toolbar input, .directory-toolbar select {
  width: 100%; border: 1px solid #cbdde4; border-radius: var(--radius);
  padding: 13px 14px; font: inherit; color: var(--ink); background: #fff;
}
[data-theme="dark"] .directory-toolbar input,
[data-theme="dark"] .directory-toolbar select {
  background: #071824; color: var(--ink); border-color: var(--line);
}
.page-hero { padding: 70px 0 42px; background: linear-gradient(180deg, var(--soft-blue), #fff); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .page-hero { background: linear-gradient(180deg, #0d2130, #07131e); }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.breadcrumbs a { color: var(--teal); }
.article { max-width: 780px; margin: 0 auto; }
.article h2 { font-size: 30px; margin: 38px 0 12px; }
.article p, .article li { color: #314a62; font-size: 18px; }
[data-theme="dark"] .article p, [data-theme="dark"] .article li { color: #d5e3ea; }
.article a { color: var(--teal); text-decoration: underline; }
.article-img { width: 100%; border-radius: 18px; border: 1px solid var(--line); margin: 28px 0; }
.detail-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: start; }
.detail-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; position: sticky; top: 96px; }
.detail-panel dl { margin: 0; display: grid; gap: 14px; }
.detail-panel dt { font-size: 13px; color: var(--muted); font-weight: 760; text-transform: uppercase; }
.detail-panel dd { margin: 3px 0 0; color: var(--ink); }
.notice { border-left: 4px solid var(--orange); background: #fff8ec; padding: 18px 20px; border-radius: var(--radius); color: #5c431d; }
[data-theme="dark"] .notice { background: #211a0e; color: #ffe1aa; }
.footer { background: var(--navy); color: #d8e6ee; padding: 52px 0; margin-top: 48px; }
[data-theme="dark"] .footer { background: #020a10; color: #f1f8fb; border-top: 1px solid #203646; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 32px; }
.footer a { display: block; color: #d8e6ee; margin: 8px 0; }
[data-theme="dark"] .footer a { color: #e5f5fb; }
.footer strong { color: #fff; }
.build-stamp { margin-top: 28px; color: #b8d2df; font-size: 12px; }
.source-note { font-size: 14px; color: #6b7b8c; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }
@media (max-width: 860px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .nav { height: auto; padding: 12px 0; align-items: center; }
  .brand { gap: 9px; font-size: 15px; }
  .brand img { width: 36px; height: 36px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding: 34px 0; gap: 28px; }
  h1 { font-size: clamp(36px, 12vw, 52px); }
  .page-hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero p { font-size: 17px; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .directory-intro { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .search-panel, .directory-toolbar { grid-template-columns: 1fr; border-radius: var(--radius); }
  .search-panel { display: grid; }
  .search-panel .button, .directory-toolbar .button { width: 100%; }
  section { padding: 46px 0; }
  .card { padding: 16px; }
  .listing-card { padding: 0; }
  .listing-body, .guide-card .guide-body { padding: 15px; }
  .listing-thumb, .guide-card img { aspect-ratio: 16 / 8.5; }
  .hero-card { padding: 18px; border-radius: 16px; }
  .stat strong { font-size: 24px; }
  .detail-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
