:root {
  --bg: #f4f6fa;
  --bg-soft: #eaedf4;
  --bg-card: #fff;
  --bg-hover: #f6f8fc;
  --text: #1c2333;
  --text-2: #5b6472;
  --text-3: #9aa3b2;
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-deep: #1d4ed8;
  --brand-soft: rgba(37,99,235,0.08);
  --brand-soft-2: rgba(37,99,235,0.14);
  --border: #e3e7ef;
  --border-2: #d5dae5;
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.04);
  --shadow: 0 2px 10px rgba(16,24,40,0.06);
  --shadow-lg: 0 6px 20px rgba(16,24,40,0.1);
  --radius: 10px;
  --radius-sm: 6px;
  --amber: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --code-bg: #0f172a;
  --header-bg: #fff;
}
[data-theme='dark'] {
  --bg: #0f1115;
  --bg-soft: #141821;
  --bg-card: #171a21;
  --bg-hover: #1d222c;
  --text: #e6e9f0;
  --text-2: #a6adc4;
  --text-3: #6b7286;
  --brand: #3b82f6;
  --brand-2: #60a5fa;
  --brand-deep: #2563eb;
  --brand-soft: rgba(59,130,246,0.12);
  --brand-soft-2: rgba(59,130,246,0.2);
  --border: #262b36;
  --border-2: #333a48;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 2px 10px rgba(0,0,0,0.3);
  --shadow-lg: 0 6px 20px rgba(0,0,0,0.45);
  --header-bg: #171a21;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.25s ease, color 0.25s ease;
}
a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand-deep);
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.15em;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 19px;
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-btn:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.cat-c-1,
.cat-c-2,
.cat-c-3,
.cat-c-4,
.cat-c-5,
.cat-c-6 {
  --cat-accent: var(--brand);
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cat-accent, var(--brand));
  background: color-mix(in srgb, var(--cat-accent, var(--brand)) 12%, transparent);
  transition: box-shadow 0.15s ease;
}
.cat-text {
  color: var(--cat-accent, var(--brand));
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-menu-btn {
  display: none;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.site-logo:hover {
  color: var(--text);
}
.site-logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
}
.site-logo .logo-text {
  white-space: nowrap;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-item a {
  display: block;
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-item a:hover {
  color: var(--brand);
}
.nav-item.active a {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
[data-theme='light'] .icon-sun {
  display: none;
}
[data-theme='dark'] .icon-moon {
  display: none;
}
.nav-backdrop {
  display: none;
}
.site-notice {
  background: var(--brand-soft);
  color: var(--text);
  font-size: 13.5px;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}
.hero {
  position: relative;
  background: var(--bg-card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
}
.hero-inner {
  position: relative;
  text-align: center;
}
.hero-title {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 26px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--text-3);
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease;
}
.hero-search:hover {
  border-color: var(--brand);
}
.hero-search span {
  flex: 1;
}
.hero-search kbd {
  font-family: inherit;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-2);
  color: var(--text-3);
  background: var(--bg-card);
}
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text-3);
}
.hero-stats b {
  color: var(--text-2);
  font-size: 15px;
  margin-right: 4px;
}
.hero-cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.hero-cat {
  padding: 5px 14px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero-cat:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 56px;
  align-items: start;
}
.layout-full {
  grid-template-columns: minmax(0, 1fr);
}
.layout-post {
  grid-template-columns: minmax(0, 1fr) 260px;
}
.layout-post:not(.has-toc) {
  grid-template-columns: minmax(0, 1fr) 0;
}
.layout-side {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.layout-post:not(.has-toc) .post-side {
  display: none;
}
.layout-main {
  min-width: 0;
}
.section {
  margin-bottom: 36px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}
.section-title .icon {
  color: var(--brand);
  font-size: 18px;
}
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  color: var(--text-3);
}
.section-more:hover {
  color: var(--brand);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.featured-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow);
}
.featured-cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: block;
}
.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.featured-cover.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}
.featured-cover.is-placeholder .cover-fallback {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-3);
  opacity: 0.5;
}
.featured-card:hover .featured-cover img {
  transform: scale(1.05);
}
.featured-card-lg .featured-cover {
  aspect-ratio: 16/8.4;
}
.featured-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featured-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-title a {
  color: var(--text);
}
.featured-title a:hover {
  color: var(--brand);
}
.featured-card-lg .featured-title {
  font-size: 18px;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow);
}
.post-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.post-card-cover.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}
.post-card-cover.is-placeholder .cover-fallback {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-3);
  opacity: 0.5;
}
.post-card:hover .post-card-cover img {
  transform: scale(1.05);
}
.post-card-cat {
  position: absolute;
  left: 12px;
  top: 12px;
}
.post-card-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title a {
  color: var(--text);
}
.post-card-title a:hover {
  color: var(--brand);
}
.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: auto;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meta-rating {
  color: var(--amber);
  font-weight: 700;
}
.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.side-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.side-card-title .icon {
  color: var(--brand);
}
.profile-card {
  text-align: center;
}
.profile-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
}
.profile-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.profile-bio {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 14px;
}
.profile-social,
.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-social .social-link,
.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 16px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.profile-social .social-link:hover,
.footer-social .social-link:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.side-post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.side-post-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.side-post-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.side-post-list a {
  flex: 1;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-post-list a:hover {
  color: var(--brand);
}
.side-post-date {
  font-size: 12px;
  color: var(--text-3);
  flex: none;
}
.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tag-chip span {
  font-size: 11px;
  color: var(--text-3);
}
.tag-chip:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.tag-chip:hover span {
  color: var(--brand);
}
.side-rss {
  text-align: center;
  background: var(--bg-soft);
}
.side-rss .icon {
  font-size: 28px;
  color: var(--brand);
  margin-bottom: 6px;
}
.side-rss h3 {
  font-size: 16px;
  font-weight: 700;
}
.side-rss p {
  font-size: 12.5px;
  color: var(--text-2);
  margin: 6px 0 14px;
}
.btn-rss {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.btn-rss:hover {
  color: #fff;
  background: var(--brand-deep);
}
.page-head {
  margin-bottom: 24px;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 700;
}
.page-title .icon {
  color: var(--brand);
}
.page-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-3);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.page-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.page-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.page-info {
  font-size: 14px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.1s linear;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb a:hover {
  color: var(--brand);
}
.breadcrumb .icon {
  font-size: 13px;
}
.breadcrumb .breadcrumb-current {
  display: inline-block;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 4vw, 42px);
}
.post-header {
  margin-bottom: 22px;
}
.post-title {
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 12px 0 16px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--text-3);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.meta-updated {
  color: var(--green);
}
.post-cover {
  margin: 0 0 26px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}
.rating-card {
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.rating-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rating-score {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.rating-num {
  font-size: 34px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rating-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 20px;
}
.rating-stars .star {
  position: relative;
  color: var(--border-2);
}
.rating-stars .star.full {
  color: var(--amber);
}
.rating-stars .star.half {
  color: var(--border-2);
}
.rating-stars .star.half::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  color: var(--amber);
  background: linear-gradient(90deg, var(--amber) 50%, transparent 50%);
  -webkit-background-clip: text;
  background-clip: text;
}
.rating-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  padding: 3px 10px;
  background: rgba(245,158,11,0.12);
  border-radius: 6px;
}
.rating-verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.rating-verdict .icon {
  color: var(--amber);
}
.rating-pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.pc-col {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
}
.pc-col h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pc-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pc-col li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.pc-col li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.pc-pros h4 {
  color: var(--green);
}
.pc-pros h4 .icon {
  color: var(--green);
}
.pc-pros li::before {
  background: var(--green);
}
.pc-cons h4 {
  color: var(--red);
}
.pc-cons h4 .icon {
  color: var(--red);
}
.pc-cons li::before {
  background: var(--red);
}
.post-content {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
  word-break: break-word;
}
.post-content > *:first-child {
  margin-top: 0;
}
.post-content h2,
.post-content h3,
.post-content h4 {
  font-weight: 700;
  line-height: 1.4;
  margin: 1.6em 0 0.7em;
  scroll-margin-top: 90px;
}
.post-content h2 {
  font-size: 21px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.post-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
}
.post-content h3 {
  font-size: 18.5px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  border-radius: 2px;
}
.post-content h4 {
  font-size: 16.5px;
}
.post-content p {
  margin: 0.9em 0;
}
.post-content a {
  border-bottom: 1px dashed color-mix(in srgb, var(--brand) 50%, transparent);
}
.post-content a:hover {
  border-bottom-style: solid;
}
.post-content strong {
  color: var(--brand-deep);
  font-weight: 700;
}
.post-content ul,
.post-content ol {
  padding-left: 1.4em;
  margin: 0.9em 0;
}
.post-content li {
  margin: 0.35em 0;
}
.post-content ul > li::marker {
  color: var(--brand);
}
.post-content blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-soft);
  color: var(--text-2);
}
.post-content blockquote p {
  margin: 0.4em 0;
}
.post-content img {
  border-radius: var(--radius-sm);
  margin: 1.2em auto;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.post-content hr {
  border: none;
  height: 1px;
  margin: 2.2em 0;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
.post-content code {
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, 'PingFang SC', monospace;
  font-size: 0.86em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--brand-soft-2);
  color: var(--brand-deep);
  word-break: break-word;
}
.post-content table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
  white-space: normal;
}
.post-content th {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}
.post-content td {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.post-content tbody tr:nth-child(even) {
  background: var(--bg-hover);
}
.post-content tbody tr:hover {
  background: var(--brand-soft);
}
[data-theme='dark'] .post-content code {
  color: var(--brand-2);
}
[data-theme='dark'] .post-content strong {
  color: var(--brand-2);
}
.post-content figure.highlight {
  position: relative;
  margin: 1.4em 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--code-bg);
  box-shadow: var(--shadow);
}
.post-content figure.highlight::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
  z-index: 2;
}
.post-content figure.highlight::after {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 11px;
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
}
.post-content figure.highlight table {
  margin: 0;
  border: none;
  border-radius: 0;
  display: table;
  width: 100%;
  background: transparent;
}
.post-content figure.highlight td {
  border: none;
  padding: 0;
  background: transparent;
}
.post-content figure.highlight .gutter {
  width: 44px;
  padding-left: 0;
}
.post-content figure.highlight .gutter pre {
  max-width: 44px;
  color: rgba(255,255,255,0.25);
  text-align: right;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.post-content figure.highlight .code pre {
  color: #e2e8f0;
}
.post-content figure.highlight pre {
  margin: 0;
  padding: 46px 18px 16px;
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
  background: transparent;
}
.post-content figure.highlight pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}
.post-content figure.highlight .hljs-comment,
.post-content figure.highlight .hljs-quote {
  color: #64748b;
  font-style: italic;
}
.post-content figure.highlight .hljs-keyword,
.post-content figure.highlight .hljs-selector-tag,
.post-content figure.highlight .hljs-meta,
.post-content figure.highlight .hljs-doctag,
.post-content figure.highlight .hljs-section {
  color: #c792ea;
}
.post-content figure.highlight .hljs-string,
.post-content figure.highlight .hljs-regexp,
.post-content figure.highlight .hljs-addition,
.post-content figure.highlight .hljs-attribute,
.post-content figure.highlight .hljs-meta .hljs-string {
  color: #a5d6a7;
}
.post-content figure.highlight .hljs-number,
.post-content figure.highlight .hljs-literal,
.post-content figure.highlight .hljs-symbol {
  color: #f78c6c;
}
.post-content figure.highlight .hljs-title,
.post-content figure.highlight .hljs-title.class_,
.post-content figure.highlight .hljs-title.function_,
.post-content figure.highlight .hljs-name {
  color: #82aaff;
}
.post-content figure.highlight .hljs-attr,
.post-content figure.highlight .hljs-variable,
.post-content figure.highlight .hljs-template-variable,
.post-content figure.highlight .hljs-type,
.post-content figure.highlight .hljs-selector-class,
.post-content figure.highlight .hljs-selector-attr {
  color: #ffcb6b;
}
.post-content figure.highlight .hljs-built_in,
.post-content figure.highlight .hljs-builtin-name {
  color: #89ddff;
}
.post-content figure.highlight .hljs-deletion {
  color: #ff5370;
}
.post-content figure.highlight .hljs-emphasis {
  font-style: italic;
}
.post-content figure.highlight .hljs-strong {
  font-weight: bold;
}
.post-content > pre {
  position: relative;
  margin: 1.4em 0;
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  box-shadow: var(--shadow);
  padding: 46px 18px 16px;
  overflow-x: auto;
}
.post-content > pre::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
}
.post-content > pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.7;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.post-copyright {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px dashed var(--border-2);
  font-size: 13px;
  color: var(--text-3);
  line-height: 2;
}
.post-copyright a {
  color: var(--text-2);
  word-break: break-all;
}
.post-copyright a:hover {
  color: var(--brand);
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}
.post-nav-item.next {
  text-align: right;
}
.post-nav-item.empty {
  visibility: hidden;
}
.post-nav-item:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}
.post-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 600;
}
.post-nav-item.next .post-nav-label {
  justify-content: flex-end;
}
.post-nav-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-section {
  margin-bottom: 12px;
}
.toc-card {
  padding: 18px;
}
.toc ol {
  list-style: none;
  padding-left: 0;
}
.toc .toc-child {
  padding-left: 14px;
}
.toc .toc-item {
  margin: 2px 0;
}
.toc .toc-link {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}
.toc .toc-link:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
.toc .toc-link.active {
  color: var(--brand);
  font-weight: 700;
  border-left-color: var(--brand);
  background: var(--brand-soft);
}
.toc .toc-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-group {
  margin-bottom: 30px;
}
.archive-year {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
}
.archive-year span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}
.archive-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--border);
  margin-left: 6px;
  padding-left: 22px;
}
.archive-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.archive-item:hover {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.archive-date {
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  flex: none;
  width: 40px;
}
.archive-title {
  flex: 1;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
}
.archive-title:hover {
  color: var(--brand);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}
.category-card:hover {
  border-color: color-mix(in srgb, var(--cat-accent, var(--brand)) 50%, var(--border));
}
.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  font-size: 24px;
  color: var(--cat-accent, var(--brand));
  background: color-mix(in srgb, var(--cat-accent, var(--brand)) 10%, transparent);
}
.category-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.category-count {
  font-size: 12.5px;
  color: var(--text-3);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 10px 0;
}
.tag-cloud-item {
  color: var(--text-2);
  font-weight: 600;
  line-height: 1.3;
  position: relative;
  transition: color 0.15s ease;
}
.tag-cloud-item::after {
  content: attr(data-count);
  font-size: 11px;
  color: var(--text-3);
  vertical-align: super;
  margin-left: 2px;
}
.tag-cloud-item:hover {
  color: var(--brand);
}
.tag-title .icon {
  color: var(--brand);
}
.notfound {
  text-align: center;
  padding: 70px 20px 90px;
}
.nf-code {
  font-size: clamp(90px, 18vw, 150px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand);
}
.nf-title {
  font-size: 24px;
  font-weight: 700;
  margin: 18px 0 10px;
}
.nf-desc {
  color: var(--text-3);
  font-size: 15px;
  margin-bottom: 28px;
}
.nf-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .site-logo {
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 14px;
  max-width: 300px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.footer-col a {
  font-size: 13.5px;
  color: var(--text-3);
}
.footer-col a:hover {
  color: var(--brand);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--text-3);
}
.footer-bottom p {
  margin: 0;
}
.footer-powered a {
  color: var(--text-2);
}
.footer-powered a:hover {
  color: var(--brand);
}
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}
.search-modal.open {
  display: block;
}
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,14,25,0.55);
}
.search-dialog {
  position: relative;
  width: min(640px, calc(100% - 32px));
  margin: 12vh auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: search-in 0.2s ease;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.search-bar > .icon {
  font-size: 19px;
  color: var(--text-3);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
.search-bar input::placeholder {
  color: var(--text-3);
}
.search-results {
  max-height: 56vh;
  overflow-y: auto;
  padding: 8px;
}
.search-hint {
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
  padding: 28px 0;
}
.search-item {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 0.12s ease;
}
.search-item:hover,
.search-item.active {
  background: var(--brand-soft);
}
.search-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-item-title em {
  font-style: normal;
  color: var(--brand);
}
.search-item-desc {
  font-size: 13px;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-item-desc em {
  font-style: normal;
  color: var(--brand);
  font-weight: 600;
}
.search-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
  padding: 24px 0;
}
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 90;
}
.back-to-top:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8,11,20,0.86);
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  animation: lb-in 0.2s ease;
}
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .layout-side {
    position: static;
  }
  .layout-post {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-side {
    display: none;
  }
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-grid .featured-card-lg {
    grid-column: 1/-1;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  .header-menu-btn {
    display: inline-flex;
  }
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 82vw);
    z-index: 120;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 0 18px 24px;
    transform: translateX(-102%);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open {
    transform: translateX(0);
  }
  .site-nav .nav-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    border-bottom: 1px solid var(--border);
  }
  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 0;
  }
  .site-nav .nav-item a {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 15.5px;
  }
  .site-nav .nav-mobile-foot {
    margin-top: auto;
    display: flex;
    gap: 8px;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(10,14,25,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .nav-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }
  .header-right {
    display: none;
  }
  .hero {
    padding: 46px 0 42px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-grid .featured-card-lg {
    grid-column: auto;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .rating-pc {
    grid-template-columns: 1fr;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav .post-nav-item.next {
    text-align: left;
  }
  .post-nav .post-nav-item.next .post-nav-label {
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-dialog {
    margin-top: 8vh;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  .post-content {
    font-size: 15.5px;
  }
  .post-content th,
  .post-content td {
    padding: 8px 10px;
    font-size: 13.5px;
  }
  .post-article {
    padding: 20px 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .breadcrumb-current {
    max-width: 180px;
  }
}
.site-nav .nav-mobile-head,
.site-nav .nav-mobile-foot {
  display: none;
}
@media (max-width: 768px) {
  .site-nav {
    display: flex;
  }
  .site-nav .nav-mobile-head,
  .site-nav .nav-mobile-foot {
    display: flex;
  }
}
@media print {
  .site-header,
  .layout-side,
  .site-footer,
  .back-to-top,
  .reading-progress,
  .post-nav,
  .related-section,
  .post-tags,
  .post-copyright {
    display: none !important;
  }
  .post-article {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}
@-moz-keyframes search-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@-webkit-keyframes search-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@-o-keyframes search-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes search-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@-moz-keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@-webkit-keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@-o-keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
