@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@500;600;700;900&display=swap");

:root {
  color-scheme: light;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --ink: #11151c;
  --ink-soft: #27303a;
  --muted: #697381;
  --paper: #f6f7f3;
  --paper-strong: #fffefa;
  --panel: rgba(255, 254, 250, 0.82);
  --line: rgba(17, 21, 28, 0.12);
  --line-strong: rgba(17, 21, 28, 0.2);
  --teal: #0f766e;
  --cyan: #12a6b6;
  --amber: #c78b2d;
  --rose: #d85f72;
  --shadow: 0 28px 90px rgba(24, 32, 38, 0.14);
  --max: 1180px;
  --header: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(17, 21, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 21, 28, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(18, 166, 182, 0.08), transparent 28%),
    linear-gradient(285deg, rgba(216, 95, 114, 0.08), transparent 32%);
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(18, 166, 182, 0.48);
  outline-offset: 3px;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.scrolled {
  background: rgba(246, 247, 243, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 21, 28, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 24%, rgba(18, 166, 182, 0.36), transparent 26%),
    linear-gradient(145deg, #11151c 0%, #202a35 58%, #0f766e 160%);
  color: #fffefa;
  box-shadow:
    0 12px 30px rgba(17, 21, 28, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%);
  pointer-events: none;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand-mark .mark-frame {
  opacity: 0.82;
}

.brand-mark .mark-field {
  stroke: #fffefa;
}

.brand-mark .mark-signal {
  stroke: var(--cyan);
  opacity: 0.92;
}

.brand-mark .mark-node {
  fill: #fffefa;
  stroke: #fffefa;
}

.brand-mark .mark-node.accent {
  fill: var(--cyan);
  stroke: var(--cyan);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(17, 21, 28, 0.68);
  font-size: 14px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 12px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-links a:hover {
  background: rgba(255, 254, 250, 0.72);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 132px max(24px, calc((100vw - var(--max)) / 2)) 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 34px;
  background:
    linear-gradient(90deg, rgba(246, 247, 243, 0.98) 0%, rgba(246, 247, 243, 0.88) 37%, rgba(246, 247, 243, 0.32) 67%, rgba(246, 247, 243, 0.05) 100%),
    var(--hero-image) center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 86px max(24px, calc((100vw - var(--max)) / 2)) 34px auto;
  width: 430px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(18, 166, 182, 0.28) 48% 49%, transparent 49% 100%),
    linear-gradient(0deg, transparent 0 48%, rgba(18, 166, 182, 0.2) 48% 49%, transparent 49% 100%);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 76%, transparent);
  opacity: 0.72;
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(0deg, rgba(17, 21, 28, 0.2), rgba(17, 21, 28, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
  padding-bottom: 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 96px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  color: rgba(17, 21, 28, 0.74);
  font-size: 21px;
  line-height: 1.65;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.signal-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 21, 28, 0.12);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.66);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  backdrop-filter: blur(14px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 760;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: var(--paper-strong);
}

.button.primary:hover {
  background: #26313c;
}

.button.ghost {
  background: rgba(255, 254, 250, 0.72);
  border-color: rgba(17, 21, 28, 0.16);
  backdrop-filter: blur(14px);
}

.button.ghost:hover {
  border-color: rgba(15, 118, 110, 0.36);
  color: var(--teal);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.intelligence-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: -32px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.intelligence-card {
  min-height: 178px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 21, 28, 0.12);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
  padding: 22px;
  box-shadow: 0 18px 48px rgba(24, 32, 38, 0.08);
  backdrop-filter: blur(20px);
}

.intelligence-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 18px 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent 35%, var(--rose), transparent 70%, var(--amber));
}

.card-index {
  color: var(--teal);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
}

.intelligence-card h3 {
  margin: 14px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.intelligence-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.intro-band {
  width: min(var(--max), calc(100% - 40px));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band > div {
  min-height: 122px;
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}

.intro-band > div:last-child {
  border-right: 0;
}

.metric {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
}

.intro-band p {
  margin: 0;
  color: var(--muted);
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 94px auto 0;
}

.split {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.section-heading h2,
.about-band h2 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
}

.article-card h3 {
  margin: 8px 0 8px;
  font-size: 24px;
  line-height: 1.22;
}

.article-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.icon-button:hover {
  background: var(--ink);
  color: var(--paper-strong);
  transform: translateX(2px);
}

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

.search-box {
  width: min(100%, 360px);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.72);
  padding: 0 14px;
  backdrop-filter: blur(12px);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box svg {
  color: var(--muted);
  flex: 0 0 auto;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.42);
  color: var(--muted);
  cursor: pointer;
  padding: 8px 14px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.tab.active,
.tab:hover {
  background: var(--ink);
  color: var(--paper-strong);
  border-color: var(--ink);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.74);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.article-card:hover {
  border-color: rgba(18, 166, 182, 0.42);
  box-shadow: 0 20px 56px rgba(24, 32, 38, 0.1);
  transform: translateY(-2px);
}

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

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 9px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--teal);
  font-weight: 780;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.6);
  padding: 28px;
  color: var(--muted);
}

.about-band {
  width: min(var(--max), calc(100% - 40px));
  margin: 96px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.about-band > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 92px auto 0;
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
}

.icp-record {
  font-size: 13px;
}

.icp-record a:hover {
  color: var(--ink);
}

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

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

.article-page {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 0;
}

.status-page {
  width: min(760px, calc(100% - 40px));
  min-height: 58vh;
  margin: 0 auto;
  padding: 160px 0 0;
}

.status-page h1 {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 54px;
  line-height: 1.08;
}

.status-page p {
  color: var(--muted);
  font-size: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 38px;
  color: var(--teal);
  font-weight: 760;
}

.back-link svg {
  transform: rotate(180deg);
}

.article-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
}

.article-hero h1 {
  margin: 16px 0;
  font-family: var(--font-serif);
  font-size: 62px;
  font-weight: 800;
  line-height: 1.06;
}

.article-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.article-body {
  padding-top: 34px;
}

.article-body section {
  margin-bottom: 40px;
}

.article-body h2 {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
}

.article-body p {
  color: #2f3942;
  font-size: 18px;
  line-height: 1.85;
}

.missing {
  min-height: 58vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 112px;
    background:
      linear-gradient(180deg, rgba(246, 247, 243, 0.96) 0%, rgba(246, 247, 243, 0.82) 48%, rgba(246, 247, 243, 0.38) 100%),
      var(--hero-image) center / cover no-repeat;
  }

  .hero::before {
    inset: auto 18px 34px auto;
    width: 320px;
    height: 260px;
  }

  .hero-content {
    padding-bottom: 12px;
  }

  .hero h1 {
    font-size: 70px;
  }

  .intelligence-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .about-band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }
}

@media (max-width: 700px) {
  :root {
    --header: 68px;
  }

  body {
    background-size: 42px 42px;
  }

  .nav-shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav-links {
    gap: 2px;
    font-size: 13px;
  }

  .nav-links a {
    padding: 8px 7px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-inline: 16px;
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .intelligence-grid,
  .intro-band,
  .section-shell,
  .about-band,
  .site-footer,
  .article-page {
    width: calc(100% - 32px);
  }

  .intelligence-grid,
  .article-grid,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .intelligence-grid {
    margin-top: 16px;
  }

  .intro-band > div {
    min-height: 108px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-band > div:last-child {
    border-bottom: 0;
  }

  .section-heading h2,
  .about-band h2 {
    font-size: 36px;
  }

  .article-hero h1 {
    font-size: 40px;
  }

  .article-hero p,
  .article-body p {
    font-size: 17px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
