/* VOICE  calm studio catalogue, every concept is a small film you can scrub
   IDEA   a stack of motion cards; opening one gives a film stage, sliders and a narrator terminal
   PICTURE the live canvas compositions themselves (Remotion-style frame-driven renders)
   COLOUR warm peach-to-lilac haze, ink, one orange accent; terminal in near-black
   TYPE   Instrument Serif / Noto Serif SC headlines, Inter body, JetBrains Mono labels */
:root {
  color-scheme: light dark;
  --bg: light-dark(#efe9e4, #161413);
  --ink: light-dark(#1d1a17, #f1ebe5);
  --mut: light-dark(#8a8078, #9d948c);
  --card: light-dark(#fbf9f6, #22201d);
  --line: light-dark(rgba(29, 26, 23, 0.1), rgba(255, 255, 255, 0.1));
  --glass: light-dark(rgba(255, 255, 255, 0.66), rgba(34, 32, 29, 0.7));
  --acc: #e5603b;
  --h1: light-dark(#f7cdb5, #4a281b);
  --h2: light-dark(#d9d4ef, #272440);
  --h3: light-dark(#e9ddd0, #211d1a);
  --serif: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  --sans: Inter, 'Noto Sans SC', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
:root[data-theme='light'] {
  color-scheme: light;
}
:root[data-theme='dark'] {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  min-width: 0;
}
html,
body {
  margin: 0;
}
html {
  overflow-x: clip;
}
body {
  background:
    radial-gradient(1100px 650px at 8% -8%, var(--h1), transparent 70%),
    radial-gradient(900px 700px at 105% 105%, var(--h2), transparent 70%),
    radial-gradient(700px 500px at 60% 40%, var(--h3), transparent 70%), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  overflow-x: clip;
  min-height: 100vh;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 max(3vw, 14px);
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.acc {
  color: var(--acc);
}

/* nav */
nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 12px auto 0;
  max-width: 1240px;
  padding: 0 max(3vw, 14px);
}
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 6px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 1px 0 var(--line) inset,
    0 8px 30px rgba(40, 20, 10, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #1d1a17;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.brand small {
  font: 11px var(--mono);
  opacity: 0.55;
}
.brand {
  padding-left: 5px;
}
.logo {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fbe3d2, #f1c3a8);
}
.logo-in {
  position: absolute;
  left: -4.5px;
  top: 1.6px;
  width: 43px;
  height: 39.5px;
}
.logo-in svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pbtn .av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-left: -8px;
  display: block;
}
.endm {
  width: 150px;
  height: 138px;
  margin: -10px 0 4px -14px;
}
.endm svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.search {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--mut);
}
.search input {
  flex: 1;
  height: 42px;
  border: 0;
  background: none;
  font: 16px var(--sans);
  color: var(--ink);
  outline: none;
}
.search input::placeholder {
  color: var(--mut);
}
kbd {
  font: 11px var(--mono);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--mut);
}
.views {
  display: flex;
  gap: 4px;
}
.views button {
  width: 44px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.views button[aria-pressed='true'] {
  background: #1d1a17;
  color: #fff;
}
.views svg {
  width: 18px;
  height: 18px;
}
.langb {
  height: 42px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font:
    600 13px/1 'JetBrains Mono',
    ui-monospace,
    monospace;
  color: var(--ink);
  border: 1px solid var(--line);
}
.langb:hover {
  background: #1d1a17;
  color: #fff;
}
.results {
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 6px;
  display: none;
}
.results.show {
  display: block;
}
.results button,
.results a.res-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  text-decoration: none;
  color: inherit;
}
.results button:hover,
.results button.sel,
.results a.res-item:hover,
.results a.res-item.sel {
  background: rgba(229, 96, 59, 0.1);
}
.results b {
  font-weight: 600;
}
.results span {
  color: var(--mut);
  font-size: 13px;
  margin-left: auto;
  white-space: nowrap;
}
.res-kind {
  flex: none;
  font: 600 10px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 6px;
}
.res-kind.res-blog {
  background: rgba(229, 96, 59, 0.14);
  color: var(--acc);
}
.res-kind.res-video {
  background: rgba(127, 110, 95, 0.12);
  color: var(--mut);
}

/* home */
.hero {
  padding: 22px 0 8px;
}
.eyebrow {
  height: 18px;
  transition: opacity 0.35s;
}
.title {
  display: flex;
  align-items: center;
  gap: 0.16em;
  margin: 10px 0 0;
  font: 600 clamp(50px, 8.4vw, 104px)/0.98 var(--serif);
  letter-spacing: -0.035em;
  font-variation-settings:
    'SOFT' 100,
    'opsz' 144;
}
.star {
  width: 0.62em;
  height: 0.62em;
  flex: none;
  color: var(--acc);
  animation: spin 24s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.title2 {
  margin: 8px 0 0;
  font:
    500 clamp(32px, 5.6vw, 70px)/1.1 'Noto Serif SC',
    serif;
  color: var(--mut);
  letter-spacing: 0.04em;
}
.stackzone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin-top: 22px;
  min-height: 440px;
}
.stack {
  position: relative;
  height: 420px;
  z-index: 0;
}
.card {
  position: absolute;
  left: calc(32% - 135px);
  top: 0;
  width: 270px;
  padding: 10px 10px 12px;
  border-radius: 20px;
  background: var(--card);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 40px rgba(60, 30, 10, 0.13);
  transition:
    transform 0.75s cubic-bezier(0.2, 0.85, 0.2, 1),
    opacity 0.6s,
    filter 0.6s;
  cursor: pointer;
  text-align: left;
}
.card.jump {
  transition: none;
}
.card canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1/0.86;
  border-radius: 13px;
}
.cmeta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 10px 4px 0;
  align-items: baseline;
}
.cmeta b {
  min-width: 0;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmeta .no {
  font: 10px var(--mono);
  color: var(--mut);
  white-space: nowrap;
}
.cmeta .cat {
  min-width: 0;
  font-size: 12px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag {
  font: 9px var(--mono);
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--mut);
  justify-self: end;
  white-space: nowrap;
}
.info {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 40px rgba(60, 30, 10, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.info.swap {
  opacity: 0;
  transform: translateY(6px);
}
.info .row {
  display: flex;
  justify-content: space-between;
  color: var(--mut);
}
.info h3 {
  margin: 6px 0 6px;
  font: 600 26px/1.15 var(--sans);
  letter-spacing: -0.01em;
}
.info p {
  margin: 0;
  color: var(--mut);
  font-size: 15px;
}
.info .slug {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 11px var(--mono);
  color: var(--mut);
  word-break: break-all;
}
.info .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--mut);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #1d1a17;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.foot-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pill-sec {
  background: transparent;
  color: #1d1a17;
  border: 1px solid rgba(29, 26, 23, 0.22);
}
.pill-sec:hover {
  background: rgba(29, 26, 23, 0.06);
}
.arrows {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.arrows button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.trail {
  position: absolute;
  left: 0;
  bottom: 14px;
  color: var(--mut);
}
.scrolly {
  position: relative;
  height: calc(100vh - 74px + 80vh);
  height: calc(100svh - 74px + 80svh);
}
.sticky {
  position: sticky;
  top: 74px;
  height: calc(100vh - 74px);
  height: calc(100svh - 74px);
}
.scrolly.flow {
  height: auto;
}
.flow .sticky {
  position: static;
  height: auto;
}
.flow .trail {
  position: static;
  padding: 22px 0 36px;
}
#heroBlock {
  will-change: opacity, transform;
}
#zone {
  transform-origin: 50% 0;
  will-change: transform;
}
.scrollhint {
  margin-top: 14px;
  color: var(--acc);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(5px);
  }
}
.stack.nudge {
  animation: nudge 1.1s cubic-bezier(0.3, 0.7, 0.3, 1);
}
@keyframes nudge {
  20% {
    transform: translateX(-26px);
  }
  45% {
    transform: translateX(18px);
  }
  70% {
    transform: translateX(-8px);
  }
}
.arrows.nudge button {
  animation: pulseBtn 0.9s ease-in-out 2;
}
@keyframes pulseBtn {
  50% {
    background: var(--acc);
    color: #fff;
    border-color: var(--acc);
    transform: scale(1.12);
  }
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin: 14px 0 34px;
}
.catdot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
  flex: none;
}
.cmeta .cat {
  display: flex;
  align-items: center;
}
.tagrow {
  grid-column: 1/-1;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
  min-height: 20px;
}
.tagrow em {
  font: 11px var(--sans);
  font-style: normal;
  color: var(--mut);
  background: rgba(127, 110, 95, 0.09);
  border-radius: 6px;
  padding: 1px 6px;
}
.itags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tg,
.catb {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  display: inline-flex;
  align-items: center;
}
.tg:hover,
.catb:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.fbar {
  display: grid;
  gap: 10px;
  margin: 18px 0 4px;
  padding: 16px 18px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.frow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.frow .lbl {
  font: 11px var(--mono);
  letter-spacing: 0.08em;
  color: var(--mut);
  width: 3.6em;
  flex: none;
}
html[lang='en'] .frow .lbl {
  width: 7em;
}
.frow-format {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.fchip {
  font-weight: 600;
  padding: 0 14px;
  gap: 6px;
}
.fchip svg {
  flex: none;
  opacity: 0.72;
}
.fchip[aria-pressed='true'] svg {
  opacity: 1;
}
.fchip[data-fformat='blog'][aria-pressed='true'] {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}
.fchip[data-fformat='blog'][aria-pressed='true'] small {
  opacity: 0.85;
}
.fchip:not([aria-pressed='true']):hover {
  border-color: var(--acc);
  color: var(--acc);
}
.chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
.chip[aria-pressed='true'] {
  background: #1d1a17;
  color: #fff;
  border-color: #1d1a17;
}
.chip:disabled {
  opacity: 0.3;
  cursor: default;
}
.chip small {
  font: 11px var(--mono);
  opacity: 0.6;
}
.fsum {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--mut);
  flex-wrap: wrap;
}
.fsum button[data-fclear] {
  color: var(--acc);
  font-size: 13px;
  min-height: 32px;
}
.need {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  pointer-events: auto;
  font-size: 14px;
  color: var(--pmut);
}
.need button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pglass);
  border: 1px solid var(--pline);
  color: var(--pfg);
  font-size: 13px;
}
.need button.ok {
  opacity: 0.6;
}
.titlecard.withnote {
  bottom: 250px;
}
.endin .rel {
  margin-top: 14px;
  display: block;
  text-align: left;
  font-size: 14px;
  color: var(--pfg);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--pline);
  background: var(--pglass);
  min-height: 44px;
}
.endin .rel small {
  display: block;
  color: var(--pmut);
  font-size: 12px;
}
.sea {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 0;
  font: 600 30px/1.1 var(--serif);
  letter-spacing: -0.02em;
}
.sea em {
  font: 13px var(--sans);
  color: var(--mut);
  font-style: normal;
}
.sea-essay {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0;
  text-decoration: none;
  align-self: center;
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s;
}
.sea-essay:hover {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(229, 96, 59, 0.08);
}
.grid .card {
  position: relative;
  left: auto;
  width: auto;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  transition: transform 0.3s;
}
.grid .card:hover {
  transform: translateY(-4px) !important;
}
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(229, 96, 59, 0.16);
}
.blog-card:hover {
  border-color: rgba(229, 96, 59, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 20px 44px rgba(229, 96, 59, 0.12);
}
.bthumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.86;
  border-radius: 13px;
  overflow: hidden;
  background: #f5f1e8;
}
.bcover {
  display: block;
  width: 100%;
  height: 100%;
}
.bthumb-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(29, 26, 23, 0.84);
  color: #fff;
  font: 600 9.5px/1 var(--mono);
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bthumb-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
}
.blog-card .cmeta {
  flex: 1;
  align-content: start;
  gap: 4px 6px;
}
.blog-card .cmeta b {
  grid-column: 1 / -1;
  font-size: 15px;
  line-height: 1.32;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .cmeta .cat {
  font-size: 11.5px;
  white-space: nowrap;
}
.blog-no {
  color: var(--acc) !important;
  font-weight: 600 !important;
  white-space: nowrap;
  justify-self: end;
}
.bmeta-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 1px;
}
.blog-tag {
  border-color: rgba(229, 96, 59, 0.28);
  background: rgba(229, 96, 59, 0.08);
  color: var(--acc);
  letter-spacing: 0.04em;
  justify-self: start;
}
.sea-blog {
  align-items: center;
}
.sea-blog-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(229, 96, 59, 0.13);
  color: var(--acc);
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.1em;
}
/* 导航里的 Blog / Video 入口（主页导航与 Blog 主页导航共用） */
.navlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: none;
  height: 42px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 600 13px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
.navlink i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  flex: none;
}
.navlink:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.navlink[aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.navgap {
  flex: 1;
}
a.brand {
  text-decoration: none;
}

/* Blog 主页（blog/index.html，网址 /motionblog/blog/） */
.bh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 24px;
  padding: 34px 0 4px;
}
.bh-lede {
  max-width: 36em;
  margin: 12px 0 0;
  color: var(--mut);
  font-size: 16px;
}
.bh-xz {
  width: 150px;
  height: 138px;
  margin-bottom: -6px;
}
.bh-xz svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.bh-feature,
.bh-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(229, 96, 59, 0.16);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 40px rgba(60, 30, 10, 0.1);
  transition:
    transform 0.3s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.bh-feature:hover,
.bh-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 96, 59, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 20px 44px rgba(229, 96, 59, 0.12);
}
.bh-feature {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 26px;
  margin: 26px 0 8px;
  padding: 14px;
  border-radius: 26px;
}
.bh-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0 4px 4px;
}
.bh-feature .bh-body {
  align-content: center;
  padding: 8px 12px 8px 0;
}
.bh-kicker {
  color: var(--acc);
}
.bh-title {
  margin: 0;
  font: 600 19px/1.3 var(--serif);
  letter-spacing: -0.01em;
  font-variation-settings:
    'SOFT' 100,
    'opsz' 144;
}
.bh-feature .bh-title {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.bh-desc {
  margin: 0;
  color: var(--mut);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bh-feature .bh-desc {
  font-size: 15.5px;
  -webkit-line-clamp: 5;
}
.bh-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--mut);
  font-size: 12.5px;
}
.bh-cat {
  display: inline-flex;
  align-items: center;
}
.bh-body .tagrow {
  margin-top: 0;
}
.bh-go {
  justify-self: start;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
}
.bh-feature:hover .bh-go {
  background: var(--acc);
  color: #fff;
}
.bh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 16px 0 34px;
}
.bh-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 10px 0 0;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.bh-foot a {
  color: var(--mut);
  text-decoration: none;
}
.bh-foot a:hover {
  color: var(--acc);
}
@media (max-width: 760px) {
  .bh-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }
  .bh-feature .bh-body {
    padding: 0 4px 4px;
  }
  .bh-xz {
    width: 104px;
    height: 96px;
  }
}
.empty p {
  margin: 0 0 14px;
}
.empty-act {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.empty-act:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.gtitle {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  flex-wrap: wrap;
  margin: 8px 0 0;
  font: 600 clamp(36px, 5vw, 56px)/1.05 var(--serif);
  letter-spacing: -0.03em;
  font-variation-settings:
    'SOFT' 100,
    'opsz' 144;
}
.sea,
.titlecard h1,
.endin h2,
.drawer h4 {
  font-variation-settings:
    'SOFT' 100,
    'opsz' 144;
}
.gtitle em {
  font:
    500 0.74em 'Noto Serif SC',
    serif;
  color: var(--mut);
  letter-spacing: 0.04em;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--mut);
}

#home {
  position: relative;
}
.roam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}
.roam .actor {
  position: absolute;
  left: 0;
  top: 0;
  width: 170px;
  height: 156px;
  transform-origin: 50% 92%;
  pointer-events: auto;
  cursor: grab;
  will-change: transform;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.roam .actor:active {
  cursor: grabbing;
}
.pinb {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #1d1a17;
  border: 2px solid #1d1a17;
  display: grid;
  place-items: center;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.pinb:hover {
  background: var(--acc);
  color: #fff;
  border-color: var(--acc);
}
.pinb[hidden] {
  display: none;
}
.roam .actor .mascot,
.roam .actor svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tb {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  max-width: min(320px, calc(100vw - 32px));
  width: max-content;
  background: #fff;
  color: #1d1a17;
  border: 2.5px solid #1d1a17;
  border-radius: 18px;
  padding: 9px 14px;
  font: 500 15.5px/1.5 var(--sans);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.tb.show {
  opacity: 1;
  pointer-events: auto;
}
.tb i {
  font-style: normal;
  opacity: 0;
}
.tb .tail {
  position: absolute;
  bottom: -9px;
  left: var(--tx, 30px);
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 2.5px solid #1d1a17;
  border-bottom: 2.5px solid #1d1a17;
  transform: rotate(45deg);
}
.tb.side .tail {
  display: none;
}
.tbc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tbc button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #1d1a17;
  color: #fff;
  font: 600 13px var(--sans);
}
.tbc button:hover {
  background: var(--acc);
}
@media (max-width: 600px) {
  .roam .actor {
    width: 124px;
    height: 114px;
  }
  .tb {
    font-size: 14.5px;
  }
}
/* player：文章页 = 全屏互动视频 */
.snav {
  position: absolute;
  left: max(2vw, 14px);
  top: 72px;
  width: 252px;
  max-height: calc(100% - 72px - 270px);
  display: flex;
  flex-direction: column;
  background: var(--pglass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--pline);
  border-radius: 18px;
  z-index: 4;
  overflow: hidden;
  color: var(--pfg);
  transition: opacity 0.45s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.snav[hidden] {
  display: none;
}
.snh {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 8px;
  width: 100%;
  padding: 11px 12px 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--pline);
  color: var(--pfg);
}
.snh b {
  font: 600 13px/1.3 var(--sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.snh small {
  grid-column: 1;
  font: 11px var(--mono);
  color: var(--pmut);
}
.snh i {
  grid-row: 1/3;
  grid-column: 2;
  font-style: normal;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--pline);
  transition: transform 0.3s;
}
#snL {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}
.sni {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  border-radius: 12px;
  text-align: left;
  color: var(--pfg);
}
.sni:hover {
  background: rgba(127, 110, 95, 0.14);
}
.sni.cur {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.sni .n {
  font: 11px var(--mono);
  color: var(--pmut);
}
.sni.cur .n {
  color: var(--acc);
}
.sni.done .n {
  color: #6f9a5e;
}
.sni .t {
  font: 500 14px var(--sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sni .d {
  font: 11px var(--mono);
  color: var(--pmut);
}
.sni .bar {
  grid-column: 2/4;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.sni .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--acc);
}
.snessay {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--pline);
  color: var(--pfg);
  font: 500 13px/1.2 var(--sans);
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s;
}
.snessay[hidden] {
  display: none;
}
.snessay:hover {
  background: rgba(229, 96, 59, 0.1);
  color: var(--acc);
}
.snessay .sn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  flex: none;
}
.snessay .sn-ar {
  margin-left: auto;
  font: 11px var(--mono);
  color: var(--pmut);
}
.snessay:hover .sn-ar {
  color: var(--acc);
}
.snf {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--pline);
}
.snf button {
  flex: 1;
  min-height: 36px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid var(--pline);
  color: var(--pfg);
}
.snf button:not(:disabled):hover {
  border-color: var(--acc);
  color: var(--acc);
}
.snf button:disabled {
  opacity: 0.35;
  cursor: default;
}
.snav.min {
  width: auto;
  max-width: 252px;
}
.snav.min #snL,
.snav.min .snessay,
.snav.min .snf {
  display: none;
}
.snav.min .snh {
  border-bottom: 0;
}
.snav.min .snh i {
  transform: rotate(180deg);
}
.player.idle .snav,
.player.intro .snav:not(.min) {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 600px) {
  .snav {
    top: 64px;
    width: min(290px, calc(100vw - 28px));
    max-height: calc(100% - 64px - 250px);
  }
}
.narr {
  position: absolute;
  left: max(2vw, 14px);
  bottom: 66px;
  width: 164px;
  height: 150px;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s,
    transform 0.5s;
  pointer-events: none;
}
.narr.on {
  opacity: 1;
  transform: none;
}
.narr svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.nb {
  position: absolute;
  left: calc(max(2vw, 14px) + 150px);
  bottom: 152px;
  max-width: min(470px, calc(100vw - 210px));
  width: max-content;
  background: #fff;
  color: #1d1a17;
  border: 2.5px solid #1d1a17;
  border-radius: 20px;
  padding: 10px 16px 11px;
  font: 500 clamp(16px, 1.6vw, 21px)/1.5 var(--sans);
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}
.nb.on {
  opacity: 1;
  transform: none;
}
.nb::after {
  content: '';
  position: absolute;
  left: -10px;
  bottom: 18px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 2.5px solid #1d1a17;
  border-bottom: 2.5px solid #1d1a17;
  transform: rotate(45deg);
}
.nb i {
  font-style: normal;
  opacity: 0;
}
.nbn {
  display: block;
  font: 500 10px var(--mono);
  letter-spacing: 0.12em;
  color: #9a8c80;
  margin-bottom: 2px;
}
@media (max-width: 600px) {
  .narr {
    width: 104px;
    height: 96px;
    bottom: 72px;
  }
  .nb {
    left: calc(14px + 90px);
    bottom: 128px;
    max-width: calc(100vw - 118px);
    font-size: 15px;
    padding: 8px 12px;
  }
}
#post {
  display: none;
}
body.reading {
  overflow: hidden;
}
body.reading nav,
body.reading #home {
  display: none;
}
body.reading #post {
  display: block;
}
.player {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background: var(--pbg);
  color: var(--pfg);
  --pfg: #1d1a17;
  --pmut: rgba(29, 26, 23, 0.58);
  --pglass: rgba(255, 255, 255, 0.58);
  --pline: rgba(29, 26, 23, 0.16);
}
.player.dk {
  --pfg: #f1ebe5;
  --pmut: rgba(241, 235, 229, 0.6);
  --pglass: rgba(22, 20, 18, 0.55);
  --pline: rgba(255, 255, 255, 0.18);
}
.player > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vign {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 42%, transparent 55%, rgba(0, 0, 0, 0.14));
}
/* ── 电影模式（剧集字段 cine）：颗粒、加强暗角、横屏遮幅、电影字幕、居中单行片名 ──
   强度来自播放器设的 --grain / --vig */
.grain,
.lbox {
  display: none;
}
.player.cine .vign {
  background: radial-gradient(120% 95% at 50% 46%, transparent 46%, rgba(0, 0, 0, var(--vig)));
  transition: opacity 0.8s;
}
.player.cine .grain {
  display: block;
  position: absolute;
  inset: -80px;
  pointer-events: none;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
  transition: opacity 0.8s;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-37px, 21px);
  }
  50% {
    transform: translate(19px, -43px);
  }
  75% {
    transform: translate(-11px, 33px);
  }
  100% {
    transform: translate(29px, -9px);
  }
}
.player.cine .lbox {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.player.cine .lbox::before,
.player.cine .lbox::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: var(--bar, 0px);
  background: #060505;
  transition: height 0.8s;
}
.player.cine .lbox::before {
  top: 0;
}
.player.cine .lbox::after {
  bottom: 0;
}
@media (min-aspect-ratio: 4/3) {
  .player.cine {
    --bar: min(6.5vh, max(0px, calc((100vh - 100vw / 2.39) / 2)));
  }
}
.player.cine .dim {
  background: #0b0a09;
}
.player.cine .cap {
  bottom: 100px;
  transition: none;
  text-wrap: balance;
}
.player.cine .cap p {
  background: rgba(12, 10, 9, 0.42);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #f6f1e8;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.45);
  font: 500 clamp(17px, 2.1vw, 27px) / 1.5 var(--sans);
  border-radius: 6px;
}
.titlecard.cine {
  left: 50%;
  top: 50%;
  bottom: auto;
  width: min(1100px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  text-align: center;
  color: #f3ede4;
}
.titlecard.cine .k {
  color: rgba(243, 237, 228, 0.62);
  letter-spacing: 0.2em;
}
.titlecard.cine h1 {
  white-space: nowrap;
  margin: 22px 0;
  font: 500 clamp(44px, 10vw, 128px) / 1.08 var(--serif);
  letter-spacing: 0.02em;
}
.titlecard.cine h1 span,
.titlecard.cine h1 span:last-child {
  display: inline-block;
  font-style: normal;
}
.titlecard.cine .m {
  color: rgba(243, 237, 228, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .player.cine .grain {
    animation: none;
  }
}
.dim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--pbg) 30%, color-mix(in srgb, var(--pbg) 55%, transparent) 70%, transparent);
}
.ptop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px max(2vw, 12px);
  transition: opacity 0.45s;
  z-index: 3;
}
.pbtn {
  height: 40px;
  min-width: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--pglass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--pline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--pfg);
  white-space: nowrap;
}
.pbtn[aria-pressed='true'] {
  background: var(--acc);
  color: #fff;
  border-color: var(--acc);
}
.ep {
  flex: 1;
  font: 11px var(--mono);
  letter-spacing: 0.12em;
  color: var(--pmut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 6px;
}
.titlecard {
  position: absolute;
  left: max(5vw, 18px);
  bottom: 190px;
  width: min(640px, 88vw);
  pointer-events: none;
}
.titlecard .k {
  font: 11px var(--mono);
  letter-spacing: 0.12em;
  color: var(--acc);
}
.titlecard h1 {
  margin: 14px 0 16px;
  font: 600 clamp(46px, 7.4vw, 100px)/1.02 var(--serif);
  letter-spacing: -0.02em;
  letter-spacing: -0.015em;
}
.titlecard h1 span {
  display: block;
}
.titlecard h1 span:last-child {
  font-style: italic;
}
.titlecard .s {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--pmut);
  margin: 0 0 14px;
  max-width: 34em;
}
.titlecard .m {
  font: 12px var(--mono);
  color: var(--pmut);
}
.titlecard.go h1 span,
.titlecard.go .s,
.titlecard.go .m,
.titlecard.go .k {
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.titlecard.go h1 span:nth-child(2) {
  animation-delay: 0.12s;
}
.titlecard.go h1 span:nth-child(3) {
  animation-delay: 0.24s;
}
.titlecard.go .s {
  animation-delay: 0.4s;
}
.titlecard.go .m {
  animation-delay: 0.5s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}
.cap {
  position: absolute;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  width: min(920px, 92vw);
  text-align: center;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cap .n {
  display: block;
  font: 11px var(--mono);
  letter-spacing: 0.14em;
  color: var(--pmut);
  margin-bottom: 10px;
}
.cap p {
  display: inline;
  margin: 0;
  font: 500 clamp(19px, 2.3vw, 30px)/1.55 var(--sans);
  padding: 0.12em 0.5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: var(--pglass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
}
.cap p i {
  font-style: normal;
  opacity: 0;
}
.pbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 max(2vw, 12px) 14px;
  transition: opacity 0.45s;
  z-index: 3;
}
.segs {
  display: flex;
  gap: 4px;
  height: 24px;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.seg {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--pline);
  transition: height 0.2s;
}
.seg i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--pfg);
  border-radius: 4px;
}
.seg.cur i {
  background: var(--acc);
}
.seg b {
  position: absolute;
  right: -5px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--acc);
  border: 2px solid var(--pbg);
  z-index: 1;
}
.segs:hover .seg {
  height: 8px;
}
.prow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.play {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pfg);
  color: var(--pbg);
  display: grid;
  place-items: center;
}
.time {
  font: 12px var(--mono);
  color: var(--pmut);
  white-space: nowrap;
}
.chap {
  flex: 1;
  font-size: 13px;
  color: var(--pmut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player.idle .ptop,
.player.idle .pbar {
  opacity: 0;
}
.player.idle {
  cursor: none;
}
.ask {
  position: absolute;
  left: 50%;
  bottom: 96px;
  width: min(460px, 92vw);
  transform: translate(-50%, 24px);
  background: var(--card);
  color: var(--ink);
  border-radius: 22px;
  padding: 18px 20px 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.45s,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 4;
}
.ask.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.ask .hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 11px var(--mono);
  letter-spacing: 0.12em;
  color: var(--acc);
}
.ask .hd i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(229, 96, 59, 0);
  }
  0% {
    box-shadow: 0 0 0 0 rgba(229, 96, 59, 0.5);
  }
}
.ask h3 {
  margin: 8px 0 14px;
  font: 600 19px/1.4 var(--sans);
}
.ask .go {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--mut);
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  background: var(--card);
  color: var(--ink);
  transform: translateX(102%);
  /* 阴影向左投出七八十像素，收起时只移出 102% 的话会露在屏幕右边：滑出去之后再去掉阴影 */
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0s 0.45s;
  overflow: auto;
  padding: 20px 22px 40px;
  z-index: 6;
}
.drawer.show {
  transform: none;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer h4 {
  margin: 26px 0 10px;
  font: 600 24px/1.15 var(--serif);
}
.drawer .x {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
}
.drawer-essay {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 50px 14px 0;
  padding: 9px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(229, 96, 59, 0.07);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.drawer-essay[hidden] {
  display: none;
}
.drawer-essay:hover {
  border-color: var(--acc);
  background: rgba(229, 96, 59, 0.13);
}
.drawer-essay .de-tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.drawer-essay .de-k {
  font: 600 10.5px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc);
}
.drawer-essay b {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-essay .de-ar {
  margin-left: auto;
  font: 600 13px var(--mono);
  color: var(--acc);
  flex: none;
}
.shot {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 14px;
}
.shot:hover {
  background: rgba(229, 96, 59, 0.08);
}
.shot.cur {
  background: rgba(229, 96, 59, 0.14);
}
.shot span:first-child {
  flex: none;
  width: 42px;
  font: 11px/22px var(--mono);
  color: var(--mut);
}
.drawer p {
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 12px;
}
.drawer pre {
  background: #161412;
  color: #e9e1d8;
  border-radius: 14px;
  padding: 14px;
  font: 11.5px/1.6 var(--mono);
  max-height: 340px;
  overflow: auto;
  white-space: pre;
}
.drawer details {
  margin-top: 8px;
}
.drawer summary {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 600;
}
.endcard {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: color-mix(in srgb, var(--pbg) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: 5;
}
.endcard.show {
  opacity: 1;
  pointer-events: auto;
}
.endin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  width: min(940px, 100%);
}
.endin h2 {
  margin: 10px 0 18px;
  font: 600 clamp(38px, 5.6vw, 70px)/1.05 var(--serif);
  letter-spacing: -0.02em;
}
.endin .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nextc {
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 10px 10px 14px;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
}
.nextc canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1/0.86;
  border-radius: 13px;
}
.nextc b {
  display: block;
  font: 600 18px var(--sans);
  margin: 10px 4px 2px;
}
.nextc span {
  font-size: 12px;
  color: var(--mut);
  margin: 0 4px;
}
.ring {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(var(--acc) var(--p, 0%), var(--line) 0);
  font: 10px var(--mono);
  margin-left: 6px;
}
.ring::before {
  content: '';
  grid-area: 1/1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
}
.ring em {
  grid-area: 1/1;
  font-style: normal;
  z-index: 1;
}
.ctl {
  margin-bottom: 18px;
}
.ctl label {
  display: flex;
  justify-content: space-between;
  color: var(--mut);
}
.ctl output {
  color: var(--ink);
}
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  background: none;
  margin: 2px 0 0;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--ink);
}
input[type='range']::-moz-range-track {
  height: 2px;
  background: var(--ink);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--acc);
  margin-top: -9px;
}
input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--acc);
}
.ghost {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  background: var(--card);
  color: var(--ink);
}
.hot {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--acc);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

@media (min-width: 1100px) {
  .ask {
    left: auto;
    right: 28px;
    bottom: auto;
    top: 50%;
    transform: translate(24px, -50%);
  }
  .ask.show {
    transform: translate(0, -50%);
  }
}
@media (max-width: 860px) {
  .stackzone {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    left: calc(50% - 125px);
    width: 250px;
  }
  .stack {
    height: 400px;
  }
  .endin {
    grid-template-columns: minmax(0, 1fr);
  }
  .nextc {
    max-width: 280px;
  }
}
@media (max-width: 600px) {
  .search kbd,
  .brand small {
    display: none;
  }
  .brand {
    padding: 0 12px;
  }
  .views button {
    width: 40px;
  }
  .ep,
  #scriptBtn {
    display: none;
  }
  .ptop {
    justify-content: flex-end;
  }
  #closeBtn {
    margin-right: auto;
  }
  .pbtn {
    padding: 0 11px;
  }
  .cap {
    bottom: 96px;
  }
  .titlecard {
    bottom: 200px;
  }
  .dim {
    background: linear-gradient(
      0deg,
      var(--pbg) 42%,
      color-mix(in srgb, var(--pbg) 60%, transparent) 70%,
      transparent 92%
    );
  }
  .chap {
    display: none;
  }
  .time {
    flex: 1;
  }
  .fbar {
    padding: 13px 14px;
    gap: 9px;
  }
  .frow .lbl,
  html[lang='en'] .frow .lbl {
    width: auto;
    min-width: 2.8em;
    margin-right: 2px;
  }
  .chip {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
  .fchip {
    padding: 0 12px;
  }
  .results span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .star {
    animation: none;
  }
  .card {
    transition: none;
  }
}
@media (max-width: 480px) {
  /* 手机上导航太挤（放在 600px 那组规则之后才压得住）：品牌只留头像（名字留给读屏），搜索框本来就窄到打不了字，先收起 */
  .bar {
    gap: 6px;
  }
  .brand {
    padding: 0 4px;
  }
  .brand .bname {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .search {
    display: none;
  }
  .views {
    gap: 2px;
    margin-left: auto;
  }
  .views button {
    width: 36px;
  }
  .navlink {
    gap: 5px;
    padding: 0 10px;
  }
  .langb {
    flex: none;
    padding: 0 10px;
    white-space: nowrap;
  }
  .bh-hero {
    gap: 0 10px;
    padding-top: 26px;
  }
  .bh-xz {
    width: 64px;
    height: 60px;
  }
  .bh-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
