/*
Theme Name: Wan7 Night
Theme URI: https://example.com/wan7-night
Author: Wan7
Author URI: https://example.com
Description: A WordPress version of the WAN7.DEV neon night personal website demo.
Version: 1.5.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wan7-night
Tags: portfolio, blog, one-column, custom-background
*/

@font-face {
  font-family: "Wan7PixelZH";
  src: url("assets/fonts/zpix.ttf") format("truetype");
  font-display: swap;
}

/*
Chinese pixel font setup:
Wan7PixelZH is loaded from assets/fonts/zpix.ttf. Font-family names alone
do not install fonts, so keep the font file in the theme at that path.
*/

:root {
  color-scheme: dark;
  --bg: #020510;
  --bg-soft: #060b1a;
  --panel: rgba(5, 10, 24, 0.82);
  --panel-border: rgba(154, 184, 255, 0.34);
  --text: #f5f7ff;
  --muted: #a8abc2;
  --dim: #71758c;
  --pink: #ff5fbd;
  --pink-soft: rgba(255, 95, 189, 0.22);
  --cyan: #59d9ff;
  --cyan-soft: rgba(89, 217, 255, 0.18);
  --violet: #8b5cff;
  --theme-icon-image: url("assets/icons/night-theme.svg");
  --header-h: 76px;
  --pixel: "Press Start 2P", "ZCOOL QingKe HuangYou", "Courier New", monospace;
  --terminal: "VT323", "ZCOOL QingKe HuangYou", "Courier New", monospace;
  --pixel-zh: "Wan7PixelZH", "Zpix", "ZCOOL QingKe HuangYou", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --wan7-article-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --zh-readable: var(--pixel-zh);
  --zh-ui: "ZCOOL QingKe HuangYou", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --body: var(--pixel);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.wan7-preload-en body {
  visibility: hidden;
}

html.wan7-preload-en body.language-ready {
  visibility: visible;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 10%, rgba(79, 70, 229, 0.18), transparent 30rem),
    linear-gradient(180deg, #01040d 0%, #050816 44%, #02040b 100%);
  color: var(--text);
  font-family: var(--body);
}

body.lang-zh,
body[data-language="zh"] {
  font-family: var(--pixel-zh);
}

body[data-time-theme="morning"] {
  --theme-icon-image: url("assets/icons/morning-theme.svg");
  --bg: #17142a;
  --bg-soft: #24213d;
  --panel: rgba(33, 30, 55, 0.78);
  --panel-border: rgba(214, 176, 214, 0.34);
  --text: #fff3f7;
  --muted: #dbc8d5;
  --dim: #a58fa4;
  --pink: #f0a7c7;
  --pink-soft: rgba(240, 167, 199, 0.22);
  --cyan: #a8bddf;
  --cyan-soft: rgba(168, 189, 223, 0.16);
  --violet: #b49ad1;
}

body[data-time-theme="dusk"] {
  --theme-icon-image: url("assets/icons/dusk-theme.svg");
  --bg: #170c11;
  --bg-soft: #2a1715;
  --panel: rgba(42, 21, 18, 0.78);
  --panel-border: rgba(224, 139, 91, 0.34);
  --text: #fff0df;
  --muted: #e4c0a8;
  --dim: #ac7d66;
  --pink: #e98b7f;
  --pink-soft: rgba(233, 139, 127, 0.22);
  --cyan: #f0b365;
  --cyan-soft: rgba(240, 179, 101, 0.16);
  --violet: #b86d73;
}

body[data-time-theme="morning"] {
  background:
    radial-gradient(circle at 74% 8%, rgba(240, 167, 199, 0.18), transparent 32rem),
    linear-gradient(180deg, #17142a 0%, #201d37 44%, #130f20 100%);
}

body[data-time-theme="dusk"] {
  background:
    radial-gradient(circle at 74% 8%, rgba(240, 179, 101, 0.18), transparent 32rem),
    linear-gradient(180deg, #180b10 0%, #2a1513 44%, #100709 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 60;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(255, 95, 189, 0.025), rgba(89, 217, 255, 0.025));
  content: "";
  mix-blend-mode: screen;
  opacity: 0.32;
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 59;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 100% 4px;
  content: "";
  opacity: 0.1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 clamp(1.1rem, 4vw, 4.5rem);
  border-bottom: 2px solid rgba(132, 160, 224, 0.22);
  background: rgba(2, 5, 16, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 -4px 0 rgba(255, 255, 255, 0.03),
    0 8px 0 rgba(0, 0, 0, 0.18);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 10px));
}

.admin-bar .site-header {
  top: 32px;
}

.brand,
.header-actions,
.site-nav,
.hero-actions,
.section-label,
.site-footer,
.button {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.9rem;
  color: var(--text);
  font-family: var(--pixel);
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow:
    2px 0 0 rgba(89, 217, 255, 0.22),
    -2px 0 0 rgba(255, 95, 189, 0.18);
}

.header-actions {
  gap: clamp(1rem, 3vw, 2.4rem);
}

.site-nav {
  gap: clamp(0.8rem, 3vw, 2.4rem);
  color: #ced2e6;
  font-family: var(--pixel);
  font-size: clamp(0.58rem, 0.8vw, 0.72rem);
}

.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.2rem;
  padding: 0.58rem 0.62rem;
  border: 1px solid transparent;
  transition: color 120ms steps(2, end), text-shadow 120ms steps(2, end), background 120ms steps(2, end), border-color 120ms steps(2, end);
}

.site-nav a:hover,
.site-nav .active {
  border-color: rgba(255, 95, 189, 0.22);
  background: rgba(255, 95, 189, 0.07);
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink-soft);
}

.site-nav .active::after {
  position: absolute;
  left: 50%;
  bottom: -0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  content: "";
  transform: translateX(-50%);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 2.2rem;
  padding: 0.18rem;
  border: 2px solid rgba(255, 95, 189, 0.72);
  border-radius: 0;
  background: rgba(2, 5, 16, 0.72);
  color: var(--pink);
  cursor: pointer;
  font-family: var(--pixel);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.28),
    inset 3px 3px 0 rgba(255, 255, 255, 0.04),
    0 0 16px rgba(255, 95, 189, 0.08);
  transition: background 120ms steps(2, end), box-shadow 120ms steps(2, end), transform 120ms steps(2, end);
}

.language-toggle:hover,
.language-toggle:focus-visible {
  background: rgba(255, 95, 189, 0.12);
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.32),
    inset 3px 3px 0 rgba(255, 255, 255, 0.05),
    0 0 20px rgba(255, 95, 189, 0.16);
  transform: translate(-1px, -1px);
}

.theme-toggle {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.9rem;
  block-size: 2.9rem;
  flex: 0 0 2.9rem;
  padding: 0;
  border: 2px solid var(--pink);
  border-radius: 0;
  background: rgba(2, 5, 16, 0.58);
  color: var(--text);
  cursor: pointer;
  font-family: var(--pixel);
  font-size: 0.58rem;
  line-height: 1;
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.28),
    inset 3px 3px 0 rgba(255, 255, 255, 0.04),
    0 0 14px var(--pink-soft);
  transition: background 120ms steps(2, end), border-color 120ms steps(2, end), color 120ms steps(2, end), transform 120ms steps(2, end);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--pink-soft);
  border-color: var(--pink);
  color: #ffffff;
  transform: translate(-1px, -1px);
}

.theme-toggle.is-switching {
  animation: theme-toggle-press 260ms steps(3, end);
}

.theme-toggle.is-switching .theme-toggle-icon {
  animation: theme-icon-enter 220ms steps(3, end);
}

.theme-toggle-icon {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  background-color: currentColor;
  color: var(--pink);
  filter: drop-shadow(0 0 7px var(--pink-soft));
  image-rendering: pixelated;
  transform-origin: center;
  transition: background-color 160ms steps(2, end), filter 160ms steps(2, end);
  mask-image: var(--theme-icon-image);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: var(--theme-icon-image);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.theme-toggle-label {
  display: none;
}

@keyframes theme-toggle-press {
  0% {
    transform: translate(0, 0);
  }

  45% {
    transform: translate(1px, 1px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes theme-icon-enter {
  0% {
    opacity: 0;
    transform: translateY(3px) scale(0.82);
  }

  60% {
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body,
  .site-header,
  .brand,
  .site-nav,
  .language-toggle,
  .theme-toggle,
  .lang-option,
  .hero,
  .hero::before,
  .hero::after,
  .hero-art,
  .hero-art::after,
  .hero-art-stack,
  .hero-art-stack::after,
  .hero-art-layer,
  .hero-glow,
  .eyebrow,
  .subtitle,
  .meta,
  .button,
  .project-card,
  .project-card::before,
  .project-icon,
  .projects-section,
  .section-label h2,
  .section-label span,
  .tags span,
  .site-footer,
  .cat-mark,
  .title-cat,
  .mini-cat,
  .footer-cat {
    transition:
      background 360ms cubic-bezier(0.22, 1, 0.36, 1),
      background-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 360ms cubic-bezier(0.22, 1, 0.36, 1),
      color 360ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 360ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
      text-shadow 360ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 420ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    mix-blend-mode: normal;
  }

  ::view-transition-old(root) {
    animation-name: wan7-theme-fade-out;
  }

  ::view-transition-new(root) {
    animation-name: wan7-theme-fade-in;
  }
}

.site-header {
  view-transition-name: site-header;
}

::view-transition-old(site-header),
::view-transition-new(site-header) {
  animation: none;
  mix-blend-mode: normal;
}

html.is-theme-transitioning .site-nav,
html.is-theme-transitioning .site-nav a,
html.is-theme-transitioning .site-nav .active,
html.is-theme-transitioning .site-nav .active::after {
  transition: none !important;
}

@keyframes wan7-theme-fade-out {
  from {
    opacity: 1;
    filter: brightness(1);
  }

  to {
    opacity: 0;
    filter: brightness(0.96);
  }
}

@keyframes wan7-theme-fade-in {
  from {
    opacity: 0;
    filter: brightness(1.04);
  }

  to {
    opacity: 1;
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle-icon {
    animation: none !important;
    transition: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

.lang-option {
  display: grid;
  place-items: center;
  min-width: 2.35rem;
  min-height: 1.65rem;
  padding: 0.28rem 0.45rem;
  border-radius: 0;
  color: rgba(245, 247, 255, 0.48);
  line-height: 1;
  transition: background 120ms steps(2, end), color 120ms steps(2, end), text-shadow 120ms steps(2, end);
}

.lang-option[data-language-option="zh"] {
  font-family: var(--pixel-zh);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.lang-option[data-language-option="en"] {
  font-family: var(--pixel);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0;
}

.lang-option.is-active {
  background: rgba(255, 95, 189, 0.88);
  color: #070511;
  text-shadow: none;
}

.lang-divider {
  align-self: stretch;
  width: 2px;
  margin: 0.18rem 0.14rem;
  background: rgba(255, 95, 189, 0.56);
}

.cat-mark,
.title-cat,
.mini-cat,
.footer-cat {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background-color: var(--pink);
  color: var(--pink);
  filter: drop-shadow(0 0 8px var(--pink-soft));
  image-rendering: pixelated;
  -webkit-mask-image: url("assets/icons/cat-face.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("assets/icons/cat-face.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.cat-mark::before,
.title-cat::before,
.mini-cat::before,
.footer-cat::before,
.cat-mark::after,
.title-cat::after,
.mini-cat::after,
.footer-cat::after {
  display: none;
  content: none;
}

.cat-mark {
  width: 34px;
  height: 34px;
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header-h));
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.15rem, 6vw, 6rem) 5rem;
  background:
    radial-gradient(circle at 70% 18%, rgba(100, 45, 150, 0.14), transparent 36rem),
    linear-gradient(180deg, #050312 0%, #03030c 70%, #02030a 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(3, 3, 12, 0.92) 0%, rgba(3, 3, 12, 0.7) 38%, rgba(3, 3, 12, 0.2) 68%, rgba(3, 3, 12, 0.3) 100%),
    linear-gradient(180deg, rgba(3, 3, 12, 0.08) 0%, rgba(3, 3, 12, 0.18) 68%, rgba(3, 3, 12, 0.78) 100%);
  content: "";
}

.hero-art {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -3;
  width: 100%;
  height: clamp(560px, 82vh, 920px);
  filter: saturate(0.88) contrast(1.02);
  image-rendering: pixelated;
  opacity: 0.95;
  pointer-events: none;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(3, 3, 12, 1) 0%,
      rgba(3, 3, 12, 0.98) 32%,
      rgba(3, 3, 12, 0.88) 48%,
      rgba(3, 3, 12, 0.78) 60%,
      rgba(3, 3, 12, 0.46) 72%,
      rgba(3, 3, 12, 0.16) 86%,
      rgba(3, 3, 12, 0.08) 100%
    ),
    linear-gradient(180deg,
      rgba(3, 3, 12, 0.16) 0%,
      rgba(3, 3, 12, 0.04) 52%,
      rgba(3, 3, 12, 0.14) 72%,
      rgba(3, 3, 12, 0.44) 90%,
      rgba(3, 3, 12, 0.88) 100%
    );
  content: "";
  pointer-events: none;
}

.hero-art-stack {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -3;
  width: 100%;
  height: clamp(560px, 82vh, 920px);
  filter: saturate(0.88) contrast(1.02);
  image-rendering: pixelated;
  opacity: 0.95;
  pointer-events: none;
}

.hero-art-layer {
  position: absolute;
  inset: 0;
  background-position: center 38%;
  background-repeat: no-repeat;
  background-size: cover;
  image-rendering: pixelated;
  opacity: 0;
  will-change: opacity;
}

.hero-art-night {
  background-image: url("assets/夜晚城市猫咪.webp");
  opacity: 1;
}

.hero-art-morning {
  background-image: url("assets/清晨城市猫咪.webp");
}

.hero-art-dusk {
  background-image: url("assets/黄昏城市猫咪.webp");
}

body[data-time-theme="morning"] .hero-art-night,
body[data-time-theme="dusk"] .hero-art-night {
  opacity: 0;
}

body[data-time-theme="morning"] .hero-art-morning,
body[data-time-theme="dusk"] .hero-art-dusk {
  opacity: 1;
}

.hero-art-stack::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(3, 3, 12, 1) 0%,
      rgba(3, 3, 12, 0.98) 32%,
      rgba(3, 3, 12, 0.88) 48%,
      rgba(3, 3, 12, 0.78) 60%,
      rgba(3, 3, 12, 0.46) 72%,
      rgba(3, 3, 12, 0.16) 86%,
      rgba(3, 3, 12, 0.08) 100%
    ),
    linear-gradient(180deg,
      rgba(3, 3, 12, 0.16) 0%,
      rgba(3, 3, 12, 0.04) 52%,
      rgba(3, 3, 12, 0.14) 72%,
      rgba(3, 3, 12, 0.44) 90%,
      rgba(3, 3, 12, 0.88) 100%
    );
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 7px,
      rgba(0, 0, 0, 0.14) 7px 8px
    );
  content: "";
  mix-blend-mode: soft-light;
  opacity: 0.1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  left: 7vw;
  top: 28%;
  z-index: -1;
  width: 21rem;
  height: 21rem;
  background: rgba(58, 115, 255, 0.12);
  filter: blur(54px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  align-self: center;
}

body[data-time-theme="morning"] .hero {
  background:
    radial-gradient(circle at 70% 18%, rgba(240, 167, 199, 0.18), transparent 36rem),
    linear-gradient(180deg, #1a1730 0%, #161326 70%, #100d1c 100%);
}

body[data-time-theme="morning"] .hero::before {
  background:
    linear-gradient(90deg, rgba(18, 14, 31, 0.96) 0%, rgba(18, 14, 31, 0.82) 38%, rgba(18, 14, 31, 0.28) 68%, rgba(18, 14, 31, 0.36) 100%),
    linear-gradient(180deg, rgba(18, 14, 31, 0.08) 0%, rgba(18, 14, 31, 0.18) 68%, rgba(18, 14, 31, 0.78) 100%);
}

body[data-time-theme="morning"] .hero-art::after {
  background:
    linear-gradient(90deg,
      rgba(18, 14, 31, 1) 0%,
      rgba(18, 14, 31, 0.98) 32%,
      rgba(18, 14, 31, 0.88) 48%,
      rgba(18, 14, 31, 0.48) 64%,
      rgba(18, 14, 31, 0.2) 100%
    ),
    linear-gradient(180deg,
      rgba(18, 14, 31, 0.1) 0%,
      rgba(18, 14, 31, 0.04) 52%,
      rgba(18, 14, 31, 0.16) 72%,
      rgba(18, 14, 31, 0.46) 90%,
      rgba(18, 14, 31, 0.86) 100%
    );
}

body[data-time-theme="morning"] .hero-glow {
  background: rgba(255, 100, 170, 0.231);
  filter: blur(58px);
}

body[data-time-theme="dusk"] .hero {
  background:
    radial-gradient(circle at 70% 18%, rgba(240, 179, 101, 0.18), transparent 36rem),
    linear-gradient(180deg, #1b0c10 0%, #16080b 70%, #0d0507 100%);
}

body[data-time-theme="dusk"] .hero::before {
  background:
    linear-gradient(90deg, rgba(20, 7, 9, 0.96) 0%, rgba(20, 7, 9, 0.8) 38%, rgba(20, 7, 9, 0.24) 68%, rgba(20, 7, 9, 0.32) 100%),
    linear-gradient(180deg, rgba(20, 7, 9, 0.08) 0%, rgba(20, 7, 9, 0.18) 68%, rgba(20, 7, 9, 0.78) 100%);
}

body[data-time-theme="dusk"] .hero-art::after {
  background:
    linear-gradient(90deg,
      rgba(20, 7, 9, 1) 0%,
      rgba(20, 7, 9, 0.98) 32%,
      rgba(20, 7, 9, 0.88) 48%,
      rgba(20, 7, 9, 0.48) 64%,
      rgba(20, 7, 9, 0.14) 100%
    ),
    linear-gradient(180deg,
      rgba(20, 7, 9, 0.08) 0%,
      rgba(20, 7, 9, 0.03) 52%,
      rgba(20, 7, 9, 0.14) 72%,
      rgba(20, 7, 9, 0.42) 90%,
      rgba(20, 7, 9, 0.86) 100%
    );
}

.eyebrow,
.meta,
.section-label h2,
.button,
.tags,
.site-footer {
  font-family: var(--pixel);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--pink);
  font-size: clamp(0.58rem, 0.95vw, 0.72rem);
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--pink-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  margin-bottom: 1.2rem;
  color: #ffffff;
  font-family: var(--pixel);
  font-size: clamp(2.55rem, 6.4vw, 5.05rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow:
    4px 0 0 rgba(89, 217, 255, 0.18),
    -4px 0 0 rgba(255, 95, 189, 0.14),
    0 0 24px rgba(255, 255, 255, 0.12);
}

.title-cat {
  width: 34px;
  height: 34px;
  margin-top: 0.35rem;
}

.subtitle {
  position: relative;
  width: min(100%, 36rem);
  min-height: 2.35em;
  margin-bottom: 1.75rem;
  color: #b8c8ff;
  font-family: var(--pixel);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  text-shadow: 0 0 14px rgba(89, 217, 255, 0.12);
}

.subtitle.subtitle-pending:not(.is-ready) {
  color: transparent;
  text-shadow: none;
}

.subtitle.is-typing::after {
  display: inline-block;
  width: 0.18em;
  height: 0.85em;
  margin-left: 0.18em;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  content: "";
  vertical-align: -0.08em;
  animation: wan7-caret-blink 960ms steps(1, end) infinite;
}

@keyframes wan7-caret-blink {
  50% {
    opacity: 0;
  }
}

.meta {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(0.62rem, 0.9vw, 0.78rem);
  line-height: 2.1;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  position: relative;
  min-height: 3.75rem;
  gap: 0.85rem;
  padding: 0.9rem 1.35rem;
  border: 2px solid currentColor;
  border-radius: 0;
  background: rgba(2, 5, 16, 0.58);
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, 0.32),
    inset 4px 4px 0 rgba(255, 255, 255, 0.045);
  font-size: 0.68rem;
  line-height: 1.45;
  transition: transform 120ms steps(2, end), background 120ms steps(2, end), box-shadow 120ms steps(2, end);
}

.button::after {
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  content: "";
  opacity: 0.34;
  pointer-events: none;
}

.button:hover {
  background: rgba(6, 12, 28, 0.8);
  transform: translate(-2px, -2px);
}

.button-pink {
  color: var(--pink);
  box-shadow:
    inset -4px -4px 0 rgba(255, 95, 189, 0.14),
    inset 4px 4px 0 rgba(255, 255, 255, 0.045),
    0 0 22px rgba(255, 95, 189, 0.08);
}

.button-cyan {
  color: var(--cyan);
  box-shadow:
    inset -4px -4px 0 rgba(89, 217, 255, 0.12),
    inset 4px 4px 0 rgba(255, 255, 255, 0.045),
    0 0 22px rgba(89, 217, 255, 0.08);
}

.mini-cat {
  width: 24px;
  height: 24px;
  transform: none;
}

.button-glyph {
  display: inline-grid;
  place-items: center;
  font-family: var(--pixel);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.projects-section {
  padding: 1.5rem clamp(1.15rem, 6vw, 6rem) clamp(3rem, 6vw, 5.5rem);
  background:
    linear-gradient(180deg, rgba(2, 5, 16, 0.92), var(--bg)),
    repeating-linear-gradient(90deg, rgba(89, 217, 255, 0.03) 0 1px, transparent 1px 8px);
}

.section-label {
  gap: 0.8rem;
  margin-bottom: 1.15rem;
}

.section-label span {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--pink);
  box-shadow:
    0.7rem 0 0 rgba(255, 95, 189, 0.5),
    0 0 12px var(--pink-soft);
}

.section-label h2 {
  margin: 0;
  color: #dfe5ff;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  min-height: 11rem;
  padding: 1.25rem;
  border: 2px solid var(--panel-border);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow:
    inset -5px -5px 0 rgba(0, 0, 0, 0.24),
    inset 5px 5px 0 rgba(255, 255, 255, 0.025),
    0 18px 0 rgba(0, 0, 0, 0.14),
    0 24px 45px rgba(0, 0, 0, 0.2);
}

.project-card::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(154, 184, 255, 0.18);
  content: "";
  pointer-events: none;
}

.project-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 5.6rem;
  height: 5.6rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(21, 25, 57, 0.86);
  color: var(--cyan);
  font-family: var(--pixel);
  font-weight: 400;
  image-rendering: pixelated;
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, 0.26),
    inset 4px 4px 0 rgba(255, 255, 255, 0.035),
    inset 0 0 24px rgba(89, 217, 255, 0.08);
}

.project-icon::after {
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  content: "";
  opacity: 0.18;
}

.night-icon {
  background:
    linear-gradient(var(--cyan), var(--cyan)) 1rem 3.6rem / 0.45rem 0.8rem no-repeat,
    linear-gradient(var(--pink), var(--pink)) 2.1rem 3rem / 0.45rem 1.4rem no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 3.25rem 3.35rem / 0.45rem 1.05rem no-repeat,
    radial-gradient(circle at 72% 24%, #ffffff 0 0.32rem, transparent 0.35rem),
    linear-gradient(180deg, rgba(23, 30, 88, 0.98), rgba(8, 11, 33, 0.98));
}

.night-icon span {
  position: relative;
  align-self: end;
  width: 3.8rem;
  height: 2.2rem;
}

.night-icon span::before {
  position: absolute;
  left: 0.25rem;
  top: 0.35rem;
  width: 0.3rem;
  height: 0.3rem;
  background: #050816;
  box-shadow:
    0.3rem 0 0 #050816,
    0.6rem 0 0 #050816,
    0.9rem 0 0 #050816,
    1.2rem 0 0 #050816,
    1.5rem 0 0 #050816,
    1.8rem 0 0 #050816,
    2.1rem 0 0 #050816,
    2.4rem 0 0 #050816,
    2.7rem 0 0 #050816,
    0.6rem -0.3rem 0 #050816,
    2.1rem -0.3rem 0 #050816,
    1.2rem 0.3rem 0 var(--pink),
    1.5rem 0.3rem 0 var(--pink),
    2.9rem 0.3rem 0 var(--cyan);
  content: "";
}

.workflow-icon {
  border-color: rgba(89, 217, 255, 0.32);
  color: var(--cyan);
}

.workflow-icon span {
  font-family: var(--pixel);
  font-size: 2rem;
  line-height: 1;
}

.repo-icon {
  border-color: rgba(139, 92, 255, 0.36);
  color: #b28dff;
  font-size: 0.64rem;
}

.repo-icon span {
  position: relative;
  padding-top: 1.2rem;
}

.repo-icon span::before,
.repo-icon span::after {
  position: absolute;
  content: "";
}

.repo-icon span::before {
  left: 50%;
  top: 0;
  width: 0.35rem;
  height: 0.35rem;
  background: currentColor;
  box-shadow:
    -0.35rem 0 0 currentColor,
    0.35rem 0 0 currentColor,
    0 -0.35rem 0 currentColor,
    0 0.35rem 0 currentColor,
    -0.7rem -0.35rem 0 currentColor,
    0.7rem -0.35rem 0 currentColor,
    -0.7rem 0.35rem 0 currentColor,
    0.7rem 0.35rem 0 currentColor;
  transform: translateX(-50%);
}

.repo-icon span::after {
  left: calc(50% - 0.14rem);
  top: 0.04rem;
  width: 0.28rem;
  height: 0.28rem;
  background: rgba(5, 10, 24, 0.9);
}

.project-card h3 {
  margin-bottom: 0.65rem;
  font-family: var(--pixel);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.75;
}

.project-card p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tags span {
  padding: 0.34rem 0.5rem;
  border: 1px solid rgba(178, 141, 255, 0.82);
  border-radius: 0;
  color: #c7a9ff;
  background: rgba(139, 92, 255, 0.09);
  font-size: 0.54rem;
  line-height: 1.5;
}

.tags-cyan span {
  border-color: rgba(89, 217, 255, 0.8);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.posts-section {
  padding: 1.5rem clamp(1.15rem, 6vw, 6rem) clamp(3rem, 6vw, 5.5rem);
  background:
    linear-gradient(180deg, rgba(2, 5, 16, 0.92), var(--bg)),
    repeating-linear-gradient(90deg, rgba(89, 217, 255, 0.03) 0 1px, transparent 1px 8px);
}

.post-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.15rem;
  min-height: 13.5rem;
  padding: 1.25rem;
  border: 2px solid var(--panel-border);
  border-radius: 0;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow:
    inset -5px -5px 0 rgba(0, 0, 0, 0.24),
    inset 5px 5px 0 rgba(255, 255, 255, 0.025),
    0 18px 0 rgba(0, 0, 0, 0.14),
    0 24px 45px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition:
    border-color 140ms steps(2, end),
    box-shadow 140ms steps(2, end),
    transform 140ms steps(2, end);
}

.post-card::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(154, 184, 255, 0.18);
  content: "";
  pointer-events: none;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: var(--pink);
  box-shadow:
    inset -5px -5px 0 rgba(255, 95, 189, 0.1),
    inset 5px 5px 0 rgba(255, 255, 255, 0.035),
    0 16px 0 rgba(0, 0, 0, 0.14),
    0 0 24px rgba(255, 95, 189, 0.12);
  outline: none;
  transform: translate(-2px, -2px);
}

.post-thumb {
  position: relative;
  width: 5.6rem;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(21, 25, 57, 0.86);
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, 0.26),
    inset 4px 4px 0 rgba(255, 255, 255, 0.035),
    inset 0 0 24px rgba(89, 217, 255, 0.08);
  overflow: hidden;
}

.post-thumb::after {
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  color: var(--cyan);
  content: "";
  opacity: 0.18;
  pointer-events: none;
}

.post-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: 0.52rem;
  image-rendering: pixelated;
}

.post-thumb-placeholder::before {
  width: 0.4rem;
  height: 0.4rem;
  margin-bottom: 0.55rem;
  background: currentColor;
  box-shadow:
    0.4rem 0 0 currentColor,
    0.8rem 0 0 currentColor,
    1.2rem 0 0 currentColor,
    0 -0.4rem 0 currentColor,
    1.2rem -0.4rem 0 currentColor,
    0 0.4rem 0 currentColor,
    0.4rem 0.4rem 0 currentColor,
    0.8rem 0.4rem 0 currentColor,
    1.2rem 0.4rem 0 currentColor;
  content: "";
}

.post-thumb-placeholder span {
  display: block;
}

.post-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-date {
  margin-bottom: 0.55rem;
  color: var(--dim);
  font-family: var(--pixel);
  font-size: 0.48rem;
  line-height: 1.6;
}

.post-card h3 {
  margin-bottom: 0.6rem;
  font-family: var(--pixel);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.post-excerpt {
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.82rem;
  line-height: 1.75;
}

.post-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.post-tags span {
  padding: 0.3rem 0.45rem;
  border: 1px solid rgba(178, 141, 255, 0.82);
  color: #c7a9ff;
  background: rgba(139, 92, 255, 0.09);
  font-family: var(--pixel);
  font-size: 0.48rem;
  line-height: 1.5;
}

.post-read-more {
  flex: 0 0 auto;
  color: var(--pink);
  font-family: var(--pixel);
  font-size: 0.5rem;
  line-height: 1.6;
  text-align: right;
  text-shadow: 0 0 10px var(--pink-soft);
}

.post-card-placeholder {
  cursor: default;
}

.post-card-placeholder:hover {
  border-color: var(--panel-border);
  box-shadow:
    inset -5px -5px 0 rgba(0, 0, 0, 0.24),
    inset 5px 5px 0 rgba(255, 255, 255, 0.025),
    0 18px 0 rgba(0, 0, 0, 0.14),
    0 24px 45px rgba(0, 0, 0, 0.2);
  transform: none;
}

body[data-time-theme="morning"] .posts-section {
  background:
    linear-gradient(180deg, rgba(245, 251, 255, 0.88), #dbeaf7),
    repeating-linear-gradient(90deg, rgba(43, 95, 158, 0.04) 0 1px, transparent 1px 8px);
}

body[data-time-theme="dusk"] .posts-section {
  background:
    linear-gradient(180deg, rgba(33, 10, 9, 0.92), var(--bg)),
    repeating-linear-gradient(90deg, rgba(255, 198, 113, 0.025) 0 1px, transparent 1px 8px);
}

body[data-time-theme="morning"] .post-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(232, 244, 253, 0.42)),
    var(--panel);
  box-shadow:
    inset -5px -5px 0 rgba(86, 141, 195, 0.08),
    inset 5px 5px 0 rgba(255, 255, 255, 0.72),
    0 18px 0 rgba(70, 126, 184, 0.08),
    0 24px 45px rgba(49, 112, 178, 0.12);
}

body[data-time-theme="dusk"] .post-card {
  border-color: rgba(242, 157, 82, 0.46);
  box-shadow:
    inset -5px -5px 0 rgba(0, 0, 0, 0.2),
    inset 5px 5px 0 rgba(255, 198, 113, 0.04),
    0 18px 0 rgba(0, 0, 0, 0.12),
    0 24px 45px rgba(0, 0, 0, 0.16);
}

body[data-time-theme="morning"] .post-card::before {
  border-color: rgba(70, 126, 184, 0.18);
}

body[data-time-theme="dusk"] .post-card::before {
  border-color: rgba(255, 198, 113, 0.18);
}

body[data-time-theme="morning"] .post-card h3,
body[data-time-theme="morning"] .post-excerpt {
  color: #173f73;
}

body[data-time-theme="dusk"] .post-card h3 {
  color: #fff0df;
}

body[data-time-theme="dusk"] .post-excerpt {
  color: #e4c0a8;
}

body[data-time-theme="morning"] .post-thumb {
  background: rgba(238, 247, 255, 0.72);
  border-color: rgba(70, 126, 184, 0.26);
}

body[data-time-theme="dusk"] .post-thumb {
  background: rgba(45, 18, 14, 0.82);
  border-color: rgba(255, 198, 113, 0.24);
}

body[data-time-theme="morning"] .post-tags span {
  border-color: rgba(255, 128, 188, 0.48);
  color: #d65f9c;
  background: rgba(255, 128, 188, 0.08);
}

body[data-time-theme="dusk"] .post-tags span {
  border-color: rgba(255, 212, 130, 0.48);
  color: #ffe0a4;
  background: rgba(255, 212, 130, 0.08);
}

.content-page {
  min-height: calc(100vh - var(--header-h));
  padding: clamp(3.6rem, 7vw, 6.5rem) clamp(1.15rem, 6vw, 6rem);
  background:
    radial-gradient(circle at 82% 8%, rgba(100, 45, 150, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(2, 5, 16, 0.96), var(--bg)),
    repeating-linear-gradient(90deg, rgba(89, 217, 255, 0.025) 0 1px, transparent 1px 8px);
}

.page-shell {
  width: min(100%, 58rem);
  margin: 0 auto;
}

.page-panel {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border: 2px solid var(--panel-border);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow:
    inset -5px -5px 0 rgba(0, 0, 0, 0.22),
    inset 5px 5px 0 rgba(255, 255, 255, 0.025),
    0 18px 0 rgba(0, 0, 0, 0.12),
    0 24px 45px rgba(0, 0, 0, 0.18);
}

.page-panel::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(154, 184, 255, 0.18);
  content: "";
  pointer-events: none;
}

.page-header {
  margin-bottom: 1.4rem;
}

.page-title {
  display: block;
  margin: 0;
  color: var(--text);
  font-family: var(--pixel);
  font-size: clamp(1.05rem, 2.3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.55;
  text-shadow:
    2px 0 0 rgba(89, 217, 255, 0.12),
    -2px 0 0 rgba(255, 95, 189, 0.1);
}

.page-title a {
  color: inherit;
}

body.lang-zh .page-title,
body[data-language="zh"] .page-title,
body.lang-zh .page-content :where(h2, h3, h4),
body[data-language="zh"] .page-content :where(h2, h3, h4) {
  font-family: var(--pixel-zh);
  letter-spacing: 0.08em;
}

.page-content {
  color: var(--muted);
  font-family: var(--body);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.9;
}

.page-content > *:last-child {
  margin-bottom: 0;
}

.page-content a {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.page-content :where(h2, h3, h4) {
  margin: 1.8rem 0 0.8rem;
  color: var(--text);
  font-family: var(--pixel);
  font-weight: 400;
  line-height: 1.6;
}

.page-content h2 {
  font-size: 0.92rem;
}

.page-content h3 {
  font-size: 0.8rem;
}

.page-content :where(ul, ol) {
  padding-left: 1.3rem;
}

.page-content :where(blockquote, pre, .wp-block-code) {
  border-left: 4px solid var(--pink);
  background: rgba(255, 255, 255, 0.045);
}

.page-content blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
}

.page-content pre,
.page-content .wp-block-code {
  overflow: auto;
  padding: 1rem;
}

.empty-content {
  color: var(--pink);
  font-family: var(--pixel-zh);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-align: center;
}

.post-list {
  display: grid;
  gap: 1.4rem;
}

.post-summary .page-title {
  margin-bottom: 0.9rem;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
}

.page-pagination {
  margin-top: 2rem;
  font-family: var(--pixel);
  font-size: 0.62rem;
}

.page-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-pagination a,
.page-pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--panel-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

body[data-time-theme="morning"] .content-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(112, 179, 232, 0.22), transparent 28rem),
    linear-gradient(180deg, #f4f9ff 0%, #d7e8f7 100%),
    repeating-linear-gradient(90deg, rgba(43, 95, 158, 0.04) 0 1px, transparent 1px 8px);
}

body[data-time-theme="morning"] .page-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(232, 244, 253, 0.58)),
    var(--panel);
  box-shadow:
    inset -5px -5px 0 rgba(86, 141, 195, 0.08),
    inset 5px 5px 0 rgba(255, 255, 255, 0.72),
    0 18px 0 rgba(70, 126, 184, 0.08),
    0 24px 45px rgba(49, 112, 178, 0.12);
}

body[data-time-theme="morning"] .page-panel::before {
  border-color: rgba(70, 126, 184, 0.18);
}

body[data-time-theme="morning"] .page-title,
body[data-time-theme="morning"] .page-content {
  color: #173f73;
}

body[data-time-theme="morning"] .page-content a,
body[data-time-theme="morning"] .empty-content {
  color: #d65f9c;
}

body[data-time-theme="dusk"] .content-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 121, 48, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(27, 7, 7, 0.96), var(--bg)),
    repeating-linear-gradient(90deg, rgba(255, 198, 113, 0.025) 0 1px, transparent 1px 8px);
}

body[data-time-theme="dusk"] .page-panel {
  border-color: rgba(242, 157, 82, 0.46);
  box-shadow:
    inset -5px -5px 0 rgba(0, 0, 0, 0.2),
    inset 5px 5px 0 rgba(255, 198, 113, 0.04),
    0 18px 0 rgba(0, 0, 0, 0.12),
    0 24px 45px rgba(0, 0, 0, 0.16);
}

body[data-time-theme="dusk"] .page-panel::before {
  border-color: rgba(255, 198, 113, 0.18);
}

body[data-time-theme="dusk"] .page-content a,
body[data-time-theme="dusk"] .empty-content {
  color: #ffb59a;
}

.site-footer {
  position: relative;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem clamp(1.15rem, 6vw, 6rem);
  border-top: 2px solid rgba(132, 160, 224, 0.16);
  color: var(--dim);
  background: rgba(1, 4, 13, 0.86);
  font-size: 0.58rem;
  line-height: 1.8;
}

.anchor-target {
  position: absolute;
  top: calc(var(--header-h) * -1);
}

.site-footer p {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
}

.footer-cat {
  width: 22px;
  height: 22px;
  opacity: 0.8;
  transform: none;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 5.5rem;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 3, 12, 0.96) 0%, rgba(3, 3, 12, 0.78) 42%, rgba(3, 3, 12, 0.34) 72%, rgba(3, 3, 12, 0.46) 100%),
      linear-gradient(180deg, rgba(3, 3, 12, 0.14) 0%, rgba(3, 3, 12, 0.26) 70%, rgba(3, 3, 12, 0.9) 100%);
  }

  .hero-art {
    inset: 0 0 auto 0;
    width: 100%;
    height: clamp(460px, 72vh, 720px);
    background-position: center 40%;
    background-size: cover;
    opacity: 0.76;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .post-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: auto;
  }

  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 0.95rem;
    padding-bottom: 0.9rem;
  }

  .header-actions {
    width: 100%;
    align-items: center;
    flex-flow: row wrap;
    gap: 0.75rem;
  }

  .site-nav {
    flex: 1 0 100%;
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.52rem;
  }

  .language-toggle,
  .theme-toggle {
    flex-shrink: 0;
  }

  .site-nav .active::after {
    display: none;
  }

  .hero {
    padding-top: 4.75rem;
    padding-bottom: 3.5rem;
  }

  .hero-art {
    inset: 0 0 auto 0;
    width: 100%;
    height: clamp(340px, 58vh, 520px);
    background-position: center 42%;
    background-size: cover;
    opacity: 0.58;
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 3.3rem);
  }

  .title-cat {
    display: none;
  }

  .subtitle {
    font-size: 1.65rem;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

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

  .post-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (max-width: 440px) {
  .site-nav a {
    padding: 0.35rem 0.15rem;
  }

  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .project-icon {
    width: 4.8rem;
    height: 4.8rem;
  }

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

  .post-thumb {
    width: 4.8rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.lang-zh .site-nav,
body.lang-zh .language-toggle,
body.lang-zh .eyebrow,
body.lang-zh .meta,
body.lang-zh .section-label h2,
body.lang-zh .button,
body.lang-zh .project-card h3,
body[data-language="zh"] .site-nav,
body[data-language="zh"] .language-toggle,
body[data-language="zh"] .eyebrow,
body[data-language="zh"] .meta,
body[data-language="zh"] .section-label h2,
body[data-language="zh"] .button,
body[data-language="zh"] .project-card h3 {
  font-family: var(--pixel-zh);
  font-weight: 500;
  letter-spacing: 0.08em;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: geometricPrecision;
}

body.lang-zh .brand,
body.lang-zh h1,
body[data-language="zh"] .brand,
body[data-language="zh"] h1 {
  font-family: var(--pixel);
}

body.lang-zh .site-nav,
body[data-language="zh"] .site-nav {
  gap: clamp(1.6rem, 4.8vw, 3.9rem);
  font-size: clamp(0.82rem, 1.04vw, 0.96rem);
  letter-spacing: 0.12em;
  line-height: 1.9;
}

body.lang-zh .site-nav a,
body[data-language="zh"] .site-nav a {
  padding: 0.6rem 0.08rem;
}

body.lang-zh .language-toggle,
body[data-language="zh"] .language-toggle {
  min-height: 2.3rem;
  padding: 0.18rem;
  font-size: inherit;
  letter-spacing: 0;
  line-height: 1;
}

body.lang-zh .lang-option,
body[data-language="zh"] .lang-option {
  min-width: 2.35rem;
  padding-inline: 0.55rem;
}

body.lang-zh .eyebrow,
body[data-language="zh"] .eyebrow {
  margin-bottom: 1.05rem;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  letter-spacing: 0.14em;
  line-height: 1.85;
}

body.lang-zh h1,
body[data-language="zh"] h1 {
  margin-bottom: 1.35rem;
}

body.lang-zh .subtitle,
body[data-language="zh"] .subtitle {
  width: min(100%, 40rem);
  margin-bottom: 1.85rem;
  font-family: var(--zh-readable);
  font-size: clamp(1.55rem, 2.45vw, 2.05rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.08em;
}

body.lang-zh .meta,
body[data-language="zh"] .meta {
  width: min(100%, 42rem);
  margin-bottom: 2.15rem;
  font-size: clamp(0.95rem, 1.18vw, 1.08rem);
  letter-spacing: 0.06em;
  line-height: 2.05;
}

body.lang-zh .hero-content,
body[data-language="zh"] .hero-content {
  width: min(100%, 45rem);
}

body.lang-zh .hero-actions,
body[data-language="zh"] .hero-actions {
  gap: 1.25rem;
}

body.lang-zh .button,
body[data-language="zh"] .button {
  min-width: 12rem;
  gap: 1.1rem;
  padding: 1.05rem 2.25rem;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-align: center;
}

body.lang-zh .section-label,
body[data-language="zh"] .section-label {
  margin-bottom: 1.3rem;
}

body.lang-zh .section-label h2,
body[data-language="zh"] .section-label h2 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  line-height: 1.75;
}

body.lang-zh .project-card,
body[data-language="zh"] .project-card {
  gap: 1.55rem;
  padding: 1.35rem;
}

body.lang-zh .project-card h3,
body[data-language="zh"] .project-card h3 {
  margin-bottom: 0.7rem;
  font-family: var(--pixel-zh);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.85;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: geometricPrecision;
}

body.lang-zh .project-card p,
body[data-language="zh"] .project-card p {
  margin-bottom: 1.1rem;
  font-family: var(--zh-readable);
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 2;
}

body.lang-zh .post-card,
body[data-language="zh"] .post-card {
  gap: 1.25rem;
}

body.lang-zh .post-card h3,
body[data-language="zh"] .post-card h3 {
  font-family: var(--pixel-zh);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.85;
}

body.lang-zh .post-excerpt,
body[data-language="zh"] .post-excerpt {
  font-family: var(--zh-readable);
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

body.lang-zh .post-date,
body.lang-zh .post-tags,
body.lang-zh .post-read-more,
body[data-language="zh"] .post-date,
body[data-language="zh"] .post-tags,
body[data-language="zh"] .post-read-more {
  font-family: var(--pixel-zh);
  letter-spacing: 0.08em;
}

body.lang-zh .tags,
body[data-language="zh"] .tags {
  font-family: var(--pixel);
}

body.lang-zh .site-footer,
body[data-language="zh"] .site-footer {
  font-family: var(--zh-readable);
  letter-spacing: 0.05em;
  line-height: 2;
}

body.lang-zh .site-nav,
body.lang-zh .language-toggle,
body.lang-zh .eyebrow,
body.lang-zh .section-label h2,
body.lang-zh .button,
body.lang-zh .project-card h3,
body[data-language="zh"] .site-nav,
body[data-language="zh"] .language-toggle,
body[data-language="zh"] .eyebrow,
body[data-language="zh"] .section-label h2,
body[data-language="zh"] .button,
body[data-language="zh"] .project-card h3 {
  text-shadow:
    1px 0 0 rgba(89, 217, 255, 0.16),
    0 1px 0 rgba(255, 95, 189, 0.14);
}

body.lang-zh .button:hover,
body[data-language="zh"] .button:hover {
  text-shadow:
    1px 0 0 rgba(89, 217, 255, 0.22),
    0 1px 0 rgba(255, 95, 189, 0.2);
}

@media (max-width: 720px) {
  body.lang-zh .site-nav,
  body[data-language="zh"] .site-nav {
    gap: 0.95rem;
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    line-height: 1.9;
  }

  body.lang-zh h1,
  body[data-language="zh"] h1 {
    font-size: clamp(2.1rem, 10vw, 3.3rem);
  }

  body.lang-zh .subtitle,
  body[data-language="zh"] .subtitle {
    font-size: 1.45rem;
    letter-spacing: 0.08em;
    line-height: 1.75;
  }

  body.lang-zh .button,
  body[data-language="zh"] .button {
    min-width: 0;
    gap: 0.9rem;
    padding-inline: 1.45rem;
  }

  body.lang-zh .project-card,
  body[data-language="zh"] .project-card {
    gap: 1.1rem;
  }
}

@media (max-width: 440px) {
  body.lang-zh .site-nav,
  body[data-language="zh"] .site-nav {
    gap: 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  body.lang-zh .site-nav a,
  body[data-language="zh"] .site-nav a {
    padding-inline: 0;
  }
}

body.lang-en .brand,
body[data-language="en"] .brand {
  font-size: clamp(0.72rem, 1vw, 0.92rem);
}

body.lang-en .site-nav,
body[data-language="en"] .site-nav {
  font-size: clamp(0.5rem, 0.68vw, 0.62rem);
}

body.lang-en .eyebrow,
body[data-language="en"] .eyebrow {
  font-size: clamp(0.5rem, 0.74vw, 0.58rem);
  line-height: 1.8;
}

body.lang-en h1,
body[data-language="en"] h1 {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.08;
}

body.lang-en .subtitle,
body[data-language="en"] .subtitle {
  width: min(100%, 31rem);
  font-size: clamp(0.95rem, 2vw, 1.45rem);
  line-height: 1.65;
}

body.lang-en .meta,
body[data-language="en"] .meta {
  font-size: clamp(0.56rem, 0.78vw, 0.68rem);
  line-height: 2;
}

body.lang-en .button,
body[data-language="en"] .button {
  min-height: 3.25rem;
  gap: 0.72rem;
  padding: 0.78rem 1.1rem;
  font-size: 0.62rem;
  line-height: 1.5;
}

body.lang-en .button-glyph,
body[data-language="en"] .button-glyph {
  font-size: 1.05rem;
}

body.lang-en .section-label h2,
body[data-language="en"] .section-label h2 {
  font-size: 0.58rem;
  line-height: 1.7;
}

body.lang-en .project-card h3,
body[data-language="en"] .project-card h3 {
  font-size: 0.68rem;
  line-height: 1.8;
}

body.lang-en .project-card p,
body[data-language="en"] .project-card p {
  font-size: 0.72rem;
  line-height: 2;
}

body.lang-en .post-card h3,
body[data-language="en"] .post-card h3 {
  font-size: 0.66rem;
  line-height: 1.75;
}

body.lang-en .post-excerpt,
body[data-language="en"] .post-excerpt {
  font-size: 0.72rem;
  line-height: 1.75;
}

body.lang-en .tags span,
body[data-language="en"] .tags span {
  font-size: 0.48rem;
}

@media (max-width: 720px) {
  body.lang-en h1,
  body[data-language="en"] h1 {
    font-size: clamp(1.75rem, 9vw, 2.75rem);
  }

  body.lang-en .subtitle,
  body[data-language="en"] .subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  body.lang-en .site-nav,
  body[data-language="en"] .site-nav {
    font-size: 0.46rem;
  }
}

@media (min-width: 721px) {
  .site-nav {
    gap: clamp(0.35rem, 1vw, 0.85rem);
  }

  .site-nav a {
    inline-size: clamp(4.4rem, 6vw, 6.2rem);
    min-height: 2.25rem;
    text-align: center;
  }

  .language-toggle {
    inline-size: 7.15rem;
    block-size: 2.9rem;
    justify-content: center;
  }

  .hero-content,
  body.lang-zh .hero-content,
  body[data-language="zh"] .hero-content {
    width: min(100%, 45rem);
  }

  .eyebrow {
    display: flex;
    align-items: center;
    min-height: 2.1rem;
    margin-bottom: 0.95rem;
  }

  h1,
  body.lang-en h1,
  body[data-language="en"] h1,
  body.lang-zh h1,
  body[data-language="zh"] h1 {
    min-height: 7.1rem;
    margin-bottom: 1.25rem;
    font-size: clamp(2.35rem, 5.8vw, 4.45rem);
  }

  .subtitle,
  body.lang-en .subtitle,
  body[data-language="en"] .subtitle,
  body.lang-zh .subtitle,
  body[data-language="zh"] .subtitle {
    width: min(100%, 40rem);
    min-height: 8.25rem;
    margin-bottom: 1.1rem;
  }

  .meta,
  body.lang-en .meta,
  body[data-language="en"] .meta,
  body.lang-zh .meta,
  body[data-language="zh"] .meta {
    display: flex;
    align-items: center;
    min-height: 2.6rem;
    margin-bottom: 1.65rem;
  }

  .hero-actions {
    gap: 1.25rem;
    min-height: 4.6rem;
  }

  .hero-actions .button,
  body.lang-en .hero-actions .button,
  body[data-language="en"] .hero-actions .button,
  body.lang-zh .hero-actions .button,
  body[data-language="zh"] .hero-actions .button {
    justify-content: center;
    inline-size: 15.25rem;
    min-width: 15.25rem;
    block-size: 4.2rem;
    min-height: 0;
    padding: 0.9rem 1.25rem;
    overflow: hidden;
  }

  .project-card h3,
  body.lang-en .project-card h3,
  body[data-language="en"] .project-card h3,
  body.lang-zh .project-card h3,
  body[data-language="zh"] .project-card h3 {
    min-height: 2.5rem;
  }

  .project-card p,
  body.lang-en .project-card p,
  body[data-language="en"] .project-card p,
  body.lang-zh .project-card p,
  body[data-language="zh"] .project-card p {
    min-height: 4.8rem;
  }
}

@media (max-width: 720px) {
  .site-nav a {
    display: grid;
    place-items: center;
    min-width: 3.6rem;
    text-align: center;
  }

  .language-toggle {
    inline-size: 7.15rem;
    block-size: 2.9rem;
    justify-content: center;
  }

  .hero-actions .button,
  body.lang-en .hero-actions .button,
  body[data-language="en"] .hero-actions .button,
  body.lang-zh .hero-actions .button,
  body[data-language="zh"] .hero-actions .button {
    inline-size: 100%;
    min-width: 0;
    block-size: 4.1rem;
    min-height: 0;
  }
}

body[data-time-theme="morning"] {
  --bg: #eef8ff;
  --bg-soft: #d9efff;
  --panel: rgba(247, 252, 255, 0.9);
  --panel-border: rgba(91, 151, 210, 0.38);
  --text: #173f7d;
  --muted: #406c9f;
  --dim: #6f98c1;
  --pink: #ff74b7;
  --pink-soft: rgba(255, 116, 183, 0.22);
  --cyan: #4fa7e8;
  --cyan-soft: rgba(79, 167, 232, 0.18);
  --violet: #7a9bd7;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 211, 232, 0.42), transparent 30rem),
    radial-gradient(circle at 74% 6%, rgba(132, 209, 252, 0.46), transparent 36rem),
    linear-gradient(180deg, #f7fbff 0%, #d8efff 44%, #a9d4f4 100%);
}

body[data-time-theme="dusk"] {
  --bg: #3b1812;
  --bg-soft: #592817;
  --panel: rgba(70, 29, 20, 0.86);
  --panel-border: rgba(242, 157, 82, 0.58);
  --text: #fff1dc;
  --muted: #f1c9a5;
  --dim: #c98f6a;
  --pink: #f08f78;
  --pink-soft: rgba(240, 143, 120, 0.22);
  --cyan: #ffc26a;
  --cyan-soft: rgba(255, 194, 106, 0.18);
  --violet: #c45769;
  background:
    radial-gradient(circle at 70% 7%, rgba(255, 184, 77, 0.36), transparent 34rem),
    radial-gradient(circle at 20% 10%, rgba(222, 76, 91, 0.22), transparent 28rem),
    linear-gradient(180deg, #2a0d0e 0%, #642916 48%, #23090a 100%);
}

body[data-time-theme="morning"]::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(255, 116, 183, 0.03), rgba(79, 167, 232, 0.04));
  opacity: 0.14;
}

body[data-time-theme="dusk"]::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 222, 175, 0.08) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(240, 143, 120, 0.035), rgba(255, 194, 106, 0.035));
  opacity: 0.22;
}

body[data-time-theme="morning"] .site-header {
  border-bottom-color: rgba(132, 188, 235, 0.46);
  background: rgba(247, 252, 255, 0.94);
  box-shadow:
    inset 0 -4px 0 rgba(74, 145, 210, 0.1),
    0 8px 0 rgba(49, 112, 178, 0.08);
}

body[data-time-theme="dusk"] .site-header {
  border-bottom-color: rgba(242, 157, 82, 0.44);
  background: rgba(34, 13, 14, 0.88);
  box-shadow:
    inset 0 -4px 0 rgba(255, 198, 113, 0.08),
    0 8px 0 rgba(0, 0, 0, 0.16);
}

body[data-time-theme="morning"] .brand,
body[data-time-theme="morning"] .site-nav {
  color: #1d4f91;
}

body[data-time-theme="morning"] .cat-mark,
body[data-time-theme="morning"] .title-cat,
body[data-time-theme="morning"] .mini-cat,
body[data-time-theme="morning"] .footer-cat {
  background-color: #ff9fca;
  color: #ff9fca;
  filter: drop-shadow(0 0 6px rgba(255, 116, 183, 0.18));
}

body[data-time-theme="dusk"] .brand,
body[data-time-theme="dusk"] .site-nav {
  color: #ffe9d2;
}

body[data-time-theme="morning"] .site-nav a:hover,
body[data-time-theme="morning"] .site-nav .active {
  color: #ff5fa9;
}

body[data-time-theme="dusk"] .site-nav a:hover,
body[data-time-theme="dusk"] .site-nav .active {
  color: #ffb06f;
}

body[data-time-theme="morning"] .hero {
  background:
    radial-gradient(circle at 72% 8%, rgba(150, 225, 255, 0.34), transparent 36rem),
    linear-gradient(180deg, #effaff 0%, #bfdef6 58%, #6ea9d9 100%);
}

body[data-time-theme="morning"] .hero::before {
  background:
    linear-gradient(90deg, rgba(35, 96, 164, 0.94) 0%, rgba(35, 96, 164, 0.9) 34%, rgba(35, 96, 164, 0.74) 52%, rgba(35, 96, 164, 0.34) 70%, rgba(35, 96, 164, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(47, 118, 183, 0.1) 68%, rgba(47, 118, 183, 0.48) 100%);
}

body[data-time-theme="morning"] .hero-art {
  opacity: 0.98;
  filter: saturate(1.06) contrast(1.03) brightness(1.04);
}

body[data-time-theme="morning"] .hero-art::after {
  background:
    linear-gradient(90deg,
      rgba(31, 88, 156, 1) 0%,
      rgba(31, 88, 156, 0.96) 34%,
      rgba(31, 88, 156, 0.64) 52%,
      rgba(31, 88, 156, 0.28) 70%,
      rgba(31, 88, 156, 0.06) 100%
    ),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0) 54%,
      rgba(52, 130, 196, 0.08) 74%,
      rgba(52, 130, 196, 0.22) 90%,
      rgba(52, 130, 196, 0.46) 100%
    );
}

body[data-time-theme="dusk"] .hero {
  background:
    radial-gradient(circle at 68% 12%, rgba(255, 177, 80, 0.32), transparent 34rem),
    linear-gradient(180deg, #461714 0%, #30100f 66%, #160607 100%);
}

body[data-time-theme="dusk"] .hero::before {
  background:
    linear-gradient(90deg, rgba(22, 7, 8, 0.99) 0%, rgba(22, 7, 8, 0.96) 36%, rgba(22, 7, 8, 0.84) 52%, rgba(22, 7, 8, 0.4) 70%, rgba(22, 7, 8, 0.14) 100%),
    linear-gradient(180deg, rgba(22, 7, 8, 0.1) 0%, rgba(22, 7, 8, 0.16) 70%, rgba(22, 7, 8, 0.72) 100%);
}

body[data-time-theme="dusk"] .hero-art {
  opacity: 0.96;
  filter: saturate(1.12) contrast(1.06) brightness(1.03);
}

body[data-time-theme="dusk"] .hero-art::after {
  background:
    linear-gradient(90deg,
      rgba(24, 8, 9, 1) 0%,
      rgba(24, 8, 9, 0.98) 34%,
      rgba(24, 8, 9, 0.88) 52%,
      rgba(24, 8, 9, 0.58) 66%,
      rgba(24, 8, 9, 0.22) 80%,
      rgba(24, 8, 9, 0.06) 100%
    ),
    linear-gradient(180deg,
      rgba(24, 8, 9, 0.02) 0%,
      rgba(24, 8, 9, 0.02) 54%,
      rgba(24, 8, 9, 0.12) 72%,
      rgba(24, 8, 9, 0.36) 90%,
      rgba(24, 8, 9, 0.8) 100%
    );
}

body[data-time-theme="dusk"] .hero-glow {
  background: rgba(255, 199, 130, 0.084);
  filter: blur(58px);
}

body[data-time-theme="morning"] .hero-content,
body[data-time-theme="dusk"] .hero-content {
  color: #fff7fb;
}

body[data-time-theme="morning"] .eyebrow {
  color: #ff8bc4;
  text-shadow: 0 0 10px rgba(255, 116, 183, 0.18);
}

body[data-time-theme="morning"] .subtitle,
body[data-time-theme="dusk"] .subtitle {
  color: #eef0ff;
}

body[data-time-theme="morning"] .subtitle {
  color: #ffffff;
  text-shadow: 0 2px 0 rgba(39, 95, 155, 0.22);
}

body[data-time-theme="morning"] .meta {
  color: #f7fbff;
  text-shadow: 0 2px 0 rgba(39, 95, 155, 0.18);
}

body[data-time-theme="dusk"] .meta {
  color: #ffe0bd;
}

body[data-time-theme="morning"] .button {
  background: rgba(54, 132, 202, 0.34);
  backdrop-filter: blur(2px);
}

body[data-time-theme="dusk"] .button {
  background: rgba(43, 14, 12, 0.48);
}

body[data-time-theme="morning"] .button-pink {
  color: #ffd3e8;
  box-shadow:
    inset -4px -4px 0 rgba(255, 116, 183, 0.16),
    inset 4px 4px 0 rgba(255, 255, 255, 0.12),
    0 0 14px rgba(255, 116, 183, 0.14);
}

body[data-time-theme="morning"] .button-cyan {
  color: #e3f7ff;
  box-shadow:
    inset -4px -4px 0 rgba(79, 167, 232, 0.16),
    inset 4px 4px 0 rgba(255, 255, 255, 0.12),
    0 0 14px rgba(79, 167, 232, 0.14);
}

body[data-time-theme="dusk"] .button-pink {
  color: #ffb49f;
  box-shadow:
    inset -4px -4px 0 rgba(255, 145, 106, 0.18),
    inset 4px 4px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(255, 145, 106, 0.14);
}

body[data-time-theme="dusk"] .button-cyan {
  color: #ffd07a;
  box-shadow:
    inset -4px -4px 0 rgba(255, 196, 105, 0.18),
    inset 4px 4px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(255, 196, 105, 0.14);
}

body[data-time-theme="morning"] .projects-section {
  background:
    linear-gradient(180deg, rgba(232, 247, 255, 0.96), #f8fcff 34%, #dcebfa 100%),
    repeating-linear-gradient(90deg, rgba(69, 137, 203, 0.045) 0 1px, transparent 1px 8px);
}

body[data-time-theme="dusk"] .projects-section {
  background:
    linear-gradient(180deg, rgba(38, 11, 10, 0.92), #522114 42%, #2b0e0c 100%),
    repeating-linear-gradient(90deg, rgba(255, 190, 97, 0.045) 0 1px, transparent 1px 8px);
}

body[data-time-theme="morning"] .project-card {
  border-color: rgba(120, 171, 218, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(225, 241, 255, 0.48)),
    rgba(247, 252, 255, 0.92);
  box-shadow:
    inset -5px -5px 0 rgba(76, 130, 188, 0.08),
    inset 5px 5px 0 rgba(255, 255, 255, 0.58),
    0 18px 0 rgba(74, 132, 190, 0.08),
    0 24px 45px rgba(82, 139, 196, 0.14);
}

body[data-time-theme="dusk"] .project-card {
  border-color: rgba(242, 157, 82, 0.48);
  background:
    linear-gradient(145deg, rgba(255, 182, 105, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(62, 24, 17, 0.82);
  box-shadow:
    inset -5px -5px 0 rgba(0, 0, 0, 0.2),
    inset 5px 5px 0 rgba(255, 218, 153, 0.04),
    0 18px 0 rgba(0, 0, 0, 0.16),
    0 24px 45px rgba(0, 0, 0, 0.22);
}

body[data-time-theme="morning"] .project-card::before {
  border-color: rgba(111, 169, 222, 0.24);
}

body[data-time-theme="dusk"] .project-card::before {
  border-color: rgba(242, 157, 82, 0.2);
}

body[data-time-theme="morning"] .project-card h3,
body[data-time-theme="morning"] .project-card p {
  color: #244f87;
}

body[data-time-theme="dusk"] .project-card h3 {
  color: #ffe6c8;
}

body[data-time-theme="dusk"] .project-card p {
  color: #e8bd99;
}

body[data-time-theme="morning"] .project-icon {
  border-color: rgba(98, 157, 214, 0.48);
  background: rgba(231, 244, 255, 0.84);
  color: #3f7fbd;
}

body[data-time-theme="dusk"] .project-icon {
  border-color: rgba(242, 157, 82, 0.36);
  background: rgba(73, 31, 22, 0.88);
  color: #ffc26a;
}

body[data-time-theme="morning"] .site-footer {
  border-top-color: rgba(111, 169, 222, 0.34);
  color: #356796;
  background: rgba(237, 248, 255, 0.94);
}

body[data-time-theme="dusk"] .site-footer {
  border-top-color: rgba(242, 157, 82, 0.28);
  color: #c98f6a;
  background: rgba(32, 10, 9, 0.9);
}

body[data-time-theme="morning"] .language-toggle,
body[data-time-theme="morning"] .theme-toggle {
  border-color: rgba(255, 116, 183, 0.68);
  background: rgba(248, 252, 255, 0.78);
  color: #1d4f91;
}

body[data-time-theme="morning"] .lang-option {
  color: rgba(29, 79, 145, 0.62);
}

body[data-time-theme="morning"] .lang-option.is-active {
  background: rgba(255, 116, 183, 0.82);
  color: #fff8fc;
}

body[data-time-theme="morning"] .lang-divider {
  background: rgba(111, 169, 222, 0.52);
}

body[data-time-theme="morning"] .theme-toggle-icon {
  color: #2f659f;
}

body[data-time-theme="morning"] .tags span {
  border-color: rgba(255, 116, 183, 0.38);
  color: #d85b9a;
  background: rgba(255, 218, 236, 0.42);
}

body[data-time-theme="morning"] .tags-cyan span {
  border-color: rgba(79, 167, 232, 0.42);
  color: #397db9;
  background: rgba(207, 237, 255, 0.45);
}

body[data-time-theme="morning"] .section-label h2 {
  color: #1d4f91;
}

body[data-time-theme="morning"] .section-label span {
  box-shadow:
    0.7rem 0 0 rgba(79, 167, 232, 0.38),
    0 0 10px rgba(255, 116, 183, 0.16);
}

body[data-time-theme="dusk"] .language-toggle,
body[data-time-theme="dusk"] .theme-toggle {
  background: rgba(38, 13, 12, 0.72);
  color: #ffe9d2;
}

.mobile-menu-toggle,
.nav-backdrop,
.mobile-drawer-handle {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    will-change: transform;
    transition:
      transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
      background 260ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (max-width: 860px) {
  :root {
    --mobile-topbar-h: 4.8rem;
  }

  body {
    padding-left: 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header,
  .admin-bar .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    z-index: 45;
    display: grid;
    grid-template-columns: 3rem 1fr 3rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--mobile-topbar-h);
    height: var(--mobile-topbar-h);
    gap: 0.75rem;
    padding: 0 clamp(0.85rem, 4vw, 1.2rem);
    border-right: 0;
    border-bottom: 2px solid rgba(132, 160, 224, 0.22);
    transform: none;
  }

  .admin-bar .site-header {
    top: 46px;
    height: var(--mobile-topbar-h);
  }

  .site-header.is-hidden {
    transform: none;
  }

  body.nav-open .site-header {
    z-index: 80;
    pointer-events: none;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    align-content: center;
    justify-self: start;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.55rem;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: opacity 140ms ease, transform 140ms ease;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 1.65rem;
    height: 3px;
    margin: 3px 0;
    background: currentColor;
    box-shadow: 0 0 8px var(--pink-soft);
    transform-origin: center;
    transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), opacity 120ms ease;
  }

  body.nav-open .mobile-menu-toggle {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-0.35rem);
  }

  .brand {
    justify-self: center;
    justify-content: center;
    width: 100%;
    gap: 0.55rem;
  }

  .brand span[data-i18n] {
    display: inline;
    font-size: 0.7rem;
  }

  .header-actions {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    width: clamp(12.5rem, 50vw, 22rem);
    max-height: none;
    height: 100dvh;
    overflow: visible;
    gap: 1rem;
    padding: clamp(4.6rem, 13vh, 6.2rem) 0 1.4rem;
    border: 0;
    border-right: 2px solid rgba(132, 160, 224, 0.32);
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(17, 20, 31, 0.985), rgba(9, 11, 20, 0.985));
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      inset -4px 0 0 rgba(255, 255, 255, 0.025),
      10px 0 0 rgba(0, 0, 0, 0.12),
      0 24px 55px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translate3d(-102%, 0, 0);
    transition:
      opacity 160ms ease,
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0ms linear 220ms;
  }

  body[data-time-theme="morning"] .header-actions {
    border-right-color: rgba(132, 188, 235, 0.5);
    background:
      linear-gradient(180deg, rgba(246, 251, 255, 0.985), rgba(224, 239, 250, 0.985));
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.62),
      inset -4px 0 0 rgba(86, 141, 195, 0.08),
      10px 0 0 rgba(70, 126, 184, 0.08),
      0 24px 55px rgba(49, 112, 178, 0.2);
  }

  body[data-time-theme="dusk"] .header-actions {
    border-right-color: rgba(242, 157, 82, 0.42);
    background:
      linear-gradient(180deg, rgba(48, 19, 15, 0.99), rgba(35, 13, 11, 0.99));
    box-shadow:
      inset 0 0 0 1px rgba(255, 198, 113, 0.08),
      inset -4px 0 0 rgba(255, 198, 113, 0.06),
      10px 0 0 rgba(0, 0, 0, 0.16),
      0 24px 55px rgba(0, 0, 0, 0.32);
  }

  .admin-bar .header-actions {
    top: 0;
    height: 100dvh;
  }

  body.nav-open .header-actions {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 160ms ease,
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0ms;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .admin-bar .nav-backdrop {
    top: 0;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav,
  body.lang-zh .site-nav,
  body[data-language="zh"] .site-nav,
  body.lang-en .site-nav,
  body[data-language="en"] .site-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    gap: 0.3rem;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    line-height: 1.5;
  }

  .site-nav a,
  body.lang-zh .site-nav a,
  body[data-language="zh"] .site-nav a,
  body.lang-en .site-nav a,
  body[data-language="en"] .site-nav a {
    display: flex;
    align-items: center;
    inline-size: 100%;
    min-width: 0;
    min-height: 3.75rem;
    padding: 0.75rem 1.15rem 0.75rem 1.3rem;
    border: 0;
    border-left: 4px solid transparent;
    background: transparent;
    text-align: left;
    justify-content: start;
    word-break: keep-all;
    color: var(--muted);
    text-shadow: none;
    transition:
      color 140ms steps(2, end),
      background 140ms steps(2, end),
      border-color 140ms steps(2, end),
      transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav a::before {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    margin-right: 0.8rem;
    color: currentColor;
    font-size: 1.05rem;
    content: "▣";
    opacity: 0.82;
  }

  .site-nav a:nth-child(1)::before {
    content: "⌂";
  }

  .site-nav a:nth-child(2)::before {
    content: "▤";
  }

  .site-nav a:nth-child(3)::before {
    content: "☰";
  }

  .site-nav a:nth-child(4)::before {
    content: "○";
  }

  .site-nav a:nth-child(5)::before {
    content: "◴";
  }

  .site-nav a:nth-child(6)::before {
    content: "?";
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav .active {
    border-left-color: var(--pink);
    background:
      linear-gradient(90deg, rgba(255, 116, 183, 0.2), rgba(255, 116, 183, 0.06));
    color: var(--text);
    outline: none;
    box-shadow:
      inset 0 0 0 1px rgba(255, 116, 183, 0.18),
      0 0 18px rgba(255, 116, 183, 0.08);
    text-shadow: 0 0 10px var(--pink-soft);
    transform: translateX(0.25rem);
  }

  body[data-time-theme="morning"] .site-nav a:hover,
  body[data-time-theme="morning"] .site-nav a:focus-visible,
  body[data-time-theme="morning"] .site-nav .active {
    background:
      linear-gradient(90deg, rgba(255, 128, 188, 0.32), rgba(78, 151, 216, 0.12));
    color: #194a82;
    box-shadow:
      inset 0 0 0 1px rgba(255, 128, 188, 0.34),
      0 0 18px rgba(255, 128, 188, 0.12);
  }

  body[data-time-theme="dusk"] .site-nav a:hover,
  body[data-time-theme="dusk"] .site-nav a:focus-visible,
  body[data-time-theme="dusk"] .site-nav .active {
    background:
      linear-gradient(90deg, rgba(255, 212, 130, 0.24), rgba(255, 160, 128, 0.08));
    color: #ffe0a4;
    box-shadow:
      inset 0 0 0 1px rgba(255, 212, 130, 0.24),
      0 0 18px rgba(255, 198, 113, 0.1);
  }

  .site-nav .active::after {
    display: none;
  }

  .language-toggle {
    align-self: center;
    inline-size: min(100%, 9rem);
    block-size: auto;
    margin: 1rem auto 1.15rem;
    min-height: 2.6rem;
    justify-content: center;
  }

  .language-toggle:hover,
  .language-toggle:focus-visible {
    border-color: var(--text);
    filter: brightness(1.12);
    outline: none;
    transform: translateY(-1px);
  }

  .mobile-drawer-handle {
    position: absolute;
    top: 50%;
    right: -2.15rem;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 4rem;
    border: 2px solid var(--pink);
    border-left: 0;
    border-radius: 0;
    background: rgba(9, 11, 20, 0.94);
    color: var(--pink);
    font-family: var(--pixel);
    font-size: 1rem;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 14px rgba(255, 116, 183, 0.16);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-0.4rem);
    transition:
      opacity 160ms ease,
      transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
      background 220ms ease,
      border-color 220ms ease,
      color 220ms ease;
  }

  body.nav-open .mobile-drawer-handle {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }

  .mobile-drawer-handle:hover,
  .mobile-drawer-handle:focus-visible {
    background: var(--pink);
    color: var(--bg);
    outline: none;
    transform: translateY(-50%) translateX(0.12rem);
  }

  body[data-time-theme="morning"] .mobile-drawer-handle {
    background: rgba(242, 248, 253, 0.96);
    color: #2b5f9e;
    border-color: rgba(43, 95, 158, 0.7);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.55),
      0 0 14px rgba(255, 128, 188, 0.16);
  }

  body[data-time-theme="morning"] .mobile-drawer-handle:hover,
  body[data-time-theme="morning"] .mobile-drawer-handle:focus-visible {
    background: #ff9bc7;
    color: #173f73;
  }

  body[data-time-theme="dusk"] .mobile-drawer-handle {
    background: rgba(38, 13, 12, 0.96);
    color: #ffe0a4;
    border-color: rgba(255, 212, 130, 0.72);
    box-shadow:
      inset 0 0 0 1px rgba(255, 198, 113, 0.08),
      0 0 14px rgba(255, 198, 113, 0.14);
  }

  body[data-time-theme="dusk"] .mobile-drawer-handle:hover,
  body[data-time-theme="dusk"] .mobile-drawer-handle:focus-visible {
    background: #ffd482;
    color: #2b0f0c;
  }

  .lang-option {
    min-width: 0;
    flex: 1;
    padding-inline: 0.25rem;
  }

  .theme-toggle {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .hero {
    padding-top: calc(var(--mobile-topbar-h) + 3.25rem);
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
  }

  .content-page {
    padding-top: calc(var(--mobile-topbar-h) + 2.25rem);
    padding-left: clamp(1rem, 4vw, 1.4rem);
    padding-right: clamp(1rem, 4vw, 1.4rem);
  }

  .page-panel {
    padding: 1.25rem;
  }
}

@media (max-width: 520px) {
  :root {
    --mobile-topbar-h: 4.45rem;
  }

  .cat-mark {
    width: 30px;
    height: 30px;
  }

  .site-nav,
  body.lang-zh .site-nav,
  body[data-language="zh"] .site-nav {
    font-size: 0.78rem;
  }

  body.lang-en .site-nav,
  body[data-language="en"] .site-nav {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  .site-nav a,
  body.lang-zh .site-nav a,
  body[data-language="zh"] .site-nav a,
  body.lang-en .site-nav a,
  body[data-language="en"] .site-nav a {
    min-height: 3.45rem;
    padding-inline: 1rem 0.8rem;
  }

  .language-toggle {
    transform: none;
  }
}

/* Stacked WebP hero backgrounds: all themes stay mounted, theme changes only fade opacity. */
@media (prefers-reduced-motion: no-preference) {
  .hero-art-layer {
    transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero-art-stack,
  .hero-art-stack::after {
    transition:
      filter 360ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

body[data-time-theme="morning"] .hero-art-stack {
  opacity: 0.98;
  filter: saturate(1.06) contrast(1.03) brightness(1.04);
}

body[data-time-theme="dusk"] .hero-art-stack {
  opacity: 0.96;
  filter: saturate(1.12) contrast(1.06) brightness(1.03);
}

body[data-time-theme="morning"] .hero-art-stack::after {
  background:
    linear-gradient(90deg,
      rgba(31, 88, 156, 1) 0%,
      rgba(31, 88, 156, 0.96) 34%,
      rgba(31, 88, 156, 0.64) 52%,
      rgba(31, 88, 156, 0.28) 70%,
      rgba(31, 88, 156, 0.06) 100%
    ),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0) 54%,
      rgba(52, 130, 196, 0.08) 74%,
      rgba(52, 130, 196, 0.22) 90%,
      rgba(52, 130, 196, 0.46) 100%
    );
}

body[data-time-theme="dusk"] .hero-art-stack::after {
  background:
    linear-gradient(90deg,
      rgba(24, 8, 9, 1) 0%,
      rgba(24, 8, 9, 0.98) 34%,
      rgba(24, 8, 9, 0.88) 52%,
      rgba(24, 8, 9, 0.58) 66%,
      rgba(24, 8, 9, 0.22) 80%,
      rgba(24, 8, 9, 0.06) 100%
    ),
    linear-gradient(180deg,
      rgba(24, 8, 9, 0.02) 0%,
      rgba(24, 8, 9, 0.02) 54%,
      rgba(24, 8, 9, 0.12) 72%,
      rgba(24, 8, 9, 0.36) 90%,
      rgba(24, 8, 9, 0.8) 100%
    );
}

@media (max-width: 980px) {
  .hero-art-stack {
    height: clamp(460px, 72vh, 720px);
    opacity: 0.76;
  }

  .hero-art-layer {
    background-position: center 40%;
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  body,
  .site-header,
  .brand,
  .site-nav,
  .language-toggle,
  .theme-toggle,
  .lang-option,
  .hero,
  .hero::before,
  .hero::after,
  .hero-art-stack,
  .hero-art-stack::after,
  .hero-glow,
  .eyebrow,
  .subtitle,
  .meta,
  .button,
  .post-card,
  .post-card::before,
  .posts-section,
  .section-label h2,
  .section-label span,
  .site-footer,
  .cat-mark,
  .title-cat,
  .mini-cat,
  .footer-cat {
    transition:
      background-color 220ms ease,
      border-color 220ms ease,
      color 220ms ease,
      opacity 220ms ease,
      transform 160ms ease;
  }

  .hero-art-layer {
    transition: opacity 360ms ease;
  }
}

@media (max-width: 860px) {
  .hero-glow {
    filter: blur(18px);
    opacity: 0.45;
  }

  .cat-mark,
  .title-cat,
  .mini-cat,
  .footer-cat {
    filter: none;
  }
}

@media (max-width: 720px) {
  .hero-art-stack {
    height: clamp(340px, 58vh, 520px);
    opacity: 0.58;
  }

  .hero-art-layer {
    background-position: center 42%;
  }

  .hero-art-night {
    background-image: url("assets/夜晚城市猫咪-mobile.webp");
  }

  .hero-art-morning {
    background-image: url("assets/清晨城市猫咪-mobile.webp");
  }

  .hero-art-dusk {
    background-image: url("assets/黄昏城市猫咪-mobile.webp");
  }

  .hero-glow {
    display: none;
  }

  .button,
  .post-card,
  .page-panel,
  .header-actions,
  .mobile-drawer-handle {
    backdrop-filter: none;
    box-shadow: none;
  }
}

/* Article readability overrides: keep the pixel UI, make reading surfaces calmer. */
.post-card,
.post-card h3,
.post-excerpt,
.post-date,
.post-tags,
.post-tags span,
.post-read-more,
body.lang-zh .post-card h3,
body[data-language="zh"] .post-card h3,
body.lang-zh .post-excerpt,
body[data-language="zh"] .post-excerpt,
body.lang-zh .post-date,
body.lang-zh .post-tags,
body.lang-zh .post-read-more,
body[data-language="zh"] .post-date,
body[data-language="zh"] .post-tags,
body[data-language="zh"] .post-read-more,
body.lang-en .post-card h3,
body[data-language="en"] .post-card h3,
body.lang-en .post-excerpt,
body[data-language="en"] .post-excerpt {
  font-family: var(--wan7-article-font) !important;
}

.post-card h3,
body.lang-zh .post-card h3,
body[data-language="zh"] .post-card h3,
body.lang-en .post-card h3,
body[data-language="en"] .post-card h3 {
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.55;
}

.post-excerpt,
body.lang-zh .post-excerpt,
body[data-language="zh"] .post-excerpt,
body.lang-en .post-excerpt,
body[data-language="en"] .post-excerpt {
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.78;
}

.post-date,
.post-tags,
.post-read-more,
body.lang-zh .post-date,
body.lang-zh .post-tags,
body.lang-zh .post-read-more,
body[data-language="zh"] .post-date,
body[data-language="zh"] .post-tags,
body[data-language="zh"] .post-read-more {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.post-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.post-read-more {
  font-weight: 700;
}

body.single .page-title,
body.single .page-content,
body.single .page-content p,
body.single .page-content li,
body.single .page-content h2,
body.single .page-content h3,
body.single .page-content h4,
body.single .page-content blockquote {
  font-family: var(--wan7-article-font) !important;
}

body.single .page-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

body.single .page-content {
  font-size: clamp(1.02rem, 1.45vw, 1.12rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 2;
}

body.single .page-content p,
body.single .page-content li {
  line-height: 2;
}

body.single .page-content h2,
body.single .page-content h3,
body.single .page-content h4 {
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

body.single .page-content h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
}

body.single .page-content h3 {
  font-size: clamp(1.18rem, 1.9vw, 1.42rem);
}

body.single .page-content h4 {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

body.single .page-content blockquote {
  font-size: 1.02em;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.post-card code,
.post-card pre,
.post-card kbd,
body.single .page-content code,
body.single .page-content pre,
body.single .page-content kbd,
body.single .page-content samp,
body.single .page-content .wp-block-code {
  font-family: var(--terminal), "Courier New", monospace !important;
}

body.single .page-content code,
.post-card code {
  font-size: 0.95em;
}

.post-summary,
.post-summary .page-title,
.post-summary .page-title a,
.post-summary .page-content,
.post-summary .page-content p,
.post-summary .page-content li,
.post-summary .page-content .more-link,
body.lang-zh .post-summary .page-title,
body[data-language="zh"] .post-summary .page-title,
body.lang-zh .post-summary .page-content,
body[data-language="zh"] .post-summary .page-content,
body.lang-en .post-summary .page-title,
body[data-language="en"] .post-summary .page-title,
body.lang-en .post-summary .page-content,
body[data-language="en"] .post-summary .page-content {
  font-family: var(--wan7-article-font) !important;
}

.post-summary {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.post-summary:hover,
.post-summary:focus-visible {
  color: inherit;
  text-decoration: none;
}

.post-summary .page-title {
  font-size: clamp(1.12rem, 1.75vw, 1.42rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.55;
}

.post-summary .page-content {
  font-size: clamp(0.96rem, 1.25vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.9;
}

.post-summary .page-content p {
  margin: 0;
  line-height: 1.9;
}

.post-summary .page-content .more-link {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.post-summary code,
.post-summary pre,
.post-summary kbd,
.post-summary samp {
  font-family: var(--terminal), "Courier New", monospace !important;
}
