:root {
  --primary: #c56b45;
  --primary-dark: #a85532;
  --primary-light: #f3e4d9;
  --accent: #c56b45;
  --text: #2c2825;
  --text-light: #6f6760;
  --text-lighter: #9a928a;
  --bg: #f5f1eb;
  --bg-card: #faf7f3;
  --bg-elevated: #fffcfa;
  --border: #e8dfd4;
  --border-dark: #d4c9bc;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(44, 40, 37, 0.05);
  --shadow: 0 12px 32px -12px rgba(44, 40, 37, 0.12);
  --shadow-md: 0 20px 48px -16px rgba(44, 40, 37, 0.14);
  --transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-soft: cubic-bezier(0.45, 0, 0.2, 1);
  --search-expand: 0.42s var(--ease-out-smooth);
  --search-collapse: 0.32s var(--ease-in-out-soft);
  --max-width: 1320px;
  --header-height: 104px;
  --header-control-height: 44px;
  --header-gutter: clamp(22px, 4.5vw, 52px);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

@media (min-width: 1280px) {
  :root {
    --max-width: 1440px;
  }
}

@media (min-width: 1680px) {
  :root {
    --max-width: 1560px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

html {
  scroll-behavior: smooth;
}

/* —— 前台页面切换与入场动效（尊重 prefers-reduced-motion）—— */
@keyframes page-motion-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-motion-in {
  animation: page-motion-in 0.4s var(--ease-out-smooth, ease) both;
}

@keyframes post-list-item-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-motion-in .posts-list .post-list-item {
  animation: post-list-item-in 0.38s var(--ease-out-smooth, ease) both;
}

.page-motion-in .posts-list .post-list-item:nth-child(1) {
  animation-delay: 0.04s;
}
.page-motion-in .posts-list .post-list-item:nth-child(2) {
  animation-delay: 0.07s;
}
.page-motion-in .posts-list .post-list-item:nth-child(3) {
  animation-delay: 0.1s;
}
.page-motion-in .posts-list .post-list-item:nth-child(4) {
  animation-delay: 0.13s;
}
.page-motion-in .posts-list .post-list-item:nth-child(5) {
  animation-delay: 0.16s;
}
.page-motion-in .posts-list .post-list-item:nth-child(6) {
  animation-delay: 0.19s;
}
.page-motion-in .posts-list .post-list-item:nth-child(n + 7) {
  animation-delay: 0.22s;
}

.nav-route-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: rgba(232, 223, 212, 0.85);
  transition: opacity 0.18s ease;
}

.nav-route-progress.is-visible {
  opacity: 1;
}

.nav-route-progress::after {
  content: "";
  display: block;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  animation: nav-route-progress-slide 0.85s ease-in-out infinite;
}

@keyframes nav-route-progress-slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(320%);
  }
}

.route-navigating #main-content {
  pointer-events: none;
  user-select: none;
}

.route-navigating .content-left {
  opacity: 0.72;
  transition: opacity 0.18s ease;
}

.route-navigating .content-left .page-motion-in {
  pointer-events: none;
}

@keyframes nav-route-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes nav-route-panel-in {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(16px) rotate(-1.5deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.03) translateY(-2px) rotate(0.6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

@keyframes nav-route-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nav-route-core-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(197, 107, 69, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(197, 107, 69, 0);
  }
}

@keyframes nav-route-dot-bounce {
  0%,
  70%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.45;
  }
  35% {
    transform: translateY(-11px) scale(1.12);
    opacity: 1;
  }
}

@keyframes nav-route-ellipsis-wave {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.nav-route-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  background: rgba(250, 247, 242, 0.35);
  backdrop-filter: blur(3px);
  animation: nav-route-overlay-in 0.26s ease both;
}

.nav-route-overlay-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px 32px 22px;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid rgba(232, 223, 212, 0.95);
  background: var(--bg-elevated, #fff);
  box-shadow: 0 12px 40px rgba(44, 36, 28, 0.08);
  animation: nav-route-panel-in 0.52s var(--ease-out-smooth) both;
  overflow: hidden;
}

.nav-route-overlay-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(
    from 120deg,
    transparent 0deg,
    rgba(197, 107, 69, 0.12) 80deg,
    transparent 160deg
  );
  animation: nav-route-orbit-spin 2.8s linear infinite;
  pointer-events: none;
}

.nav-route-loader {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.nav-route-orbit {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  animation: nav-route-orbit-spin 1.35s linear infinite;
}

.nav-route-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(197, 107, 69, 0.35);
}

.nav-route-orbit-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  animation: nav-route-core-pulse 1.1s ease-in-out infinite;
}

.nav-route-orbit-satellite {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(168, 85, 50, 0.25);
}

.nav-route-bounce-dots {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  height: 22px;
}

.nav-route-bounce-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: nav-route-dot-bounce 0.65s ease-in-out infinite;
}

.nav-route-bounce-dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.nav-route-bounce-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

.nav-route-overlay-text {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.nav-route-ellipsis {
  display: inline-flex;
  margin-left: 1px;
}

.nav-route-ellipsis span {
  display: inline-block;
  animation: nav-route-ellipsis-wave 1.05s ease-in-out infinite;
}

.nav-route-ellipsis span:nth-child(2) {
  animation-delay: 0.15s;
}

.nav-route-ellipsis span:nth-child(3) {
  animation-delay: 0.3s;
}

.page-route-fallback {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(42vh, 320px);
  padding: 48px 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-motion-in,
  .page-motion-in .posts-list .post-list-item {
    animation: none !important;
  }

  .nav-route-progress::after {
    animation: none;
    width: 100%;
  }

  .route-navigating .content-left {
    opacity: 0.72;
    transition: none;
  }

  .nav-route-overlay {
    backdrop-filter: none;
    animation: none;
  }

  .nav-route-overlay-panel,
  .nav-route-overlay-panel::before,
  .nav-route-orbit,
  .nav-route-orbit-core,
  .nav-route-bounce-dots span,
  .nav-route-ellipsis span {
    animation: none !important;
  }

  .nav-pill-hover,
  .nav-pill-indicator,
  .nav-pill,
  .mobile-menu-link,
  .mobile-menu-link::before {
    transition: none !important;
  }

}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.section-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 4px;
}

/* Page title for list/tag pages */
.section-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.list-page-lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-light);
  max-width: 28rem;
  text-wrap: pretty;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:active {
  transform: scale(0.98);
}

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

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

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 40px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  background: rgba(245, 241, 235, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header--home {
  background: linear-gradient(to bottom, var(--bg) 55%, transparent 100%);
  border-bottom: none;
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px var(--header-gutter) 10px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner-cluster {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(0px, 2vw, 20px);
  box-sizing: border-box;
}

.header-inner-controls {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.header-inner-controls:has(.header-search.is-open) {
  gap: 24px;
}

.site-header--home .header-inner {
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  margin-inline-end: 36px;
  padding-bottom: 2px;
  color: var(--text);
  transition: color 0.24s ease;
}

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

.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-wordmark-tech {
  position: relative;
  font-size: clamp(3.15rem, 3.65vw, 4rem);
  font-weight: 700;
}

.logo-wordmark-tech::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(197, 107, 69, 0.35));
  transform: scaleX(0.92);
  transform-origin: left center;
}

.logo-wordmark-guide {
  font-size: clamp(2.55rem, 3vw, 3.25rem);
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

.nav-pills {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: var(--header-control-height);
  padding: 4px;
  box-sizing: border-box;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.nav-pill-hover {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(
    165deg,
    rgba(255, 252, 250, 0.98) 0%,
    rgba(243, 228, 217, 0.92) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(197, 107, 69, 0.22),
    0 6px 16px -12px rgba(168, 85, 50, 0.35);
  transition:
    transform 0.34s var(--ease-out-smooth),
    width 0.34s var(--ease-out-smooth),
    opacity 0.2s ease;
}

.nav-pill-hover.is-visible {
  opacity: 1;
}

.nav-pill-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: var(--radius-pill);
  background: linear-gradient(165deg, #d07852 0%, var(--primary) 48%, var(--primary-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 5px 16px -6px rgba(168, 85, 50, 0.55);
  pointer-events: none;
  z-index: 1;
  transition:
    transform 0.4s var(--ease-out-smooth),
    width 0.4s var(--ease-out-smooth),
    opacity 0.22s ease,
    filter 0.24s ease,
    box-shadow 0.24s ease;
}

.nav-pill-indicator.is-instant {
  transition: none;
}

.nav-pill-indicator.is-hidden {
  opacity: 0;
}

.nav-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  padding: 9px 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-light);
  text-align: center;
  border-radius: var(--radius-pill);
  background: transparent;
  transition: color 0.24s ease;
}

.nav-pill:hover:not(.active) {
  color: var(--primary-dark);
}

.nav-pill:active:not(.active) {
  color: var(--primary);
}

.nav-pill:focus-visible {
  outline: 2px solid rgba(197, 107, 69, 0.45);
  outline-offset: 2px;
}

.nav-pill.active {
  color: #fff;
  background: transparent;
}

.nav-pills:has(.nav-pill.active:hover) .nav-pill-indicator,
.nav-pills:has(.nav-pill.active:focus-visible) .nav-pill-indicator {
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 22px -8px rgba(168, 85, 50, 0.62);
}

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

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--bg-elevated);
  transition:
    border-color 0.28s ease,
    box-shadow 0.32s var(--ease-out-smooth);
}

/* 收起：与顶栏胶囊同系的圆形图标按钮 */
.header-search.is-collapsible {
  position: relative;
  flex-shrink: 0;
  height: var(--header-control-height);
  max-width: var(--header-control-height);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition:
    max-width var(--search-collapse),
    border-color 0.28s ease,
    box-shadow 0.32s var(--ease-out-smooth);
}

.header-search.is-collapsible .header-search-toggle,
.header-search.is-collapsible .header-search-submit {
  flex: 0 0 var(--header-control-height);
  width: var(--header-control-height);
  height: var(--header-control-height);
  font-size: 0.9rem;
}

.header-search.is-collapsible:not(.is-open):hover {
  border-color: rgba(197, 107, 69, 0.35);
  box-shadow: 0 4px 14px -4px rgba(197, 107, 69, 0.35);
}

.header-search.is-collapsible.is-open {
  max-width: min(288px, 36vw);
  transition:
    max-width var(--search-expand),
    border-color 0.28s ease,
    box-shadow 0.32s var(--ease-out-smooth);
}

.header-search:not(.is-collapsible) {
  width: 100%;
}

.header-search.is-open {
  border-color: rgba(197, 107, 69, 0.45);
  box-shadow: 0 0 0 3px rgba(197, 107, 69, 0.12);
}

.header-search.is-open:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 107, 69, 0.18);
}

.header-search.is-invalid {
  border-color: rgba(168, 85, 50, 0.65);
  box-shadow: 0 0 0 3px rgba(197, 107, 69, 0.14);
}

.header-search.is-invalid:focus-within {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(197, 107, 69, 0.2);
}

.header-search-error {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  margin: 0;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary-dark);
  white-space: nowrap;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid rgba(197, 107, 69, 0.25);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.mobile-menu-search .header-search-error {
  position: static;
  margin-top: 6px;
  white-space: normal;
}

.header-search-field {
  display: grid;
  grid-template-columns: 0fr;
  flex: 1 1 auto;
  min-width: 0;
  transition: grid-template-columns var(--search-collapse);
}

.header-search.is-collapsible.is-open .header-search-field {
  grid-template-columns: 1fr;
  transition: grid-template-columns var(--search-expand);
}

.header-search:not(.is-collapsible) .header-search-field {
  grid-template-columns: 1fr;
}

.header-search-field-inner {
  overflow: hidden;
  min-width: 0;
}

.header-search-input {
  display: block;
  width: 100%;
  min-width: 11.5rem;
  border: none;
  box-sizing: border-box;
  height: var(--header-control-height);
  padding: 0 4px 0 16px;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text);
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.header-search.is-collapsible:not(.is-open) .header-search-input {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  padding-left: 0;
  padding-right: 0;
  transition:
    opacity 0.14s ease,
    transform 0.22s var(--ease-in-out-soft),
    padding 0.22s var(--ease-in-out-soft);
}

.header-search.is-collapsible.is-open .header-search-input {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  padding: 0 4px 0 16px;
  transition:
    opacity 0.28s ease 0.1s,
    transform 0.38s var(--ease-out-smooth) 0.06s,
    padding 0.32s var(--ease-out-smooth);
}

.header-search-input::placeholder {
  color: var(--text-lighter);
}

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

.header-search-submit,
.header-search-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--header-control-height);
  width: var(--header-control-height);
  height: var(--header-control-height);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition:
    color 0.22s ease,
    box-shadow 0.32s var(--ease-out-smooth),
    transform 0.2s var(--ease-out-smooth);
}

.header-search-submit::before,
.header-search-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--primary);
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 0.22s ease,
    transform 0.34s var(--ease-out-smooth);
  z-index: -1;
}

.header-search-toggle {
  color: var(--text-light);
  font-size: 0.95rem;
}

.header-search-toggle::before {
  background: rgba(243, 228, 217, 0.65);
  opacity: 0;
  transform: scale(0.9);
}

.header-search-toggle:hover {
  color: var(--primary-dark);
}

.header-search-toggle:hover::before {
  opacity: 1;
  transform: scale(1);
}

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

.header-search.is-open .header-search-submit {
  margin: 0 2px 0 0;
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(197, 107, 69, 0.55);
}

.header-search.is-open .header-search-submit::before {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.26s ease 0.08s,
    transform 0.4s var(--ease-out-smooth) 0.05s;
}

.header-search.is-collapsible:not(.is-open) .header-search-submit::before {
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 0.12s ease,
    transform 0.2s var(--ease-in-out-soft);
}

.header-search.is-open .header-search-submit:hover::before {
  background: var(--primary-dark);
}

.header-search.is-open .header-search-submit:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .header-search.is-collapsible,
  .header-search-field,
  .header-search-input,
  .header-search-submit,
  .header-search-toggle,
  .header-search-submit::before,
  .header-search-toggle::before {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

.mobile-menu-search {
  display: none;
  align-items: stretch;
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
}

.mobile-menu-search .header-search-field {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  grid-template-columns: unset;
}

.mobile-menu-search .header-search-field-inner {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.mobile-menu-search .header-search-input,
.mobile-menu-search .mobile-menu-search-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 48px;
  box-sizing: border-box;
  border: none;
  padding: 12px 14px;
  font-size: 1rem;
  background: transparent;
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

.mobile-menu-search .header-search-input:focus,
.mobile-menu-search .mobile-menu-search-input:focus {
  outline: none;
}

.mobile-menu-search .header-search-submit,
.mobile-menu-search .mobile-menu-search-submit {
  flex: 0 0 auto;
  width: auto;
  min-width: 52px;
  height: auto;
  align-self: stretch;
  margin: 0;
  padding: 0 16px;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  box-shadow: none;
}

.mobile-menu-search .header-search-submit::before,
.mobile-menu-search .header-search-toggle::before {
  content: none;
  display: none;
}

.mobile-menu-search:has(.header-search-error) {
  overflow: visible;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  z-index: 100;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100dvh;
  background-color: var(--bg-elevated);
  z-index: 90;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--header-height) 24px 24px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(18px, env(safe-area-inset-right, 0px));
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-close:hover {
  color: var(--primary-dark);
  border-color: rgba(197, 107, 69, 0.35);
  background: var(--primary-light);
}

.mobile-menu-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.mobile-menu-link {
  position: relative;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  padding: 12px 20px 12px 28px;
  width: 100%;
  max-width: 300px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    color 0.24s ease,
    background-color 0.24s ease,
    transform 0.22s var(--ease-out-smooth);
}

.mobile-menu-link::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: translateY(-50%);
  transition: height 0.28s var(--ease-out-smooth);
}

.mobile-menu-link:hover:not(.active) {
  color: var(--primary-dark);
  background: rgba(243, 228, 217, 0.45);
}

.mobile-menu-link:hover::before {
  height: 42%;
}

.mobile-menu-link:active {
  transform: translateX(2px);
}

.mobile-menu-link.active {
  color: var(--primary-dark);
  font-weight: 600;
  background: rgba(243, 228, 217, 0.35);
}

.mobile-menu-link.active::before {
  height: 56%;
}

/* Main Content Layout */
.main-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(340px, 30vw);
  gap: clamp(28px, 3vw, 48px);
  padding: 32px 0 48px;
  align-items: start;
}

.content-left {
  min-width: 0;
  max-width: 100%;
}

.main-home .main-content {
  padding-top: clamp(28px, 4vw, 44px);
}

/* 首页首屏：压缩 masthead / 置顶区纵向占用 */
.main-home .site-masthead {
  margin-bottom: 22px;
  padding: 18px 20px 16px;
}

.main-home .site-masthead-body {
  gap: 16px 22px;
  align-items: center;
}

.main-home .blog-hero-kicker {
  margin-bottom: 6px;
  font-size: 0.8125rem;
}

.main-home .blog-hero-title {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  margin-bottom: 8px;
}

.main-home .blog-hero-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.main-home .hero-cta--primary,
.main-home .hero-cta--soft {
  padding: 9px 16px;
  font-size: 0.875rem;
}

/* 推荐阅读融入 masthead，避免「盒中盒」硬边 */
.main-home .blog-hero-aside {
  padding-left: 20px;
  border-left: 1px solid rgba(197, 107, 69, 0.1);
}

.main-home .blog-hero-pick {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 8px;
}

.main-home .blog-hero-pick--empty {
  padding: 16px 14px;
  border: 1px dashed rgba(212, 201, 188, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 252, 250, 0.4);
}

.main-home .blog-hero-pick-media {
  border-color: rgba(232, 223, 212, 0.7);
  box-shadow: none;
}

.main-home .blog-hero-pick-btn {
  background: rgba(255, 252, 250, 0.55);
  border-color: rgba(232, 223, 212, 0.85);
}

.main-home .blog-hero-pick-progress {
  background: rgba(232, 223, 212, 0.55);
}

/* Home masthead (nav 下方主视觉区) */
.site-masthead {
  margin-bottom: 36px;
  padding: 28px 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(243, 228, 217, 0.65), transparent 50%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.site-masthead-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  align-items: center;
}

.blog-hero-content {
  max-width: 40rem;
}

@media (min-width: 1200px) {
  .blog-hero-content {
    max-width: none;
  }
}

.blog-hero-kicker {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--text);
}

.blog-hero-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 36ch;
  margin-bottom: 22px;
  text-wrap: pretty;
}

.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.hero-cta--primary {
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(197, 107, 69, 0.5);
}

.hero-cta--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.hero-cta--soft {
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.hero-cta--soft:hover {
  border-color: var(--primary-light);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.blog-hero-aside {
  min-width: 0;
}

.blog-hero-photo-hint {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* 推荐阅读：编辑精选面板 */
.blog-hero-pick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.blog-hero-pick--empty {
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  padding: 18px 16px;
}

.blog-hero-pick-empty-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-light);
  text-align: center;
  text-wrap: pretty;
}

.blog-hero-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.blog-hero-pick-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
}

.blog-hero-pick-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-hero-pick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-light);
  font-size: 0.625rem;
  cursor: pointer;
  transition: var(--transition);
}

.blog-hero-pick-btn:hover {
  color: var(--primary-dark);
  border-color: rgba(197, 107, 69, 0.35);
  background: var(--primary-light);
}

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

.blog-hero-pick-counter {
  min-width: 2.5rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-lighter);
}

.blog-hero-pick-counter-sep {
  margin: 0 1px;
  font-weight: 500;
  opacity: 0.65;
}

.blog-hero-pick-stage {
  display: grid;
  min-width: 0;
}

.blog-hero-pick-slide {
  grid-area: 1 / 1;
  margin: 0;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.38s var(--ease-out-smooth),
    visibility 0.38s var(--ease-out-smooth);
}

.blog-hero-pick-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.blog-hero-pick-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: var(--transition);
}

.blog-hero-pick-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.blog-hero-pick-media {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(232, 223, 212, 0.9);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255, 252, 250, 0.5);
}

.blog-hero-pick-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out-smooth);
}

.blog-hero-pick-card:hover .blog-hero-pick-img {
  transform: scale(1.04);
}

.blog-hero-pick-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 2px 0;
}

.blog-hero-pick-date {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-lighter);
}

.blog-hero-pick-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  transition: color 0.2s ease;
}

.blog-hero-pick-card:hover .blog-hero-pick-title {
  color: var(--primary-dark);
}

.blog-hero-pick-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.blog-hero-pick-card:hover .blog-hero-pick-link {
  gap: 8px;
}

.blog-hero-pick-progress {
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
}

.blog-hero-pick-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  transition: width 0.38s var(--ease-out-smooth);
}

@media (max-width: 520px) {
  .blog-hero-pick-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .blog-hero-pick-title {
    -webkit-line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero-pick-slide,
  .blog-hero-pick-progress-fill,
  .blog-hero-pick-img {
    transition-duration: 0.01ms !important;
  }
}

/* Featured Posts */
.featured-posts {
  margin-bottom: 32px;
  width: 100%;
  overflow: hidden;
}

.featured-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.featured-posts-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.featured-posts-container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  padding: 2px 0;
  align-items: stretch;
}

.featured-posts-container::-webkit-scrollbar {
  height: 6px;
}

.featured-posts-container::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}

.featured-posts-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 3px;
}

.featured-post-card {
  width: 100%;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.featured-post-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.featured-post-card-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* 首页：横向 16:9 缩略图 + 文案，纵向占用小 */
.featured-posts--compact .featured-posts-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.featured-posts--compact .featured-post-card {
  border-radius: 10px;
  box-shadow: none;
  background: var(--bg-card);
}

.featured-posts--compact .featured-post-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(197, 107, 69, 0.4);
  background: var(--bg-elevated);
}

.featured-posts--compact .featured-post-card-link {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 7px 10px 7px 7px;
}

.featured-posts--compact .featured-post-image-container {
  flex: 0 0 7.25rem;
  width: 7.25rem;
  height: auto;
  padding-bottom: 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

.featured-posts--compact .featured-post-content {
  padding: 0;
  gap: 3px;
  justify-content: center;
}

.featured-posts--compact .featured-post-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0;
  -webkit-line-clamp: 2;
}

.featured-posts--compact .featured-post-meta {
  margin-bottom: 0;
  font-size: 0.6875rem;
  color: var(--text-lighter);
}

.featured-posts--compact .featured-post-meta-item i {
  display: none;
}

@media (min-width: 901px) {
  .featured-posts--compact .featured-post-image-container {
    flex-basis: 8rem;
    width: 8rem;
  }
}

.featured-post-card--lead .featured-post-image-container {
  padding-bottom: 56.25%;
}

.featured-post-card--lead .featured-post-title {
  font-size: 1.15rem;
}

.featured-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.featured-post-image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 比例 */
  overflow: hidden;
}

.featured-post-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.featured-post-card:hover .featured-post-image {
  transform: scale(1.05);
}

.featured-post-content {
  padding: 14px 16px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.featured-post-category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  align-self: flex-start;
}

.featured-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.featured-post-card:hover .featured-post-title {
  color: var(--primary-dark);
}

.featured-post-meta {
  display: flex;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-bottom: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.featured-post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-post-excerpt {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.875rem;
  flex-grow: 1;
}

.featured-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary-dark);
  transition: var(--transition);
  align-self: flex-start;
  margin-top: auto;
}

.featured-posts--compact .featured-post-card:hover .featured-post-title {
  color: var(--primary-dark);
}

.featured-read-more:hover {
  color: var(--primary);
  gap: 10px;
}

/* Latest Posts Section */
.latest-posts {
  margin-top: 4px;
}

.latest-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(18px, 2.5vw, 22px);
  padding-bottom: clamp(18px, 2.5vw, 22px);
  border-bottom: 1px solid rgba(232, 223, 212, 0.9);
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 28px);
}

.latest-posts-header-main {
  flex: 1 1 12rem;
  min-width: 0;
}

.latest-posts-header-main .section-page-title {
  margin-bottom: 0;
}

.latest-posts-header-main .section-page-title + .list-page-lead,
.latest-posts-header-main .section-page-title + .section-eyebrow {
  margin-top: 10px;
}

.hot-tags {
  flex: 1 1 16rem;
  max-width: 38rem;
  margin-left: auto;
  text-align: right;
}

.hot-tags-eyebrow {
  margin: 0 0 10px;
}

.hot-tags-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.hot-tags-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  line-height: 1.3;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: var(--transition);
}

.hot-tags-chip:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: rgba(197, 107, 69, 0.35);
  transform: translateY(-1px);
}

.hot-tags-chip:active {
  transform: translateY(0) scale(0.98);
}

.hot-tags-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hot-tags-chip--current {
  color: var(--primary-dark);
  font-weight: 600;
  background: var(--primary-light);
  border-color: rgba(197, 107, 69, 0.35);
}

@media (max-width: 720px) {
  .latest-posts-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .latest-posts-header-main,
  .hot-tags {
    flex: 0 0 auto;
    width: 100%;
  }

  .latest-posts-header-main .section-page-title + .list-page-lead {
    margin-top: 8px;
  }

  .hot-tags {
    max-width: none;
    margin-left: 0;
    text-align: left;
    padding-top: 10px;
    border-top: 1px dashed rgba(212, 201, 188, 0.85);
  }

  .hot-tags-eyebrow {
    margin-bottom: 8px;
  }

  .hot-tags-list {
    justify-content: flex-start;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-button {
  padding: 6px 12px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.category-button:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.category-button.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.posts-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.post-list-item {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 24px);
  padding: clamp(18px, 2.5vw, 22px) clamp(18px, 2.5vw, 24px);
  background: transparent;
  border-bottom: 1px solid var(--border);
  transition:
    background-color 0.26s ease,
    border-color 0.26s ease;
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-list-item:hover,
.post-list-item:focus-within {
  background: rgba(243, 228, 217, 0.28);
}

.post-list-image {
  flex-shrink: 0;
  width: min(196px, 34vw);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(232, 223, 212, 0.85);
  background: var(--bg-card);
}

.post-list-image--placeholder {
  pointer-events: none;
}

.post-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s var(--ease-out-smooth);
}

.post-list-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(90% 80% at 20% 20%, rgba(243, 228, 217, 0.9), transparent 55%),
    linear-gradient(145deg, var(--bg-card), rgba(232, 223, 212, 0.55));
}

.post-list-item:hover .post-list-image img,
.post-list-item:focus-within .post-list-image img {
  transform: scale(1.04);
}

.post-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 2px 0;
}

.post-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 8px;
  color: var(--text-lighter);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.post-list-meta time::after {
  content: "·";
  margin-left: 14px;
  color: var(--border-dark);
}

.post-list-meta-views {
  color: var(--text-lighter);
}

.post-list-title {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.45vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-wrap: pretty;
}

.post-list-title a {
  transition: color 0.22s ease;
}

.post-list-title a:hover {
  color: var(--primary-dark);
}

.post-list-excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
  text-wrap: pretty;
}

.post-list-cta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.post-list-cta a {
  color: var(--primary-dark);
  transition:
    color 0.22s ease,
    gap 0.22s ease;
}

.post-list-cta a:hover {
  color: var(--primary);
}

.post-list-item:focus-within .post-list-title a,
.post-list-item:hover .post-list-title a {
  color: var(--primary-dark);
}

.post-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-category.frontend {
  background-color: #dbeafe;
  color: #1e40af;
}

.post-category.backend {
  background-color: #e0e7ff;
  color: #3730a3;
}

.post-category.architecture {
  background-color: #ede9fe;
  color: #5b21b6;
}

.post-category.database {
  background-color: #f0fdf4;
  color: #166534;
}

.post-category.devops {
  background-color: #ecfdf5;
  color: #065f46;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.post-meta {
  display: flex;
  gap: 16px;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-excerpt {
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.7;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 8px 16px;
  background-color: var(--primary);
  color: white;
  border-radius: 6px;
  transition: var(--transition);
  align-self: flex-start;
  margin-top: auto;
}

.read-more:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 8px;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background-color: var(--bg);
  color: var(--text);
  font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pagination-button:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.pagination-button.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 内页标题区（工具、咨询等） */
.page-hero {
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid rgba(232, 223, 212, 0.95);
  max-width: 42rem;
}

.page-hero--consult {
  max-width: 46rem;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
  text-wrap: balance;
}

.page-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 38rem;
  text-wrap: pretty;
}

/* 咨询页正文 */
.consult-prose {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3.5vw, 36px) clamp(20px, 3vw, 32px);
  margin-bottom: 8px;
}

.consult-prose-content {
  max-width: 65ch;
  line-height: 1.8;
  color: var(--text);
  font-size: 1rem;
}

.consult-prose-content > :first-child {
  margin-top: 0;
}

.consult-prose-content p {
  margin-bottom: 1.1em;
  text-wrap: pretty;
}

.consult-prose-content h2,
.consult-prose-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin: 1.75em 0 0.65em;
}

.consult-prose-content h2 {
  font-size: 1.35rem;
}

.consult-prose-content h3 {
  font-size: 1.125rem;
}

.consult-prose-content a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.22s ease;
}

.consult-prose-content a:hover {
  color: var(--primary);
}

.consult-prose-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.25em 0;
}

.consult-prose-content ul,
.consult-prose-content ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.consult-prose-content li {
  margin-bottom: 0.35em;
}

/* Sidebar Styles */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  height: fit-content;
}

.sidebar-card {
  background-color: var(--bg-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  border: 1px solid var(--border);
}

/* Author Profile Card */
.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--primary-light);
}

.author-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.author-bio {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.author-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--bg);
  border-radius: 50%;
  color: var(--text-light);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.author-social-link:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Popular Posts */
.popular-post {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.popular-post-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popular-post-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-post-views {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--bg);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.tag:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-text {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 107, 69, 0.14);
}

.form-submit {
  padding: 10px 14px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background-color: var(--primary-dark);
}

/* 留言板 */
.guestbook-page {
  margin-bottom: 8px;
}

.guestbook-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
  margin-bottom: clamp(24px, 3.5vw, 32px);
  padding-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid rgba(232, 223, 212, 0.95);
}

.guestbook-masthead-copy {
  flex: 1 1 16rem;
  max-width: 40rem;
}

.guestbook-masthead-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 10px;
  text-wrap: balance;
}

.guestbook-masthead-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 38rem;
  text-wrap: pretty;
}

.guestbook-masthead-meta {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.guestbook-masthead-meta div {
  min-width: 4.5rem;
}

.guestbook-masthead-meta dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant: small-caps;
  text-transform: lowercase;
  color: var(--text-lighter);
  margin-bottom: 4px;
}

.guestbook-masthead-meta dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.guestbook-inline-link {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 107, 69, 0.3);
  transition: color 0.22s ease, border-color 0.22s ease;
}

.guestbook-inline-link:hover {
  color: var(--primary);
  border-bottom-color: rgba(197, 107, 69, 0.55);
}

.guestbook-sheet {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.guestbook-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid rgba(232, 223, 212, 0.95);
  background: rgba(250, 247, 243, 0.55);
}

.guestbook-note {
  padding: clamp(16px, 2.5vw, 20px) clamp(14px, 2.5vw, 22px);
  border-right: 1px solid rgba(232, 223, 212, 0.88);
}

.guestbook-note:last-child {
  border-right: none;
}

.guestbook-note-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant: small-caps;
  text-transform: lowercase;
  color: var(--primary-dark);
}

.guestbook-note-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-light);
  text-wrap: pretty;
}

.guestbook-form-area {
  padding: clamp(22px, 3.5vw, 32px) clamp(20px, 3.5vw, 32px) clamp(24px, 3.5vw, 28px);
}

.guestbook-feedback {
  margin: 0 0 18px;
  padding: 12px 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.guestbook-feedback--success {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: rgba(197, 107, 69, 0.2);
}

.guestbook-feedback--error {
  color: #8f3d2c;
  background: rgba(197, 107, 69, 0.08);
  border-color: rgba(197, 107, 69, 0.22);
}

.guestbook-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 40rem;
}

.guestbook-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.guestbook-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.guestbook-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.guestbook-input::placeholder {
  color: var(--text-lighter);
}

.guestbook-input:hover {
  border-color: var(--border-dark);
}

.guestbook-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 107, 69, 0.14);
  background: #fff;
}

.guestbook-input--textarea {
  min-height: 11rem;
  resize: vertical;
}

.guestbook-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: clamp(20px, 2.8vw, 26px);
  padding-top: clamp(18px, 2.5vw, 22px);
  border-top: 1px dashed rgba(212, 201, 188, 0.85);
  max-width: 40rem;
}

.guestbook-form-hint {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-lighter);
  text-wrap: pretty;
}

.guestbook-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(165deg, #d07852 0%, var(--primary) 48%, var(--primary-dark) 100%);
  border: 1px solid rgba(168, 85, 50, 0.35);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
  box-shadow: 0 6px 18px -10px rgba(168, 85, 50, 0.55);
}

.guestbook-submit:hover:not(:disabled) {
  filter: brightness(1.03);
  box-shadow: 0 10px 24px -12px rgba(168, 85, 50, 0.5);
}

.guestbook-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.guestbook-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.guestbook-inline-link:focus-visible,
.guestbook-input:focus-visible,
.guestbook-submit:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .guestbook-masthead-meta {
    width: 100%;
    justify-content: space-around;
  }

  .guestbook-notes {
    grid-template-columns: 1fr;
  }

  .guestbook-note {
    border-right: none;
    border-bottom: 1px solid rgba(232, 223, 212, 0.88);
  }

  .guestbook-note:last-child {
    border-bottom: none;
  }

  .guestbook-form-stack,
  .guestbook-form-actions {
    max-width: none;
  }

  .guestbook-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .guestbook-submit {
    width: 100%;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 9vw, 96px);
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(243, 228, 217, 0.45), transparent 55%),
    linear-gradient(180deg, rgba(250, 247, 243, 0.55), transparent 48%);
}

.site-footer::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  mask-image: linear-gradient(180deg, black 0%, transparent 72%);
}

.site-footer-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(32px, 5vw, 48px) 0 clamp(28px, 4vw, 36px);
}

.site-footer-head {
  max-width: 36rem;
  margin: 0 auto clamp(28px, 4vw, 40px);
}

.site-footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: opacity 0.22s ease;
}

.site-footer-brand:hover {
  opacity: 0.9;
}

.site-footer-brand-tech {
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  font-weight: 700;
}

.site-footer-brand-guide {
  font-size: clamp(1.35rem, 2.1vw, 1.55rem);
  font-weight: 600;
  color: var(--primary-dark);
}

.site-footer-tagline {
  margin: 10px 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-light);
  text-wrap: balance;
}

.site-footer-actions {
  width: min(100%, 28rem);
  margin-inline: auto;
  margin-bottom: clamp(26px, 4vw, 36px);
  padding: clamp(22px, 3.5vw, 28px) 0;
  text-align: left;
  border-block: 1px solid rgba(232, 223, 212, 0.9);
}

.site-footer-details {
  margin: 0;
  display: grid;
  gap: 11px;
}

.site-footer-details-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem 1rem;
}

.site-footer-details dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant: small-caps;
  text-transform: lowercase;
  color: var(--text-lighter);
  line-height: 1.45;
}

.site-footer-details dd {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
}

.site-footer-id {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-footer-action-link {
  display: inline-block;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  text-wrap: pretty;
  box-shadow: inset 0 -1px 0 rgba(197, 107, 69, 0);
  transition:
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

.site-footer-action-link:hover {
  color: var(--primary-dark);
  box-shadow: inset 0 -1px 0 rgba(197, 107, 69, 0.4);
}

.site-footer-action-link:active {
  transform: translateY(1px);
}

.site-footer-social {
  margin-top: clamp(18px, 3vw, 22px);
  padding-top: clamp(16px, 2.5vw, 20px);
  border-top: 1px dashed rgba(212, 201, 188, 0.85);
}

.site-footer-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.site-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
  color: var(--text-light);
  text-decoration: none;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: var(--transition);
}

.site-footer-social-link:hover {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.site-footer-social-link:active {
  transform: scale(0.96);
}

.site-footer-meta {
  width: min(100%, 28rem);
  margin-inline: auto;
  padding-top: 0;
  border-top: none;
  text-align: center;
}

.site-footer-legal {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-lighter);
}

.site-footer-brand:focus-visible,
.site-footer-action-link:focus-visible,
.site-footer-social-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .site-footer-actions {
    width: 100%;
    padding-inline: clamp(4px, 2vw, 12px);
  }

  .site-footer-details-row {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }
}

/* Loading State */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
}

/* Schema Markup (hidden) */
.schema-markup {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
    grid-template-areas:
            "content"
            "sidebar";
  }

  .content-left {
    grid-area: content;
  }

  .sidebar {
    grid-area: sidebar;
    position: static;
    margin-top: 40px;
    gap: 24px;
  }

  .sidebar-card {
    width: 100%;
  }

}

@media (max-width: 900px) and (min-width: 769px) {
  .post-list-image {
    width: min(140px, 28vw);
  }
}

@media (max-width: 900px) {
  .site-masthead-body {
    grid-template-columns: 1fr;
  }

  .site-masthead {
    padding: 22px 18px 20px;
  }

  .main-home .site-masthead {
    margin-bottom: 18px;
    padding: 16px 16px 14px;
  }

  .main-home .blog-hero-aside {
    padding-left: 0;
    padding-top: 14px;
    margin-top: 2px;
    border-left: none;
    border-top: 1px solid rgba(197, 107, 69, 0.1);
  }

  .header-inner {
    padding: 8px 18px;
  }

  .header-inner-cluster {
    max-width: none;
    padding-inline: 0;
    gap: 10px;
  }

  .logo {
    margin-inline-end: 0;
  }

  .header-inner-controls {
    align-items: center;
    gap: 8px;
  }

  .logo-wordmark-tech {
    font-size: 2.75rem;
  }

  .logo-wordmark-guide {
    font-size: 2.35rem;
  }

  .nav-pills {
    display: none;
  }

  .header-actions > .header-search {
    display: none;
  }

  .mobile-menu .mobile-menu-search {
    display: flex;
    align-items: stretch;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header {
    z-index: 110;
  }

  .featured-posts-container {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  .main-content {
    padding: 20px 0;
    gap: 20px;
  }

  .posts-list {
    border-radius: var(--radius);
  }

  .post-list-item {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .post-list-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .post-list-meta time::after {
    display: none;
  }

  .post-list-meta {
    margin-bottom: 6px;
  }

  .post-list-excerpt {
    -webkit-line-clamp: 3;
    margin-bottom: 8px;
  }

  .sidebar {
    margin-top: 30px;
  }

  .sidebar-card {
    padding: 16px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .latest-posts-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /*文章详情页 start*/

  /*文章详情页 end*/
}

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

  .post-image-container {
    padding-bottom: 56.25%;
  }

  .popular-post {
    flex-direction: column;
  }

  .popular-post-image {
    width: 100%;
    height: 120px;
  }

}



/* 工具页 */
.tools-page {
  margin-bottom: 8px;
}

.tools-masthead {
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid rgba(232, 223, 212, 0.95);
}

.tools-masthead-copy {
  flex: 1 1 16rem;
  max-width: 40rem;
}

.tools-masthead-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 10px;
  text-wrap: balance;
}

.tools-masthead-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 38rem;
  text-wrap: pretty;
}

.tools-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.tool-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.tool-feature:hover {
  border-color: rgba(197, 107, 69, 0.22);
  box-shadow: var(--shadow);
}

.tool-feature--reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.tool-feature--reverse .tool-feature-copy {
  order: 2;
}

.tool-feature--reverse .tool-feature-visual {
  order: 1;
}

.tool-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.tool-feature-index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.tool-feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 10px;
  text-wrap: pretty;
}

.tool-feature-description {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 52ch;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.tool-feature-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.tool-feature-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  font-variant: small-caps;
  color: var(--text-light);
  padding: 4px 0;
  border-bottom: 1px solid rgba(197, 107, 69, 0.35);
}

.tool-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.tool-feature-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.2s var(--ease-out-smooth);
}

.tool-feature-btn:hover {
  border-color: var(--border-dark);
  background: var(--bg-card);
}

.tool-feature-btn:active {
  transform: scale(0.98);
}

.tool-feature-btn--primary {
  color: #fffcfa;
  background: var(--primary);
  border-color: transparent;
}

.tool-feature-btn--primary:hover {
  background: var(--primary-dark);
  color: #fffcfa;
}

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

.tool-feature-visual {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  border: 1px solid rgba(232, 223, 212, 0.9);
  background:
    radial-gradient(85% 75% at 80% 10%, rgba(243, 228, 217, 0.75), transparent 55%),
    linear-gradient(160deg, var(--bg-card), rgba(212, 201, 188, 0.4));
}

.tool-feature-visual img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out-smooth);
}

.tool-feature:hover .tool-feature-visual img {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .tool-feature,
  .tool-feature--reverse {
    grid-template-columns: 1fr;
  }

  .tool-feature--reverse .tool-feature-copy,
  .tool-feature--reverse .tool-feature-visual {
    order: unset;
  }

  .tool-feature-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .tool-feature-visual img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .tool-feature-actions {
    width: 100%;
  }

  .tool-feature-btn {
    flex: 1;
    min-width: calc(50% - 6px);
  }

  .consult-prose {
    padding: 18px 16px;
    border-radius: var(--radius);
  }
}