@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  --ink: #0b0b0d;
  --paper: #f2efe8;
  --lime: #d9ff43;
  --violet: #665cff;
  --mint: #72ffe1;
  --line-dark: rgba(11, 11, 13, .16);
  --line-light: rgba(242, 239, 232, .16);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.blog-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left;
  background: var(--lime);
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--paper);
  background: rgba(11, 11, 13, .92);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(18px);
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.blog-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-weight: 600;
  letter-spacing: -.06em;
}

.blog-brand span { display: grid; gap: 2px; }
.blog-brand b { font-size: 13px; letter-spacing: -.03em; }
.blog-brand small, .blog-nav a, .blog-lang a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.blog-brand small { color: rgba(242, 239, 232, .5); }

.blog-header-right { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 34px); }
.blog-nav { display: flex; align-items: center; gap: 22px; }
.blog-nav a { color: rgba(242, 239, 232, .68); transition: color .2s ease; }
.blog-nav a:hover, .blog-nav a[aria-current="page"] { color: var(--lime); }

.blog-lang {
  display: flex;
  gap: 3px;
  max-width: min(46vw, 430px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  white-space: nowrap;
}
.blog-lang::-webkit-scrollbar { display: none; }
.blog-lang a { flex: 0 0 auto; }
.blog-lang a { padding: 6px 5px; color: rgba(242, 239, 232, .48); }
.blog-lang a:hover, .blog-lang a.active { color: var(--paper); }

.blog-shell { width: min(1240px, calc(100% - 44px)); margin-inline: auto; }

.blog-index-hero {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  padding: clamp(90px, 12vw, 160px) 0 80px;
  color: var(--paper);
  background:
    radial-gradient(circle at 75% 35%, rgba(102, 92, 255, .32), transparent 32%),
    radial-gradient(circle at 15% 80%, rgba(217, 255, 67, .12), transparent 25%),
    var(--ink);
}

.blog-index-hero::after {
  content: "";
  position: absolute;
  width: min(52vw, 680px);
  aspect-ratio: 1;
  right: -9vw;
  top: 2vw;
  border: 1px solid rgba(217, 255, 67, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(102, 92, 255, .07), 0 0 0 116px rgba(217, 255, 67, .035);
  pointer-events: none;
}

.blog-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
}

.blog-index-hero h1, .article-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0;
  font-size: clamp(54px, 8.2vw, 122px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.065em;
}

.blog-index-hero h1 em, .article-hero h1 em {
  color: var(--lime);
  font-family: var(--serif);
  font-weight: 400;
}

.blog-index-lead {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 42px 0 0;
  color: rgba(242, 239, 232, .72);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.blog-tools {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper);
}

.blog-search-wrap { display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: center; gap: 22px; }
.blog-search { position: relative; }
.blog-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.blog-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 52px 0 18px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}
.blog-search::after { content: "⌕"; position: absolute; right: 18px; top: 13px; font-size: 26px; }

.blog-filters { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.blog-filter {
  padding: 10px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.blog-filter:hover, .blog-filter.active { color: var(--paper); background: var(--ink); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--line-dark);
}

.blog-card {
  position: relative;
  min-height: 390px;
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: color .28s ease, background-color .28s ease;
}

.blog-card::before {
  content: attr(data-index);
  color: rgba(11, 11, 13, .36);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
}

.blog-card h2 {
  max-width: 660px;
  margin: 52px 0 18px;
  font-size: clamp(29px, 3.4vw, 50px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.05em;
}
.blog-card p { max-width: 57ch; margin: 0; color: rgba(11, 11, 13, .65); line-height: 1.65; }
.blog-card footer { margin-top: auto; padding-top: 34px; display: flex; justify-content: space-between; gap: 18px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.blog-card:hover { color: var(--paper); background: var(--ink); }
.blog-card:hover p, .blog-card:hover::before { color: rgba(242, 239, 232, .66); }
.blog-card:hover footer span:last-child { color: var(--lime); }
.blog-empty { display: none; padding: 80px 0; text-align: center; color: rgba(11, 11, 13, .6); }

.article-hero {
  padding: clamp(86px, 10vw, 142px) 0 70px;
  color: var(--paper);
  background: var(--ink);
}

.article-breadcrumbs {
  margin: 0 0 42px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: rgba(242, 239, 232, .48);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.article-breadcrumbs a:hover { color: var(--lime); }
.article-hero h1 { max-width: 1130px; font-size: clamp(48px, 7.2vw, 104px); }
.article-dek { max-width: 780px; margin: 36px 0 0; color: rgba(242, 239, 232, .7); font-size: clamp(18px, 2.1vw, 24px); line-height: 1.55; }
.article-meta { margin-top: 38px; display: flex; gap: 14px 26px; flex-wrap: wrap; color: rgba(242, 239, 232, .48); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.article-author { color: rgba(242, 239, 232, .72); transition: color 180ms ease; }
.article-author:hover { color: var(--lime); }

.blog-index-hero h1,
.article-hero h1,
.blog-card h2,
.article-section h2,
.related-section h2,
.blog-cta h2 {
  text-wrap: balance;
}

.blog-index-lead,
.article-dek,
.blog-card p,
.article-section > p,
.blog-cta > div > p {
  text-wrap: pretty;
}

.article-layout {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 72px 0 120px;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
}

.article-toc { position: sticky; top: 110px; align-self: start; }
.article-toc b { display: block; margin-bottom: 18px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.article-toc a { display: block; padding: 9px 0; color: rgba(11, 11, 13, .52); font-size: 12px; line-height: 1.4; border-bottom: 1px solid rgba(11, 11, 13, .08); }
.article-toc a:hover { color: var(--violet); }

.article-body { min-width: 0; }
.article-section { padding: 0 0 68px; scroll-margin-top: 110px; }
.article-section + .article-section { padding-top: 68px; border-top: 1px solid var(--line-dark); }
.article-section h2 { margin: 0 0 27px; font-size: clamp(34px, 4.5vw, 62px); font-weight: 400; line-height: .98; letter-spacing: -.055em; }
.article-section > p { margin: 0; color: rgba(11, 11, 13, .76); font-size: 18px; line-height: 1.78; }
.article-section > p + p { margin-top: 20px; }

.short-answer {
  position: relative;
  padding: 32px;
  color: var(--paper);
  background: var(--violet);
  box-shadow: 18px 18px 0 var(--lime);
}
.short-answer h2 { color: var(--lime); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.short-answer p { color: var(--paper); font-size: clamp(19px, 2.3vw, 25px); line-height: 1.6; }

.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.sign-card { min-height: 190px; padding: 24px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.sign-card span { display: block; margin-bottom: 38px; color: var(--violet); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.sign-card p { margin: 0; font-size: 14px; line-height: 1.55; }

.example-box { padding: clamp(28px, 5vw, 54px); background: #e3dfd5; }
.example-box p { margin: 0; font-family: var(--serif); font-size: clamp(25px, 3.2vw, 39px); line-height: 1.2; }

.step-list { counter-reset: steps; margin: 0; padding: 0; list-style: none; }
.step-list li { counter-increment: steps; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-dark); font-size: 16px; line-height: 1.55; }
.step-list li::before { content: "0" counter(steps); color: var(--violet); font-family: var(--mono); font-size: 10px; padding-top: 5px; }

.process-test { padding: clamp(26px, 4vw, 46px); color: var(--paper); background: var(--ink); }
.process-test h2 { color: var(--lime); }
.process-test > p { margin: -10px 0 30px; color: rgba(242, 239, 232, .62); font-size: 14px; line-height: 1.6; }
.check-list { display: grid; gap: 8px; }
.check-option { position: relative; display: block; cursor: pointer; }
.check-option input { position: absolute; opacity: 0; pointer-events: none; }
.check-option span { min-height: 58px; padding: 17px 52px 17px 17px; display: flex; align-items: center; border: 1px solid var(--line-light); color: rgba(242, 239, 232, .78); font-size: 13px; line-height: 1.5; transition: border-color .2s, background-color .2s, color .2s; }
.check-option span::after { content: "+"; position: absolute; right: 19px; top: 16px; color: var(--lime); font-family: var(--mono); font-size: 19px; }
.check-option input:checked + span { color: var(--paper); border-color: var(--lime); background: rgba(217, 255, 67, .1); }
.check-option input:checked + span::after { content: "✓"; }
.check-option input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.test-result { margin-top: 24px; padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; border: 1px solid rgba(217, 255, 67, .45); }
.test-score { min-width: 54px; color: var(--lime); font-family: var(--mono); font-size: 32px; line-height: 1; }
.test-copy { margin: 0; color: rgba(242, 239, 232, .78); font-size: 13px; line-height: 1.6; }

.faq-list details { border-top: 1px solid var(--line-dark); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq-list summary { position: relative; padding: 22px 50px 22px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 500; line-height: 1.45; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--violet); font-size: 24px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 46px 24px 0; color: rgba(11, 11, 13, .68); line-height: 1.7; }

.related-section { padding: 90px 0; color: var(--paper); background: var(--ink); }
.related-section h2 { margin: 0 0 38px; font-size: clamp(42px, 6vw, 78px); font-weight: 400; letter-spacing: -.055em; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--line-light); border-top: 1px solid var(--line-light); }
.related-card { min-height: 230px; padding: 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.related-card span { color: var(--lime); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.related-card b { margin-top: auto; max-width: 22ch; font-size: clamp(23px, 3vw, 36px); font-weight: 400; line-height: 1.05; letter-spacing: -.04em; }
.related-card:hover { color: var(--ink); background: var(--lime); }
.related-card:hover span { color: var(--violet); }

.blog-cta { padding: 110px 0; color: var(--ink); background: var(--lime); }
.blog-cta .blog-eyebrow { color: var(--violet); }
.blog-cta h2 { max-width: 1000px; margin: 0; font-size: clamp(52px, 7.5vw, 108px); font-weight: 400; line-height: .9; letter-spacing: -.065em; }
.blog-cta p { max-width: 650px; margin: 30px 0; font-size: 18px; line-height: 1.6; }
.blog-cta button, .blog-cta-link { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); cursor: pointer; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.blog-cta button:hover, .blog-cta-link:hover { color: var(--ink); background: transparent; }

.blog-footer { padding: 34px clamp(18px, 4vw, 64px); display: flex; justify-content: space-between; gap: 24px; color: rgba(242, 239, 232, .56); background: var(--ink); border-top: 1px solid var(--line-light); font-family: var(--mono); font-size: 9px; line-height: 1.6; }
.blog-footer a:hover { color: var(--lime); }

@media (max-width: 900px) {
  .blog-header { min-height: 64px; }
  .blog-brand small, .blog-nav { display: none; }
  .blog-lang a { padding: 5px 3px; font-size: 8px; }
  .blog-index-hero { min-height: 520px; }
  .blog-index-hero::after { width: 90vw; right: -42vw; top: 70px; }
  .blog-search-wrap { grid-template-columns: 1fr; }
  .blog-filters { justify-content: flex-start; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { min-height: 330px; }
  .article-layout { grid-template-columns: 1fr; gap: 44px; }
  .article-toc { position: static; }
  .article-toc nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}

@media (max-width: 640px) {
  .blog-shell, .article-layout { width: min(100% - 32px, 1240px); }
  .blog-header { padding-inline: 16px; gap: 8px; }
  .blog-header-right { gap: 7px; }
  .blog-lang { max-width: 52vw; }
  .blog-mark { width: 31px; height: 31px; }
  .blog-brand b { font-size: 11px; }
  .blog-lang a { font-size: 7px; }
  .blog-index-hero { padding-top: 86px; }
  .blog-index-hero h1, .article-hero h1 { font-size: clamp(46px, 15vw, 70px); }
  .blog-card { padding: 28px 22px; }
  .blog-card h2 { margin-top: 42px; }
  .article-layout { padding-top: 48px; }
  .article-toc nav { grid-template-columns: 1fr; }
  .short-answer { padding: 25px; box-shadow: 10px 10px 0 var(--lime); }
  .sign-grid { grid-template-columns: 1fr; }
  .sign-card { min-height: auto; }
  .sign-card span { margin-bottom: 18px; }
  .article-section { padding-bottom: 52px; }
  .article-section + .article-section { padding-top: 52px; }
  .article-section > p { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 190px; }
  .blog-footer { flex-direction: column; }
}

html[lang="zh-CN"] body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

html[lang="zh-CN"] .blog-index-hero h1,
html[lang="zh-CN"] .article-hero h1,
html[lang="zh-CN"] .blog-cta h2 {
  font-family: "Songti SC", "SimSun", Georgia, serif;
  letter-spacing: -.035em;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
