:root {
  color-scheme: light;
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-muted: #eef5f8;
  --text: #142033;
  --muted: #526173;
  --subtle: #7d8a9a;
  --line: #d9e4ee;
  --blue: #1d4ed8;
  --blue-weak: #e7efff;
  --green: #0f766e;
  --green-weak: #e2f5f1;
  --amber: #b45309;
  --amber-weak: #fff2d8;
  --ink: #0f172a;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
  --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(29, 78, 216, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(15, 118, 110, 0.12), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(180, 83, 9, 0.1), transparent 28%),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 228, 238, 0.78);
  background: rgba(243, 247, 251, 0.84);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 32, 51, 0.12);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #142033, #1d4ed8 58%, #0f766e);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.2);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

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

.intro {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 60px 42px 36px;
  border: 1px solid rgba(217, 228, 238, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    linear-gradient(90deg, rgba(29, 78, 216, 0.1), rgba(15, 118, 110, 0.08));
  box-shadow: var(--shadow);
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 32, 51, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(20, 32, 51, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(120deg, black, transparent 74%);
}

.intro > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-weak);
  font-size: 14px;
  font-weight: 800;
}

.intro h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: 0;
}

.intro h1 span {
  display: block;
}

.intro-text {
  max-width: 780px;
  margin: 26px 0 0;
  color: #3b4a5d;
  font-size: 18px;
  line-height: 1.85;
}

.intro-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.intro-rail span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 999px;
  color: #1f3f76;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.intro-actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.metric {
  min-height: 104px;
  padding: 20px;
  border: 1px solid rgba(217, 228, 238, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.metric strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 64px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-lead {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-link {
  white-space: nowrap;
  color: var(--blue);
  text-decoration: none;
  font-weight: 900;
  padding-bottom: 3px;
  border-bottom: 2px solid rgba(29, 78, 216, 0.22);
}

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

.article-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.article-card::before,
.directory-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.article-card:nth-child(2)::before,
.directory-card:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, var(--green), #14b8a6);
}

.article-card:nth-child(3)::before,
.directory-card:nth-child(3n)::before {
  background: linear-gradient(180deg, var(--amber), #f59e0b);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--shadow-strong);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}

.article-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.32;
}

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

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

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #42526a;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 800;
}

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

.topic {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.topic::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(29, 78, 216, 0.1);
  border-radius: 50%;
}

.topic-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--amber);
  background: var(--amber-weak);
  font-size: 13px;
  font-weight: 900;
}

.topic h3 {
  margin: 0;
  font-size: 18px;
}

.topic p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  text-align: center;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

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

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

.articles-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.articles-hero {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border-bottom: 1px solid var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.84)),
    linear-gradient(90deg, rgba(29, 78, 216, 0.08), rgba(15, 118, 110, 0.06));
  box-shadow: var(--shadow);
}

.article-top-actions {
  margin-bottom: 22px;
}

.back-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.back-link::before {
  content: "<";
  margin-right: 8px;
}

.back-link:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

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

.articles-hero h1,
.article-header h1 {
  margin: 12px 0 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.article-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.article-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.article-stats strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.article-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.article-body h2 {
  margin: 42px 0 12px;
  font-size: 26px;
  line-height: 1.24;
}

.article-body p,
.article-body li {
  color: #364153;
  font-size: 17px;
}

.article-body ul {
  padding-left: 22px;
}

.article-callout {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--green-weak);
  color: #134e4a;
  font-weight: 800;
}

.article-index {
  display: grid;
  gap: 14px;
}

.article-section {
  padding-top: 46px;
}

.article-section + .article-section {
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

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

.directory-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 22px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.directory-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--shadow-strong);
}

.directory-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.directory-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.practice-list {
  display: grid;
  gap: 14px;
}

.article-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.article-row:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--shadow);
}

.article-row time {
  color: var(--subtle);
  font-weight: 900;
}

.article-row h2 {
  margin: 0;
  font-size: 22px;
}

.article-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .metric-row,
  .article-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    width: min(100% - 28px, 1120px);
    min-height: 62px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 0 8px;
    font-size: 13px;
  }

  .page,
  .footer-inner,
  .article-page,
  .articles-page {
    width: min(100% - 28px, 1120px);
  }

  .intro {
    margin-top: 18px;
    padding: 40px 22px 28px;
  }

  .intro h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .intro-text {
    font-size: 16px;
  }

  .articles-hero {
    padding: 28px 20px;
  }

  .section-heading,
  .footer-inner {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 12px;
  }

  .article-card {
    min-height: 0;
  }

  .article-stats,
  .article-directory {
    grid-template-columns: 1fr;
  }

  .directory-card {
    min-height: 0;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .intro-actions,
  .article-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
