:root {
  color-scheme: dark;
  --bg: #07131f;
  --bg-2: #0b1826;
  --panel: #0f2233;
  --panel-2: #10283a;
  --paper: #f7fbfc;
  --ink: #0e1720;
  --muted: #6d7a86;
  --text: #d9e7ef;
  --soft-text: #99adba;
  --line: rgba(142, 190, 212, 0.24);
  --cyan: #32d6c6;
  --blue: #5ea7ff;
  --amber: #f5b45b;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 19, 31, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(50, 214, 198, 0.44);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(50, 214, 198, 0.18), rgba(94, 167, 255, 0.12));
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft-text);
  font-size: 15px;
}

.nav a:hover {
  color: #fff;
}

.nav-cta {
  padding: 9px 14px;
  border: 1px solid rgba(50, 214, 198, 0.45);
  border-radius: 8px;
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 74% 22%, rgba(50, 214, 198, 0.16), transparent 34%),
    linear-gradient(135deg, #07131f 0%, #0b1d2f 62%, #0a1724 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(142, 190, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 190, 212, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, #000, transparent 86%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 56px;
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 72px 0 98px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--soft-text);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.button-primary {
  background: var(--amber);
  color: #111722;
}

.button-secondary {
  border-color: rgba(214, 247, 255, 0.28);
  color: #fff;
}

.hero-console {
  overflow: hidden;
  border: 1px solid rgba(94, 167, 255, 0.3);
  border-radius: 8px;
  background: rgba(7, 19, 31, 0.78);
  box-shadow: var(--shadow);
}

.console-top {
  display: flex;
  gap: 7px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}

.console-top span:nth-child(2) {
  background: var(--blue);
}

.console-top span:nth-child(3) {
  background: var(--amber);
}

.hero-console pre {
  margin: 0;
  padding: 28px;
  color: #d6f7ff;
  font-size: 15px;
  white-space: pre-wrap;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.console-grid span {
  padding: 18px;
  background: rgba(16, 40, 58, 0.92);
  color: var(--soft-text);
  font-size: 14px;
}

.section {
  padding: 84px 0;
  background: var(--paper);
  color: var(--ink);
}

.section-dark {
  background: var(--bg);
  color: var(--text);
}

.section-panel {
  background: #edf5f7;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  align-items: end;
  margin-bottom: 32px;
}

.split-heading h2,
.category-panel h2,
.consult-inner h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

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

.section-dark .split-heading p {
  color: var(--soft-text);
}

.text-link {
  color: #0e6f80;
  font-weight: 800;
}

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

.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(14, 23, 32, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(14, 23, 32, 0.04);
}

.section-dark .post-card {
  border-color: var(--line);
  background: var(--panel);
}

.post-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

.post-card-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

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

.section-dark .post-meta,
.section-dark .post-card p {
  color: var(--soft-text);
}

.post-meta a {
  color: #0e6f80;
}

.section-dark .post-meta a {
  color: var(--cyan);
}

.post-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.28;
}

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

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

.tag-row a {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(50, 214, 198, 0.1);
  color: #0e6f80;
  font-size: 12px;
  font-weight: 800;
}

.section-dark .tag-row a {
  background: rgba(50, 214, 198, 0.12);
  color: var(--cyan);
}

.category-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: 48px;
  align-items: start;
  padding: 42px;
  border: 1px solid rgba(14, 23, 32, 0.1);
  border-radius: 8px;
  background: #fff;
}

.category-panel p {
  color: var(--muted);
}

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

.category-list a {
  padding: 16px;
  border: 1px solid rgba(14, 23, 32, 0.1);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
}

.consult-band {
  padding: 78px 0;
  background:
    linear-gradient(135deg, rgba(7, 19, 31, 0.94), rgba(12, 33, 50, 0.94)),
    linear-gradient(90deg, var(--cyan), var(--blue));
  color: #fff;
}

.consult-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.consult-inner p {
  max-width: 680px;
  color: var(--soft-text);
}

.page-hero,
.article-header {
  padding: 82px 0 64px;
  background:
    linear-gradient(135deg, rgba(7, 19, 31, 0.94), rgba(12, 33, 50, 0.96)),
    radial-gradient(circle at 75% 10%, rgba(50, 214, 198, 0.18), transparent 34%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.article-header h1 {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-hero p,
.article-header p {
  max-width: 760px;
  color: var(--soft-text);
  font-size: 18px;
}

.article-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(94, 167, 255, 0.3);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) 320px;
  gap: 56px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 80px;
}

.article-shell {
  background: var(--paper);
  color: var(--ink);
}

.article-content {
  min-width: 0;
  color: #25313a;
  font-size: 18px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 42px 0 14px;
  color: var(--ink);
  line-height: 1.24;
  letter-spacing: 0;
}

.article-content h2 {
  font-size: 30px;
}

.article-content h3 {
  font-size: 24px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre {
  margin: 0 0 22px;
}

.article-content ul,
.article-content ol {
  padding-left: 1.3em;
}

.article-content a {
  color: #0e6f80;
  font-weight: 800;
}

.article-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--cyan);
  background: #eaf5f6;
  color: #31505d;
}

.article-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e2edf0;
  color: #0d5261;
  font-size: 0.92em;
}

.article-content pre {
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
  background: #07131f;
  color: #d6f7ff;
  font-size: 15px;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-content img {
  border-radius: 8px;
}

.article-aside {
  position: sticky;
  top: 96px;
}

.aside-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(14, 23, 32, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(14, 23, 32, 0.08);
}

.aside-card span {
  color: #0e6f80;
  font-size: 13px;
  font-weight: 800;
}

.aside-card strong {
  font-size: 22px;
  line-height: 1.22;
}

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

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #06101a;
  color: var(--soft-text);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.error-page {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.error-page h1 {
  margin: 0 0 12px;
  font-size: 72px;
  line-height: 1;
}

.error-page p {
  margin: 0 0 24px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: #07131f;
    border-bottom: 1px solid var(--line);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
  }

  .nav-cta {
    margin-top: 8px;
    padding: 12px 14px;
    text-align: center;
  }

  .hero-inner,
  .article-header-inner,
  .article-layout,
  .category-panel {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .article-aside {
    position: static;
  }

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

@media (max-width: 680px) {
  .container,
  .header-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, 1160px);
  }

  .brand span:last-child {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-inner {
    gap: 34px;
    padding: 52px 0 70px;
  }

  .hero h1,
  .page-hero h1,
  .article-header h1 {
    font-size: 38px;
  }

  .split-heading,
  .consult-inner,
  .footer-inner {
    display: grid;
    align-items: start;
  }

  .section,
  .consult-band {
    padding: 58px 0;
  }

  .featured-grid,
  .post-grid,
  .category-list {
    grid-template-columns: 1fr;
  }

  .category-panel {
    padding: 24px;
  }

  .article-layout {
    gap: 34px;
    padding-top: 42px;
    padding-bottom: 58px;
  }

  .article-content {
    font-size: 17px;
  }
}
