/* ===================================================================
   白帽GEO 静态站点样式  site.css
   主题：emerald 墨绿（白帽 = 合规 / 增长 / 可信赖）
   说明：纯原生 CSS，无任何框架依赖，可被任何静态托管直接使用。
   =================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Theme Tokens ---------- */
:root {
  --background: #f7faf9;
  --foreground: #1a2520;
  --card: #ffffff;
  --card-foreground: #1a2520;
  --primary: #0f9d76;
  --primary-dark: #0b7d5e;
  --primary-light: #d4f0e4;
  --primary-foreground: #ffffff;
  --secondary: #eef5f2;
  --secondary-foreground: #1a2520;
  --muted: #f0f5f3;
  --muted-foreground: #5a6b65;
  --accent: #d4f0e4;
  --accent-foreground: #0b7d5e;
  --border: #e0e8e4;
  --border-strong: #cbd8d2;
  --destructive: #dc2626;
  --destructive-light: #fee2e2;
  --ring: #0f9d76;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px 0 rgb(26 37 32 / 0.05);
  --shadow: 0 4px 12px -2px rgb(26 37 32 / 0.08),
    0 2px 4px -2px rgb(26 37 32 / 0.04);
  --shadow-md: 0 10px 25px -5px rgb(26 37 32 / 0.1),
    0 6px 10px -6px rgb(26 37 32 / 0.05);
  --max-width: 1152px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.section--muted {
  background: var(--secondary);
}
.section--hero {
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid {
    gap: 1.5rem;
  }
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 639px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Eyebrow / Badge / Tag ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn--primary:hover {
  background: var(--primary-dark);
}
.btn--secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}
.btn--secondary:hover {
  background: var(--accent);
}
.btn--outline {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}
.btn--outline:hover {
  background: var(--secondary);
}
.btn--ghost {
  background: transparent;
  color: var(--foreground);
}
.btn--ghost:hover {
  background: var(--secondary);
}
.btn--lg {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 0.95rem;
}
.btn--sm {
  height: 2.25rem;
  padding: 0 0.875rem;
  font-size: 0.8rem;
}
.btn--block {
  width: 100%;
}
.btn .icon {
  width: 1rem;
  height: 1rem;
}

/* ---------- Card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card--hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.card__desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.card__icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.card__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--border-strong);
  letter-spacing: -0.02em;
}
.card__footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ---------- Section header ---------- */
.section-head {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-top: 1rem;
  letter-spacing: -0.02em;
}
.section-head p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.text-balance {
  text-wrap: balance;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: var(--background);
  transition: background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(247, 250, 249, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  flex-shrink: 0;
  overflow: hidden;
}
.brand__mark .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.brand__logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.brand:hover .brand__logo {
  transform: scale(1.06);
  transition: transform .2s ease;
}
.brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
}
.brand__copy small {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.15s ease;
}
.site-nav a:hover {
  background: var(--accent);
  color: var(--foreground);
}
.site-nav a.is-active {
  color: var(--primary);
  font-weight: 600;
}
.nav-cta {
  display: none;
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav .container {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav a {
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
}
.mobile-nav a:hover {
  background: var(--accent);
}
.mobile-nav .btn {
  margin-top: 0.5rem;
}
@media (min-width: 880px) {
  .site-nav {
    display: flex;
  }
  .nav-cta {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(15, 157, 118, 0.08) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  opacity: 0.7;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -8rem;
  right: -4rem;
  width: 20rem;
  height: 20rem;
  border-radius: 9999px;
  background: rgba(15, 157, 118, 0.18);
  filter: blur(80px);
  pointer-events: none;
}
.hero__stage {
  position: relative;
  padding: 4rem 0 3rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 639px) {
  .hero__stage {
    padding: 2.5rem 0 2rem;
    gap: 1.75rem;
  }
  .hero__content {
    padding: 0 0.75rem;
  }
  .hero h1 {
    font-size: clamp(1.625rem, 7vw, 2rem);
    line-height: 1.2;
    margin-top: 1rem;
  }
  .hero h1 .accent {
    display: inline;
  }
  .hero__lead {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .hero__actions {
    margin-top: 1.25rem;
    width: 100%;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
    min-width: 0;
  }
  .hero__actions .btn--lg {
    height: 2.75rem;
    padding: 0 1.1rem;
    font-size: 0.875rem;
  }
  .hero__tags {
    margin-top: 1.25rem;
    gap: 0.4rem;
  }
  .hero__tags .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  .hero__side {
    gap: 0.65rem;
    margin-top: 0.5rem;
  }
  .hero-card {
    padding: 1rem;
  }
  .hero-card__title {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
  .hero-card ul {
    gap: 0.4rem;
    font-size: 0.8rem;
  }
  .hero-card--tilt-l,
  .hero-card--tilt-r {
    transform: none;
  }
  .eyebrow {
    font-size: 0.7rem;
    padding: 0.2rem 0.65rem;
  }
  .marquee {
    margin-top: 1.75rem;
    padding: 0.6rem 0;
  }
  .marquee__item {
    font-size: 0.78rem;
    padding: 0.3rem 0.85rem;
  }
  .marquee-note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__stage {
    padding: 3rem 0 2.5rem;
    gap: 2rem;
  }
  .hero__side {
    flex-direction: row;
    gap: 0.75rem;
  }
  .hero__side .hero-card {
    flex: 1;
  }
  .hero-card--tilt-l,
  .hero-card--tilt-r {
    transform: none;
  }
}
@media (min-width: 1024px) {
  .hero__stage {
    grid-template-columns: 7fr 5fr;
  }
}
.hero h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 1.25rem;
}
.hero h1 .accent {
  color: var(--primary);
}
.hero__lead {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1.05rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}
.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__tags {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Hero side cards */
.hero__side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.hero-card--tilt-l {
  transform: rotate(-2deg);
}
.hero-card--tilt-r {
  transform: rotate(1deg);
}
.hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.hero-card__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}
.hero-card__logo .icon {
  width: 1rem;
  height: 1rem;
}
.hero-card__chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
}
.hero-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.hero-card ul li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-card ul li .icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.hero-card--single ul {
  grid-template-columns: 1fr;
}

/* Marquee */
.marquee {
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.75rem 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  animation: marquee 32s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.marquee__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--primary);
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-note {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* ---------- Article page (blog / content) ---------- */
.page-head {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb .sep {
  opacity: 0.5;
}
.page-head h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-head__lead {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 48rem;
}
.meta-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.meta-row .dot {
  width: 3px;
  height: 3px;
  border-radius: 9999px;
  background: var(--muted-foreground);
}

/* Article body (prose) */
.article {
  padding: 2.5rem 0;
}
.article__layout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .article__layout {
    grid-template-columns: 1fr 16rem;
  }
}
.prose {
  max-width: 44rem;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 5rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  scroll-margin-top: 5rem;
}
.prose h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--foreground);
  scroll-margin-top: 5rem;
}
.prose h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--foreground);
}
.prose h6 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prose p {
  margin-bottom: 1.1rem;
  color: #2a3530;
  line-height: 1.8;
}
.prose ul,
.prose ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.25rem;
}
.prose ul li,
.prose ol li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #2a3530;
}
.prose ul li {
  list-style: disc;
}
.prose ol li {
  list-style: decimal;
}
.prose ul li::marker {
  color: var(--primary);
}
.prose ol li::marker {
  color: var(--primary);
  font-weight: 700;
}
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin: 0.4rem 0 0.4rem 0;
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: var(--primary-dark);
}
.prose strong {
  font-weight: 700;
  color: var(--foreground);
}
.prose em {
  font-style: italic;
  color: var(--foreground);
}
.prose del,
.prose s {
  color: var(--muted-foreground);
  text-decoration: line-through;
}
.prose mark {
  background: #fff3a3;
  color: var(--foreground);
  padding: 0 0.2em;
  border-radius: 0.2em;
}
.prose kbd {
  display: inline-block;
  padding: 0.15em 0.45em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 0.35rem;
  line-height: 1;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.prose img,
.prose video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--muted);
}
.prose figure {
  margin: 1.5rem 0;
  text-align: center;
}
.prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--primary);
  background: var(--secondary);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: normal;
}
.prose blockquote p {
  margin: 0;
  color: var(--foreground);
}
.prose blockquote p + p {
  margin-top: 0.6rem;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
  font-size: 0.875em;
  background: var(--muted);
  padding: 0.15em 0.4em;
  border-radius: 0.35rem;
  color: #b9462a;
}
.prose pre {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #1a2520;
  color: #d4f0e4;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.65;
}
.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  overflow-x: auto;
}
@media (min-width: 768px) {
  .prose table {
    display: table;
  }
}
.prose thead {
  background: var(--secondary);
}
.prose th,
.prose td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}
.prose th {
  font-weight: 700;
  color: var(--foreground);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}
.prose tbody tr:last-child td {
  border-bottom: none;
}
.prose tbody tr:hover {
  background: var(--muted);
}
.callout {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius);
}
.callout strong {
  color: var(--primary-dark);
}

/* Article tags (正文底部标签) */
.article-tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}
.article-tags__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
  margin-right: 0.25rem;
  flex-shrink: 0;
}
.article-tags__list {
  list-style: none;
  list-style-type: none;
  margin: 0 !important;!i;!;!;!i;!im;!i;!ii;!i;!;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.article-tags__list::marker {
  content: '';
}
.article-tags__list li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
}
.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}
.article-tag:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Author link in article hero */
.article-hero__author-link {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.article-hero__author-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Article footer: copyright + tags */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.article-copyright {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, var(--muted) 0%, color-mix(in srgb, var(--muted) 60%, transparent) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.article-copyright__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
}
.article-copyright__body {
  flex: 1;
  min-width: 0;
}
.article-copyright__title {
  margin: 0 0 0.25rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: 0.02em;
}
.article-copyright__text {
  margin: 0;
}
.article-copyright__text strong {
  color: var(--foreground);
  font-weight: 600;
}
.article-copyright__link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px dashed var(--primary);
  transition: opacity 0.15s ease;
}
.article-copyright__link:hover {
  opacity: 0.75;
}
.article-tags {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.article-tags__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background: var(--muted);
  border-radius: 9999px;
  margin-top: 0.15rem;
}
.article-tags__label svg {
  opacity: 0.7;
}
.article-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.article-tags__list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Article sidebar / TOC */
.toc {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.article-toc{
	  background:#fff;
	  border:1px solid var(--border);
	  border-left:3px solid var(--brand);
	  border-radius:8px;padding:16px 20px;
	  margin-bottom:24px;
}
.article-toc-title{
	font-size:0.85rem;
	font-weight:700;
	color:var(--brand-dark);
	margin-bottom:10px;
}
.article-toc-list{
		margin:0;padding:0;
		list-style:none;
}
.article-toc-link{
	font-size:0.82rem;color:var(--muted);text-decoration:none;
}
.toc h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.toc ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
}
.toc a {
  color: var(--muted-foreground);
  display: block;
  padding: 0.2rem 0;
  transition: color 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease;
  border-left: 2px solid transparent;
  margin-left: -0.75rem;
  padding-left: 0.6rem;
}
.toc a:hover,
.toc a.is-active {
  color: var(--primary);
}
.toc a.is-active {
  border-left-color: var(--primary);
  font-weight: 600;
  background: linear-gradient(
    to right,
    var(--primary-light),
    transparent 70%
  );
  border-radius: 0 0.25rem 0.25rem 0;
}

/* Article nav (prev/next) */
.article-nav {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .article-nav {
    grid-template-columns: 1fr 1fr;
  }
}
.article-nav__item {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: all 0.18s ease;
}
.article-nav__item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.article-nav__item span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.article-nav__item strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--foreground);
}
.article-nav__item--next {
  text-align: right;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item.is-open {
  border-color: var(--primary);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}
.faq-q .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.is-open .faq-q .icon {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a__inner {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ---------- Tabs (goal tabs) ---------- */
.tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 0.5rem;
}
@media (min-width: 640px) {
  .tabs {
    padding: 1rem;
  }
}
.tabs__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .tabs__nav {
    flex-direction: row;
  }
}
.tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.tab-btn:hover {
  background: var(--accent);
}
.tab-btn.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}
.tab-btn .icon {
  width: 1rem;
  height: 1rem;
}
.tab-panel {
  display: none;
  margin-top: 1rem;
}
.tab-panel.is-active {
  display: block;
}
.tab-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .tab-grid {
    grid-template-columns: 2fr 1fr;
  }
}
.tab-lead h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}
.tab-lead p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.7;
}
.check-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.check-list li .icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.tab-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---------- Standards (do / dont) ---------- */
.std-block {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.std-block--do {
  border: 1px solid var(--primary);
  background: var(--primary-light);
}
.std-block--dont {
  border: 1px solid var(--destructive);
  background: var(--destructive-light);
}
.std-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.std-head__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
}
.std-block--do .std-head__icon {
  background: var(--primary);
  color: var(--primary-foreground);
}
.std-block--dont .std-head__icon {
  background: var(--destructive);
  color: #fff;
}
.std-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
.std-head p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.std-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.std-list--two {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .std-list--two {
    grid-template-columns: 1fr 1fr;
  }
}
.std-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.std-item .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.std-block--do .std-item .icon {
  color: var(--primary);
}
.std-block--dont .std-item .icon {
  color: var(--destructive);
}
.std-item strong {
  display: block;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.15rem;
}

/* ---------- Flow (timeline) ---------- */
.flow {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .flow {
    grid-template-columns: repeat(5, 1fr);
  }
}
.flow__item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.flow__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.flow__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
}
.flow__icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.flow__num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--border-strong);
}
.flow__title {
  font-size: 1rem;
  font-weight: 700;
}
.flow__desc {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ---------- Two-col content ---------- */
.two-col {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 18rem;
  }
}
.notice {
  padding: 1.25rem;
  border: 1px solid var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius);
}
.notice strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.notice p {
  font-size: 0.9rem;
  color: var(--foreground);
  line-height: 1.7;
}

/* ---------- VS table ---------- */
.vs-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .vs-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.vs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.vs-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.vs-card__head .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--primary);
}
.vs-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.vs-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--muted-foreground);
}
.vs-card ul li .icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .contact-wrap {
    grid-template-columns: 3fr 2fr;
  }
}
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.contact-form h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.contact-form .form-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.field label .req {
  color: var(--destructive);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 157, 118, 0.15);
}
.field textarea {
  height: auto;
  min-height: 6rem;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b65' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1.1rem;
  padding-right: 2rem;
}
.form-feedback {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-feedback .icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.form-feedback--ok {
  border: 1px solid var(--primary);
  background: var(--primary-light);
  color: var(--foreground);
}
.form-feedback--ok .icon {
  color: var(--primary);
}
.form-feedback--err {
  border: 1px solid var(--destructive);
  background: var(--destructive-light);
  color: var(--foreground);
}
.form-feedback--err .icon {
  color: var(--destructive);
}
.form-note {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.contact-panel {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
}
.contact-panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-panel .panel-desc {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
}
.contact-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.contact-list__item .icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.8;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.contact-list__item .label {
  opacity: 0.7;
  display: block;
  font-size: 0.78rem;
}
.contact-list__item .val {
  font-weight: 600;
  color: var(--primary-foreground);
}
.contact-list__item a.val:hover {
  text-decoration: underline;
}
.panel-copy {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.copy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary-foreground);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s ease;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.copy-btn .icon {
  width: 1rem;
  height: 1rem;
}
.panel-hours {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .cta-band {
    grid-template-columns: 1fr 20rem;
    align-items: start;
  }
}
.cta-band h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cta-band p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.7;
}
.cta-band .actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cta-band .btn--primary {
  background: var(--primary-foreground);
  color: var(--primary);
}
.cta-band .btn--primary:hover {
  background: #fff;
}
.cta-band .btn--secondary,
.cta-band .btn--outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary-foreground);
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-band .btn--secondary:hover,
.cta-band .btn--outline:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- Blog list ---------- */
.blog-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .blog-grid--4col {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .blog-grid--4col .blog-card {
    padding: 1.25rem;
  }
  .blog-grid--4col .blog-card__title {
    font-size: 1rem;
    line-height: 1.4;
  }
  .blog-grid--4col .blog-card__excerpt {
    font-size: 0.85rem;
    line-height: 1.55;
    -webkit-line-clamp: 4;
  }
  .blog-grid--4col .blog-card__foot {
    font-size: 0.75rem;
  }
}
@media (max-width: 639px) {
  .blog-grid {
    gap: 1rem;
  }
  .blog-card {
    padding: 1.1rem;
  }
  .blog-card__title {
    font-size: 1rem;
  }
  .blog-card__excerpt {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-card__foot {
    font-size: 0.75rem;
  }
}
.blog-grid--featured {
  margin-top: 0.5rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s ease;
}
.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted-foreground);
}
.blog-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.blog-card__link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.blog-card__link .icon {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.15s ease;
}
.blog-card:hover .blog-card__link .icon {
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--secondary);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer-brand .brand {
  margin-bottom: 1rem;
}
.footer-note {
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
}
.footer-links a,
.footer-contact a,
.footer-contact span {
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Article hero on blog post ---------- */
.article-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.article-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0.75rem;
  max-width: 46rem;
}
.article-hero__meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.article-hero__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.article-hero__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.hidden { display: none; }

/* Layout wrapper for sticky footer */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page > main {
  flex: 1;
}

/* Sr-only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
