:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #111620;
  --panel-soft: #151b26;
  --line: #263142;
  --text: #eef3fb;
  --muted: #94a3b8;
  --dim: #64748b;
  --cyan: #3ddbd9;
  --green: #7dd56f;
  --amber: #f2b84b;
  --red: #ff757f;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(61, 219, 217, 0.07), transparent 360px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(9, 11, 16, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.section-title-row,
.section-head,
.tool-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(61, 219, 217, 0.38);
  border-radius: var(--radius);
  background: #102026;
  color: var(--cyan);
  font-weight: 800;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
}

.top-nav {
  gap: 6px;
}

.top-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
}

.top-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(61, 219, 217, 0.12);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
  min-height: 520px;
  padding: 58px 0 34px;
}

.hero-copy {
  max-width: 680px;
}

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

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.03;
}

h2 {
  font-size: 26px;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 620px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: rgba(17, 22, 32, 0.88);
  box-shadow: var(--shadow);
}

.search-panel input,
.search-panel button,
select {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.search-panel input {
  width: 100%;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
  outline: none;
}

.search-panel input::placeholder {
  color: var(--dim);
}

.search-panel input:focus {
  border-color: rgba(61, 219, 217, 0.46);
}

.search-panel button {
  padding: 0 22px;
  background: var(--cyan);
  color: #041010;
  font-weight: 800;
  cursor: pointer;
}

.hero-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 60% 34%, rgba(61, 219, 217, 0.22), transparent 28%),
    linear-gradient(135deg, #0f1825, #0b1017);
  box-shadow: var(--shadow);
}

.orbit-grid {
  position: absolute;
  inset: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  transform: perspective(720px) rotateX(58deg) rotateZ(-28deg);
}

.orbit-grid span {
  min-height: 98px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.orbit-grid span:nth-child(2),
.orbit-grid span:nth-child(6),
.orbit-grid span:nth-child(8) {
  border-color: rgba(61, 219, 217, 0.5);
  background: rgba(61, 219, 217, 0.08);
}

.signal-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(230px, calc(100% - 56px));
  padding: 20px;
  border: 1px solid rgba(125, 213, 111, 0.3);
  border-radius: var(--radius);
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(14px);
}

.signal-card strong {
  display: block;
  color: var(--green);
  font-size: 42px;
  line-height: 1;
}

.signal-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 48px;
}

.resource-hub {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 34px;
}

.resource-copy,
.resource-menu button {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(17, 22, 32, 0.78);
}

.resource-copy {
  padding: 20px;
}

.resource-copy p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.resource-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.resource-menu button {
  min-height: 132px;
  padding: 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.resource-menu button:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 219, 217, 0.44);
  background: rgba(21, 27, 38, 0.96);
}

.resource-menu strong {
  display: block;
  color: var(--cyan);
  font-size: 20px;
}

.resource-menu span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.sidebar {
  position: sticky;
  top: 88px;
}

.section-head,
.section-title-row {
  justify-content: space-between;
  gap: 16px;
}

.section-head {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(17, 22, 32, 0.68);
  color: var(--muted);
  cursor: pointer;
}

.category-button:hover,
.category-button.active {
  border-color: rgba(61, 219, 217, 0.45);
  color: var(--text);
  background: rgba(61, 219, 217, 0.1);
}

.category-button span:last-child {
  color: var(--dim);
  font-size: 12px;
}

.content {
  min-width: 0;
}

.section-title-row {
  margin-bottom: 18px;
}

select {
  min-width: 132px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.2);
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.featured-card,
.tool-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(17, 22, 32, 0.78);
}

.featured-card {
  padding: 16px;
}

.featured-card small {
  color: var(--green);
  font-weight: 700;
}

.featured-card strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}

.featured-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding: 16px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 219, 217, 0.44);
  background: rgba(21, 27, 38, 0.96);
}

.tool-top {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.tool-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #0d131c;
  color: var(--cyan);
  font-weight: 800;
}

.tool-card h3 {
  margin: 0;
  font-size: 17px;
}

.tool-category {
  margin-top: 4px;
  color: var(--dim);
  font-size: 13px;
}

.tool-card p {
  flex: 1;
  margin: 14px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tool-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 12px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(61, 219, 217, 0.38);
  border-radius: 6px;
  color: var(--cyan);
  font-weight: 700;
}

.empty-state {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(61, 219, 217, 0.38);
  border-radius: 6px;
  color: var(--cyan);
  font-weight: 700;
}

.article-section {
  padding: 4px 0 42px;
}

.article-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 16px;
}

.article-toolbar input {
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  outline: none;
}

.article-toolbar input::placeholder {
  color: var(--dim);
}

.article-toolbar input:focus {
  border-color: rgba(61, 219, 217, 0.46);
}

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

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(17, 22, 32, 0.78);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 219, 217, 0.44);
  background: rgba(21, 27, 38, 0.96);
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
}

.article-card h3 {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

.article-card p {
  flex: 1;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.listing-hero {
  padding: 72px 0 34px;
}

.listing-hero h1 {
  font-size: clamp(36px, 6vw, 58px);
}

.article-list-page {
  padding-bottom: 58px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 58px;
}

.article-page {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--dim);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.article-hero {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.article-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.article-summary {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.article-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.article-facts span {
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-size: 13px;
}

.article-content {
  color: #dbe6f4;
  font-size: 17px;
  line-height: 1.9;
}

.article-content h2 {
  margin: 34px 0 10px;
  font-size: 24px;
}

.article-content h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.article-content p {
  margin: 14px 0;
}

.article-content ul {
  margin: 14px 0;
  padding-left: 22px;
}

.article-content li {
  margin: 8px 0;
}

.article-content a {
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.article-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.article-sidebar {
  position: sticky;
  top: 88px;
}

.related-panel {
  margin-top: 18px;
}

.related-list {
  display: grid;
  gap: 10px;
}

.related-list a {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(17, 22, 32, 0.78);
}

.related-list a:hover {
  border-color: rgba(61, 219, 217, 0.44);
}

.related-list strong {
  font-size: 14px;
  line-height: 1.5;
}

.related-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--dim);
  font-size: 14px;
}

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

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

.text-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 72px;
}

.text-page h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.text-page p,
.text-page li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.text-page h2 {
  margin-top: 34px;
}

@media (max-width: 980px) {
  .hero,
  .layout,
  .article-shell,
  .resource-hub {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 42px;
  }

  .hero-visual {
    min-height: 310px;
  }

  .sidebar {
    position: static;
  }

  .article-sidebar {
    position: static;
  }

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

  .tool-grid,
  .featured-row,
  .article-grid,
  .article-list-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav {
    overflow-x: auto;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 40px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .article-toolbar {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 260px;
  }

  .category-list,
  .tool-grid,
  .featured-row,
  .article-grid,
  .article-list-page,
  .resource-menu {
    grid-template-columns: 1fr;
  }

  .article-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 34px;
  }

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