:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-mute: #fafbfc;
  --text: #14171c;
  --text-soft: #23272f;
  --muted: #626a77;
  --muted-light: #8a919c;
  --line: #e6e8ee;
  --line-strong: #d7dbe3;
  --accent: #2055ff;
  --accent-ink: #1a45d8;
  --accent-soft: #eef3ff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(17, 20, 24, 0.04);
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

ul,
ol {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(32, 85, 255, 0.16);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-cn {
  margin-left: 5px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.nav-link.is-active {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease;
}

.icon-link:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------------- Hero ---------------- */

.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20, 23, 28, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 23, 28, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 24px 72px;
  max-width: 880px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  max-width: 760px;
}

.hero-lead {
  margin-top: 20px;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-search {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 20, 24, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(32, 85, 255, 0.1);
}

.hero-search svg {
  color: var(--muted-light);
  flex-shrink: 0;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  padding: 10px 0;
}

.hero-search input::placeholder {
  color: var(--muted-light);
}

.hero-search button {
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.16s ease;
}

.hero-search button:hover {
  background: #000;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin: 44px 0 0;
}

.hero-stats dt {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- Sections ---------------- */

.section {
  padding: 64px 0;
}

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

.section-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.text-link {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.16s ease;
}

.text-link:hover {
  color: var(--accent);
}

/* ---------------- Row list ---------------- */

.row-list {
  border-top: 1px solid var(--line);
}

.row-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-light);
  margin-bottom: 6px;
}

.row-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.row-item h3 {
  font-size: 19px;
  font-weight: 600;
  transition: color 0.16s ease;
}

.row-item p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-item:hover h3 {
  color: var(--accent);
}

.row-arrow {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.18s ease;
}

.row-item:hover .row-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(2px);
}

/* ---------------- Category cards ---------------- */

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

.cat-grid-small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cat-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 30px rgba(17, 20, 24, 0.06);
  transform: translateY(-2px);
}

.cat-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cat-top h3 {
  font-size: 19px;
}

.cat-count {
  font-size: 12.5px;
  color: var(--muted-light);
  white-space: nowrap;
}

.cat-card > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.cat-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.cat-links span {
  font-size: 13.5px;
  color: var(--text-soft);
  display: flex;
  gap: 8px;
}

.cat-links span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------------- Pick cards ---------------- */

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

.pick-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-mute);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.pick-card:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(17, 20, 24, 0.05);
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.pill-soft {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.pick-card h3 {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.5;
  transition: color 0.16s ease;
}

.pick-card:hover h3 {
  color: var(--accent);
}

.pick-card p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pick-meta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted-light);
}

/* ---------------- About strip ---------------- */

.about-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.about-strip h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-bottom: 12px;
  max-width: 600px;
}

.about-strip p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.85;
}

.btn-ghost,
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn-solid {
  background: var(--text);
  color: #fff;
}

.btn-solid:hover {
  background: #000;
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-mute);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding: 56px 24px 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0;
  transition: color 0.16s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted-light);
}

.footer-bottom a {
  color: var(--muted-light);
  transition: color 0.16s ease;
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ---------------- Simple pages ---------------- */

.page-simple {
  padding-top: 48px;
  padding-bottom: 72px;
}

.page-simple.narrow {
  max-width: 800px;
}

.page-head {
  padding-bottom: 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-light);
  margin-bottom: 20px;
}

.crumbs a {
  color: var(--muted);
  transition: color 0.16s ease;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs span:last-child {
  color: var(--muted-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}

.page-head h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.035em;
}

.page-lead {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.85;
}

.cat-intro {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-light);
  max-width: 720px;
  line-height: 1.85;
}

/* ---------------- Archive ---------------- */

.archive-group {
  margin-top: 44px;
}

.archive-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--text);
}

.archive-head h2 {
  font-size: 20px;
}

.archive-head span {
  font-size: 12.5px;
  color: var(--muted-light);
}

.archive-item {
  border-bottom: 1px solid var(--line);
}

.archive-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0;
  transition: color 0.16s ease;
}

.archive-item h3 {
  font-size: 16.5px;
  font-weight: 550;
}

.archive-item p {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.75;
}

.archive-date {
  font-size: 12.5px;
  color: var(--muted-light);
  white-space: nowrap;
}

.archive-item > a:hover h3 {
  color: var(--accent);
}

.archive-large {
  margin-top: 8px;
}

.archive-large .archive-item > a {
  padding: 22px 0;
  align-items: flex-start;
}

.archive-body {
  flex: 1;
}

/* ---------------- Article ---------------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 64px;
  padding-top: 40px;
  padding-bottom: 72px;
}

.article-head {
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted-light);
}

.article-meta .pill {
  font-size: 12px;
  padding: 3px 10px;
}

.article-head h1 {
  margin-top: 18px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.article-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
}

.article-body {
  padding-top: 12px;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--text-soft);
}

.article-body p {
  margin: 20px 0;
}

.article-body h2 {
  font-size: 22px;
  margin: 44px 0 8px;
  scroll-margin-top: 88px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article-body h3 {
  font-size: 17.5px;
  margin: 28px 0 6px;
}

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

.article-body li {
  margin: 8px 0;
  padding-left: 4px;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body strong {
  font-weight: 650;
  color: var(--text);
}

.article-body .note {
  margin: 26px 0;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body .note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #2b3a5c;
}

/* ---------------- FAQ ---------------- */

.faq-block {
  margin-top: 52px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.faq-block h2 {
  font-size: 22px;
  margin: 24px 0 8px;
}

.faq-list {
  margin: 0;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item dt {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------- Pager ---------------- */

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.pager-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.pager-item span {
  font-size: 12px;
  color: var(--muted-light);
}

.pager-item strong {
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pager-item:hover {
  border-color: var(--line-strong);
  background: var(--bg-mute);
}

.pager-next {
  text-align: right;
  align-items: flex-end;
}

.pager-item.is-empty {
  border-style: dashed;
  border-color: var(--line);
  visibility: hidden;
}

/* ---------------- Sidebar ---------------- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.side-card {
  position: sticky;
  top: 88px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-mute);
}

.side-card + .side-card {
  position: static;
}

.side-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc-list a {
  display: block;
  font-size: 13.5px;
  line-height: 1.7;
  padding: 5px 0;
  color: var(--muted);
  transition: color 0.16s ease;
}

.toc-list a:hover {
  color: var(--accent);
}

.side-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.side-list a {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-soft);
  transition: color 0.16s ease;
}

.side-list a:hover {
  color: var(--accent);
}

.side-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--accent);
}

.side-note p {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------------- Related ---------------- */

.related-block {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

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

.related-grid .pick-card {
  padding: 20px;
}

.related-grid .pick-card h3 {
  font-size: 15px;
}

.related-grid .pick-card p {
  -webkit-line-clamp: 2;
  font-size: 13px;
}

/* ---------------- Search ---------------- */

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 28px 0 12px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(32, 85, 255, 0.1);
}

.search-form svg {
  color: var(--muted-light);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
}

.search-form button {
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
}

.search-status {
  font-size: 13px;
  color: var(--muted-light);
  margin: 10px 0 8px;
  min-height: 24px;
}

.search-results {
  border-top: 1px solid var(--line);
}

.result-item {
  border-bottom: 1px solid var(--line);
}

.result-item a {
  display: block;
  padding: 20px 0;
  transition: opacity 0.16s ease;
}

.result-item a:hover h3 {
  color: var(--accent);
}

.result-item h3 {
  margin-top: 8px;
  font-size: 17px;
  transition: color 0.16s ease;
}

.result-item p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

.result-item mark {
  background: rgba(32, 85, 255, 0.12);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.search-empty {
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------- About facts / 404 ---------------- */

.about-facts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-facts > div {
  background: #fff;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-facts span {
  font-size: 12px;
  color: var(--muted-light);
}

.about-facts strong {
  font-size: 14.5px;
  font-weight: 600;
}

.about-facts a {
  color: var(--accent);
}

.notfound {
  padding-top: 100px;
  padding-bottom: 120px;
  max-width: 720px;
}

.notfound h1 {
  font-size: clamp(30px, 5vw, 44px);
}

.notfound-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .side-card {
    position: static;
  }

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

@media (max-width: 860px) {
  .header-inner {
    gap: 16px;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(17, 20, 24, 0.08);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px;
    font-size: 15px;
  }

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    padding: 56px 24px 52px;
  }

  .hero-stats {
    gap: 32px;
    margin-top: 36px;
  }

  .section {
    padding: 44px 0;
  }

  .cat-grid,
  .cat-grid-small {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 44px 24px 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .about-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .hero-search {
    flex-wrap: nowrap;
    padding-left: 12px;
  }

  .hero-search button {
    padding: 10px 14px;
  }

  .hero-search input::placeholder {
    font-size: 13px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stats dt {
    font-size: 22px;
  }

  .row-item {
    gap: 12px;
  }

  .row-item h3 {
    font-size: 16.5px;
  }

  .row-arrow {
    display: none;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.9;
  }

  .article-head h1 {
    font-size: 27px;
  }

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

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

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

  .pager-item.is-empty {
    display: none;
  }

  .about-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

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