/* ==========================================================
   Smarto — 极简黑白个人博客主题
   参考：Smarto Creative Portfolio 的版式语言
   ========================================================== */

/* ---------- 0. Tokens ---------- */
:root {
  --ink: #111111;
  --ink-soft: #2b2b2b;
  --body: #555555;
  --muted: #8d8d8d;
  --faint: #b5b5b5;
  --line: #e6e6e6;
  --line-soft: #f0f0ee;
  --paper: #ffffff;
  --soft: #f7f7f5;
  --dark: #121212;
  --dark-2: #1b1b1b;
  --max: 1200px;
  --gutter: 40px;
  --header-h: 88px;
  --font: "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-display: "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; }
.section-soft { background: var(--soft); }
.dot { margin: 0 8px; color: var(--faint); }

/* ---------- 2. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .05); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-size: 17px; font-weight: 700;
  letter-spacing: 0;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; letter-spacing: 3px; font-weight: 700; color: var(--ink); }
.brand-text em { font-style: normal; font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-top: 4px; }

.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-link {
  position: relative;
  font-size: 13.5px;
  letter-spacing: 1.6px;
  color: var(--ink-soft);
  padding: 8px 0;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .25s var(--ease);
}
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.menu-toggle { display: none; width: 40px; height: 40px; padding: 12px 9px; }
.menu-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 4px 0; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0;
  z-index: 85;
  background: var(--paper);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav-inner { padding: 40px 32px; display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 24px; font-weight: 600; color: var(--ink);
}
.mobile-nav nav a i { font-style: normal; font-size: 16px; color: var(--faint); }
.mobile-nav nav a.is-active { color: var(--ink); }
.mobile-nav nav a.is-active i { color: var(--ink); }
.mobile-nav-foot { display: flex; gap: 20px; color: var(--muted); font-size: 13px; letter-spacing: 1px; padding-bottom: 24px; }

/* Search layer */
.search-layer {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(255, 255, 255, .98);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.search-layer.is-open { opacity: 1; visibility: visible; }
.search-layer-inner { max-width: 760px; margin: 0 auto; padding: 120px 32px 80px; position: relative; }
.search-close { position: absolute; top: 30px; right: 24px; font-size: 34px; line-height: 1; color: var(--ink); font-weight: 300; }
.search-hint { font-size: 12px; letter-spacing: 3px; color: var(--muted); margin-bottom: 18px; }
.search-box { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.search-box svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; flex: none; }
.search-box input {
  flex: 1; border: 0; background: none; font-size: 22px; color: var(--ink); padding: 6px 0;
}
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--faint); }
.search-results { margin-top: 32px; }
.search-result-item { display: block; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.search-result-item h3 { font-size: 17px; margin-bottom: 6px; }
.search-result-item p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-result-item mark { background: none; color: var(--ink); font-weight: 700; }
.search-result-meta { font-size: 12px; color: var(--faint); margin-top: 8px; letter-spacing: .5px; }
.search-empty { color: var(--muted); font-size: 14px; padding: 24px 0; }

/* ---------- 3. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 30px;
  font-size: 13px; letter-spacing: 2px; font-weight: 600;
  border: 1px solid var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn span { font-size: 14px; transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 1.5px; color: var(--ink); font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap .3s var(--ease);
}
.link-arrow i { font-style: normal; transition: transform .3s var(--ease); }
.link-arrow:hover { gap: 14px; }
.link-arrow-lg { font-size: 14px; margin-top: 30px; }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  background: var(--soft);
  overflow: hidden;
  padding: 110px 0 90px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-triangle {
  position: absolute;
  top: 14%;
  left: -6%;
  width: 46vw; max-width: 560px;
  aspect-ratio: 1 / 1.05;
  background: linear-gradient(135deg, #ececea 0%, #e2e2df 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: .8;
  pointer-events: none;
}
.hero-watermark {
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  font-size: clamp(100px, 20vw, 300px);
  font-weight: 900;
  letter-spacing: -8px;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, .07);
  pointer-events: none;
  user-select: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; width: 100%; }
.hero-copy { max-width: 820px; }
.hero-kicker {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; letter-spacing: 7px; color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero-kicker .rule { display: block; width: 56px; height: 1px; background: var(--ink); }
.hero-title {
  font-size: clamp(54px, 9.4vw, 104px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: .96;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-subline {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.6;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
}
.typed-box { position: relative; display: inline-flex; align-items: baseline; }
#typed-text {
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}
.typed-caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--ink); margin-left: 4px;
  animation: caret 1.1s steps(1) infinite;
  transform: translateY(2px);
}
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.hero-desc { max-width: 560px; margin-top: 28px; font-size: 15.5px; line-height: 1.95; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(0, 0, 0, .1); max-width: 520px; }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -1px; }
.hero-stats span { font-size: 11.5px; letter-spacing: 2px; color: var(--muted); }

.hero-side { align-self: stretch; display: flex; align-items: flex-end; padding-bottom: 10px; }
.hero-social { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-social a { color: var(--ink-soft); transition: color .2s, transform .3s var(--ease); }
.hero-social a:hover { color: var(--ink); transform: translateY(-2px); }
.hero-social svg { width: 17px; height: 17px; fill: currentColor; }
.hero-social-line { width: 1px; height: 90px; background: linear-gradient(to bottom, var(--ink), transparent); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: 3px; color: var(--muted);
  z-index: 3;
}
.hero-scroll i { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll i::after {
  content: ""; position: absolute; top: -44px; left: 0;
  width: 1px; height: 44px; background: var(--ink);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -44px; } 60%, 100% { top: 44px; } }

/* ---------- 5. Section head ---------- */
.section-head { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 56px; }
.section-index {
  font-size: 12px; letter-spacing: 1px; color: var(--muted);
  padding-top: 8px; font-variant-numeric: tabular-nums;
  min-width: 24px;
}
.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
  line-height: 1.25;
}
.section-sub { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 560px; line-height: 1.8; }
.section-head-row { align-items: flex-end; justify-content: space-between; }
.section-more {
  font-size: 13px; letter-spacing: 1.5px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 6px; border-bottom: 1px solid var(--ink);
  white-space: nowrap; margin-bottom: 6px;
}
.section-more span { transition: transform .3s var(--ease); }
.section-more:hover span { transform: translateX(4px); }

/* ---------- 6. Home about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-copy p { font-size: 15.5px; line-height: 2; color: var(--body); margin-bottom: 20px; }
.about-copy p:first-child { font-size: 17px; color: var(--ink-soft); }
.skill-list { display: flex; flex-direction: column; gap: 30px; padding-top: 6px; }
.skill-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.skill-head span { font-size: 12.5px; letter-spacing: 2px; color: var(--ink-soft); font-weight: 600; }
.skill-head em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.skill-bar { height: 2px; background: #e4e4e1; position: relative; }
.skill-bar i {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: var(--ink);
  transition: width 1.2s var(--ease);
}
.skill-bar i::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 8px; height: 8px; background: var(--ink);
  transform: rotate(45deg);
}

/* ---------- 7. Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.post-card { display: flex; flex-direction: column; }
.post-card-media {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ececea; position: relative;
}
.post-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%);
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.post-card:hover .post-card-media img { transform: scale(1.05); filter: grayscale(0); }
.post-card-body { padding-top: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; letter-spacing: .8px; color: var(--muted); margin-bottom: 12px;
}
.post-card-cat {
  color: var(--ink); font-weight: 600; letter-spacing: 1.5px;
  border-bottom: 1px solid var(--ink); padding-bottom: 1px;
}
.post-card-title { font-size: 20px; line-height: 1.55; font-weight: 700; margin-bottom: 10px; letter-spacing: -.2px; }
.post-card-title a { transition: color .2s; }
.post-card-title a:hover { color: #000; }
.post-card-desc {
  font-size: 13.5px; line-height: 1.85; color: var(--muted); margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .link-arrow { margin-top: auto; align-self: flex-start; font-size: 12px; }

/* ---------- 8. Works ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { position: relative; display: block; overflow: hidden; background: #ececea; aspect-ratio: 4 / 3; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: grayscale(15%); }
.work-card:hover img { transform: scale(1.04); filter: grayscale(0); }
.work-overlay {
  position: absolute; inset: 0;
  background: rgba(12, 12, 12, .58);
  color: #fff;
  padding: 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-cat { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 12px; }
.work-overlay h3 { color: #fff; font-size: 26px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.3px; }
.work-overlay p { font-size: 13.5px; color: rgba(255, 255, 255, .72); line-height: 1.7; max-width: 420px; }
.work-view { margin-top: 22px; font-size: 12px; letter-spacing: 2px; display: inline-flex; gap: 8px; align-items: center; }
.work-view i { font-style: normal; transition: transform .3s var(--ease); }
.work-card:hover .work-view i { transform: translateX(5px); }

.work-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.work-filter button {
  padding: 9px 20px;
  font-size: 12px; letter-spacing: 1.5px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all .3s var(--ease);
}
.work-filter button:hover { border-color: var(--ink); color: var(--ink); }
.work-filter button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.work-grid-page { gap: 30px; }
.work-card.is-hidden { display: none; }
.work-cta { margin-top: 80px; text-align: center; border-top: 1px solid var(--line); padding-top: 60px; }
.work-cta h3 { font-size: 26px; margin-bottom: 10px; }
.work-cta p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.empty-tip { color: var(--muted); font-size: 14px; }

/* ---------- 9. Testimonials ---------- */
.testimonials { background: var(--dark); color: #fff; padding: 110px 0; position: relative; overflow: hidden; }
.testimonials::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .05), transparent 55%);
  pointer-events: none;
}
.quote-slider { position: relative; min-height: 260px; max-width: 860px; margin: 0 auto; text-align: center; }
.quote-item {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.quote-item.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.quote-mark { font-size: 80px; line-height: .6; color: rgba(255, 255, 255, .18); font-family: Georgia, serif; margin-bottom: 20px; }
.quote-item blockquote {
  margin: 0; font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 300; line-height: 1.85; color: #f2f2f2;
  max-width: 760px;
}
.quote-item figcaption { margin-top: 34px; display: flex; flex-direction: column; gap: 4px; }
.quote-item figcaption strong { font-size: 14px; letter-spacing: 2px; color: #fff; font-weight: 600; }
.quote-item figcaption span { font-size: 11.5px; letter-spacing: 2px; color: rgba(255, 255, 255, .45); }
.quote-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.quote-dots button { width: 6px; height: 6px; background: rgba(255, 255, 255, .25); transition: all .3s; padding: 0; }
.quote-dots button.is-active { background: #fff; width: 22px; }

/* ---------- 10. Subscribe ---------- */
.subscribe { border-top: 1px solid var(--line-soft); }
.subscribe-inner { max-width: 640px; text-align: center; }
.subscribe h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.5px; }
.subscribe p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.subscribe-form { display: flex; align-items: center; gap: 12px; margin-top: 40px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.subscribe-form input {
  flex: 1; border: 0; background: none; padding: 14px 0; font-size: 15px; color: var(--ink);
}
.subscribe-form input:focus { outline: none; }
.subscribe-form input::placeholder { color: var(--faint); }
.subscribe-form button {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  transition: transform .3s var(--ease), background .3s;
}
.subscribe-form button:hover { transform: translateX(3px); }
.subscribe-form svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.subscribe-tip { font-size: 12.5px; color: var(--ink); margin-top: 14px; min-height: 18px; }

/* ---------- 11. Footer ---------- */
.site-footer { background: #101010; color: rgba(255, 255, 255, .62); padding: 84px 0 30px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; }
.footer-logo { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 16px; letter-spacing: 2px; font-weight: 600; }
.footer-logo .brand-mark { background: #fff; color: #111; }
.footer-desc { margin-top: 20px; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .45); max-width: 340px; }
.footer-social { display: flex; gap: 10px; margin-top: 26px; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .7);
  transition: all .3s var(--ease);
}
.footer-social a:hover { background: #fff; color: #111; border-color: #fff; }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-col h4 { color: #fff; font-size: 12px; letter-spacing: 2.5px; font-weight: 600; margin-bottom: 22px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13px; color: rgba(255, 255, 255, .5); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255, 255, 255, .35);
}
.footer-bottom a { color: rgba(255, 255, 255, .55); }
.footer-bottom a:hover { color: #fff; }
.footer-meta { display: flex; align-items: center; }
.footer-meta .dot { color: rgba(255, 255, 255, .2); }

/* Back to top + progress */
.back-top {
  position: fixed; right: 26px; bottom: 28px; z-index: 80;
  width: 44px; height: 44px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .35s var(--ease);
}
.back-top.is-show { opacity: 1; visibility: visible; transform: none; }
.back-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.read-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--ink); z-index: 200; transition: width .1s linear;
}

/* ---------- 12. Page hero ---------- */
.page-hero {
  position: relative;
  background: var(--soft);
  padding: 100px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero-shape {
  position: absolute; right: -60px; top: -120px;
  width: 420px; height: 420px;
  background: #ececea;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: .9;
}
.page-hero .shell { position: relative; z-index: 2; }
.page-hero-kicker { font-size: 11.5px; letter-spacing: 6px; color: var(--muted); margin-bottom: 18px; }
.page-hero-title { font-size: clamp(36px, 5vw, 64px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; }
.page-hero-sub { margin-top: 16px; font-size: 15px; color: var(--body); max-width: 620px; }
.page-hero-crumbs { margin-top: 32px; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.page-hero-crumbs a:hover { color: var(--ink); }
.page-hero-crumbs em { font-style: normal; color: var(--ink); }
.page-hero-crumbs span { color: var(--faint); }

/* ---------- 13. Article ---------- */
.article-hero { padding: 90px 0 56px; border-bottom: 1px solid var(--line-soft); }
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 1px; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }
.crumbs em { font-style: normal; color: var(--ink); }
.article-title { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -1px; line-height: 1.28; max-width: 900px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: 22px; font-size: 12.5px; color: var(--muted); letter-spacing: .5px; }
.article-section { padding-top: 64px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; }
.article-main { min-width: 0; max-width: 780px; }
.article-cover { margin: 0 0 44px; }
.article-cover img { width: 100%; }

.article-content { font-size: 16.5px; line-height: 2; color: #333; }
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 22px 0; }
.article-content h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -.5px;
  margin: 56px 0 20px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.article-content h3 { font-size: 20px; font-weight: 700; margin: 40px 0 14px; }
.article-content h4 { font-size: 17px; margin: 30px 0 12px; }
.article-content a { color: var(--ink); border-bottom: 1px solid rgba(17, 17, 17, .35); transition: border-color .2s; }
.article-content a:hover { border-color: var(--ink); }
.article-content ul, .article-content ol { margin: 22px 0; padding-left: 24px; }
.article-content ul { list-style: square; }
.article-content ol { list-style: decimal; }
.article-content li { margin: 8px 0; }
.article-content img { margin: 30px 0; }
.article-content blockquote {
  margin: 36px 0; padding: 6px 0 6px 26px;
  border-left: 2px solid var(--ink);
  color: #444; font-style: italic;
}
.article-content blockquote p { margin: 10px 0; }
.article-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .86em; background: #f3f3f1; padding: 2px 6px; color: #1d1d1d;
}
.article-content pre {
  margin: 30px 0; padding: 18px 20px;
  background: #15151a; color: #e6e6e6;
  border: 1px solid #26262b; border-radius: 6px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.8;
  position: relative;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.article-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.article-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-content th { background: var(--soft); font-weight: 600; color: var(--ink); }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 46px 0; }
.article-content iframe { max-width: 100%; }
.article-content figure { margin: 30px 0; }
.article-content figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }

/* highlight.js line numbers padding */
.article-content figure.highlight, .article-content pre { tab-size: 2; }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-tags .label, .share-row .label { font-size: 11.5px; letter-spacing: 2px; color: var(--muted); margin-right: 6px; }
.article-tags a {
  font-size: 12.5px; padding: 6px 14px; background: var(--soft);
  color: var(--ink-soft); transition: all .25s;
}
.article-tags a:hover { background: var(--ink); color: #fff; }

.copyright-box { margin-top: 26px; background: var(--soft); padding: 22px 26px; font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.copyright-box strong { color: var(--ink-soft); }
.copyright-box a { color: var(--ink); border-bottom: 1px solid var(--line); }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; font-size: 12.5px; }
.share-row a, .share-row button {
  color: var(--ink-soft); padding-bottom: 2px; border-bottom: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.share-row a:hover, .share-row button:hover { border-color: var(--ink); color: var(--ink); }

.author-box {
  display: flex; gap: 22px; align-items: flex-start;
  margin-top: 48px; padding: 30px;
  border: 1px solid var(--line);
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); }
.author-box h3 { font-size: 16px; margin-bottom: 6px; }
.author-box p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.author-links { display: flex; gap: 18px; margin-top: 12px; }
.author-links a { font-size: 12px; letter-spacing: 1px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.post-nav-item {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border: 1px solid var(--line);
  transition: border-color .3s var(--ease), background .3s;
}
.post-nav-item:hover { border-color: var(--ink); background: var(--soft); }
.post-nav-item span { font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.post-nav-item strong { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.post-nav-item.next { text-align: right; align-items: flex-end; }
.post-nav-item.is-empty { border: 0; }

/* Sidebar */
.article-side { position: sticky; top: calc(var(--header-h) + 32px); }
.side-block { margin-bottom: 44px; }
.side-title {
  font-size: 11px; letter-spacing: 3px; color: var(--ink);
  padding-bottom: 12px; border-bottom: 1px solid var(--ink);
  margin-bottom: 18px; font-weight: 600;
}
.toc ol, .toc > ol { list-style: none; padding: 0; margin: 0; }
.toc ol ol { padding-left: 14px; }
.toc li { margin: 8px 0; line-height: 1.6; }
.toc a { font-size: 13px; color: var(--muted); display: block; padding: 3px 0 3px 0; border-left: 1px solid transparent; padding-left: 10px; margin-left: -10px; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }

.side-author { text-align: center; padding: 30px 22px; background: var(--soft); }
.side-author img { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; }
.side-author h4 { font-size: 15px; margin-bottom: 8px; }
.side-author p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.side-social { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.side-social svg { width: 15px; height: 15px; fill: var(--ink-soft); }
.side-social a:hover svg { fill: var(--ink); }

.side-posts li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.side-posts a { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; display: block; transition: color .2s; }
.side-posts a:hover { color: var(--ink); }
.side-posts time { display: block; font-size: 11px; color: var(--faint); margin-top: 4px; letter-spacing: .5px; }

.side-cats a { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.side-cats em { font-style: normal; color: var(--faint); font-size: 11.5px; }
.side-cats a:hover { color: var(--ink); }

.side-tags, .focus-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.side-tags a, .focus-tags span {
  font-size: 12px; padding: 5px 12px; background: var(--soft); color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.side-tags a:hover { background: var(--ink); color: #fff; }
.side-tags em { font-style: normal; color: var(--faint); margin-left: 6px; font-size: 10.5px; }

/* Comments */
.comments-area { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
.section-line-head { margin-bottom: 30px; }
.section-line-head h2 { font-size: 20px; letter-spacing: 1px; }
.section-line-head p { font-size: 12.5px; color: var(--muted); margin-top: 8px; letter-spacing: 1px; }
.waline-container { min-height: 120px; }

/* Waline overrides */
:root {
  --waline-font-size: 14px;
  --waline-theme-color: #111111;
  --waline-active-color: #333333;
  --waline-color: #444444;
  --waline-bg-color: #ffffff;
  --waline-bg-color-light: #f7f7f5;
  --waline-bg-color-hover: #f0f0ee;
  --waline-border-color: #e6e6e6;
  --waline-disable-bg-color: #f5f5f3;
  --waline-info-bg-color: #f7f7f5;
  --waline-info-color: #8d8d8d;
  --waline-border: 1px solid #e6e6e6;
}
.waline-container .wl-btn, .waline-container .wl-close, .waline-container .wl-input, .waline-container .wl-textarea, .waline-container .wl-card { border-radius: 0; }
.waline-container .wl-card { border: 1px solid var(--line); }
.waline-container .wl-btn.primary { background: #111; border-color: #111; }
.waline-container .wl-btn.primary:hover { background: #333; border-color: #333; }

/* ---------- 14. Archive ---------- */
.archive-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 70px; align-items: start; }
.archive-side { position: sticky; top: calc(var(--header-h) + 30px); }
.archive-side-title { font-size: 11px; letter-spacing: 3px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 16px; }
.archive-years li a { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.archive-years em { font-style: normal; color: var(--faint); font-size: 11.5px; }
.archive-years a:hover { color: var(--ink); }
.archive-tip { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.archive-tip p { font-size: 12px; color: var(--muted); }
.archive-tip .link-arrow { align-self: flex-start; font-size: 12px; }
.archive-year { margin-bottom: 56px; scroll-margin-top: 120px; }
.archive-year-title {
  font-size: 34px; font-weight: 900; letter-spacing: -1px;
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--ink);
  margin-bottom: 8px;
}
.archive-year-title span { font-size: 11.5px; letter-spacing: 2px; color: var(--muted); font-weight: 400; }
.archive-list li { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.archive-list time { font-size: 12px; color: var(--faint); letter-spacing: 1px; font-variant-numeric: tabular-nums; width: 44px; flex: none; }
.archive-item-main { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.archive-item-main a { font-size: 15.5px; color: var(--ink-soft); font-weight: 500; transition: color .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-item-main a:hover { color: var(--ink); }
.archive-cat { font-size: 11px; color: var(--muted); letter-spacing: 1px; padding: 3px 9px; border: 1px solid var(--line); flex: none; }
.archive-read { font-size: 11px; color: var(--faint); flex: none; }

/* ---------- 15. Category / Tag ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  position: relative; padding: 34px 30px;
  border: 1px solid var(--line);
  transition: all .35s var(--ease);
  overflow: hidden;
}
.cat-card:hover { background: var(--ink); border-color: var(--ink); }
.cat-num { font-size: 11px; letter-spacing: 2px; color: var(--faint); }
.cat-card h3 { font-size: 22px; margin: 18px 0 8px; transition: color .3s; }
.cat-card p { font-size: 12.5px; color: var(--muted); transition: color .3s; }
.cat-card i { position: absolute; right: 26px; bottom: 26px; font-style: normal; color: var(--faint); transition: transform .3s var(--ease), color .3s; }
.cat-card:hover h3 { color: #fff; }
.cat-card:hover p { color: rgba(255, 255, 255, .55); }
.cat-card:hover .cat-num { color: rgba(255, 255, 255, .4); }
.cat-card:hover i { color: #fff; transform: translateX(4px); }

.tax-cloud { margin-top: 70px; padding-top: 40px; border-top: 1px solid var(--line); }
.section-title-sm { font-size: 18px; letter-spacing: 2px; margin-bottom: 24px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.tag-chip em { font-style: normal; font-size: 11px; color: var(--faint); }
.tag-chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.tag-chip:hover em { color: rgba(255, 255, 255, .6); }
.tax-back { margin-top: 56px; }
.page-intro { margin-bottom: 50px; }

/* ---------- 16. About page ---------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; align-items: start; }
.about-card { border: 1px solid var(--line); padding: 34px 30px; text-align: center; position: sticky; top: calc(var(--header-h) + 30px); }
.about-card-top img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; background: var(--soft); }
.about-card-top h3 { font-size: 18px; margin-bottom: 8px; }
.about-card-top p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.about-facts { margin: 26px 0; border-top: 1px solid var(--line-soft); }
.about-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; text-align: left; }
.about-facts span { color: var(--muted); flex: none; }
.about-facts em { font-style: normal; color: var(--ink-soft); text-align: right; }
.about-facts em a { color: var(--ink-soft); }
.about-card-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 24px; }
.about-card-social svg { width: 16px; height: 16px; fill: var(--ink-soft); }
.about-two { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.focus-box h3 { font-size: 18px; margin-bottom: 20px; }
.focus-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.focus-box .link-arrow { margin-top: 22px; font-size: 12px; }
.about-cta { text-align: center; }
.about-cta-inner { max-width: 640px; }
.about-cta h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.5px; }
.about-cta p { margin: 14px 0 30px; color: var(--muted); font-size: 14px; }
.about-cta .hero-actions { justify-content: center; }

/* Rich text (independent pages) */
.rich-text { font-size: 16px; line-height: 2; color: #333; }
.rich-text > *:first-child { margin-top: 0; }
.rich-text h2 { font-size: 26px; font-weight: 800; margin: 50px 0 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.rich-text h3 { font-size: 20px; font-weight: 700; margin: 40px 0 14px; }
.rich-text h4 { font-size: 17px; margin: 30px 0 10px; }
.rich-text p { margin: 20px 0; }
.rich-text a { color: var(--ink); border-bottom: 1px solid rgba(17, 17, 17, .3); }
.rich-text a:hover { border-color: var(--ink); }
.rich-text ul, .rich-text ol { margin: 20px 0; padding-left: 22px; }
.rich-text ul { list-style: square; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin: 8px 0; }
.rich-text img { margin: 26px 0; }
.rich-text blockquote { margin: 30px 0; padding-left: 24px; border-left: 2px solid var(--ink); font-style: italic; color: #444; }
.rich-text code { background: #f3f3f1; padding: 2px 6px; font-size: .88em; }
.rich-text pre { background: #141414; color: #eaeaea; padding: 22px; overflow-x: auto; font-size: 13px; }
.rich-text pre code { background: none; padding: 0; color: inherit; }
.page-body { max-width: 820px; }

/* ---------- 17. Friends ---------- */
.friend-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.friend-card { display: flex; gap: 20px; padding: 26px; border: 1px solid var(--line); transition: all .35s var(--ease); }
.friend-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .06); }
.friend-avatar {
  width: 58px; height: 58px; flex: none; overflow: hidden;
  background: var(--soft); display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: var(--ink);
}
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friend-body h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.friend-body h3 i { font-style: normal; font-size: 12px; color: var(--faint); transition: transform .3s var(--ease), color .3s; }
.friend-card:hover h3 i { color: var(--ink); transform: translate(2px, -2px); }
.friend-body p { font-size: 13px; color: var(--muted); line-height: 1.75; }
.friend-body em { display: block; margin-top: 10px; font-style: normal; font-size: 11px; letter-spacing: .5px; color: var(--faint); }
.friend-apply {
  margin-top: 60px; padding: 40px;
  background: var(--soft);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.friend-apply h3 { font-size: 22px; margin-bottom: 10px; }
.friend-apply p { font-size: 13.5px; color: var(--muted); line-height: 1.85; max-width: 560px; }
.friend-apply-list { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--body); }
.friend-apply-list a { border-bottom: 1px solid var(--line); }

/* ---------- 18. Search page ---------- */
.search-page { max-width: 820px; }
.search-page-box { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.search-page-box svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.5; flex: none; }
.search-page-box input { flex: 1; border: 0; background: none; font-size: 22px; padding: 8px 0; color: var(--ink); }
.search-page-box input:focus { outline: none; }
.search-page-box input::placeholder { color: var(--faint); }
.search-page-box button { font-size: 24px; color: var(--faint); padding: 0 4px; }
.search-page-box button:hover { color: var(--ink); }
.search-hot { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.search-hot button { font-size: 12px; padding: 5px 12px; background: var(--soft); color: var(--ink-soft); transition: all .25s; }
.search-hot button:hover { background: var(--ink); color: #fff; }
.search-page-results { margin-top: 44px; }
.search-placeholder { padding: 50px 0; text-align: center; color: var(--muted); }
.search-placeholder p { font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; }
.search-placeholder span { font-size: 12.5px; }
.search-item { display: block; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.search-item h3 { font-size: 18px; margin-bottom: 8px; }
.search-item p { font-size: 13.5px; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-item .search-meta { margin-top: 10px; font-size: 11.5px; color: var(--faint); letter-spacing: .5px; }
.search-count { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-bottom: 8px; }

/* ---------- 19. Work detail ---------- */
.work-hero { padding: 90px 0 46px; }
.work-hero-cat { font-size: 11px; letter-spacing: 4px; color: var(--muted); margin-bottom: 14px; }
.work-hero-title { font-size: clamp(34px, 5vw, 62px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.12; }
.work-hero-desc { margin-top: 16px; font-size: 15px; color: var(--body); max-width: 620px; }
.work-hero-img { margin: 0 0 70px; background: #ececea; }
.work-hero-img img { width: 100%; }
.work-detail-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 70px; align-items: start; }
.work-info { position: sticky; top: calc(var(--header-h) + 30px); border-top: 1px solid var(--ink); padding-top: 18px; }
.work-info h3 { font-size: 11px; letter-spacing: 3px; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.work-info li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.work-info span { color: var(--muted); flex: none; }
.work-info em { font-style: normal; color: var(--ink-soft); text-align: right; }
.work-info em a { border-bottom: 1px solid var(--line); }
.work-detail-content { max-width: 720px; }
.work-detail-cta { margin-top: 46px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.related-works { margin-top: 90px; padding-top: 60px; border-top: 1px solid var(--line); }

/* ---------- 20. Services ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { position: relative; border: 1px solid var(--line); padding: 40px 32px; display: flex; flex-direction: column; transition: all .35s var(--ease); }
.price-card:hover { border-color: var(--ink); }
.price-card.is-featured { background: var(--dark); border-color: var(--dark); color: #fff; }
.price-card.is-featured h3, .price-card.is-featured .price { color: #fff; }
.price-card.is-featured .price-desc, .price-card.is-featured .price-features li { color: rgba(255, 255, 255, .65); }
.price-card.is-featured .price-features svg { stroke: #fff; }
.price-badge { position: absolute; top: 0; right: 0; background: #fff; color: #111; font-size: 10px; letter-spacing: 2px; padding: 6px 12px; }
.price-card h3 { font-size: 20px; margin-bottom: 10px; }
.price-desc { font-size: 13px; color: var(--muted); line-height: 1.8; min-height: 48px; }
.price { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 24px 0 26px; color: var(--ink); }
.price em { font-style: normal; font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; flex: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--body); }
.price-features svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; margin-top: 4px; }
.price-card.is-featured .btn-solid { background: #fff; color: #111; border-color: #fff; }
.price-card.is-featured .btn-solid:hover { background: transparent; color: #fff; }

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { padding-top: 22px; border-top: 1px solid var(--ink); }
.step-num { font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.step-card h3 { font-size: 18px; margin: 16px 0 10px; }
.step-card p { font-size: 13px; color: var(--muted); line-height: 1.85; }

.faq-wrap { max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary { cursor: pointer; font-size: 15.5px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--muted); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.9; padding-right: 30px; }

/* ---------- 21. Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.contact-side h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.5px; line-height: 1.35; }
.contact-side > p { margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.9; max-width: 420px; }
.contact-facts { margin-top: 40px; border-top: 1px solid var(--ink); }
.contact-facts li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.contact-facts span { color: var(--muted); }
.contact-facts a, .contact-facts em { font-style: normal; color: var(--ink); }
.contact-facts a { border-bottom: 1px solid var(--line); }
.contact-social { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.contact-social a { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 1px; color: var(--ink-soft); }
.contact-social svg { width: 15px; height: 15px; fill: currentColor; }
.contact-social a:hover { color: var(--ink); }

.contact-form { border: 1px solid var(--line); padding: 40px 36px; }
.contact-form h3 { font-size: 20px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; margin-bottom: 22px; }
.contact-form label span { display: block; font-size: 11.5px; letter-spacing: 2px; color: var(--muted); margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line);
  background: none; padding: 10px 0; font-size: 14.5px; color: var(--ink);
  transition: border-color .25s;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--faint); }
.form-tip { margin-top: 14px; font-size: 12.5px; color: var(--ink); min-height: 18px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 90px; padding-top: 50px; border-top: 1px solid var(--line); }
.contact-card span { font-size: 11px; letter-spacing: 2px; color: var(--faint); }
.contact-card h3 { font-size: 17px; margin: 14px 0 8px; }
.contact-card p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ---------- 22. Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager-arrow { font-size: 12px; letter-spacing: 1.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.pager-arrow span { color: var(--muted); }
.pager-arrow.is-disabled { color: var(--faint); }
.pager-nums { display: flex; align-items: center; gap: 4px; }
.pager-num { width: 34px; height: 34px; display: grid; place-items: center; font-size: 12.5px; color: var(--ink-soft); transition: all .25s; }
.pager-num:hover { background: var(--soft); }
.pager-num.is-current { background: var(--ink); color: #fff; }
.pager-gap { width: 24px; text-align: center; color: var(--faint); font-size: 12px; }

/* ---------- 23. 404 ---------- */
.notfound { min-height: 74vh; display: grid; place-items: center; position: relative; overflow: hidden; }
.notfound-inner { text-align: center; position: relative; z-index: 2; padding: 80px 0; }
.notfound-kicker { font-size: 11.5px; letter-spacing: 6px; color: var(--muted); margin-bottom: 20px; }
.notfound h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; letter-spacing: -1px; }
.notfound-desc { margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.9; }
.notfound .hero-actions { justify-content: center; }
.notfound-num {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(180px, 36vw, 420px); font-weight: 900; color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, .06); z-index: -1; letter-spacing: -10px;
}

/* ---------- 24. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .article-layout { gap: 48px; grid-template-columns: minmax(0, 1fr) 250px; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; padding: 90px 0 100px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .hero-triangle { width: 62vw; opacity: .5; }
  .hero-watermark { font-size: 26vw; opacity: .7; }
  .about-grid, .about-two { grid-template-columns: 1fr; gap: 50px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin-top: 20px; }
  .article-side .side-block:first-child { grid-column: 1 / -1; }
  .archive-wrap { grid-template-columns: 1fr; gap: 40px; }
  .archive-side { position: static; }
  .archive-years { display: flex; flex-wrap: wrap; gap: 10px; }
  .archive-years li { flex: 1 1 100px; }
  .archive-tip { flex-direction: row; flex-wrap: wrap; gap: 18px; align-items: center; }
  .about-layout { grid-template-columns: 1fr; gap: 50px; }
  .about-card { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 50px; }
  .price-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .work-detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .work-info { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

@media (max-width: 720px) {
  :root { --gutter: 22px; --header-h: 72px; }
  body { font-size: 15px; }
  .section { padding: 76px 0; }
  .brand-text em { display: none; }
  .hero { padding: 70px 0 90px; }
  .hero-title { font-size: clamp(46px, 15vw, 72px); letter-spacing: -1.5px; }
  .hero-subline { font-size: 18px; }
  .hero-desc { font-size: 14.5px; }
  .hero-stats { gap: 30px; margin-top: 46px; }
  .hero-stats strong { font-size: 22px; }
  .hero-scroll { display: none; }
  .section-head { gap: 14px; margin-bottom: 38px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-more { margin-bottom: 0; }
  .post-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-grid, .work-grid-page { grid-template-columns: 1fr; }
  .work-overlay { padding: 26px; opacity: 1; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .15) 60%, transparent); }
  .work-overlay p { display: none; }
  .work-overlay h3 { font-size: 22px; }
  .work-view { display: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.next { text-align: left; align-items: flex-start; }
  .page-hero { padding: 70px 0 50px; }
  .page-hero-shape { width: 260px; height: 260px; right: -100px; top: -60px; }
  .article-hero { padding: 60px 0 40px; }
  .article-content { font-size: 16px; line-height: 1.95; }
  .article-content h2 { font-size: 22px; margin-top: 42px; }
  .article-side { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .friend-grid { grid-template-columns: 1fr; }
  .friend-apply { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px; }
  .step-grid, .contact-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .back-top { right: 16px; bottom: 16px; }
  .contact-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .author-box { flex-direction: column; padding: 24px; }
  .archive-list li { gap: 12px; }
  .archive-cat, .archive-read { display: none; }
  .archive-item-main a { font-size: 14.5px; }
  .search-layer-inner { padding: 90px 22px 60px; }
  .search-box input { font-size: 18px; }
  .work-hero { padding: 60px 0 34px; }
  .work-hero-img { margin-bottom: 44px; }
  .quote-slider { min-height: 320px; }
  .subscribe-form input { font-size: 14px; }
  .pager { justify-content: center; }
}

/* ---------- 26. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 10, 10, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; top: 20px; right: 26px;
  color: #fff; font-size: 38px; line-height: 1; font-weight: 300;
}

/* ---------- 27. 订阅区 RSS 提示 ---------- */
.subscribe-rss {
  margin-top: 14px;
  font-size: 13px;
  color: #9a9a95;
}
.subscribe-rss a {
  color: #141414;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 28. 代码块整体美化 ---------- */
/* figure.highlight 是 Hexo 生成的「行号格 + 代码格」表格结构 */
.article-content figure.highlight,
.rich-text figure.highlight {
  margin: 30px 0;
  background: #15151a;
  border: 1px solid #26262b;
  border-radius: 6px;
  overflow: hidden;
}
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 18px;
  background: #1d1d22;
  border-bottom: 1px solid #26262b;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #85858c;
}
.code-head .copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: inherit; letter-spacing: 2px;
  text-transform: uppercase; color: #85858c;
  transition: color .2s;
}
.code-head .copy-btn:hover { color: #fff; }

.article-content figure.highlight table,
.rich-text figure.highlight table {
  width: 100%; border-collapse: collapse; margin: 0;
  display: block; overflow-x: auto;
}
.article-content figure.highlight td,
.rich-text figure.highlight td {
  border: 0; padding: 0; background: none; text-align: left;
}
.article-content figure.highlight .gutter,
.rich-text figure.highlight .gutter {
  width: 1%; vertical-align: top;
  user-select: none; -webkit-user-select: none;
}
.article-content figure.highlight pre,
.rich-text figure.highlight pre {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  font-size: 13.5px; line-height: 1.8; color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.article-content figure.highlight .gutter pre,
.rich-text figure.highlight .gutter pre {
  padding: 18px 0 18px 18px;
  color: #47474e; text-align: right;
}
.article-content figure.highlight .code pre,
.rich-text figure.highlight .code pre {
  padding: 18px 20px 18px 16px;
  color: #e6e6e6;
}
.article-content figure.highlight pre code,
.article-content figure.highlight .hljs,
.rich-text figure.highlight pre code,
.rich-text figure.highlight .hljs {
  background: none; padding: 0; color: inherit; font-size: inherit;
}
.article-content figure.highlight,
.rich-text figure.highlight,
.article-content pre,
.rich-text pre { tab-size: 2; }

/* hljs 语法高亮配色（One Dark 风） */
.hljs-comment, .hljs-quote { color: #5c6370; font-style: italic; }
.hljs-doctag, .hljs-keyword, .hljs-formula { color: #c678dd; }
.hljs-section, .hljs-name, .hljs-selector-tag, .hljs-deletion, .hljs-subst { color: #e06c75; }
.hljs-literal { color: #56b6c2; }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute, .hljs-meta .hljs-string { color: #98c379; }
.hljs-attr, .hljs-variable, .hljs-template-variable, .hljs-type,
.hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-number { color: #d19a66; }
.hljs-symbol, .hljs-bullet, .hljs-link, .hljs-meta, .hljs-selector-id, .hljs-title { color: #61afef; }
.hljs-built_in, .hljs-title.class_, .hljs-class .hljs-title { color: #e6c07b; }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }
