:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --muted-light: #98a2b3;
  --line: rgba(16, 24, 40, 0.1);
  --line-strong: rgba(16, 24, 40, 0.16);
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-soft: #f8faff;
  --blue: #3455db;
  --blue-dark: #1d2f83;
  --blue-soft: #edf1ff;
  --cyan: #21b6c7;
  --orange: #f59e70;
  --green: #3cab86;
  --shadow-sm: 0 10px 30px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 22px 60px rgba(24, 40, 96, 0.12);
  --shadow-lg: 0 34px 90px rgba(24, 40, 96, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --max-width: 1200px;
  --reading-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #f4f7ff;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(98, 116, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 94% 19%, rgba(33, 182, 199, 0.11), transparent 24rem),
    linear-gradient(180deg, #f8faff 0%, #f5f7fb 52%, #eef2fa 100%);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(52, 85, 219, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 85, 219, 0.026) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

body::after {
  position: fixed;
  top: 7rem;
  right: -8rem;
  z-index: -1;
  width: 23rem;
  height: 23rem;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(52, 85, 219, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(52, 85, 219, 0.035),
    0 0 0 56px rgba(52, 85, 219, 0.02);
  transform: rotate(-16deg);
}

::selection {
  color: #fff;
  background: var(--blue);
}

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

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.page-shell {
  width: min(calc(100% - 36px), var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 64px;
  margin: 0 0 22px;
  padding: 9px 10px 9px 14px;
  border: 1px solid #e5eaf0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.045);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-color: #d8e0e8;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.07);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #fff;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.button-link,
.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.button-link.primary {
  color: #fff;
  background: #2563eb;
}

.button-link.primary:hover {
  background: #1d4ed8;
}

.button-link.secondary-action,
.button-icon {
  color: var(--ink-soft);
  border-color: transparent;
  background: transparent;
}

.button-link.secondary-action:hover,
.button-icon:hover {
  color: #2563eb;
  border-color: transparent;
  background: #eef5ff;
}

.button-icon {
  min-width: 104px;
}

.blog-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 30px;
  min-height: 380px;
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 86% 20%, rgba(105, 225, 234, 0.55), transparent 23%),
    radial-gradient(circle at 68% 100%, rgba(150, 119, 255, 0.45), transparent 29%),
    linear-gradient(135deg, #18285e 0%, #2d459b 48%, #4668dc 100%);
  box-shadow: var(--shadow-lg);
}

.blog-hero::before,
.blog-hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.blog-hero::before {
  right: -80px;
  bottom: -170px;
  width: 440px;
  height: 440px;
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.035),
    0 0 0 48px rgba(255, 255, 255, 0.025);
}

.blog-hero::after {
  top: -80px;
  right: 28%;
  width: 150px;
  height: 150px;
  opacity: 0.6;
}

.hero-content,
.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.hero-kicker,
.section-kicker,
.article-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 18px;
  color: #e1e8ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.blog-hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(35px, 6vw, 70px);
  font-weight: 880;
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.blog-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(239, 246, 255, 0.82);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions .button-link.secondary-action {
  color: #eef2ff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.hero-actions .button-link.secondary-action:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
}

.hero-note {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-note::before {
  position: absolute;
  top: 28px;
  right: -30px;
  width: 170px;
  height: 170px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.045);
  animation: orbit 16s linear infinite;
}

.hero-note strong {
  position: relative;
  z-index: 1;
  font-size: 17px;
}

.hero-note span,
.hero-note p {
  position: relative;
  z-index: 1;
  color: rgba(239, 246, 255, 0.74);
  font-size: 13px;
  line-height: 1.75;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.hero-metric {
  display: grid;
  gap: 2px;
}

.hero-metric strong {
  font-size: 22px;
}

.hero-metric span {
  color: rgba(239, 246, 255, 0.68);
  font-size: 11px;
}

.section-block {
  margin-top: 70px;
}

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

.section-heading > div {
  display: grid;
  gap: 8px;
}

.section-kicker {
  color: var(--blue);
  background: var(--blue-soft);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.featured-article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}

.featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(26px, 5vw, 54px);
}

.featured-copy h2 {
  max-width: 620px;
  margin: 18px 0 14px;
  font-size: clamp(27px, 4vw, 47px);
  line-height: 1.12;
  letter-spacing: -0.065em;
}

.featured-copy h2 a:hover {
  color: var(--blue);
}

.featured-copy > p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.article-meta,
.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 13px;
  color: var(--muted);
  font-size: 12px;
}

.topic-tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  color: var(--blue);
  border: 1px solid rgba(52, 85, 219, 0.12);
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 850;
}

.article-tag:hover,
.article-tag.is-active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.featured-visual,
.abstract-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 75% 24%, rgba(123, 231, 235, 0.75), transparent 20%),
    linear-gradient(135deg, #17255e, #3757cf 58%, #7080ff);
}

.featured-visual-image {
  display: block;
  padding: 0;
  background: #dfe7ff;
}

.featured-cover {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-article:hover .featured-cover {
  transform: scale(1.04);
}

.featured-visual::before,
.abstract-cover::before {
  position: absolute;
  top: 18%;
  right: 11%;
  z-index: -1;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.08),
    0 0 0 48px rgba(255, 255, 255, 0.05);
  animation: orbit 18s linear infinite;
}

.featured-visual::after,
.abstract-cover::after {
  position: absolute;
  right: 12%;
  bottom: -26%;
  z-index: -1;
  width: 250px;
  height: 250px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  transform: rotate(26deg);
}

.cover-content {
  display: grid;
  gap: 8px;
  max-width: 260px;
}

.cover-content strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.cover-content span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.65;
}

.cover-index {
  position: absolute;
  top: 24px;
  left: 28px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.article-card::before {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(52, 85, 219, 0.1);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.article-card-cover-link {
  display: block;
  margin: -24px -24px 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--blue-soft);
}

.article-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-cover {
  transform: scale(1.04);
}

.article-card:hover {
  border-color: rgba(52, 85, 219, 0.22);
  background: #fff;
  box-shadow: 0 24px 54px rgba(24, 40, 96, 0.13);
  transform: translateY(-6px);
}

.article-card:hover::before {
  transform: scale(1.22);
}

.article-card h2,
.article-card h3 {
  margin: 17px 0 11px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--blue);
}

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

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.read-more::after {
  content: "↗";
  font-size: 15px;
  transition: transform 0.2s ease;
}

.article-card:hover .read-more::after {
  transform: translate(3px, -3px);
}

.topic-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
}

.topic-item {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(52, 85, 219, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.topic-item strong {
  font-size: 14px;
}

.topic-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 42px 4px 36px;
  margin-top: 76px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

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

.footer-links a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: rgba(52, 85, 219, 0.1);
}

.article-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), #9a73ff);
  transform: scaleX(0);
  transform-origin: left center;
}

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

.article-hero::after {
  display: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.article-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.article-deck {
  max-width: 860px;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.article-byline {
  margin-top: 14px;
}

.article-cover-frame {
  position: relative;
  max-width: 100%;
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--blue-soft);
}

.article-cover {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  margin-top: 0;
}

.article-body {
  min-width: 0;
  padding: clamp(24px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.article-content h2 {
  scroll-margin-top: 110px;
  margin: 2.2em 0 0.65em;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  scroll-margin-top: 110px;
  margin: 1.8em 0 0.55em;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.35;
}

.article-content h4 {
  margin: 1.5em 0 0.5em;
  color: var(--ink-soft);
  font-size: 17px;
}

.article-content p,
.article-content li {
  color: #475467;
  font-size: 16px;
  line-height: 2;
}

.article-content p {
  margin: 1em 0;
}

.article-content ul,
.article-content ol {
  padding-left: 1.55em;
  margin: 1.1em 0;
}

.article-content li + li {
  margin-top: 0.48em;
}

.article-content strong {
  color: var(--ink);
  font-weight: 800;
}

.article-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(52, 85, 219, 0.3);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: currentColor;
}

.article-content blockquote {
  position: relative;
  margin: 28px 0;
  padding: 18px 22px 18px 28px;
  border: 1px solid rgba(52, 85, 219, 0.12);
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(135deg, #f7f8ff, #f1fbfc);
}

.article-content blockquote p {
  margin: 0;
  color: var(--ink-soft);
}

.article-content pre {
  padding: 20px;
  overflow-x: auto;
  color: #e8edff;
  border: 1px solid rgba(52, 85, 219, 0.16);
  border-radius: 16px;
  background: #111b3d;
  box-shadow: 0 18px 32px rgba(17, 27, 61, 0.15);
}

.article-content code {
  padding: 2px 5px;
  color: #a13e73;
  border-radius: 6px;
  background: #f7eefa;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

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

.article-content img {
  height: auto;
  margin: 24px auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.article-content table {
  display: block;
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  min-width: 120px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-content th {
  color: var(--ink);
  background: var(--blue-soft);
}

.checklist {
  padding-left: 0 !important;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 31px;
}

.checklist li::before {
  position: absolute;
  top: 0.7em;
  left: 2px;
  width: 14px;
  height: 14px;
  content: "";
  border: 4px solid #b7c5ff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
  transform: translateY(-50%);
}

.article-callout {
  position: relative;
  margin-top: 42px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(52, 85, 219, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(33, 182, 199, 0.22), transparent 45%),
    linear-gradient(135deg, #f0f3ff, #eefbfc);
}

.article-callout h2,
.article-callout h3 {
  margin-top: 0;
}

.article-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.sidebar-card h2 {
  margin: 0 0 15px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.toc-list,
.related-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.toc-list li a,
.related-list a {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.toc-list li a:hover,
.toc-list li a.is-active,
.related-list a:hover {
  color: var(--blue);
  background: var(--blue-soft);
  transform: translateX(3px);
}

.toc-list li.is-child a {
  padding-left: 22px;
  font-size: 11px;
}

.article-sidebar-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 16px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.article-mobile-toc {
  display: none;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(52, 85, 219, 0.13);
  border-radius: 12px;
  background: #f8faff;
}

.article-mobile-toc summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 42px 0 14px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
}

.article-mobile-toc summary::-webkit-details-marker {
  display: none;
}

.article-mobile-toc summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.article-mobile-toc summary::after {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 7px;
  height: 7px;
  content: "";
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.article-mobile-toc[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.article-mobile-toc .toc-list {
  max-height: min(48vh, 360px);
  gap: 3px;
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(52, 85, 219, 0.1);
  background: #fff;
}

.article-mobile-toc .toc-list li a {
  min-height: 40px;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.6;
}

.article-mobile-toc .toc-list li.is-child a {
  padding-left: 24px;
  font-size: 12px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.pagination-status {
  min-width: 84px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.button-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

.content-note {
  margin: 3px 2px;
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.65;
}

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

.related-section {
  margin-top: 52px;
}

.related-section .related-grid {
  margin-top: 0;
}

.related-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  border-color: rgba(52, 85, 219, 0.22);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.related-card > span,
.related-category {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.related-category:hover {
  text-decoration: underline;
}

.related-card h3 {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.related-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.related-card time {
  display: block;
  margin-top: 15px;
  color: var(--muted-light);
  font-size: 11px;
}

.reveal {
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .is-reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

.float-slow {
  animation: float-slow 7s ease-in-out infinite;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .blog-hero,
  .featured-article {
    grid-template-columns: 1fr;
  }

  .hero-note {
    min-height: 170px;
  }

  .featured-visual {
    min-height: 250px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .article-layout > * {
    min-width: 0;
  }

  .article-sidebar {
    display: none;
  }

  .article-mobile-toc {
    display: block;
  }

  .content-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    top: 0;
    min-height: 62px;
    margin: 0 0 16px;
    padding: 8px 8px 8px 10px;
    border-radius: 0 0 8px 8px;
  }

  .header-actions .secondary-action {
    display: none;
  }

  .brand-logo {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }

  .brand-subtitle {
    display: none;
  }

  .blog-hero {
    min-height: auto;
    padding: 30px 24px;
    border-radius: 28px;
  }

  .blog-hero h1 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .hero-note {
    min-height: 150px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .section-heading p {
    text-align: left;
  }

  .article-grid,
  .related-grid,
  .topic-panel,
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .featured-copy {
    padding: 28px 24px;
  }

  .featured-visual {
    min-height: 210px;
  }

  .featured-cover {
    min-height: 210px;
  }

  .article-hero {
    padding: 0 0 18px;
    margin-bottom: 20px;
  }

  .article-hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(25px, 7.2vw, 30px);
    line-height: 1.34;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .breadcrumbs {
    gap: 6px;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  .article-byline {
    gap: 7px 12px;
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.55;
  }

  .article-byline > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .article-deck {
    margin: 0 0 22px;
    color: #475467;
    font-size: 14px;
    line-height: 1.82;
  }

  .article-layout {
    margin-top: 0;
  }

  .article-body {
    width: 100%;
    padding: 20px 16px 26px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.045);
  }

  .article-cover-frame {
    margin-bottom: 22px;
    border-radius: 10px;
  }

  .article-cover {
    max-height: 280px;
  }

  .article-content {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .article-content > * {
    max-width: 100%;
  }

  .article-content h2 {
    scroll-margin-top: 84px;
    margin: 2em 0 0.68em;
    overflow-wrap: anywhere;
    font-size: 23px;
    line-height: 1.38;
    letter-spacing: -0.025em;
  }

  .article-content h3 {
    scroll-margin-top: 84px;
    margin: 1.75em 0 0.62em;
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.48;
  }

  .article-content h4 {
    font-size: 16px;
  }

  .article-content p,
  .article-content li {
    font-size: 16px;
    line-height: 1.86;
  }

  .article-content p {
    margin: 0.9em 0;
  }

  .article-content ul,
  .article-content ol {
    padding-left: 1.35em;
    margin: 1em 0;
  }

  .article-content a,
  .article-content code {
    overflow-wrap: anywhere;
  }

  .article-content blockquote {
    margin: 22px 0;
    padding: 15px 16px 15px 18px;
    border-radius: 0 12px 12px 0;
  }

  .article-content pre {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    margin: 20px 0;
    border-radius: 12px;
    overscroll-behavior-inline: contain;
  }

  .article-content img {
    margin: 20px auto;
    border-radius: 10px;
  }

  .article-content table {
    max-width: 100%;
    margin: 20px 0;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .article-content th,
  .article-content td {
    min-width: 108px;
    padding: 10px 12px;
  }

  .article-callout {
    margin-top: 32px;
    padding: 18px;
    border-radius: 14px;
  }

  .related-section {
    margin-top: 36px;
  }

  .related-card {
    padding: 16px;
    border-radius: 14px;
  }

  .site-footer {
    display: grid;
    justify-content: stretch;
    margin-top: 50px;
    padding-bottom: calc(34px + env(safe-area-inset-bottom));
  }

  .pagination {
    gap: 8px;
  }

  .pagination .button-link {
    min-width: 0;
    padding: 0 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .js .is-reveal-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}
