:root {
  color-scheme: light;
  --bg: #fbfbf9;
  --paper: #ffffff;
  --sunk: #f0f0ec;
  --ink: #1c1c1a;
  --body: #34342f;
  --muted: #7a7a72;
  --line: #e8e8e2;
  --accent: #a8452a;
  --on-ink: #ffffff;
  --ring: rgba(28, 28, 26, 0.16);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* 榛戝妯″紡锛氬彉閲忔暣浣撴崲涓€濂楋紝鍏朵綑鏍峰紡涓嶇敤鍔?*/
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121210;
  --paper: #171714;
  --sunk: #1f1f1a;
  --ink: #ecebe3;
  --body: #c9c7be;
  --muted: #8d8b81;
  --line: #2c2c26;
  --accent: #d97757;
  --on-ink: #121210;
  --ring: rgba(255, 255, 255, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
}

::selection {
  background: var(--ink);
  color: var(--on-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--on-ink);
  padding: 6px 12px;
  font-size: 12px;
  z-index: 200;
}

.skip:focus {
  left: 8px;
}

/* ---------------------------------------------------------------- layout */

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 40px 24px;
  border-right: 1px solid var(--line);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--ink);
  color: var(--on-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 16px;
  overflow: hidden;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.12em;
  margin: 0 0 5px;
}

.site-bio {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 30px;
}

.site-section {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 0;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.sidebar-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.socials a:hover {
  color: var(--accent);
}

.back-home {
  font-size: 11px;
  color: var(--muted);
}

.back-home:hover {
  color: var(--accent);
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 56px 24px;
  flex: 1;
}

/* 内容区顶部的返回 */
.back-link {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent);
}

.content:has(.album-grid) {
  max-width: 1400px;
}

.content:has(.album-list) {
  max-width: 1400px;
}

.content:has(.review-list) {
  max-width: 1200px;
}

.content:has(.post) {
  max-width: 920px;
}

.content:has(.about-section) {
  max-width: 920px;
}

.footer {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 56px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}

/* --------------------------------------------------------- theme toggle */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--ink);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* --------------------------------------------------------------- sections */

.site-essays {
  --accent: #a8452a;
}

.site-photos {
  --accent: #4e6356;
}

.site-gear {
  --accent: #3f5d7d;
}

.site-about {
  --accent: #7a5c3e;
}

.site-portal {
  --accent: #a8452a;
}

/* 棣栭〉绾櫧锛氭暣椤电敤 --paper锛屽崱鐗囧拰椤甸潰鍚岃壊锛岀瓑浜庢病鏈夊崱鐗?*/
body.site-portal {
  background: var(--paper);
}

[data-theme="dark"] .site-essays {
  --accent: #d97757;
}

[data-theme="dark"] .site-photos {
  --accent: #8fae9a;
}

[data-theme="dark"] .site-gear {
  --accent: #8fb0d6;
}

[data-theme="dark"] .site-about {
  --accent: #c09b78;
}

[data-theme="dark"] .site-portal {
  --accent: #d97757;
}

/* ---------------------------------------------------------------- portal */

.portal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.portal-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.9) blur(1.5px);
  transform: scale(1.02);
  transition: opacity 1.8s ease;
}

.portal-bg img.is-active {
  opacity: 1;
}

.portal-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--paper) 25%, transparent);
}

.portal-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

body.site-portal:has(.portal-main > .secret-page) {
  padding: 0;
}

.portal-main:has(> .secret-page) {
  align-items: flex-start;
  padding: 40px 24px 56px;
}

.secret-page,
.secret-page *,
.filia-close {
  font-family: "Songti SC", "STSong", "SimSun", "宋体", serif;
}

.secret-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 20px 0 40px;
}

.secret-back {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.secret-back:hover {
  color: var(--ink);
}

.secret-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 44px;
}

.secret-cover {
  margin: 0;
}

.secret-cover img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--paper);
  box-shadow: 0 20px 50px rgba(28, 28, 26, 0.14);
}

.secret-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 18px;
}

.secret-info h1 {
  font-family: var(--serif);
  font-size: 78px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.secret-artist {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 6px;
}

.secret-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 24px;
}

.secret-note {
  max-width: 34em;
  font-size: 16px;
  line-height: 1.9;
  color: var(--body);
  margin: 0;
}

.secret-player {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.secret-player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.secret-player-head a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.secret-player-head a:hover {
  color: var(--ink);
}

.secret-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.secret-play:hover {
  transform: translateY(-1px);
}

.secret-play__icon {
  font-size: 11px;
  line-height: 1;
}

.secret-play__meta {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: color-mix(in srgb, var(--on-ink) 62%, transparent);
}

.secret-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.secret-tracks li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.secret-track-no {
  width: 22px;
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.secret-foot {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.filia-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  background: transparent;
  transition: background-color 360ms ease;
}

.filia-overlay[hidden] {
  display: none;
}

.filia-overlay.is-open {
  background: var(--paper);
}

.filia-overlay.is-closing {
  background: transparent;
}

.filia-overlay .secret-cover img {
  opacity: 0;
}

.filia-overlay.is-ready .secret-cover img {
  opacity: 1;
}

.filia-overlay .secret-info,
.filia-overlay .secret-player {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 380ms ease, transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.filia-overlay.is-ready .secret-info,
.filia-overlay.is-ready .secret-player {
  opacity: 1;
  transform: none;
}

.filia-fly {
  position: fixed;
  z-index: 250;
  display: block;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 20px 50px rgba(28, 28, 26, 0.2);
  transform-origin: top left;
  pointer-events: none;
}

.secret-page--overlay {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.filia-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(6px);
  transition: opacity 200ms ease, color 0.2s ease, border-color 0.2s ease;
}

.filia-overlay.is-ready .filia-close {
  opacity: 1;
  pointer-events: auto;
}

.filia-close:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.filia-close:focus {
  outline: none;
}

.filia-close:focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: 3px;
}

body.filia-open {
  overflow: hidden;
}

.portal {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 44px 48px;
  background: var(--paper);
}

.portal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.portal-copy {
  min-width: 0;
  flex: 1;
}

.portal-avatar {
  width: 172px;
  height: 172px;
  border-radius: 0;
  background: var(--ink);
  color: var(--on-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 72px;
  margin-bottom: 0;
  overflow: hidden;
  flex: none;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.avatar:hover,
.portal-avatar:hover {
  transform: scale(1.05);
}

.portal-avatar:focus {
  outline: none;
}

.portal-avatar:focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: 5px;
}

.portal-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  box-shadow: inset 0 0 0 1px var(--ring);
}

.portal-avatar.has-image {
  background: var(--sunk);
  box-shadow: 0 0 0 1px var(--ring);
}

.portal-head .kicker {
  margin-bottom: 16px;
}

.portal-head h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 10px;
}

.portal-lead {
  font-size: 14px;
  color: var(--muted);
}

.portal-signature {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.portal-links {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.portal-links li {
  border-bottom: 1px solid var(--line);
}

.portal-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
}

.portal-links .num {
  flex: none;
  width: 24px;
  font-size: 12px;
  color: var(--accent);
}

.portal-links strong {
  flex: none;
  width: 74px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.portal-links em {
  flex: 1;
  font-style: normal;
  font-size: 15px;
  color: var(--muted);
}

.portal-links .arrow {
  flex: none;
  font-size: 13px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.portal-links a:hover strong {
  color: var(--accent);
}

.portal-links a:hover .arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.portal-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}

.portal-foot div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-foot a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------------ home */

.home-head {
  padding: 4px 0 30px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.home-head h1 {
  font-size: 30px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.lead {
  max-width: 34em;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.block:last-child {
  border-bottom: 0;
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.block-head h2 {
  font-size: 14px;
}

.block-head a {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.block-head a:hover {
  color: var(--accent);
}

.block--about p {
  font-size: 13px;
  color: var(--muted);
}

.block--about a {
  color: var(--accent);
  margin-left: 4px;
}

/* ------------------------------------------------------------ post list */

.post-list {
  list-style: none;
  padding: 0;
}

.post-row {
  border-top: 1px solid var(--line);
}

.post-row:first-child {
  border-top: 0;
}

.post-row a {
  display: block;
  padding: 14px 0;
}

.post-row__meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 3px;
}

.post-row__meta span {
  color: var(--accent);
}

.post-row h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 4px;
}

.post-row p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.post-row a:hover h3 {
  color: var(--accent);
}

/* --------------------------------------------------------------- photos */

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.photo-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--sunk);
}

.photo-thumb span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-thumb:hover span {
  color: var(--accent);
}

.album-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 26px 22px;
  margin-top: 24px;
}

.album-item {
  width: calc((100% - 44px) / 3);
  min-width: 0;
}

.album-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--sunk);
}

.album-item h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 8px 0 2px;
}

.album-item p {
  font-size: 11px;
  color: var(--muted);
}

.album-item:hover h2 {
  color: var(--accent);
}



.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  align-items: start;
}

.album-grid figure {
  margin: 0;
  min-width: 0;
}

.album-grid a {
  display: block;
  overflow: hidden;
  background: var(--sunk);
  cursor: zoom-in;
}

.album-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.album-grid.is-justified {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.album-grid.is-justified figure {
  flex: none;
  width: var(--w);
}

.album-grid.is-justified a {
  height: var(--h);
}

.album-grid.is-justified img {
  height: 100%;
}

.album-grid a:hover img {
  opacity: 0.86;
}

.album-grid figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.photo-exif {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.photo-caption {
  font-size: 10.5px;
  color: var(--muted);
}

.album-intro {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  max-width: 40em;
}

.album-gear {
  margin-top: 6px !important;
  font-size: 11px !important;
  color: var(--muted) !important;
}

/* ----------------------------------------------------------------- gear */

.kit-line {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.review-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.review-item {
  border-top: 1px solid var(--line);
}

.review-item a {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
}

.review-item__cover {
  width: 200px;
  height: 125px;
  flex: none;
  object-fit: cover;
  background: var(--sunk);
}

.review-item__score {
  flex: none;
  width: 40px;
  font-size: 22px;
  color: var(--accent);
  line-height: 1.2;
}

.review-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.review-item__body strong {
  font-size: 18px;
  font-weight: 500;
}

.review-item__body em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.review-item__body span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.review-item a:hover strong {
  color: var(--accent);
}

.gear-list {
  list-style: none;
  padding: 0;
}

.gear-row {
  border-top: 1px solid var(--line);
}

.gear-row:first-child {
  border-top: 0;
}

.gear-row a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
}

.gear-row__score {
  flex: none;
  width: 36px;
  color: var(--accent);
  font-size: 18px;
}

.gear-row__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gear-row__body strong {
  font-size: 14px;
  font-weight: 500;
}

.gear-row__body em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.gear-row__arrow {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.gear-row a:hover strong {
  color: var(--accent);
}

/* ------------------------------------------------------------- page head */

.page-head {
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

.page-head p {
  max-width: 36em;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.page-count {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-head--section h1 {
  font-family: var(--serif);
  font-weight: 600;
}

.back {
  margin-bottom: 14px !important;
  font-size: 11px !important;
}

.back a:hover {
  color: var(--accent);
}

.page-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

.page-note a {
  color: var(--accent);
}

.post-list--page {
  margin-top: 4px;
}

.pinned {
  margin: 24px 0 8px;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--accent);
}

.pinned h2 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 600;
}

.pinned-body {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.pinned-body p {
  margin: 0 0 0.5em;
}

.pinned-body p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- post */

.post-head {
  padding: 4px 0 22px;
}

.post-head h1 {
  font-size: 30px;
  line-height: 1.45;
  margin: 4px 0 12px;
}

.deck {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 14px;
}

.meta {
  font-size: 11px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.post-cover {
  margin: 0 0 26px;
}

.post-cover img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.review-box {
  display: flex;
  gap: 20px;
  padding: 18px;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.review-box__score {
  flex: none;
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}

.review-box__score span {
  margin-left: 2px;
  font-size: 11px;
  color: var(--muted);
}

.review-box__body {
  min-width: 0;
}

.review-box__verdict {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 10px;
}

.review-box__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--muted);
}

.review-box__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.review-box__lists h3 {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.review-box__lists ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--body);
}

.specs {
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.specs summary {
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.specs summary::-webkit-details-marker {
  display: none;
}

.specs dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0 0 16px;
}

.specs dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  margin: 0;
  text-align: right;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.tags li {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pager span {
  font-size: 10px;
  color: var(--muted);
}

.pager strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.pager-next {
  text-align: right;
  align-items: flex-end;
}

.pager a:hover strong {
  color: var(--accent);
}

/* ---------------------------------------------------------------- prose */

.prose {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.95;
  color: var(--body);
}

.prose p {
  margin: 0 0 1.5em;
}

.prose p.indent,
.pinned-body p.indent {
  text-indent: 2em;
}

/* 行内注释：*这几个字* */
.prose em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

/* 整段注释：正文里用【】括起来 */
.prose .note {
  margin: 0 0 1.5em;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: 20px;
  color: var(--ink);
}

.prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 17px;
  color: var(--ink);
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}

.prose a:hover {
  border-color: var(--accent);
}

.prose strong {
  color: var(--ink);
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.prose blockquote p {
  margin: 0 0 0.6em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.3em;
}

.prose li {
  margin: 0.3em 0;
}

.prose li > p {
  margin: 0;
}

.prose hr {
  margin: 2.2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose img {
  width: 100%;
  height: auto;
  margin: 1.5em 0;
}

.prose figure {
  margin: 1.8em 0;
}

.prose figure img {
  margin: 0;
}

.prose figcaption {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.prose code {
  padding: 1px 4px;
  background: var(--sunk);
  font-family: var(--mono);
  font-size: 0.88em;
}

.code-block {
  margin: 1.5em 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.code-copy {
  font-size: 10px;
  color: var(--muted);
}

.code-copy:hover {
  color: var(--accent);
}

.code-block pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
}

.code-block code {
  padding: 0;
  background: none;
  font-size: 12px;
  line-height: 1.7;
}

.table-wrap {
  margin: 1.5em 0;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 600;
  color: var(--ink);
}

.prose .ta-right {
  text-align: right;
}

.prose .ta-center {
  text-align: center;
}

.heading-anchor {
  display: none;
}

.task-list {
  list-style: none;
  padding-left: 0 !important;
}

.task-item {
  display: flex;
  gap: 8px;
}

.task-box {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.6em;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  color: var(--accent);
}

/* ---------------------------------------------------------------- about */

.about-section {
  margin-top: 32px;
}

.about-section h2 {
  margin: 0 0 12px;
  font-size: 14px;
}

.about-section p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.kit-list {
  list-style: none;
  padding: 0;
  max-width: 440px;
}

.kit-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.kit-list span {
  font-size: 11px;
  color: var(--muted);
}

/* -------------------------------------------------------------- archive */

.archive-year {
  margin-top: 28px;
}

/* 归档的二级分类菜单 */
.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 18px 0 0;
  border-bottom: 1px solid var(--line);
}

.archive-tabs button {
  position: relative;
  padding: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.archive-tabs button:hover {
  color: var(--ink);
}

.archive-tabs button.is-active {
  color: var(--ink);
}

.archive-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
}

.archive-tabs .tab-count {
  margin-left: 6px;
  font-size: 11px;
  color: var(--muted);
}

.archive-tabs + .archive-year {
  margin-top: 22px;
}

.archive-year[hidden],
.archive-year li[hidden] {
  display: none;
}

.archive-year h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 500;
  color: var(--accent);
}

.archive-year ul {
  list-style: none;
  padding: 0;
}

.archive-year li {
  border-top: 1px solid var(--line);
}

.archive-year a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  font-size: 13px;
}

.archive-year time {
  flex: none;
  width: 38px;
  font-size: 11px;
  color: var(--muted);
}

.archive-year a span {
  flex: 1;
}

.archive-year em {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
}

.archive-year a:hover span {
  color: var(--accent);
}

/* ------------------------------------------------------------------ 404 */

.notfound {
  padding: 60px 0;
}

.notfound h1 {
  margin: 0 0 12px;
  font-size: 26px;
}

.notfound p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.notfound a {
  color: var(--accent);
}

/* -------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(8, 8, 7, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(88vw, 1400px);
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  transform-origin: center center;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  transition: transform 170ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lightbox img.is-zoomed {
  cursor: grab;
}

.lightbox img.is-dragging {
  cursor: grabbing;
  transition: none;
}

.lightbox figcaption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  transition: opacity 180ms ease;
}

.lightbox.is-photo-zoomed figcaption {
  opacity: 0;
  pointer-events: none;
}

.lb-exif {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.45);
}

.lb-exif:empty {
  display: none;
}

.lightbox button {
  position: absolute;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox button:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lightbox button svg {
  display: block;
}

.lb-close {
  top: 18px;
  right: 18px;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev {
  left: 24px;
}

.lb-next {
  right: 24px;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .album-list {
    gap: 24px 18px;
  }

  .album-item {
    width: calc((100% - 18px) / 2);
  }
  .site-section {
    margin-bottom: 8px;
  }

  .shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 24px 20px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-inner {
    display: block;
  }

  .avatar {
    width: 40px;
    height: 40px;
    font-size: 19px;
    margin-bottom: 12px;
  }

  .site-name {
    font-size: 18px;
    margin-bottom: 3px;
  }

  .site-bio {
    margin-bottom: 16px;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 18px;
  }

  .nav a {
    padding: 2px 0;
  }

  .sidebar-meta {
    margin-top: 14px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .content {
    padding: 32px 20px 20px;
  }

  .footer {
    padding: 16px 20px 32px;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14.5px;
  }

  .lightbox button {
    width: 36px;
    height: 36px;
  }

  .lb-prev {
    left: 8px;
  }

  .lb-next {
    right: 8px;
  }

  .lb-close {
    top: 10px;
    right: 10px;
  }

  .portal-main {
    align-items: flex-start;
    padding: 36px 20px;
  }

  .portal-bg::after {
    background: color-mix(in srgb, var(--paper) 30%, transparent);
  }

  .portal {
    padding: 30px 22px;
  }

  .portal-head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 22px;
  }

  .portal-head h1 {
    font-size: 30px;
  }

  .portal-avatar {
    width: 144px;
    height: 144px;
    font-size: 60px;
  }

  .portal-main:has(> .secret-page) {
    padding: 28px 18px 40px;
  }

  .secret-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }

  .secret-cover {
    max-width: 300px;
  }

  .secret-info h1 {
    font-size: 56px;
  }

  .secret-player-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .secret-tracks {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 20px;
  }

  .secret-tracks li {
    font-size: 17px;
  }

  .review-item a {
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
  }

  .review-item__cover {
    width: 120px;
    height: 75px;
  }

  .review-item__body strong {
    font-size: 16px;
  }

  .secret-page--overlay {
    padding: 54px 18px 32px;
  }

  .filia-close {
    top: 12px;
    right: 12px;
  }

  .portal-links strong {
    width: 64px;
    font-size: 19px;
  }

  .portal-links em {
    font-size: 14px;
  }

  .portal-foot {
    flex-direction: column;
    gap: 10px;
  }

  .home-head h1 {
    font-size: 26px;
  }

  .post-head h1 {
    font-size: 24px;
  }

  .page-head h1 {
    font-size: 24px;
  }

  .prose {
    font-size: 15.5px;
  }

  .album-list {
    gap: 22px;
  }

  .album-item {
    width: 100%;
  }

  .album-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .review-box {
    flex-direction: column;
    gap: 10px;
  }

  .review-box__lists {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .specs dl {
    grid-template-columns: 1fr;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .pager-next {
    text-align: left;
    align-items: flex-start;
  }

  .post-cover img {
    max-height: 300px;
  }
}

/* ------------------------------------------------------------ transition */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-out 180ms ease both;
}

::view-transition-new(root) {
  animation: vt-in 260ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

@supports not (view-transition-name: none) {
  .content,
  .portal {
    animation: content-in 380ms ease both;
  }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.lightbox:not([hidden]) {
  animation: lightbox-in 180ms ease both;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
}

.nav a,
.portal-links a,
.post-row h3,
.album-item h2 {
  transition: color 0.18s ease;
}

.album-item img {
  transition: opacity 0.25s ease;
}

.album-item:hover img {
  opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  .lightbox:not([hidden]),
  .content,
  .portal {
    animation: none;
  }

  .lightbox img,
  .album-item img {
    transition: none;
  }

  .filia-overlay,
  .filia-overlay .secret-page {
    transition: none;
  }
}

@media print {
  .sidebar,
  .footer,
  .pager,
  .lightbox {
    display: none !important;
  }

  .shell {
    display: block;
  }

  .content {
    max-width: none;
    padding: 0;
  }

  .prose {
    font-size: 11pt;
  }
}

