/*
Theme Name: Career Path
Theme URI: https://wordpress.org/
Author: Career Path
Description: Lightweight SEO-focused career guide theme for long-form articles.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: career-path
*/

:root {
  --color-primary: #1a73e8;
  --color-primary-dark: #1557b0;
  --color-text: #202124;
  --color-text-muted: #5f6368;
  --color-border: #dadce0;
  --color-bg: #ffffff;
  --color-bg-subtle: #f8f9fa;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.15);
  --max-width: 72rem;
  --line-height: 1.65;
  /* 首页主内容区与整页统一：与 .home-below-hero 基底一致，纯纵向渐变（左右同色） */
  --cp-landing-page-bg: linear-gradient(180deg, #030303 0%, #0a0a0f 18%, #0c0c0f 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* 与 body.is-landing 同色，避免滚动回弹时露边 */
html:has(body.is-landing) {
  background: var(--cp-landing-page-bg);
  background-color: #030303;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

/* WP: Accessibility — screen-reader only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ----- Site header ----- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 3.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
}

.site-logo__mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  flex-shrink: 0;
}

.site-logo:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}

.site-nav__list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ----- Landing header (dark hero) ----- */
.site-header--landing {
  background: rgba(3, 3, 3, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header--landing .site-logo {
  color: #fff;
}

.site-header--landing .site-logo__mark {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
}

.site-header--landing .site-nav__list a {
  color: rgba(255, 255, 255, 0.88);
}

.site-header--landing .site-nav__list a:hover,
.site-header--landing .site-nav__list a:focus-visible {
  color: #fff;
}

.site-header--landing .nav-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.site-header--landing .nav-toggle__bar {
  background: #fff;
}

@media (max-width: 47.99rem) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-header--landing .site-nav {
    background: rgba(10, 10, 10, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open {
    max-height: 20rem;
  }

  .site-nav__list {
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .site-header {
    position: relative;
  }
}

/* ----- Main layout ----- */
.site-main {
  padding-block: var(--space-xl);
  min-height: 50vh;
}

body.is-landing .site-main {
  padding-block: 0;
  background: transparent;
}

.home-below-hero {
  padding-bottom: var(--space-2xl);
}

/* Landing full-page dark: see body.is-landing */

/* ----- Hero (default light, archives) ----- */
.hero {
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.hero__inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.hero__title {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.25;
  color: var(--color-text);
}

.hero__lead {
  margin: 0 0 var(--space-lg);
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.hero__search {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  max-width: 28rem;
  margin-inline: auto;
}

.hero__search input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}

.hero__search button {
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.hero__search button:hover,
.hero__search button:focus-visible {
  background: var(--color-primary-dark);
}

.hero__search button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ----- Hero geometric (CSS-only) ----- */
.hero--geometric {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 56rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(4rem, 12vw, 6rem);
  margin-bottom: 0;
  border-bottom: none;
  background: #030303;
  color: #fff;
}

.hero__glow {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.hero__glow--tl {
  top: -18%;
  left: -10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
}

.hero__glow--br {
  bottom: -22%;
  right: -12%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.28) 0%, transparent 70%);
}

.hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  display: block;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 32px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  will-change: transform;
}

.hero-shape::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-shape--1 {
  width: min(36rem, 92vw);
  height: 8.75rem;
  left: -12%;
  top: 16%;
  transform: rotate(12deg);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.42), transparent);
  animation: hero-shape-drift-a 14s ease-in-out infinite;
}

.hero-shape--2 {
  width: min(28rem, 78vw);
  height: 7.5rem;
  right: -8%;
  top: 62%;
  transform: rotate(-14deg);
  background: linear-gradient(270deg, rgba(244, 63, 94, 0.38), transparent);
  animation: hero-shape-drift-b 16s ease-in-out infinite;
}

.hero-shape--3 {
  width: min(18rem, 55vw);
  height: 5rem;
  left: 6%;
  bottom: 8%;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.4), transparent);
  animation: hero-shape-drift-c 13s ease-in-out infinite;
}

.hero-shape--4 {
  width: min(14rem, 42vw);
  height: 3.75rem;
  right: 14%;
  top: 12%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.35), transparent);
  animation: hero-shape-drift-d 18s ease-in-out infinite;
}

.hero-shape--5 {
  width: min(11rem, 36vw);
  height: 2.75rem;
  left: 22%;
  top: 8%;
  transform: rotate(-22deg);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.32), transparent);
  animation: hero-shape-drift-e 15s ease-in-out infinite;
}

@keyframes hero-shape-drift-a {
  0%,
  100% {
    transform: translateY(0) rotate(12deg);
  }
  50% {
    transform: translateY(14px) rotate(12deg);
  }
}

@keyframes hero-shape-drift-b {
  0%,
  100% {
    transform: translateY(0) rotate(-14deg);
  }
  50% {
    transform: translateY(-12px) rotate(-14deg);
  }
}

@keyframes hero-shape-drift-c {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(10px) rotate(-8deg);
  }
}

@keyframes hero-shape-drift-d {
  0%,
  100% {
    transform: translateY(0) rotate(20deg);
  }
  50% {
    transform: translateY(12px) rotate(20deg);
  }
}

@keyframes hero-shape-drift-e {
  0%,
  100% {
    transform: translateY(0) rotate(-22deg);
  }
  50% {
    transform: translateY(-10px) rotate(-22deg);
  }
}

.hero__geometric-inner {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(244, 63, 94, 0.85);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.45);
}

.hero__title--geometric {
  margin: 0 0 var(--space-lg);
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  /* ≥1.12：为 p/y/g 等 descenders 留高；1.05 + background-clip:text 易裁切字尾 */
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding-block: 0.06em 0.14em;
  overflow: visible;
}

.hero__title-line {
  display: block;
  overflow: visible;
  /* 渐变字再留一点行盒空间，避免 WebKit 裁切下伸部 */
  padding-block: 0.02em 0.08em;
}

.hero__title-line--1 {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title-line--2 {
  background: linear-gradient(90deg, #a5b4fc 0%, #f8fafc 50%, #fda4af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead--geometric {
  margin: 0 auto var(--space-xl);
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.02em;
}

.hero__search--geometric {
  max-width: 30rem;
}

.hero__search--geometric input[type="search"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero__search--geometric input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.hero__search--geometric button {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.hero__search--geometric button:hover,
.hero__search--geometric button:focus-visible {
  filter: brightness(1.06);
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, #030303 0%, transparent 32%, rgba(3, 3, 3, 0.55) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none !important;
  }
}

/* ----- Landing: below-hero dark section ----- */
body.is-landing {
  background: var(--cp-landing-page-bg);
  color: rgba(255, 255, 255, 0.92);
}

body.is-landing .home-below-hero {
  position: relative;
  z-index: 0;
  width: 100%;
  margin-inline: 0;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.is-landing .home-below-hero .container {
  background: transparent;
}

body.is-landing .home-below-hero > * {
  position: relative;
  z-index: 1;
}

body.is-landing .section-head__title {
  color: #f8fafc;
}

body.is-landing .section-head__desc {
  color: rgba(255, 255, 255, 0.48);
}

body.is-landing .home-categories,
body.is-landing .home-featured {
  margin-bottom: var(--space-2xl);
}

body.is-landing .category-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.is-landing .category-card__title {
  color: #f8fafc;
}

body.is-landing .category-card__text {
  color: rgba(255, 255, 255, 0.55);
}

body.is-landing .category-card__link {
  color: #a5b4fc;
}

body.is-landing .category-card__link:hover {
  color: #c7d2fe;
}

body.is-landing .post-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.is-landing .post-card__title a {
  color: #f8fafc;
}

body.is-landing .post-card__title a:hover {
  color: #a5b4fc;
}

body.is-landing .post-card__excerpt {
  color: rgba(255, 255, 255, 0.52);
}

body.is-landing .post-card .btn--primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

body.is-landing .post-card .btn--primary:hover,
body.is-landing .post-card .btn--primary:focus-visible {
  filter: brightness(1.08);
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

body.is-landing .home-categories > p,
body.is-landing .home-featured > p,
body.is-landing .home-featured li > p {
  color: rgba(255, 255, 255, 0.55);
}

body.is-landing .site-footer {
  margin-top: 0;
  background: #060607;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.is-landing .site-footer__title {
  color: #f1f5f9;
}

body.is-landing .site-footer__text,
body.is-landing .site-footer__copy {
  color: rgba(255, 255, 255, 0.5);
}

body.is-landing .site-footer__links a {
  color: #a5b4fc;
}

body.is-landing .site-footer__links a:hover {
  color: #c7d2fe;
}

body.is-landing .site-footer__copy {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.is-landing .navigation.pagination a,
body.is-landing .navigation.pagination span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

body.is-landing .navigation.pagination a:hover,
body.is-landing .navigation.pagination a:focus-visible {
  border-color: rgba(165, 180, 252, 0.6);
  color: #e0e7ff;
}

body.is-landing .navigation.pagination .current {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: transparent;
  color: #fff;
}

body.is-landing .home-below-hero .page-header__title {
  color: #f8fafc;
}

body.is-landing .home-below-hero .page-header__crumb {
  color: rgba(255, 255, 255, 0.45);
}

body.is-landing .home-below-hero .page-header__crumb a {
  color: #a5b4fc;
}

body.is-landing .home-below-hero .page-header__crumb a:hover {
  color: #c7d2fe;
}

/* ----- Section headings ----- */
.section-head {
  margin-bottom: var(--space-lg);
}

.section-head__title {
  margin: 0 0 var(--space-xs);
  font-size: 1.5rem;
  line-height: 1.3;
}

.section-head__desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ----- Category card grid ----- */
.category-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-2xl);
}

@media (min-width: 48rem) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.category-card__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.125rem;
}

.category-card__text {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.category-card__link {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.category-card__link:hover {
  text-decoration: underline;
}

/* ----- Post cards (home / archives) ----- */
.post-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

@media (min-width: 40rem) {
  .post-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.post-card__body {
  flex: 1;
  min-width: 0;
}

.post-card__title {
  margin: 0 0 var(--space-xs);
  font-size: 1.125rem;
}

.post-card__title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-card__excerpt {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ----- Category archive header ----- */
.page-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-header__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-header__crumb {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.page-header__crumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.page-header__crumb a:hover {
  text-decoration: underline;
}

/* ----- Static / legal pages (Privacy, Terms, About, Contact, Disclaimer) ----- */
.static-page-main {
  padding-block: var(--space-xl);
}

.static-page-container {
  max-width: 46rem;
  margin-inline: auto;
}

.static-page {
  margin: 0;
}

.static-page__header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.static-page__crumb {
  margin: 0 0 var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.static-page__crumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.static-page__crumb a:hover {
  text-decoration: underline;
}

.static-page__crumb-sep {
  margin: 0 0.25rem;
  opacity: 0.6;
}

.static-page__crumb-current {
  color: var(--color-text-muted);
}

.static-page__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
}

.static-page__updated {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.static-page__notice {
  margin: 0 0 var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.static-page__notice--success {
  background: rgba(24, 128, 56, 0.08);
  border-color: rgba(24, 128, 56, 0.35);
  color: #166534;
}

.static-page__body {
  margin-top: 0;
}

.static-page__body h2 {
  margin: var(--space-2xl) 0 var(--space-md);
  font-size: 1.25rem;
  line-height: 1.35;
  scroll-margin-top: 5rem;
}

.static-page__body h2:first-child {
  margin-top: 0;
}

.static-page__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
}

.contact-form-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.contact-form-section__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.2rem;
}

.contact-form-section__hint {
  margin: 0 0 var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-form-section__alt {
  margin: var(--space-lg) 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-form {
  display: grid;
  gap: var(--space-md);
  max-width: 32rem;
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__field {
  margin: 0;
}

.contact-form__label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form__label .required {
  color: #c5221f;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  max-width: 100%;
  padding: var(--space-sm) var(--space-md);
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  box-sizing: border-box;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form__input:focus-visible,
.contact-form__textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.contact-form__submit-wrap {
  margin: var(--space-sm) 0 0;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  cursor: pointer;
}

.contact-form__submit:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.contact-form__submit:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ----- Single post ----- */
.single-layout {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 56rem) {
  .single-layout {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }
}

/* WP: Article body — single.php the_post() */
.article-main {
  min-width: 0;
}

.article-main h1,
.article-main .entry-title--post {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
}

.entry-meta--visible {
  margin: 0 0 var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.entry-meta--visible .entry-meta__sep {
  margin: 0 0.35rem;
}

.article-ymyl {
  margin: 0 0 var(--space-xl);
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 1px solid #fde047;
  background: #fefce8;
  color: #422006;
}

.article-ymyl__title {
  margin: 0 0 var(--space-sm);
}

.article-ymyl p {
  margin: 0 0 var(--space-sm);
}

.article-ymyl p:last-child {
  margin-bottom: 0;
}

.article-review-note {
  margin: var(--space-xl) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-subtle);
  font-size: 0.95rem;
  color: var(--color-text);
}

.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-subtle);
}

.author-box__avatar img,
.author-box__avatar .career-path-avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.author-archive-card__avatar img,
.author-archive-card__avatar .career-path-avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.author-box__kicker {
  margin: 0 0 var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.author-box__title {
  margin: 0 0 var(--space-xs);
  font-size: 1.2rem;
}

.author-box__role {
  margin: 0 0 var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.author-box__bio {
  margin: 0 0 var(--space-md);
  font-size: 0.95rem;
  line-height: 1.6;
}

.author-box__links {
  margin: 0;
  font-size: 0.9rem;
}

.author-box__link {
  color: var(--color-primary);
  text-decoration: none;
}

.author-box__link:hover {
  text-decoration: underline;
}

.author-box__sep {
  margin: 0 0.25rem;
  color: var(--color-text-muted);
}

@media (max-width: 36rem) {
  .author-box {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .author-box__body {
    text-align: center;
  }
}

.article-body .article-asset-infographic figcaption,
.entry-content .article-asset-infographic figcaption {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* Author archive */
.author-archive-header {
  margin-bottom: var(--space-2xl);
}

.author-archive-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-subtle);
}

.author-archive-card__name {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.author-archive-card__role {
  margin: 0 0 var(--space-xs);
  font-weight: 600;
  color: var(--color-primary);
}

.author-archive-card__alumni {
  margin: 0 0 var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.author-archive-card__bio {
  margin: 0 0 var(--space-md);
  line-height: 1.65;
}

.author-archive-card__social a {
  color: var(--color-primary);
  text-decoration: none;
}

.author-archive-card__social a:hover {
  text-decoration: underline;
}

@media (max-width: 40rem) {
  .author-archive-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-archive-card__avatar {
    justify-self: center;
  }
}

.article-intro {
  margin: 0 0 var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-bg-subtle);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text);
}

/* Table of contents */
.toc {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.toc__title {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.toc__toggle {
  display: none;
  padding: var(--space-xs) var(--space-sm);
  font: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  color: var(--color-primary);
}

.toc__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.toc__list {
  margin: var(--space-md) 0 0;
  padding-left: 1.25rem;
}

.toc__list a {
  color: var(--color-primary);
  text-decoration: none;
}

.toc__list a:hover {
  text-decoration: underline;
}

@media (max-width: 47.99rem) {
  .toc__toggle {
    display: inline-block;
  }

  .toc__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .toc.is-expanded .toc__panel {
    max-height: 24rem;
  }

  .toc.is-expanded .toc__toggle {
    font-weight: 600;
  }
}

@media (min-width: 48rem) {
  .toc__panel {
    max-height: none !important;
    overflow: visible !important;
  }
}

.article-body h2 {
  margin: var(--space-2xl) 0 var(--space-md);
  font-size: 1.35rem;
  line-height: 1.3;
  scroll-margin-top: 5rem;
}

.article-body h2:first-of-type {
  margin-top: 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.35rem;
}

.article-body p {
  margin: 0 0 var(--space-md);
}

/* Rank Math 参数参考块（生成器注入，与「文章自动发布_整合版」一致用途） */
.rankmath-params {
  margin: 0 0 var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.55;
  color: #713f12;
}

.rankmath-params__label {
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

.rankmath-params__row {
  margin: 0.35rem 0;
}

.rankmath-params__row strong {
  font-weight: 600;
}

/* In-article figures (LLM .article-media): cap width so photos are not full-column giants */
.article-body .article-media,
.entry-content .article-media {
  margin: var(--space-lg) auto;
  max-width: min(100%, 42rem); /* ~672px at 16px root; mobile stays 100% */
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}

.article-body .article-media img,
.entry-content .article-media img,
.article-body .article-media iframe,
.entry-content .article-media iframe {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.article-body .article-media iframe,
.entry-content .article-media iframe {
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

/* Step list */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: var(--space-md);
  min-height: 1.5rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Time callout */
.time-block {
  padding: var(--space-lg);
  background: var(--color-bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* Data tables */
.data-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-md);
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  padding: var(--space-xs);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  border: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
}

.data-table th {
  background: var(--color-bg-subtle);
  font-weight: 600;
}

/* LLM tables without .data-table — still get readable borders in article body */
.article-body table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.article-body table th,
.article-body table td,
.entry-content table th,
.entry-content table td {
  border: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
}

.article-body table th,
.entry-content table th {
  background: var(--color-bg-subtle);
  font-weight: 600;
}

.article-body table tr:nth-child(even) td,
.entry-content table tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}

/* Pros / Cons */
.procon {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .procon {
    grid-template-columns: 1fr 1fr;
  }
}

.procon__box {
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.procon__box--pro {
  border-top: 3px solid #188038;
}

.procon__box--con {
  border-top: 3px solid #c5221f;
}

.procon__heading {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
}

/* FAQ */
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-md);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item__q {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 600;
}

.faq-item__a {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Single sidebar */
.single-aside {
  position: sticky;
  top: 4.5rem;
}

.aside-block {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.aside-block__title {
  margin: 0 0 var(--space-sm);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.aside-block p {
  margin: 0;
}

/* Related articles — sidebar column (single-aside) */
.related-careers--sidebar {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.related-careers--sidebar .related-careers__title {
  margin: 0 0 var(--space-md);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.related-grid.related-grid--sidebar {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-careers--sidebar .related-card {
  font-size: 0.875rem;
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  line-height: 1.35;
}

/* Related careers */
.related-careers {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.related-careers__title {
  margin: 0 0 var(--space-lg);
  font-size: 1.25rem;
}

.related-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 40rem) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 56rem) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-card {
  display: block;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
}

.related-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* People also search */
.pas {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.pas__title {
  margin: 0 0 var(--space-md);
  font-size: 1rem;
}

.pas__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}

.pas__list a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.95rem;
}

.pas__list a:hover {
  text-decoration: underline;
}

.pas--qa .pas-qa-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.pas-qa-item {
  margin: 0;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.pas-qa-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pas-qa-item__q {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
}

.pas-qa-item__q a {
  color: var(--color-primary);
  text-decoration: none;
}

.pas-qa-item__q a:hover {
  text-decoration: underline;
}

.pas-qa-item__a {
  margin: 0;
  font-size: 0.95rem;
  line-height: var(--line-height);
  color: var(--color-text-muted);
}

.pas-qa-item__a a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pas-qa-item__a a:hover {
  color: var(--color-primary-dark);
}

/* ----- Footer ----- */
.site-footer {
  margin-top: var(--space-2xl);
  padding-block: var(--space-xl);
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-lg);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__title {
  margin: 0 0 var(--space-sm);
  font-weight: 700;
  font-size: 0.9rem;
}

.site-footer__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li {
  margin-bottom: var(--space-xs);
}

.site-footer__links a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__copy {
  margin: 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ----- WordPress / theme extras ----- */
.site-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header__brand .custom-logo-link img {
  display: block;
  max-height: 2.5rem;
  width: auto;
  height: auto;
}

.navigation.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-xl) 0;
  padding: 0;
  list-style: none;
}

.navigation.pagination a,
.navigation.pagination span {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
}

.navigation.pagination a:hover,
.navigation.pagination a:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.navigation.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.faq-section-title {
  margin: var(--space-2xl) 0 var(--space-md);
  font-size: 1.35rem;
  line-height: 1.3;
}

h3.faq-item__q {
  font-size: 1rem;
  font-weight: 600;
}

/* ----- Category hub (B+C: parent + child sections) ----- */
.category-hub .hub-header {
  margin-bottom: var(--space-xl);
}

/* Category hero banner */
.hub-hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: var(--space-lg);
}
.hub-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hub-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.2) 0%, rgba(10,10,15,0.6) 100%);
  pointer-events: none;
}
@media (max-width: 40rem) {
  .hub-hero {
    height: 180px;
  }
}

.hub-breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

.hub-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.hub-breadcrumb a:hover {
  text-decoration: underline;
}

.hub-breadcrumb__sep {
  margin: 0 var(--space-sm);
  opacity: 0.5;
}

.hub-breadcrumb__current {
  color: var(--color-text-muted);
}

.hub-intro {
  margin-top: var(--space-md);
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.hub-intro p {
  margin: 0 0 var(--space-sm);
}

.hub-section-label {
  margin: 0 0 var(--space-sm);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.hub-pillar {
  margin-bottom: var(--space-xl);
}

.hub-pillar__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.06), rgba(26, 115, 232, 0.02));
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-pillar__card:hover,
.hub-pillar__card:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.12);
  color: var(--color-primary);
}

.hub-pillar__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.hub-pillar__text {
  flex: 1 1 12rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.hub-pillar__cta {
  font-weight: 600;
  font-size: 0.95rem;
}

.hub-section {
  margin-bottom: var(--space-2xl);
}

.hub-section__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.25rem;
  line-height: 1.3;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  min-width: min(100%, 12rem);
}

.hub-section__desc {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 48rem;
}

.hub-section__empty,
.hub-empty {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.hub-link-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm) var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .hub-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .hub-link-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-link {
  display: block;
  padding: var(--space-sm) 0;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

.hub-link:hover,
.hub-link:focus-visible {
  text-decoration: underline;
  border-bottom-color: transparent;
}

/* ----- Site-wide dark shell (posts, categories, archives, pages) ----- */
body.site-dark {
  background: #0c0c0f;
  color: rgba(255, 255, 255, 0.88);
}

/* 首页：与主内容区同一变量底色（已去掉径向光晕，避免左右与中间色相不一致） */
body.site-dark.is-landing {
  background: var(--cp-landing-page-bg);
  min-height: 100vh;
}

body.site-dark:not(.is-landing) .site-main {
  padding-block: var(--space-xl);
}

body.site-dark .site-header {
  background: rgba(3, 3, 3, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.site-dark .site-logo {
  color: #fff;
}

body.site-dark .site-logo__mark {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
}

body.site-dark .site-nav__list a {
  color: rgba(255, 255, 255, 0.88);
}

body.site-dark .site-nav__list a:hover,
body.site-dark .site-nav__list a:focus-visible {
  color: #fff;
}

body.site-dark .nav-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.site-dark .nav-toggle__bar {
  background: #fff;
}

@media (max-width: 47.99rem) {
  body.site-dark .site-nav {
    background: rgba(10, 10, 10, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

body.site-dark .page-header__crumb {
  color: rgba(255, 255, 255, 0.5);
}

body.site-dark .page-header__crumb a {
  color: #a5b4fc;
}

body.site-dark .page-header__crumb a:hover {
  color: #c7d2fe;
}

body.site-dark .static-page__header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.site-dark .static-page__title {
  color: #f1f5f9;
}

body.site-dark .static-page__updated,
body.site-dark .static-page__crumb {
  color: rgba(255, 255, 255, 0.55);
}

body.site-dark .static-page__crumb a {
  color: #a5b4fc;
}

body.site-dark .static-page__crumb a:hover {
  color: #c7d2fe;
}

body.site-dark .static-page__body h2 {
  color: #f1f5f9;
}

body.site-dark .static-page__body p,
body.site-dark .static-page__body li {
  color: rgba(255, 255, 255, 0.82);
}

body.site-dark .static-page__notice--success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

body.site-dark .contact-form-section {
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.site-dark .contact-form__input,
body.site-dark .contact-form__textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
}

body.site-dark .contact-form-section__hint,
body.site-dark .contact-form-section__alt {
  color: rgba(255, 255, 255, 0.55);
}

body.site-dark .article-main > article > header .entry-title--post,
body.site-dark .article-main h1,
body.site-dark .entry-title {
  color: #f8fafc;
}

body.site-dark .entry-thumbnail img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.site-dark .entry-meta--visible {
  color: rgba(255, 255, 255, 0.55);
}

body.site-dark .article-ymyl {
  background: rgba(254, 252, 232, 0.08);
  border-color: rgba(253, 224, 71, 0.45);
  color: #fef9c3;
}

body.site-dark .article-ymyl p {
  color: rgba(254, 249, 195, 0.92);
}

body.site-dark .article-review-note {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: #a5b4fc;
  color: rgba(255, 255, 255, 0.88);
}

body.site-dark .author-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

body.site-dark .author-box__bio {
  color: rgba(255, 255, 255, 0.78);
}

body.site-dark .author-box__kicker {
  color: rgba(255, 255, 255, 0.45);
}

body.site-dark .author-box__role {
  color: #a5b4fc;
}

body.site-dark .author-box__link {
  color: #a5b4fc;
}

body.site-dark .author-archive-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

body.site-dark .author-archive-card__bio,
body.site-dark .author-archive-card__alumni {
  color: rgba(255, 255, 255, 0.75);
}

body.site-dark .author-archive-card__role,
body.site-dark .author-archive-card__social a {
  color: #a5b4fc;
}

body.site-dark .article-intro,
body.site-dark .featured-snippet {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: #6366f1;
  color: rgba(255, 255, 255, 0.85);
}

body.site-dark .toc {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

body.site-dark .toc__title {
  color: #f1f5f9;
}

body.site-dark .toc__toggle {
  border-color: rgba(255, 255, 255, 0.2);
  color: #a5b4fc;
  background: rgba(255, 255, 255, 0.06);
}

body.site-dark .toc__toggle:hover,
body.site-dark .toc__toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #c7d2fe;
}

body.site-dark .toc__list a {
  color: #a5b4fc;
}

body.site-dark .toc__list a:hover {
  color: #c7d2fe;
}

body.site-dark .key-takeaways .toc__list,
body.site-dark .key-takeaways .toc__list li {
  color: rgba(255, 255, 255, 0.78);
}

body.site-dark .article-body,
body.site-dark .entry-content {
  color: rgba(255, 255, 255, 0.78);
}

body.site-dark .article-body h2,
body.site-dark .article-body h3,
body.site-dark .entry-content h2,
body.site-dark .entry-content h3 {
  color: #f1f5f9;
}

body.site-dark .article-body a,
body.site-dark .entry-content a {
  color: #a5b4fc;
}

body.site-dark .article-body a:hover,
body.site-dark .entry-content a:hover {
  color: #c7d2fe;
}

body.site-dark .article-body blockquote,
body.site-dark .entry-content blockquote {
  border-left-color: #6366f1;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
}

body.site-dark .article-body hr,
body.site-dark .entry-content hr {
  border-color: rgba(255, 255, 255, 0.12);
}

body.site-dark .article-body figcaption,
body.site-dark .entry-content figcaption,
body.site-dark .wp-block-image figcaption {
  color: rgba(255, 255, 255, 0.5);
}

body.site-dark .article-body .article-media,
body.site-dark .entry-content .article-media {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

body.site-dark .rankmath-params {
  background: rgba(254, 252, 232, 0.12);
  border-color: rgba(253, 224, 71, 0.35);
  color: rgba(254, 243, 199, 0.95);
}

body.site-dark .rankmath-params__row strong {
  color: #fde68a;
}

body.site-dark .article-body pre,
body.site-dark .entry-content pre,
body.site-dark .article-body code,
body.site-dark .entry-content code {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

body.site-dark .time-block {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

body.site-dark .data-table-wrap {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 4px 24px rgba(0, 0, 0, 0.35);
}

body.site-dark .data-table th {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

body.site-dark .data-table td,
body.site-dark .data-table th {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
}

body.site-dark .data-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

body.site-dark .article-body table th,
body.site-dark .entry-content table th {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

body.site-dark .article-body table td,
body.site-dark .article-body table th,
body.site-dark .entry-content table td,
body.site-dark .entry-content table th {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
}

body.site-dark .article-body table tr:nth-child(even) td,
body.site-dark .entry-content table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04);
}

body.site-dark .procon__box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

body.site-dark .procon__heading {
  color: #f1f5f9;
}

body.site-dark .procon__box li {
  color: rgba(255, 255, 255, 0.78);
}

body.site-dark .related-careers {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.site-dark .faq-section-title {
  color: #f1f5f9;
}

body.site-dark .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.site-dark .faq-item__q {
  color: #f1f5f9;
}

body.site-dark .faq-item__a {
  color: rgba(255, 255, 255, 0.65);
}

body.site-dark .related-careers__title {
  color: #f1f5f9;
}

body.site-dark .related-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

body.site-dark .related-card:hover,
body.site-dark .related-card:focus-visible {
  color: #a5b4fc;
  border-color: #6366f1;
}

body.site-dark .pas {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.site-dark .pas__title {
  color: #f1f5f9;
}

body.site-dark .pas__list a {
  color: #a5b4fc;
}

body.site-dark .pas__list a:hover {
  color: #c7d2fe;
}

body.site-dark .pas-qa-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.site-dark .pas-qa-item__q {
  color: #f1f5f9;
}

body.site-dark .pas-qa-item__q a {
  color: #a5b4fc;
}

body.site-dark .pas-qa-item__q a:hover {
  color: #c7d2fe;
}

body.site-dark .pas-qa-item__a {
  color: rgba(255, 255, 255, 0.72);
}

body.site-dark .pas-qa-item__a a {
  color: #a5b4fc;
}

body.site-dark .pas-qa-item__a a:hover {
  color: #c7d2fe;
}

body.site-dark .aside-block {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

body.site-dark .aside-block__title {
  color: rgba(255, 255, 255, 0.5);
}

body.site-dark .aside-block a {
  color: #a5b4fc;
}

body.site-dark .aside-block a:hover {
  color: #c7d2fe;
}

body.site-dark .page-links {
  color: rgba(255, 255, 255, 0.65);
}

body.site-dark .page-links a {
  color: #a5b4fc;
}

body.site-dark .site-footer {
  margin-top: 0;
  background: #060607;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.site-dark .site-footer__title {
  color: #f1f5f9;
}

body.site-dark .site-footer__text,
body.site-dark .site-footer__copy {
  color: rgba(255, 255, 255, 0.5);
}

body.site-dark .site-footer__links a {
  color: #a5b4fc;
}

body.site-dark .site-footer__links a:hover {
  color: #c7d2fe;
}

body.site-dark .site-footer__copy {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Category hub, archives, search — surfaces that were still “light” */
body.site-dark .category-hub .page-header__title,
body.site-dark .page-header .page-header__title {
  color: #f8fafc;
}

body.site-dark .hub-breadcrumb {
  color: rgba(255, 255, 255, 0.5);
}

body.site-dark .hub-breadcrumb a {
  color: #a5b4fc;
}

body.site-dark .hub-breadcrumb a:hover {
  color: #c7d2fe;
}

body.site-dark .hub-intro,
body.site-dark .hub-section__desc,
body.site-dark .hub-section__empty,
body.site-dark .hub-empty {
  color: rgba(255, 255, 255, 0.55);
}

body.site-dark .hub-section-label {
  color: rgba(255, 255, 255, 0.45);
}

body.site-dark .hub-section__title {
  color: #f1f5f9;
  border-bottom-color: #6366f1;
}

body.site-dark .hub-pillar__card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  box-shadow: none;
}

body.site-dark .hub-pillar__card:hover,
body.site-dark .hub-pillar__card:focus-visible {
  border-color: #6366f1;
  color: #a5b4fc;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

body.site-dark .hub-link {
  color: #a5b4fc;
}

body.site-dark .hub-link:hover,
body.site-dark .hub-link:focus-visible {
  color: #c7d2fe;
}

body.site-dark:not(.is-landing) .post-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.site-dark:not(.is-landing) .post-card__title a {
  color: #f8fafc;
}

body.site-dark:not(.is-landing) .post-card__title a:hover {
  color: #a5b4fc;
}

body.site-dark:not(.is-landing) .post-card__excerpt {
  color: rgba(255, 255, 255, 0.52);
}

body.site-dark:not(.is-landing) .post-card .btn--primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

body.site-dark:not(.is-landing) .post-card .btn--primary:hover,
body.site-dark:not(.is-landing) .post-card .btn--primary:focus-visible {
  filter: brightness(1.08);
}

body.site-dark .navigation.pagination a,
body.site-dark .navigation.pagination span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

body.site-dark .navigation.pagination a:hover,
body.site-dark .navigation.pagination a:focus-visible {
  border-color: #a5b4fc;
  color: #c7d2fe;
}

body.site-dark .navigation.pagination .current {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: transparent;
  color: #fff;
}

body.site-dark:not(.is-landing) .container > p {
  color: rgba(255, 255, 255, 0.6);
}

body.site-dark .page-header .section-head__desc {
  color: rgba(255, 255, 255, 0.55);
}

body.site-dark .hero__search input[type="search"],
body.site-dark .hero__search input[type="text"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
}

body.site-dark .hero__search button {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: transparent;
  color: #fff;
}
