:root {
  color-scheme: light;
  --bg: #fbfcfe;
  --surface: #f5f7fa;
  --surface-strong: #edf2f7;
  --text: #101418;
  --muted: #5c6670;
  --border: #dce3ec;
  --accent: #007bcb;
  --accent-dark: #005f9e;
  --header-bg: rgba(234, 247, 255, 0.42);
  --header-glass-tint: linear-gradient(115deg, rgba(230, 246, 255, 0.42), rgba(255, 255, 255, 0.14) 52%, rgba(0, 123, 203, 0.07));
  --header-scrolled-bg: rgba(238, 248, 255, 0.86);
  --header-scrolled-glass-tint: linear-gradient(115deg, rgba(225, 244, 255, 0.78), rgba(255, 255, 255, 0.42) 52%, rgba(0, 123, 203, 0.12));
  --header-scrolled-shadow: 0 14px 38px rgba(0, 83, 138, 0.1);
  --header-scrolled-text: #043653;
  --header-scrolled-muted: #194b68;
  --header-scrolled-active-text: #003f6f;
  --header-highlight: rgba(255, 255, 255, 0.72);
  --header-bg-strong: #ffffff;
  --header-text: #063f66;
  --header-muted: #315d78;
  --header-border: transparent;
  --header-hover-bg: rgba(0, 123, 203, 0.11);
  --header-active-bg: rgba(0, 123, 203, 0.24);
  --header-active-text: #004f86;
  --header-button-bg: rgba(0, 123, 203, 0.055);
  --header-button-hover-bg: rgba(0, 123, 203, 0.14);
  --header-button-hover-border: rgba(0, 123, 203, 0.2);
  --header-brand-bg: rgba(0, 123, 203, 0.08);
  --header-brand-hover-bg: rgba(0, 123, 203, 0.15);
  --header-brand-highlight: rgba(255, 255, 255, 0.58);
  --header-shadow: 0 10px 34px rgba(0, 83, 138, 0.06);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 254, 0.68)), rgba(255, 255, 255, 0.72);
  --glass-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 254, 0.76)), rgba(255, 255, 255, 0.82);
  --glass-bg-soft: linear-gradient(180deg, rgba(248, 251, 254, 0.82), rgba(239, 246, 252, 0.64)), rgba(246, 249, 252, 0.74);
  --glass-border: rgba(35, 83, 125, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.78);
  --glass-shadow: 0 18px 48px rgba(15, 50, 84, 0.07), 0 2px 8px rgba(15, 50, 84, 0.035);
  --glass-shadow-hover: 0 22px 56px rgba(15, 50, 84, 0.1), 0 3px 12px rgba(15, 50, 84, 0.05);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.055);
  --radius: 8px;
  --container: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #151820;
  --surface-strong: #1c222c;
  --text: #eef3f8;
  --muted: #a9b4c0;
  --border: #2c3441;
  --accent: #58a2ff;
  --accent-dark: #8ec1ff;
  --header-bg: rgba(15, 17, 21, 0.3);
  --header-glass-tint: linear-gradient(115deg, rgba(88, 162, 255, 0.045), rgba(15, 17, 21, 0.12) 52%, rgba(255, 255, 255, 0.012));
  --header-scrolled-bg: rgba(15, 17, 21, 0.82);
  --header-scrolled-glass-tint: linear-gradient(115deg, rgba(88, 162, 255, 0.09), rgba(15, 17, 21, 0.58) 52%, rgba(255, 255, 255, 0.03));
  --header-scrolled-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
  --header-scrolled-text: #f5f9ff;
  --header-scrolled-muted: #d5e3f1;
  --header-scrolled-active-text: #9fcbff;
  --header-highlight: rgba(255, 255, 255, 0.08);
  --header-bg-strong: var(--surface);
  --header-text: var(--text);
  --header-muted: var(--muted);
  --header-border: transparent;
  --header-hover-bg: rgba(88, 162, 255, 0.085);
  --header-active-bg: rgba(88, 162, 255, 0.18);
  --header-active-text: var(--accent);
  --header-button-bg: rgba(14, 17, 22, 0.22);
  --header-button-hover-bg: rgba(21, 26, 33, 0.44);
  --header-button-hover-border: rgba(88, 162, 255, 0.22);
  --header-brand-bg: rgba(88, 162, 255, 0.075);
  --header-brand-hover-bg: rgba(88, 162, 255, 0.13);
  --header-brand-highlight: rgba(255, 255, 255, 0.08);
  --header-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  --glass-bg: linear-gradient(180deg, rgba(28, 34, 44, 0.82), rgba(17, 20, 27, 0.7)), rgba(16, 19, 25, 0.76);
  --glass-bg-strong: linear-gradient(180deg, rgba(35, 43, 56, 0.9), rgba(19, 23, 31, 0.8)), rgba(18, 22, 29, 0.84);
  --glass-bg-soft: linear-gradient(180deg, rgba(24, 30, 39, 0.78), rgba(14, 17, 23, 0.68)), rgba(15, 18, 24, 0.72);
  --glass-border: rgba(139, 180, 228, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 18px 46px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(0, 0, 0, 0.12);
  --glass-shadow-hover: 0 22px 56px rgba(0, 0, 0, 0.27), 0 3px 12px rgba(0, 0, 0, 0.16);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "WenQuanYi Micro Hei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 0;
  background: var(--header-glass-tint), var(--header-bg);
  backdrop-filter: saturate(1.55) blur(26px);
  -webkit-backdrop-filter: saturate(1.55) blur(26px);
  box-shadow: var(--header-shadow), inset 0 1px 0 var(--header-highlight);
  transform: translateY(0);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  will-change: transform;
}

body.is-header-scrolled .site-header {
  background: var(--header-scrolled-glass-tint), var(--header-scrolled-bg);
  box-shadow: var(--header-scrolled-shadow), inset 0 1px 0 var(--header-highlight);
}

body.is-header-scrolled .brand,
body.is-header-scrolled .site-header .icon-button {
  color: var(--header-scrolled-text);
}

body.is-header-scrolled .top-nav a {
  color: var(--header-scrolled-muted);
}

body.is-header-scrolled .top-nav a:hover,
body.is-header-scrolled .top-nav a[aria-current="page"] {
  color: var(--header-scrolled-active-text);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 2px 12px 2px 4px;
  border-radius: 8px;
  background: transparent;
  color: var(--header-text);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 transparent;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.brand:hover {
  background: var(--header-brand-hover-bg);
  box-shadow: inset 0 1px 0 var(--header-brand-highlight);
}

.brand img {
  width: 48px;
  height: 48px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.top-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--header-muted);
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.top-nav a:hover {
  color: var(--header-active-text);
  background: var(--header-hover-bg);
}

.top-nav a[aria-current="page"] {
  color: var(--header-active-text);
  background: var(--header-active-bg);
  box-shadow: none;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.site-header .icon-button {
  border-color: var(--header-border);
  background: var(--header-button-bg);
  color: var(--header-text);
}

.site-header .icon-button:hover {
  border-color: var(--header-button-hover-border);
  background: var(--header-button-hover-bg);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-main {
  min-height: 68vh;
}

.hero {
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--surface)), transparent 72%),
    var(--bg);
}

.hero-grid {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: center;
  gap: clamp(34px, 5vw, 56px);
  padding: clamp(50px, 6vw, 70px) 0;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(48px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 750;
}

.hero-copy > p:last-of-type {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.search-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 680px;
}

.search-entry input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 7px 0 0 7px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: 0;
}

.search-entry input:focus {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.search-entry button {
  min-width: 94px;
  min-height: 50px;
  border: 1px solid var(--accent);
  border-radius: 0 7px 7px 0;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.hot-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hot-tags a,
.tag-row span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: var(--bg);
  font-size: 13px;
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.hero-panel a,
.feature-link,
.link-list a {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 13px 0;
  color: var(--text);
  font-weight: 700;
}

.hero-panel a::after,
.feature-link::after,
.link-list a::after {
  content: "→";
  color: var(--accent);
}

.section-band {
  padding: 56px 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.section-heading h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 999px;
  background: var(--accent);
}

.section-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.brand-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.external-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.brand-wall a,
.external-grid a {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-weight: 750;
  text-align: center;
}

.brand-wall a:hover,
.external-grid a:hover,
.board-card:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding: 58px 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 38px 0 24px;
}

.footer-grid h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
}

.footer-grid p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 14px 0 22px;
  font-size: 13px;
}
