/* 品牌SEO brandseo.cn — SEO · GEO · Google SEO · 百度SEO */

:root {
  --ink: #0f1419;
  --text: #1f2937;
  --text-2: #374151;
  --muted: #586174;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --bg: #ffffff;
  --surface: #f6f8f3;
  --lime: #a3e635;
  --lime-2: #84cc16;
  --lime-deep: #3f6212;
  --lime-soft: #f2fbe3;
  --link: #1a4fd6;
  --c-seo: #4d7c0f;
  --c-geo: #6d28d9;
  --c-google: #1d4ed8;
  --c-baidu: #c62828;
  --c-tech: #0f766e;
  --c-content: #b45309;
  --radius: 14px;
  --nav-h: 68px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

html {
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.mono {
  font-family: var(--mono);
}

mark.hl {
  padding: 0 0.12em;
  border-radius: 4px;
  background: linear-gradient(transparent 58%, var(--lime) 58%);
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime-2);
  outline-offset: 2px;
}

/* Buttons */
.btn-lime,
.btn-dark-ink,
.btn-ghost {
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
  font-weight: 700;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-lime {
  background: var(--lime);
  border: 1px solid var(--lime);
  color: var(--ink);
}

.btn-lime:hover,
.btn-lime:focus-visible {
  background: var(--lime-2);
  border-color: var(--lime-2);
  color: var(--ink);
}

.btn-dark-ink {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
}

.btn-dark-ink:hover,
.btn-dark-ink:focus-visible {
  background: #2b3440;
  color: #fff;
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

/* Category pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
}

.pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.p-seo { color: var(--c-seo); background: #eef7df; }
.p-geo { color: var(--c-geo); background: #f1ebfd; }
.p-google { color: var(--c-google); background: #e8efff; }
.p-baidu { color: var(--c-baidu); background: #fdecec; }
.p-tech { color: var(--c-tech); background: #e2f4f1; }
.p-content { color: var(--c-content); background: #fdf1e3; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.9rem;
  font-weight: 700;
}

.avatar.av-2 { background: var(--c-geo); color: #fff; }
.avatar.av-3 { background: var(--c-google); color: #fff; }
.avatar.av-4 { background: var(--c-tech); color: #fff; }

.avatar-lg {
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
}

/* ===== Header ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.topnav.scrolled {
  box-shadow: 0 4px 18px rgba(15, 20, 25, 0.07);
}

.topnav .container {
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 1rem;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-name b {
  margin-left: 0.1rem;
  padding: 0 0.3rem;
  border-radius: 6px;
  background: var(--lime);
  font-weight: 800;
}

.logo-tag {
  font-size: 0.75rem;
  color: var(--muted);
}

.topnav .nav-link {
  position: relative;
  padding: 1.35rem 0.75rem;
  color: var(--text-2);
  font-weight: 600;
}

.topnav .nav-link:hover {
  color: var(--ink);
}

.topnav .nav-link.active {
  color: var(--ink);
  font-weight: 700;
}

.topnav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--lime-2);
}

.topnav .navbar-toggler {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
}

.topnav .navbar-toggler:focus {
  box-shadow: none;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
}

.nav-search svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted);
}

.nav-search input {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
}

.nav-search input:focus {
  outline: none;
}

.nav-search:focus-within {
  border-color: var(--lime-2);
  background: #fff;
}

@media (min-width: 1200px) {
  .nav-search {
    width: 15rem;
  }
}

@media (max-width: 991.98px) {
  .topnav .navbar-collapse {
    padding-bottom: 1rem;
  }

  .topnav .nav-link {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .topnav .nav-link.active::after {
    left: auto;
    right: 0.25rem;
    top: 50%;
    bottom: auto;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: -0.28rem;
    border-radius: 50%;
  }

  .nav-search {
    margin-top: 0.9rem;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(163, 230, 53, 0.22), transparent 40%),
    radial-gradient(rgba(15, 20, 25, 0.09) 1px, transparent 1.2px) 0 0 / 22px 22px,
    #fff;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime-2);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.25);
}

.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 1.6rem;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-2);
}

.query-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 34rem;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(15, 20, 25, 0.08);
}

.query-box:focus-within {
  border-color: var(--lime-2);
}

.query-box svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  color: var(--muted);
}

.query-box input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.query-box input:focus {
  outline: none;
}

.query-box .btn-lime {
  flex-shrink: 0;
  padding: 0.55rem 1.3rem;
}

.hot-queries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hot-queries a {
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-2);
}

.hot-queries a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Mock search results page */
.serp-mock {
  position: relative;
  padding: 1.2rem;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 20, 25, 0.1);
}

.serp-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text);
}

.serp-bar svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  color: var(--muted);
}

.serp-tabs {
  display: flex;
  gap: 1.1rem;
  margin: 0.8rem 0.4rem 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.serp-tabs span:first-child {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--lime-2);
}

.ai-box {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4f0ff, #effbe0);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-geo);
}

.ai-box p {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
}

.cite-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cite-chip {
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-2);
}

.cite-chip.is-brand {
  border-color: var(--lime-2);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.serp-result {
  padding: 0.6rem 0.4rem;
}

.serp-url {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--c-seo);
}

.serp-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--link);
}

.serp-snippet {
  display: block;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.serp-skeleton {
  padding: 0.6rem 0.4rem 0.2rem;
}

.serp-skeleton span {
  display: block;
  height: 0.6rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: var(--line);
}

.serp-skeleton span:nth-child(1) { width: 35%; }
.serp-skeleton span:nth-child(2) { width: 70%; height: 0.8rem; }
.serp-skeleton span:nth-child(3) { width: 90%; }

.rank-chip {
  position: absolute;
  top: -0.9rem;
  right: 1.2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 3rem 0 0;
}

.hero-stats div {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.hero-stats dt {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.hero-stats dd {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Sections ===== */
.block {
  padding: 4rem 0;
}

.block-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-bottom: 2rem;
}

.block-kicker {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lime-deep);
}

.block-title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
}

.block-sub {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.block-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--ink);
}

.block-more:hover {
  color: var(--lime-deep);
}

/* Topic map */
.topic {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.4rem 1.3rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--topic, var(--lime-2));
  border-radius: var(--radius);
  background: #fff;
}

.topic-path {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--topic, var(--lime-deep));
}

.topic h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.3rem;
}

.topic h3 a {
  color: var(--ink);
}

.topic h3 a:hover {
  color: var(--topic);
}

.topic p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
}

.topic-links {
  flex: 1;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.topic-links li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.topic-links a {
  color: var(--text);
}

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

.topic-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.t-seo { --topic: var(--c-seo); }
.t-geo { --topic: var(--c-geo); }
.t-google { --topic: var(--c-google); }
.t-baidu { --topic: var(--c-baidu); }

/* Search-result style article list */
.result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.result:first-child {
  padding-top: 0;
}

.panel .result:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.result-thumb {
  order: -1;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.result-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

@media (min-width: 576px) {
  .result {
    grid-template-columns: minmax(0, 1fr) 12rem;
    gap: 1.5rem;
  }

  .result-thumb {
    order: 0;
    align-self: start;
  }
}

.result-src {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.src-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.src-path {
  min-width: 0;
  overflow: hidden;
  font-family: var(--mono);
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.result-title {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.result-title a {
  color: var(--link);
}

.result-title a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.result-snippet {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-2);
}

.result-date {
  color: var(--muted);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.result-feature {
  padding: 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfff4, #fff);
}

.result-feature:first-child {
  padding-top: 1.5rem;
}

.result-feature .result-title {
  font-size: 1.45rem;
}

.feature-flag {
  margin-left: auto;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .result-feature {
    grid-template-columns: minmax(0, 1fr) 17rem;
  }
}

/* Side panels */
.panel {
  margin-bottom: 1.5rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.panel-title .mono {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.glossary {
  margin: 0;
}

.glossary div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.glossary div:first-child {
  padding-top: 0;
  border-top: 0;
}

.glossary dt {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink);
}

.glossary dt span {
  margin-left: 0.4rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.glossary dd {
  margin: 0.2rem 0 0;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list a {
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--text-2);
}

.tag-list a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.top-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: top;
}

.top-list li {
  counter-increment: top;
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.6;
}

.top-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.top-list li::before {
  content: counter(top, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 700;
  color: var(--muted);
}

.top-list li:nth-child(-n + 3)::before {
  color: var(--lime-deep);
}

.top-list a {
  color: var(--text);
}

.top-list a:hover {
  color: var(--link);
}

/* Changelog of search updates */
.changelog {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.changelog li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1.2rem;
  padding: 1.1rem 1.3rem;
  border-top: 1px solid var(--line);
}

.changelog li:first-child {
  border-top: 0;
}

@media (min-width: 768px) {
  .changelog li {
    grid-template-columns: 7.5rem 6.5rem 1fr;
    align-items: start;
  }
}

.changelog time {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 0.1rem;
}

.engine {
  justify-self: start;
  padding: 0.1rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.e-google { background: #e8efff; color: var(--c-google); }
.e-baidu { background: #fdecec; color: var(--c-baidu); }
.e-ai { background: #f1ebfd; color: var(--c-geo); }

.changelog a {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

.changelog a:hover {
  color: var(--link);
}

.changelog p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* SEO vs GEO comparison */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cmp {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.7;
}

.cmp th,
.cmp td {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cmp thead th {
  border-top: 0;
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--text-2);
}

.cmp tbody th {
  width: 8rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.cmp .col-geo {
  background: #faf7ff;
}

.cmp thead .col-geo {
  background: #f1ebfd;
  color: var(--c-geo);
}

/* Subscribe terminal */
.terminal {
  overflow: hidden;
  border-radius: 18px;
  background: var(--ink);
  color: #e5e7eb;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #3a4350;
}

.terminal-bar span:first-child { background: #f87171; }
.terminal-bar span:nth-child(2) { background: #fbbf24; }
.terminal-bar span:nth-child(3) { background: var(--lime); }

.terminal-body {
  padding: 2rem 1.4rem;
}

.terminal-cmd {
  margin-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--lime);
  overflow-wrap: anywhere;
}

.terminal h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
}

.terminal p {
  margin: 0;
  color: #cbd2db;
  font-size: 1rem;
}

.sub-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.sub-form input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.9rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
}

.sub-form input::placeholder {
  color: #9aa3af;
}

.sub-form input:focus {
  outline: none;
}

@media (min-width: 992px) {
  .terminal-body {
    padding: 2.6rem 3rem;
  }
}

/* ===== Footer ===== */
.site-foot {
  margin-top: 4rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text-2);
}

.foot-main {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.foot-about {
  max-width: 24rem;
  margin: 1rem 0 0;
  line-height: 1.8;
}

.foot-title {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.foot-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links li {
  margin-bottom: 0.5rem;
}

.foot-links a {
  color: var(--text-2);
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime-2);
  text-decoration-thickness: 2px;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-top: 1.2rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--line-2);
  font-size: 0.88rem;
  color: var(--muted);
}

.foot-bottom a {
  color: var(--muted);
}

.foot-bottom a:hover {
  color: var(--ink);
}

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  box-shadow: 0 6px 18px rgba(15, 20, 25, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* ===== List page ===== */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.8rem;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "\203A";
  margin-right: 0.35rem;
  color: var(--line-2);
}

.crumbs a {
  color: var(--text-2);
}

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

.serp-head {
  padding: 2.4rem 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(rgba(15, 20, 25, 0.07) 1px, transparent 1.2px) 0 0 / 22px 22px,
    #fff;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.4rem);
  font-weight: 800;
}

.page-desc {
  max-width: 44rem;
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  color: var(--text-2);
}

.serp-head .query-box {
  max-width: 40rem;
  box-shadow: none;
}

.vtabs {
  display: flex;
  gap: 0.3rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.vtabs::-webkit-scrollbar {
  display: none;
}

.vtab {
  position: relative;
  padding: 0.7rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 0.97rem;
  font-weight: 600;
  white-space: nowrap;
}

.vtab:hover {
  color: var(--ink);
}

.vtab.active {
  color: var(--ink);
  font-weight: 800;
}

.vtab.active::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--lime-2);
}

.result-stats {
  margin: 1.4rem 0 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.result-stats strong {
  color: var(--ink);
}

.empty {
  padding: 3rem 1rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.empty p {
  margin-bottom: 1rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}

.pager a,
.pager span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.pager a:hover {
  border-color: var(--ink);
}

.pager .current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.pager .gap {
  border-color: transparent;
}

/* Knowledge panel */
.kpanel {
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.kpanel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.kpanel-head svg {
  width: 3.4rem;
  height: 3.4rem;
  flex-shrink: 0;
}

.kpanel-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.kpanel-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.kpanel-body {
  padding: 1.1rem 1.4rem 1.3rem;
}

.kpanel-body > p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
}

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
}

.facts dt {
  font-weight: 700;
  color: var(--ink);
}

.facts dd {
  margin: 0;
  color: var(--text-2);
}

/* ===== Detail page ===== */
.post-head {
  padding: 2.4rem 0 1.6rem;
}

.post-title {
  margin: 0.8rem 0 1rem;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
}

.post-dek {
  margin: 0 0 1.4rem;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-2);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.post-meta .author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
}

.ai-summary {
  margin: 0 0 2rem;
  padding: 1.3rem 1.5rem 0.6rem;
  border: 1px solid #ddd2fb;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f7f4ff, #f6fdea);
}

.ai-summary .ai-badge {
  font-size: 0.92rem;
}

.ai-summary ul {
  margin: 0.2rem 0 0.7rem;
  padding-left: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.ai-summary li {
  margin-bottom: 0.3rem;
}

.post-hero {
  margin: 0 0 2.2rem;
}

.post-hero img,
.figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.post-hero figcaption,
.figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.post-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.toc {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.toc-title {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lime-deep);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 0.4rem 0 0.4rem 0.9rem;
  border-left: 2px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-2);
}

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

.toc a.active {
  border-left-color: var(--lime-2);
  color: var(--ink);
  font-weight: 700;
}

.aside-cta {
  margin-top: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #cbd2db;
  font-size: 0.93rem;
}

.aside-cta strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.02rem;
  color: #fff;
}

.aside-cta a {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--lime);
}

/* Article body */
.article {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text);
}

.article > p,
.article > ul,
.article > ol {
  margin-bottom: 1.3rem;
}

.article h2 {
  margin: 2.8rem 0 1rem;
  font-size: 1.55rem;
  font-weight: 800;
}

.article h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.22rem;
}

.article ul,
.article ol {
  padding-left: 1.4rem;
}

.article li {
  margin-bottom: 0.45rem;
}

.article li::marker {
  color: var(--lime-deep);
  font-weight: 700;
}

.article code {
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9em;
}

.article blockquote {
  margin: 2rem 0;
  padding: 0.3rem 0 0.3rem 1.3rem;
  border-left: 4px solid var(--lime-2);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--ink);
}

.article blockquote cite {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.figure {
  margin: 2rem 0;
}

.callout {
  display: flex;
  gap: 0.9rem;
  margin: 1.8rem 0;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.8;
}

.callout p {
  margin: 0;
}

.callout strong:first-child {
  display: block;
}

.callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 800;
}

.callout-tip {
  background: var(--lime-soft);
  border: 1px solid #d5ef9f;
}

.callout-tip .callout-icon {
  background: var(--lime);
  color: var(--ink);
}

.callout-warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.callout-warn .callout-icon {
  background: #fb923c;
  color: #fff;
}

.code {
  margin: 1.6rem 0 2rem;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.code-head {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #9aa3af;
}

.code pre {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  overflow-x: auto;
  color: #e5e7eb;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
}

.code pre code {
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.code .k { color: #a3e635; }
.code .s { color: #fcd34d; }
.code .c { color: #8b95a3; }

.article ol.steps {
  margin: 1.4rem 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.article ol.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 0 0 1.2rem 3rem;
}

.article ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.article ol.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1rem - 1px);
  top: 2.3rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--line-2);
}

.article ol.steps strong {
  display: block;
  color: var(--ink);
}

.article ul.check {
  margin: 1.4rem 0 2rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  list-style: none;
}

.article ul.check li {
  position: relative;
  padding-left: 2rem;
}

.article ul.check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 5px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.article .table-wrap {
  margin: 1.6rem 0 2rem;
}

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

.faq:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1rem 2.2rem 1rem 0;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--lime-deep);
}

.faq[open] summary::after {
  content: "\2212";
}

.faq p {
  margin: 0 0 1.1rem;
  color: var(--text-2);
}

.disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--muted);
}

.post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 44rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.share-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.share-btn {
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.share-btn:hover {
  border-color: var(--ink);
}

.copy-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.4rem);
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.85rem;
  white-space: nowrap;
}

.author-box {
  display: flex;
  gap: 1.1rem;
  max-width: 44rem;
  margin-top: 2rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.author-box h3 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
}

.author-box h3 span {
  margin-left: 0.5rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
}

.author-box p {
  margin: 0 0 0.4rem;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-2);
}

.author-box a {
  font-size: 0.95rem;
  font-weight: 700;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 44rem;
  margin-top: 1.6rem;
}

@media (min-width: 576px) {
  .prev-next {
    grid-template-columns: 1fr 1fr;
  }
}

.pn {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.pn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.pn-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.pn-title {
  display: block;
  margin-top: 0.2rem;
  font-weight: 700;
  line-height: 1.55;
}

.pn-next {
  text-align: right;
}

/* Related cards */
.mini-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s, transform 0.15s;
}

.mini-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.mini-card img {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.mini-body {
  padding: 1rem 1.2rem 1.2rem;
}

.mini-body h3 {
  margin: 0.55rem 0 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.mini-body h3 a {
  color: var(--ink);
}

.mini-body h3 a:hover {
  color: var(--link);
}
