@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/nunito@5.2.5/index.min.css");
@import url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css");

:root {
  --ac-primary: #2abaaa;
  --ac-primary-light: #6dd5c8;
  --ac-primary-dark: #1f9489;
  --ac-bg: #f7f3e7;
  --ac-bg-soft: #ece6d4;
  --ac-surface: #fffdf8;
  --ac-surface-hover: #faf7ef;
  --ac-border: #ddd6c0;
  --ac-text: #877358;
  --ac-text-muted: #a69580;
  --ac-text-strong: #6b5c48;
  --ac-shadow: 0 2px 8px rgba(135, 115, 88, 0.12);
  --ac-shadow-hover: 0 12px 24px rgba(135, 115, 88, 0.16);
  --ac-shadow-card: 0 16px 32px rgba(135, 115, 88, 0.08);
  --ac-radius-sm: 10px;
  --ac-radius-md: 18px;
  --ac-radius-lg: 28px;
  --ac-radius-xl: 38px;
  --ac-radius-full: 9999px;
  --ac-sidebar-width: 19rem;
  --ac-content-width: 960px;
  --ac-font-sans: "Nunito Variable", "Nunito", "LXGW WenKai", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ac-font-mono: "Maple Mono CN", "SFMono-Regular", "Menlo", monospace;
}

html[data-theme="night"] {
  --ac-primary: #2abaaa;
  --ac-primary-light: #58d4c2;
  --ac-primary-dark: #1f9489;
  --ac-bg: #374063;
  --ac-bg-soft: #2d3554;
  --ac-surface: #2d3554;
  --ac-surface-hover: #465077;
  --ac-border: #4a5580;
  --ac-text: #e2d6c8;
  --ac-text-muted: #b8ad9e;
  --ac-text-strong: #f4ede3;
  --ac-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  --ac-shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ac-bg);
  color: var(--ac-text);
  font-family: var(--ac-font-sans);
  min-height: 100%;
  overflow-x: hidden;
}

body[data-nav-open="true"] {
  overflow: hidden;
}

body {
  background-image:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 28%),
    radial-gradient(circle at bottom right, rgba(42, 186, 170, 0.1), transparent 24%);
}

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

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

button {
  font: inherit;
}

code,
pre,
kbd,
samp {
  font-family: var(--ac-font-mono);
}

.ac-app-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow-x: clip;
}

.ac-sidebar {
  width: var(--ac-sidebar-width);
  background: var(--ac-bg-soft);
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 20;
  overflow: hidden;
}

.ac-sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ac-border) transparent;
}

.ac-sidebar-inner::-webkit-scrollbar {
  width: 4px;
}

.ac-sidebar-inner::-webkit-scrollbar-thumb {
  background: var(--ac-border);
  border-radius: var(--ac-radius-full);
}

.ac-sidebar-avatar {
  width: 8.5rem;
  height: 8.5rem;
  margin: 1rem auto 0;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--ac-shadow);
  flex-shrink: 0;
}

.ac-sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-sidebar-copy {
  text-align: center;
  padding: 0 0.75rem;
}

.ac-sidebar-badge {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--ac-radius-full);
  background: rgba(42, 186, 170, 0.1);
  color: var(--ac-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.ac-sidebar-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ac-text-strong);
}

.ac-sidebar-subtitle {
  margin: 0.5rem 0 0;
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--ac-text-muted);
}

.ac-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ac-menu-link,
.ac-theme-button,
.ac-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--ac-radius-md);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ac-menu-link img,
.ac-theme-button img,
.ac-social-link img {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.6rem;
}

.ac-menu-link:hover,
.ac-theme-button:hover,
.ac-social-link:hover {
  background: rgba(42, 186, 170, 0.08);
  transform: translateY(-1px);
}

.ac-menu-link.is-active {
  background: rgba(42, 186, 170, 0.14);
  border-color: rgba(31, 148, 137, 0.18);
  color: var(--ac-primary-dark);
}

.ac-sidebar-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ac-sidebar-fade {
  display: none;
}

.ac-theme-button {
  border: 0;
  width: 100%;
  background: var(--ac-primary);
  color: #fff;
  box-shadow: 0 4px 0 var(--ac-primary-dark);
  cursor: pointer;
}

.ac-theme-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ac-primary-dark);
}

.ac-social-list {
  display: grid;
  gap: 0.45rem;
}

.ac-social-link {
  width: 100%;
  background: var(--ac-surface);
  box-shadow: var(--ac-shadow);
  padding: 0.72rem 0.85rem;
}

.ac-social-link span {
  font-weight: 700;
  color: var(--ac-text-strong);
}

.ac-main-shell {
  flex: 1;
  min-width: 0;
  background: var(--ac-surface);
  border-top-left-radius: var(--ac-radius-xl);
  border-bottom-left-radius: var(--ac-radius-xl);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-shadow: -16px 0 40px rgba(135, 115, 88, 0.08);
  overflow-x: clip;
}

.ac-mobile-toggle {
  display: none;
}

.ac-mobile-header {
  display: none;
}

.ac-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 18%);
  pointer-events: none;
}

.ac-banner img {
  width: 100%;
  pointer-events: none;
  user-select: none;
}

.ac-content-shell {
  width: min(100%, var(--ac-content-width));
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  overflow-x: clip;
}

.ac-site-footer {
  width: min(100%, var(--ac-content-width));
  margin: auto auto 0;
  padding: 1.5rem 1.25rem 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ac-text-muted);
  align-items: end;
  position: relative;
}

.ac-site-footer::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ac-border), transparent);
}

.ac-site-footer p,
.ac-site-footer strong {
  margin: 0;
}

.ac-site-footer > p:last-child {
  text-align: right;
}

.ac-hero-card,
.ac-post-card,
.ac-post-shell,
.ac-page-shell,
.ac-placeholder-card,
.ac-empty-state {
  background: var(--ac-surface);
  border: 1px solid var(--ac-border);
  box-shadow: var(--ac-shadow);
  border-radius: var(--ac-radius-lg);
  min-width: 0;
}

.ac-hero-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  background:
    radial-gradient(circle at top right, rgba(42, 186, 170, 0.16), transparent 28%),
    var(--ac-surface);
  box-shadow: var(--ac-shadow-card);
}

.ac-hero-card::after {
  content: "";
  position: absolute;
  width: 11rem;
  height: 11rem;
  right: -3rem;
  top: -3rem;
  background: radial-gradient(circle, rgba(42, 186, 170, 0.16), transparent 66%);
  pointer-events: none;
}

.ac-hero-mark {
  width: 4rem;
  margin-bottom: 0.5rem;
}

.ac-eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--ac-primary-dark);
  font-weight: 800;
}

.ac-hero-card h1,
.ac-section-heading h1,
.ac-section-heading h2,
.ac-post-header h1,
.ac-page-shell h1 {
  margin: 0;
  color: var(--ac-text-strong);
  line-height: 1.15;
}

.ac-hero-card h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.ac-hero-copy {
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 44rem;
  margin: 1rem 0 0;
}

.ac-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.ac-section-meta {
  margin: 0;
  color: var(--ac-text-muted);
}

.ac-pill-link {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: var(--ac-radius-full);
  background: rgba(42, 186, 170, 0.12);
  color: var(--ac-primary-dark);
  font-weight: 700;
}

.ac-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.15rem;
}

.ac-post-card {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--ac-primary);
  box-shadow: var(--ac-shadow-card);
  min-height: 15.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.ac-post-card-body {
  padding: 1.35rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.ac-post-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0.85rem 0.85rem 0;
  overflow: hidden;
  border-radius: calc(var(--ac-radius-lg) - 0.7rem);
  border: 1px solid rgba(42, 186, 170, 0.18);
  background: rgba(42, 186, 170, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ac-post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.ac-post-card.has-media {
  min-height: 20rem;
}

.ac-blog-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.4rem;
  padding: clamp(1.45rem, 3vw, 2.35rem);
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-lg);
  background:
    radial-gradient(circle at 88% 20%, rgba(42, 186, 170, 0.26), transparent 28%),
    radial-gradient(circle at 8% 96%, rgba(255, 214, 102, 0.28), transparent 26%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(232, 251, 247, 0.72));
  box-shadow: var(--ac-shadow-card);
}

.ac-blog-board::after {
  content: "";
  position: absolute;
  right: -2.4rem;
  bottom: -2.8rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(42, 186, 170, 0.24);
  border-radius: 42% 58% 50% 50%;
  background: rgba(255, 255, 255, 0.36);
  transform: rotate(-12deg);
  pointer-events: none;
}

.ac-blog-board h1 {
  margin: 0.15rem 0 0.65rem;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1;
}

.ac-blog-board p:not(.ac-eyebrow) {
  max-width: 42rem;
  margin: 0;
  color: var(--ac-text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.ac-blog-count {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  padding: 0.82rem 1.05rem;
  border: 1px solid rgba(42, 186, 170, 0.22);
  border-radius: var(--ac-radius-full);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ac-primary-dark);
  font-weight: 900;
}

.ac-blog-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.ac-blog-grid .ac-post-card {
  grid-column: span 4;
  min-height: 25rem;
}

.ac-blog-grid .ac-post-card.has-media {
  min-height: 30rem;
}

.ac-blog-grid .ac-post-card-media {
  aspect-ratio: 4 / 3;
  margin: 1rem 1rem 0;
  border-radius: calc(var(--ac-radius-lg) - 0.45rem);
}

.ac-blog-grid .ac-post-card:nth-child(1) {
  grid-column: span 7;
}

.ac-blog-grid .ac-post-card:nth-child(2) {
  grid-column: span 5;
}

.ac-blog-grid .ac-post-card:nth-child(5n + 3) {
  grid-column: span 5;
}

.ac-blog-grid .ac-post-card:nth-child(5n + 4),
.ac-blog-grid .ac-post-card:nth-child(5n + 5) {
  grid-column: span 3;
}

.ac-blog-grid .ac-post-card:nth-child(1) .ac-post-card-media {
  aspect-ratio: 16 / 8.5;
}

.ac-webs-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: end;
  margin-bottom: 1.2rem;
  padding: clamp(1.45rem, 3vw, 2.4rem);
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-lg);
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 214, 102, 0.26), transparent 25%),
    radial-gradient(circle at 92% 20%, rgba(42, 186, 170, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(232, 251, 247, 0.74));
  box-shadow: var(--ac-shadow-card);
}

.ac-webs-hero::after {
  content: "</>";
  position: absolute;
  right: 2rem;
  bottom: -0.35rem;
  color: rgba(42, 186, 170, 0.12);
  font-family: var(--ac-font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  pointer-events: none;
}

.ac-webs-hero h1 {
  margin: 0.15rem 0 0.7rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.ac-webs-hero p:not(.ac-eyebrow) {
  max-width: 44rem;
  margin: 0;
  color: var(--ac-text-muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.ac-webs-hero code,
.ac-webs-note code,
.ac-empty-state code {
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(42, 186, 170, 0.12);
  color: var(--ac-primary-dark);
  font-family: var(--ac-font-mono);
  font-size: 0.9em;
}

.ac-webs-note {
  margin-bottom: 1.2rem;
}

.ac-webs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 24rem));
  gap: 0.85rem;
  justify-content: start;
}

.ac-web-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  padding: 1rem 1.05rem;
  border: 1px solid var(--ac-border);
  border-top: 3px solid var(--ac-primary);
  border-radius: calc(var(--ac-radius-lg) - 0.35rem);
  background:
    radial-gradient(circle at 100% 100%, rgba(42, 186, 170, 0.13), transparent 32%),
    var(--ac-surface);
  box-shadow: var(--ac-shadow-card);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.ac-web-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ac-shadow-hover);
}

.ac-web-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ac-web-card-badge {
  color: var(--ac-primary-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.ac-web-card h2 {
  margin: 0;
  color: var(--ac-text-strong);
  font-size: 1.05rem;
  line-height: 1.35;
}

.ac-web-card h2 a:hover {
  color: var(--ac-primary-dark);
}

.ac-web-card p {
  margin: 0;
  color: var(--ac-text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.ac-web-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.ac-web-card-meta {
  color: var(--ac-text-muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.ac-post-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 186, 170, 0.12), transparent 68%);
  pointer-events: none;
}

.ac-post-card:hover,
.ac-nav-card:hover,
.ac-tag-cloud:hover,
.ac-timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--ac-shadow-hover);
}

.ac-post-card:hover .ac-post-card-media img {
  transform: scale(1.035);
}

.ac-post-card h3 a:hover,
.ac-menu-link:hover span,
.ac-nav-card:hover strong,
.ac-timeline-item:hover strong {
  color: var(--ac-primary-dark);
}

.ac-post-card-head,
.ac-post-meta,
.ac-post-card-tags,
.ac-tag-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.ac-post-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ac-text-strong);
  line-height: 1.35;
}

.ac-post-card p,
.ac-post-shell p,
.ac-page-shell p,
.ac-timeline-item p {
  line-height: 1.85;
}

.ac-post-card p {
  margin: 0;
  color: var(--ac-text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

.ac-post-card-head time {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ac-text-strong);
}

.ac-post-card-tags a,
.ac-post-card-badge,
.ac-tag-chip,
.ac-tag-cloud,
.ac-page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--ac-radius-full);
  border: 1px solid var(--ac-border);
  padding: 0.38rem 0.75rem;
  background: rgba(42, 186, 170, 0.1);
  color: var(--ac-text-muted);
}

.ac-post-card-badge {
  background: rgba(42, 186, 170, 0.16);
  border-color: rgba(42, 186, 170, 0.28);
  color: var(--ac-primary-dark);
  font-weight: 800;
}

.ac-card-link {
  color: var(--ac-primary-dark);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.ac-card-link::after {
  content: " →";
}

.ac-post-shell,
.ac-page-shell {
  padding: 2rem;
  box-shadow: var(--ac-shadow-card);
  min-width: 0;
}

.ac-post-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ac-post-intro {
  margin: 0;
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ac-text-muted);
  text-wrap: pretty;
}

.ac-divider {
  height: 1.8rem;
  margin: 1rem 0 1.5rem;
  background: center / contain no-repeat url("../ac-assets/divider_line.png");
}

.ac-prose {
  font-size: 1.04rem;
  line-height: 1.95;
  color: var(--ac-text-strong);
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.ac-prose h2,
.ac-prose h3,
.ac-prose h4 {
  margin-top: 2.2rem;
  color: var(--ac-text-strong);
  line-height: 1.4;
}

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

.ac-prose li {
  margin: 0.5rem 0;
}

.ac-prose a {
  color: var(--ac-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ac-prose img {
  margin: 1.5rem auto;
  border-radius: var(--ac-radius-md);
  box-shadow: var(--ac-shadow);
  max-width: 100%;
  height: auto;
}

.ac-prose > * {
  min-width: 0;
  max-width: 100%;
}

.ac-prose p,
.ac-prose ul,
.ac-prose ol,
.ac-prose pre,
.ac-prose blockquote,
.ac-prose table {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ac-prose :not(pre) > code {
  padding: 0.2rem 0.45rem;
  background: rgba(42, 186, 170, 0.12);
  color: var(--ac-primary-dark);
  border-radius: var(--ac-radius-sm);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.ac-prose pre,
.ac-prose figure.highlight {
  margin: 1.5rem 0;
  border-radius: var(--ac-radius-md);
  background: rgba(42, 186, 170, 0.08);
  border: 1px solid rgba(42, 186, 170, 0.2);
  overflow: hidden;
}

.ac-prose pre {
  padding: 1rem 1.15rem;
  overflow-x: auto;
}

.ac-prose pre code {
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  font-size: 0.9em;
}

.ac-prose blockquote {
  margin: 1.5rem 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.15rem 1.35rem 1.15rem 1.65rem;
  border: 1px solid rgba(42, 186, 170, 0.22);
  border-radius: var(--ac-radius-md);
  background:
    linear-gradient(135deg, rgba(42, 186, 170, 0.13), rgba(255, 253, 248, 0.62) 55%),
    rgba(42, 186, 170, 0.06);
  box-shadow: 0 12px 28px rgba(31, 148, 137, 0.08);
}

.ac-prose blockquote::before {
  content: none;
}

.ac-prose blockquote::after {
  content: "";
  position: absolute;
  inset: 1rem auto 1rem 0.75rem;
  width: 0.25rem;
  border-radius: var(--ac-radius-full);
  background: linear-gradient(180deg, var(--ac-primary-light), var(--ac-primary));
}

.ac-prose blockquote > * + * {
  margin-top: 0.75rem;
}

.ac-prose blockquote.ac-callout {
  --ac-callout-color: var(--ac-primary);
  --ac-callout-bg: rgba(42, 186, 170, 0.08);
  background:
    linear-gradient(135deg, var(--ac-callout-bg), rgba(255, 253, 248, 0.6) 62%),
    rgba(42, 186, 170, 0.045);
  border-color: color-mix(in srgb, var(--ac-callout-color) 34%, var(--ac-border));
}

.ac-prose blockquote.ac-callout::after {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ac-callout-color) 70%, #fff), var(--ac-callout-color));
}

.ac-callout-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  color: var(--ac-text-strong);
  font-weight: 900;
  line-height: 1.4;
}

.ac-callout-title::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: var(--ac-radius-full);
  background: var(--ac-callout-color);
  box-shadow: 0 0 0 0.28rem color-mix(in srgb, var(--ac-callout-color) 18%, transparent);
}

.ac-prose blockquote.ac-callout-tip,
.ac-prose blockquote.ac-callout-success {
  --ac-callout-color: #2abaaa;
  --ac-callout-bg: rgba(42, 186, 170, 0.1);
}

.ac-prose blockquote.ac-callout-info {
  --ac-callout-color: #4f9ed8;
  --ac-callout-bg: rgba(79, 158, 216, 0.1);
}

.ac-prose blockquote.ac-callout-abstract,
.ac-prose blockquote.ac-callout-quote {
  --ac-callout-color: #8d7a5f;
  --ac-callout-bg: rgba(141, 122, 95, 0.1);
}

.ac-prose blockquote.ac-callout-warning,
.ac-prose blockquote.ac-callout-question {
  --ac-callout-color: #d59f32;
  --ac-callout-bg: rgba(213, 159, 50, 0.11);
}

.ac-prose blockquote.ac-callout-todo,
.ac-prose blockquote.ac-callout-example {
  --ac-callout-color: #9b79d9;
  --ac-callout-bg: rgba(155, 121, 217, 0.11);
}

.ac-prose blockquote.ac-callout-danger {
  --ac-callout-color: #d46a6a;
  --ac-callout-bg: rgba(212, 106, 106, 0.1);
}

.ac-prose blockquote:has(> figure.highlight:only-child),
.ac-prose blockquote:has(> table:only-child),
.ac-prose blockquote.ac-quote-table-only {
  padding: 0;
  border-left: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  isolation: auto;
}

.ac-prose blockquote:has(> figure.highlight:only-child)::before,
.ac-prose blockquote:has(> figure.highlight:only-child)::after,
.ac-prose blockquote:has(> table:only-child)::before,
.ac-prose blockquote:has(> table:only-child)::after,
.ac-prose blockquote.ac-quote-table-only::before,
.ac-prose blockquote.ac-quote-table-only::after {
  content: none;
}

.ac-prose blockquote:has(> figure.highlight:only-child) > figure.highlight,
.ac-prose blockquote:has(> table:only-child) > table,
.ac-prose blockquote.ac-quote-table-only > .ac-table-wrap {
  margin: 0;
}

.ac-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  position: relative;
  padding-top: 2.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(42, 186, 170, 0.24);
  border-radius: var(--ac-radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 2.25rem),
    rgba(42, 186, 170, 0.045);
  box-shadow:
    0 12px 28px rgba(31, 148, 137, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 186, 170, 0.45) transparent;
}

.ac-table-wrap::before {
  content: "table";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 1rem 0 3.75rem;
  border-bottom: 1px solid rgba(42, 186, 170, 0.18);
  color: var(--ac-text-muted);
  font-family: var(--ac-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
}

.ac-table-wrap::after {
  content: "";
  position: absolute;
  top: 0.88rem;
  left: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #ff7a7a;
  box-shadow: 0.9rem 0 #f7c948, 1.8rem 0 var(--ac-primary);
  pointer-events: none;
}

.ac-table-wrap::-webkit-scrollbar {
  height: 0.55rem;
}

.ac-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(42, 186, 170, 0.45);
  border-radius: var(--ac-radius-full);
}

.ac-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.ac-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(42, 186, 170, 0.04);
  border-radius: var(--ac-radius-md);
  overflow: hidden;
  border: 1px solid rgba(42, 186, 170, 0.2);
}

.ac-table-wrap > table {
  min-width: 34rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ac-prose th,
.ac-prose td {
  border-bottom: 1px solid rgba(42, 186, 170, 0.15);
  border-right: 1px solid rgba(42, 186, 170, 0.12);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.ac-prose th:last-child,
.ac-prose td:last-child {
  border-right: 0;
}

.ac-prose th {
  background: rgba(42, 186, 170, 0.12);
  font-weight: 700;
  color: var(--ac-text-strong);
}

.ac-prose tr {
  transition: background 0.15s ease;
}

.ac-prose tbody tr:hover {
  background: rgba(42, 186, 170, 0.07);
}

.ac-prose tr:last-child td {
  border-bottom: 0;
}

.ac-prose figure.highlight pre {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.ac-prose figure.highlight table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: transparent;
  border-radius: 0;
  display: table;
  table-layout: fixed;
}

.ac-prose figure.highlight td,
.ac-prose figure.highlight th {
  border: 0;
  padding: 0;
  vertical-align: top;
}

.ac-prose figure.highlight .gutter {
  width: 3rem;
  min-width: 3rem;
  padding: 0.85rem 0.6rem;
  background: rgba(42, 186, 170, 0.08);
  color: var(--ac-text-muted);
  text-align: right;
  user-select: none;
  border-right: 1px solid rgba(42, 186, 170, 0.2);
}

.ac-prose figure.highlight .code {
  width: calc(100% - 3rem);
  max-width: 0;
  padding: 0;
  overflow: hidden;
}

.ac-prose figure.highlight .code pre {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 186, 170, 0.4) transparent;
}

.ac-prose figure.highlight .code pre::-webkit-scrollbar {
  height: 0.55rem;
}

.ac-prose figure.highlight .code pre::-webkit-scrollbar-thumb {
  background: rgba(42, 186, 170, 0.4);
  border-radius: var(--ac-radius-full);
}

.ac-prose figure.highlight .code pre::-webkit-scrollbar-track {
  background: transparent;
}

.ac-prose figure.highlight .line {
  display: block;
  min-height: 1.6em;
  line-height: 1.6;
  white-space: pre;
}

.ac-prose figure.highlight .code .line {
  width: max-content;
  min-width: 100%;
}

.ac-prose figure.highlight br {
  display: none;
}

.ac-prose figure.highlight code {
  display: block;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

.ac-prose figure.highlight {
  position: relative;
  box-shadow: 0 12px 28px rgba(31, 148, 137, 0.08);
}

.ac-prose figure.highlight::before {
  content: "code";
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 6.2rem 0 3.75rem;
  border-bottom: 1px solid rgba(42, 186, 170, 0.18);
  background: rgba(255, 255, 255, 0.38);
  color: var(--ac-text-muted);
  font-family: var(--ac-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ac-prose figure.highlight::after {
  content: "";
  position: absolute;
  top: 0.88rem;
  left: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #ff7a7a;
  box-shadow: 0.9rem 0 #f7c948, 1.8rem 0 var(--ac-primary);
}

.ac-code-copy {
  position: absolute;
  top: 0.38rem;
  right: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  min-height: 1.48rem;
  padding: 0.18rem 0.65rem;
  border: 1px solid rgba(42, 186, 170, 0.28);
  border-radius: var(--ac-radius-full);
  background: rgba(255, 253, 248, 0.72);
  color: var(--ac-primary-dark);
  box-shadow: 0 5px 14px rgba(31, 148, 137, 0.1);
  cursor: pointer;
  font-family: var(--ac-font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ac-code-copy:hover,
.ac-code-copy:focus-visible {
  border-color: rgba(42, 186, 170, 0.55);
  background: rgba(42, 186, 170, 0.14);
  color: var(--ac-text-strong);
  transform: translateY(-1px);
  outline: none;
}

.ac-code-copy.is-copied {
  background: rgba(42, 186, 170, 0.18);
  border-color: rgba(42, 186, 170, 0.6);
  color: var(--ac-primary-dark);
}

.ac-prose figure.highlight.bash::before,
.ac-prose figure.highlight.zsh::before,
.ac-prose figure.highlight.shell::before {
  content: "shell";
}

html[data-theme="night"] .ac-prose figure.highlight::before {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="night"] .ac-prose blockquote {
  background:
    linear-gradient(135deg, rgba(42, 186, 170, 0.16), rgba(45, 53, 84, 0.72) 55%),
    rgba(42, 186, 170, 0.08);
}

html[data-theme="night"] .ac-prose blockquote.ac-callout {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ac-callout-color) 16%, transparent), rgba(45, 53, 84, 0.72) 60%),
    rgba(42, 186, 170, 0.06);
}

html[data-theme="night"] .ac-blog-board {
  background:
    radial-gradient(circle at 88% 20%, rgba(42, 186, 170, 0.2), transparent 28%),
    radial-gradient(circle at 8% 96%, rgba(255, 214, 102, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(45, 53, 84, 0.95), rgba(29, 39, 62, 0.86));
}

html[data-theme="night"] .ac-webs-hero {
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 214, 102, 0.14), transparent 25%),
    radial-gradient(circle at 92% 20%, rgba(42, 186, 170, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(45, 53, 84, 0.95), rgba(29, 39, 62, 0.86));
}

html[data-theme="night"] .ac-prose blockquote:has(> figure.highlight:only-child),
html[data-theme="night"] .ac-prose blockquote:has(> table:only-child),
html[data-theme="night"] .ac-prose blockquote.ac-quote-table-only {
  background: transparent;
}

html[data-theme="night"] .ac-table-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 2.25rem),
    rgba(42, 186, 170, 0.065);
}

html[data-theme="night"] .ac-code-copy {
  background: rgba(45, 53, 84, 0.78);
  border-color: rgba(88, 212, 194, 0.28);
  color: var(--ac-primary-light);
}

html[data-theme="night"] .ac-code-copy:hover,
html[data-theme="night"] .ac-code-copy:focus-visible,
html[data-theme="night"] .ac-code-copy.is-copied {
  background: rgba(42, 186, 170, 0.18);
  border-color: rgba(88, 212, 194, 0.58);
  color: var(--ac-text-strong);
}

.ac-post-nav {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ac-nav-card,
.ac-tag-cloud,
.ac-timeline-item {
  background: var(--ac-surface);
  border: 1px solid var(--ac-border);
  box-shadow: var(--ac-shadow);
  border-radius: var(--ac-radius-md);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.ac-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.2rem;
  min-height: 5.5rem;
  justify-content: center;
}

.ac-nav-card span {
  color: var(--ac-text-muted);
  font-size: 0.85rem;
}

.ac-nav-card strong {
  color: var(--ac-text-strong);
}

.ac-nav-card-empty {
  opacity: 0.75;
}

.ac-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ac-timeline-heading {
  margin: 1.2rem 0 0.2rem;
  color: var(--ac-text-strong);
}

.ac-timeline-item {
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
}

.ac-timeline-item time {
  font-weight: 800;
  color: var(--ac-primary-dark);
}

.ac-timeline-item strong {
  color: var(--ac-text-strong);
}

.ac-timeline-item p {
  margin: 0.35rem 0 0;
  color: var(--ac-text-muted);
}

.ac-tag-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.ac-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.ac-info-grid-compact {
  margin: 0 0 1.2rem;
}

.ac-info-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--ac-border);
  box-shadow: var(--ac-shadow);
  border-radius: var(--ac-radius-md);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ac-info-card span {
  color: var(--ac-primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ac-info-card strong {
  color: var(--ac-text-strong);
  font-size: 1.05rem;
}

.ac-info-card p {
  margin: 0;
  color: var(--ac-text-muted);
  line-height: 1.8;
}

.ac-tag-cloud {
  padding: 1rem 1.1rem;
  min-width: 10rem;
  justify-content: space-between;
}

.ac-empty-state,
.ac-placeholder-card {
  padding: 1.6rem;
  box-shadow: var(--ac-shadow-card);
}

.ac-empty-state {
  grid-column: 1 / -1;
}

.ac-paginator {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.ac-page-link {
  min-width: 2.6rem;
  justify-content: center;
}

.ac-page-link.is-current {
  background: var(--ac-primary);
  color: #fff;
  border-color: var(--ac-primary-dark);
}

.ac-page-link.is-disabled {
  opacity: 0.5;
}

@media (max-width: 1080px) {
  .ac-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--ac-shadow-hover);
  }

  body[data-nav-open="true"] .ac-sidebar {
    transform: translateX(0);
  }

  .ac-mobile-toggle {
    display: inline-flex;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 30;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: var(--ac-primary);
    box-shadow: 0 4px 0 var(--ac-primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
  }

  .ac-mobile-toggle span {
    width: 1rem;
    height: 2px;
    background: #fff;
    border-radius: 999px;
  }

  .ac-mobile-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 15;
    padding: 4.2rem 1.25rem 1rem;
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--ac-surface) 82%, transparent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .ac-mobile-header h1,
  .ac-mobile-header p {
    margin: 0;
  }

  .ac-main-shell {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .ac-sidebar-fade {
    display: none;
  }

  .ac-site-footer,
  .ac-section-heading,
  .ac-post-nav {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .ac-info-grid {
    grid-template-columns: 1fr;
  }
}

.ac-project-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ac-project-card {
  background: var(--ac-surface);
  border: 1px solid var(--ac-border);
  box-shadow: var(--ac-shadow);
  border-radius: var(--ac-radius-lg);
  display: grid;
  grid-template-columns: minmax(0, 16rem) 1fr;
  gap: 0;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.ac-project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ac-shadow-hover);
}

.ac-project-media {
  overflow: hidden;
  background: var(--ac-bg-soft);
}

.ac-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 10rem;
}

.ac-project-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.ac-project-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ac-project-head h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ac-text-strong);
}

.ac-project-head h3 a:hover {
  color: var(--ac-primary-dark);
}

.ac-project-body time {
  font-size: 0.85rem;
  color: var(--ac-text-muted);
  font-weight: 700;
}

.ac-project-body > p {
  margin: 0;
  color: var(--ac-text-muted);
  line-height: 1.75;
  flex: 1;
}

.ac-project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ac-project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ac-cv-section {
  margin-bottom: 2rem;
}

.ac-personal-resume {
  padding: 1.25rem;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(42, 186, 170, 0.12), transparent 28%),
    rgba(255, 253, 248, 0.58);
  box-shadow: var(--ac-shadow-card);
}

.ac-cv-section-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--ac-text-strong);
}

.ac-resume-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(255, 138, 128, 0.34);
  border-radius: var(--ac-radius-sm);
  background: rgba(255, 138, 128, 0.11);
  color: var(--ac-text-strong);
  font-size: 0.92rem;
  line-height: 1.65;
}

.ac-resume-intro {
  margin: 0 0 1.2rem;
  color: var(--ac-text-muted);
  line-height: 1.85;
}

.ac-resume-subtitle {
  margin: 1.25rem 0 0.75rem;
  color: var(--ac-primary-dark);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ac-timeline-detail {
  margin: 0.35rem 0 0;
  color: var(--ac-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.ac-cv-list {
  margin: 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ac-cv-list li {
  color: var(--ac-text-strong);
  line-height: 1.7;
}

.ac-cv-list a {
  color: var(--ac-primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

.ac-cv-meta {
  color: var(--ac-text-muted);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.ac-personal-avatar {
  width: 8.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--ac-shadow);
}

.ac-personal-avatar img {
  width: 100%;
  height: auto;
}

@media (max-width: 1080px) {
  .ac-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--ac-shadow-hover);
  }

  body[data-nav-open="true"] .ac-sidebar {
    transform: translateX(0);
  }

  .ac-mobile-toggle {
    display: inline-flex;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 30;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: var(--ac-primary);
    box-shadow: 0 4px 0 var(--ac-primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
  }

  .ac-mobile-toggle span {
    width: 1rem;
    height: 2px;
    background: #fff;
    border-radius: 999px;
  }

  .ac-mobile-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 15;
    padding: 4.2rem 1.25rem 1rem;
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--ac-surface) 82%, transparent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .ac-mobile-header h1,
  .ac-mobile-header p {
    margin: 0;
  }

  .ac-main-shell {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .ac-sidebar-fade {
    display: none;
  }

  .ac-site-footer,
  .ac-section-heading,
  .ac-post-nav {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .ac-info-grid {
    grid-template-columns: 1fr;
  }

  .ac-project-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .ac-mobile-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 25;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(42, 186, 170, 0.16);
    border-radius: 0 0 var(--ac-radius-lg) var(--ac-radius-lg);
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--ac-surface) 88%, transparent);
    box-shadow: 0 10px 24px rgba(135, 115, 88, 0.1);
  }

  .ac-mobile-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    left: 0.85rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: var(--ac-radius-md);
    background: var(--ac-primary);
    box-shadow: 0 4px 0 var(--ac-primary-dark);
    transform: translateY(-50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
  }

  .ac-mobile-toggle span {
    width: 1rem;
    height: 2px;
    background: #fff;
    border-radius: 999px;
  }

  .ac-mobile-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    max-width: calc(100% - 6.5rem);
    color: var(--ac-text-strong);
    text-align: center;
    line-height: 1.15;
  }

  .ac-mobile-brand span {
    font-weight: 900;
    font-size: 1.05rem;
  }

  .ac-mobile-brand small {
    color: var(--ac-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

@media (max-width: 720px) {
  .ac-content-shell,
  .ac-site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ac-hero-card,
  .ac-post-shell,
  .ac-page-shell {
    padding: 1.3rem;
  }

  .ac-card-grid {
    grid-template-columns: 1fr;
  }

  .ac-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .ac-post-nav {
    display: flex;
  }
}

@media (max-width: 1080px) {
  body[data-nav-open="true"] {
    overflow: hidden;
  }

  body[data-nav-open="true"]::before {
    content: "";
    position: fixed;
    inset: 3.55rem 0 0;
    z-index: 30;
    background: rgba(49, 43, 36, 0.2);
    backdrop-filter: blur(2px);
  }

  .ac-mobile-header {
    z-index: 45;
    min-height: 3.55rem;
    padding: 0.44rem 0.85rem;
    border-radius: 0 0 1.25rem 1.25rem;
  }

  .ac-mobile-toggle {
    left: 0.75rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.95rem;
    box-shadow: 0 3px 0 var(--ac-primary-dark);
  }

  .ac-mobile-brand {
    max-width: calc(100% - 5.8rem);
  }

  .ac-mobile-brand span {
    font-size: 0.98rem;
  }

  .ac-mobile-brand small {
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }

  .ac-sidebar {
    top: 3.55rem;
    z-index: 35;
    width: min(var(--ac-sidebar-width), calc(100vw - 2rem));
    height: calc(100vh - 3.55rem);
    padding: 1rem 0.85rem;
    border-top-right-radius: var(--ac-radius-lg);
    border-bottom-right-radius: var(--ac-radius-lg);
  }

  .ac-sidebar-inner {
    gap: 1rem;
  }

  .ac-sidebar-avatar {
    width: 7.2rem;
    height: 7.2rem;
  }
}

@media (max-width: 900px) {
  .ac-blog-board {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ac-webs-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ac-blog-count {
    justify-self: start;
  }

  .ac-blog-grid {
    grid-template-columns: 1fr;
  }

  .ac-blog-grid .ac-post-card,
  .ac-blog-grid .ac-post-card:nth-child(1),
  .ac-blog-grid .ac-post-card:nth-child(2),
  .ac-blog-grid .ac-post-card:nth-child(5n + 3),
  .ac-blog-grid .ac-post-card:nth-child(5n + 4),
  .ac-blog-grid .ac-post-card:nth-child(5n + 5) {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .ac-blog-grid .ac-post-card.has-media {
    min-height: 0;
  }

  .ac-blog-grid .ac-post-card-media,
  .ac-blog-grid .ac-post-card:nth-child(1) .ac-post-card-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  .ac-mobile-brand small {
    display: none;
  }

  .ac-blog-board p:not(.ac-eyebrow) {
    font-size: 0.98rem;
  }
}
