:root {
  --brand: #017cff;
  --brand-dark: #0060cc;
  --brand-soft: #e8f3ff;
  --brand-glow: rgba(1, 124, 255, 0.28);
  --ink: #0f172a;
  --muted: #475569;
  --light: #64748b;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --accent: #13b8a6;
  --warn: #f59e0b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 40px rgba(1, 124, 255, 0.12);
  --max: 1120px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

a:hover {
  color: var(--brand-dark);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  min-width: 0;
}

.logo-img {
  width: auto;
  height: 34px;
  max-width: min(178px, 42vw);
  object-fit: contain;
}

.logo-divider {
  width: 1px;
  height: 22px;
  margin: 0 12px;
  background: var(--line);
}

.logo-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-desktop a:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

.btn-primary,
.nav-desktop .btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 14px var(--brand-glow);
}

.btn-primary:hover {
  color: #fff;
  background: var(--brand-dark);
  box-shadow: 0 6px 20px var(--brand-glow);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--brand);
  background: transparent;
  border-color: var(--brand);
}

.btn-outline:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-soft);
  cursor: pointer;
  place-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 14px 0 22px;
  border-top: 1px solid var(--line);
}

.nav-mobile a {
  padding: 12px 0;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.nav-mobile .btn {
  margin-top: 14px;
  color: #fff;
}

.site-header.is-open .nav-mobile {
  display: flex;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 52% at 72% -8%, rgba(1, 124, 255, 0.18), transparent),
    radial-gradient(ellipse 42% 44% at 8% 34%, rgba(19, 184, 166, 0.1), transparent),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.blog-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.blog-hero p {
  max-width: 34em;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-cta,
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta {
  margin-bottom: 28px;
}

.hero-badges span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.stat {
  min-height: 112px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.topic-band {
  padding: 24px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.topic-grid a {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.topic-grid a:hover {
  border-color: rgba(1, 124, 255, 0.36);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.topic-grid strong,
.topic-grid span {
  display: block;
}

.topic-grid strong {
  margin-bottom: 6px;
  font-size: 1rem;
}

.topic-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.content-section {
  padding: 56px 0 72px;
}

.layout-grid,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.section-title {
  margin-bottom: 22px;
}

.section-title span {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title h1,
.section-title h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.24s, transform 0.24s, border-color 0.24s;
}

.post-card:hover {
  border-color: rgba(1, 124, 255, 0.28);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--light);
  font-size: 0.85rem;
  font-weight: 600;
}

.post-card-meta a {
  color: var(--brand);
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 1.26rem;
  line-height: 1.38;
}

.post-card h2 a {
  color: var(--ink);
}

.post-card h2 a:hover {
  color: var(--brand);
}

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

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

.tag-row {
  margin-top: 16px;
}

.tag-row a,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.tag-row a:hover,
.tag-cloud a:hover {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: rgba(1, 124, 255, 0.3);
}

.sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 88px;
}

.side-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.side-box h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.35;
}

.side-box p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.side-cta img {
  width: 148px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-links {
  display: grid;
  gap: 8px;
}

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
}

.side-links a:last-child {
  border-bottom: 0;
}

.side-links a:hover {
  color: var(--brand);
}

.side-links em {
  min-width: 28px;
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-style: normal;
  text-align: center;
}

.article {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.article-head {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
  font-weight: 800;
  line-height: 1.25;
}

.article-body {
  color: #1e293b;
  font-size: 1.02rem;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--ink);
  line-height: 1.35;
}

.article-body h2 {
  margin: 2em 0 0.72em;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  font-size: 1.45rem;
}

.article-body h3 {
  margin: 1.7em 0 0.7em;
  font-size: 1.22rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body table,
.article-body pre {
  margin: 0 0 1.1em;
}

.article-body a {
  border-bottom: 1px solid rgba(1, 124, 255, 0.3);
  font-weight: 600;
}

.article-body strong {
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  padding-left: 1.35em;
}

.article-body li {
  margin: 0.36em 0;
}

.article-body blockquote {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  background: #f0fdfa;
}

.article-body img {
  margin: 24px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.article-body th {
  color: var(--ink);
  background: var(--surface-2);
}

.article-body code {
  padding: 2px 6px;
  border-radius: 6px;
  color: #0f766e;
  background: #ecfeff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.article-body pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: var(--radius);
  background: #0f172a;
}

.article-body pre code {
  padding: 0;
  color: #e2e8f0;
  background: transparent;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(1, 124, 255, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-soft), #fff);
}

.article-cta h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.article-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.post-nav a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font-weight: 700;
}

.post-nav a:hover {
  color: var(--brand);
  border-color: rgba(1, 124, 255, 0.32);
  background: var(--brand-soft);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.pagination .is-current,
.pagination .current {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.site-footer {
  padding: 46px 0 24px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(160px, 0.6fr));
  gap: 36px;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  max-width: 34em;
  margin: 0;
  color: #94a3b8;
  font-size: 0.94rem;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.86rem;
}

.footer-bottom a,
.footer-bottom span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0;
  line-height: 1.4;
}

.footer-bottom a {
  justify-self: center;
}

.footer-bottom span:last-child {
  justify-self: end;
  text-align: right;
}

@media (max-width: 980px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .blog-hero-inner,
  .layout-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .logo-divider,
  .logo-subtitle {
    display: none;
  }

  .blog-hero {
    padding: 52px 0 58px;
  }

  .blog-hero-inner {
    gap: 30px;
  }

  .hero-panel,
  .topic-grid,
  .post-nav {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .article,
  .post-card,
  .side-box {
    border-radius: 16px;
  }

  .article {
    padding: 24px 18px;
  }

  .article-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-bottom a,
  .footer-bottom span,
  .footer-bottom span:last-child {
    justify-self: start;
    text-align: left;
  }
}
