/* 西文离线字体，仅 latin；中文立刻走苹方/雅黑，不等字体 */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/inter-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/inter-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/ebgaramond-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ebgaramond-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #292524;
  --primary-active: #0c0a09;
  --on-primary: #ffffff;
  --ink: #0c0a09;
  --body: #4e4e4e;
  --body-strong: #292524;
  --muted: #777169;
  --muted-soft: #a8a29e;
  --line: #e7e5e4;
  --hairline: #e7e5e4;
  --hairline-strong: #d6d3d1;
  --canvas: #f5f5f5;
  --canvas-soft: #fafafa;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-strong: #f0efed;
  --mint: #a7e5d3;
  --peach: #f4c5a8;
  --lavender: #c8b8e0;
  --sky: #a8c8e8;
  --rose: #e8b8c4;
  --accent: #292524;
  --accent-soft: color-mix(in srgb, #a7e5d3 46%, #fff);
  --warm: #777169;
  --warm-soft: color-mix(in srgb, #f4c5a8 46%, #fff);
  --content-width: 1120px;
  --font-display: "EB Garamond", "Iowan Old Style", Palatino, "Songti SC", "Noto Serif SC", serif;
  --font-body: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.home {
  position: relative;
  overflow-x: hidden;
}

.home-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgba(12, 10, 9, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 10, 9, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 35%, transparent 85%);
}

.orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.orb--mint {
  top: -140px;
  left: -100px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
}

.orb--peach {
  right: -160px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--peach) 0%, transparent 70%);
}

.home-top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--canvas) 86%, #fff);
  backdrop-filter: blur(10px);
}

.home-top__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--content-width);
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 12px;
  flex-shrink: 0;
}

.home-logo img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.home-logo__text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.home-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-menu__item {
  position: relative;
}

.home-menu__trigger,
.home-menu__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.home-menu__trigger:hover,
.home-menu__link:hover,
.home-menu__item.is-open .home-menu__trigger {
  background: color-mix(in srgb, var(--line) 55%, #fff);
  color: var(--ink);
}

.home-menu__chev {
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.home-menu__item.is-open > .home-menu__trigger .home-menu__chev {
  transform: rotate(180deg);
}

.home-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  gap: 2px;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.home-menu__panel[hidden] {
  display: none !important;
}

.home-menu__panel a,
.home-menu__soon {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.home-menu__panel a span,
.home-menu__soon span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.home-menu__panel a:hover {
  background: #f3f4f6;
}

.home-menu__all {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px !important;
}

.home-menu__panel--books {
  min-width: 188px;
  overflow: visible;
}

.home-menu__panel--books a {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}

.home-menu__fly {
  position: relative;
}

.home-menu__fly::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20px;
  width: 20px;
  height: 100%;
}

.home-menu__chev--right {
  margin-left: 8px;
  flex: none;
  color: var(--muted);
  transform: none !important;
}

.home-menu__sub {
  position: absolute;
  top: -8px;
  left: calc(100% - 2px);
  z-index: 41;
  display: none;
  gap: 2px;
  min-width: 188px;
  max-width: 280px;
  overflow: visible;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.home-menu__sub .home-menu__sub {
  z-index: 42;
  min-width: 240px;
  max-height: min(72vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
}

.home-menu__sub::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  width: 24px;
}

.home-menu__fly:hover > .home-menu__sub,
.home-menu__fly.is-open > .home-menu__sub {
  display: grid;
}

.home-menu__book {
  font-weight: 500;
}

@media (hover: none) {
  .home-menu__fly:hover > .home-menu__sub {
    display: none;
  }

  .home-menu__fly.is-open > .home-menu__sub {
    display: grid;
  }
}

.home-menu__label {
  margin: 8px 4px 2px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.home-menu__label:first-child {
  margin-top: 2px;
}

.home-menu__panel--books a {
  font-weight: 500;
}

.home-menu__soon {
  cursor: default;
  opacity: 0.72;
}

.home-top__spacer {
  flex: 1;
}

.home-menu__item.is-current > .home-menu__trigger {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-soft) 70%, #fff);
}

.home-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.home-account:hover {
  border-color: #cbd5e1;
  background: #f9fafb;
}

.home-account.is-pulse {
  border-color: var(--accent);
}

.home-account__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--accent-soft), #fff),
    radial-gradient(circle at 50% 42%, #94a3b8 0 28%, transparent 30%),
    radial-gradient(circle at 50% 78%, #94a3b8 0 34%, transparent 36%);
  background-color: #e5e7eb;
  border: 1px solid #e5e7eb;
}

.home-account__label {
  padding-right: 2px;
}

.home-account__avatar img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.home-account-wrap {
  position: relative;
}

.auth-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 108px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 10, 9, 0.08);
}

.auth-menu button {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.auth-menu button:hover {
  background: #f5f5f4;
}

dialog.auth-modal {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  width: 300px;
  max-width: calc(100vw - 32px);
  max-height: none;
}

.auth-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.auth-modal__card {
  position: relative;
  width: 100%;
  padding: 18px 0 8px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-modal__title {
  margin: 0 8px 4px;
  color: #191919;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.auth-modal__lead {
  margin: 0 8px 10px;
  color: #888;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.auth-modal__close {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  outline: none;
}

.auth-modal__box {
  width: 300px;
  max-width: 100%;
  /* iframe 内二维码/快捷登录偏上，外框裁掉底下空白 */
  height: 228px;
  margin: 0 auto;
  overflow: hidden;
}

.auth-modal__box iframe {
  display: block;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border: 0;
}

.auth-modal__err {
  margin: 8px 4px 4px;
  color: #fa5151;
  font-size: 13px;
  text-align: center;
}

.home-miniprogram {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  width: 140px;
  padding: 8px 8px 10px;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(12, 10, 9, 0.1);
  text-align: center;
}

.home-miniprogram__qr {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.home-miniprogram__title {
  margin: 6px 0 0;
  color: #0c0a09;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .home-miniprogram {
    right: 12px;
    bottom: 12px;
    width: 108px;
    padding: 6px 6px 8px;
  }
  .home-miniprogram__qr {
    width: 96px;
    height: 96px;
  }
  .home-miniprogram__title { font-size: 11px; }
}


.home-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  text-align: center;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: var(--warm);
  font-size: 13px;
  font-weight: 600;
}

.home-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.96px;
  color: var(--ink);
}

.home-lead {
  max-width: 36em;
  margin: 20px auto 0;
  color: var(--body);
  font-size: 17px;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.home-stages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.home-stages a {
  padding: 8px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.home-stages a:hover {
  border-color: var(--ink);
}

.home-hero .home-cta {
  margin-top: 16px;
}

.home-hero .site-search {
  margin-top: 20px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

/* class 的 display 会盖掉 UA 的 [hidden]，打包按钮否则一直露着 */
.home-btn[hidden] {
  display: none;
}

.home-btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.home-btn--primary:hover {
  background: var(--primary-active);
}

.home-btn--ghost {
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--ink);
}

.home-btn--ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--muted);
}

.home-block {
  display: grid;
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.home-block__intro {
  min-width: 0;
}

.home-section__eyebrow {
  margin: 0;
  color: var(--warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-section__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-section__desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 22em;
}

.home-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 128px;
  height: 100%;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.home-card:hover {
  border-color: #94a3b8;
}

a.home-card:hover .home-card__arrow {
  color: #334155;
  transform: translateX(2px);
}

.home-card--disabled {
  cursor: default;
  opacity: 0.78;
}

.home-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.home-card__arrow {
  flex-shrink: 0;
  color: #cbd5e1;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-block {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

.page-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  max-width: var(--content-width);
  margin: 20px auto 0;
  padding: 4px 0 12px;
  width: calc(100% - 48px);
}

.page-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  color: var(--muted);
  font-size: 13px;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs__sep {
  opacity: 0.45;
}

.site-search {
  max-width: 560px;
  margin: 28px auto 0;
  text-align: left;
}

.site-search--page {
  margin: 20px 0 0;
}

.site-search__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.site-search__row {
  display: flex;
  gap: 8px;
}

.site-search__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
}

body.home .filter-bar {
  top: 72px;
  max-height: calc(100vh - 96px);
}

a.chip,
a.mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.chip {
  border: 1px solid var(--hairline-strong);
  background: var(--canvas-soft);
  color: var(--ink);
  height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
}

.chip.is-active {
  border-color: transparent;
  background: color-mix(in srgb, var(--peach) 46%, #fff);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 16px 32px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 24px;
  align-items: start;
}

.catalog-rail {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface-card);
}

.catalog-rail ul,
.catalog-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-rail__book {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.2;
}

.catalog-rail__book img {
  width: 36px;
  height: auto;
  aspect-ratio: 1000 / 1400;
  object-fit: contain;
  border-radius: 4px;
  background: var(--surface-card);
}

.catalog-rail__book-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.catalog-rail__book-text span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

.catalog-rail__book-text strong {
  font-weight: 300;
}

.catalog-rail__block {
  min-width: 0;
}

.catalog-rail__cat {
  margin-bottom: 14px;
}

.catalog-rail__cat-title {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.catalog-rail__cat-title.is-on,
.catalog-rail__cat-title:hover {
  color: var(--primary-active);
}

.catalog-rail__cat .catalog-chips {
  margin-bottom: 2px;
}

.catalog-rail__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.catalog-rail__row .catalog-rail__label {
  margin: 0;
}

.catalog-rail__label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

.catalog-rail__all {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.catalog-rail__all.is-on,
.catalog-rail__all:hover {
  color: var(--ink);
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  background: var(--canvas-soft);
  color: var(--body-strong, var(--ink));
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.catalog-chip:hover {
  background: var(--surface-card);
}

.catalog-chip.is-on {
  border-color: transparent;
}

.catalog-chip--mode.is-on {
  background: color-mix(in srgb, var(--mint) 46%, #fff);
  border-color: color-mix(in srgb, var(--mint) 78%, #fff);
  color: #24574a;
}

.catalog-chip--unit.is-on {
  background: color-mix(in srgb, var(--lavender) 46%, #fff);
  border-color: color-mix(in srgb, var(--lavender) 78%, #fff);
  color: #4c3d66;
}

.catalog-chip--book.is-on {
  background: color-mix(in srgb, var(--peach) 46%, #fff);
  border-color: color-mix(in srgb, var(--peach) 78%, #fff);
  color: #6b4a32;
}

.catalog-rail__foot {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

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

.shell .page-notice,
.shell .crumbs,
.shell .doc,
.catalog-layout .page-notice,
.catalog-layout .crumbs,
.catalog-layout .doc {
  max-width: none;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.shell .page-notice,
.catalog-layout .page-notice {
  margin-top: 0;
}

.shell .crumbs,
.catalog-layout .crumbs {
  padding-top: 0;
}

.book-mast {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 8px;
}

.book-mast__cover {
  width: 120px;
  height: auto;
  aspect-ratio: 1000 / 1400;
  object-fit: contain;
  object-position: top center;
  border-radius: 8px;
  background: var(--surface-card);
  flex-shrink: 0;
  display: block;
}

.series-wall {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.series-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 12px 16px 12px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 16px;
  background: #fff;
  color: inherit;
}

.series-card:hover {
  border-color: #94a3b8;
}

.series-card__cover,
.series-card__mark {
  width: 72px;
  height: 100px;
  border-radius: 8px;
  object-fit: contain;
  object-position: top center;
  background: var(--surface-strong);
}

.series-card__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--muted);
}

.series-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.series-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.series-card__meta {
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 640px) {
  .series-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cover-wall {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, 148px);
  justify-content: start;
  gap: 20px 16px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 148px;
}

.cover-card__img--paper {
  object-fit: contain;
  background: var(--surface-strong);
}

.cover-card__img,
.cover-card__fallback {
  width: 148px;
  height: auto;
  aspect-ratio: 1000 / 1400;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: 8px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}

.cover-card__fallback {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 14px 18px;
  box-sizing: border-box;
  background: var(--surface-strong);
  color: var(--ink);
}

.cover-card__fallback-mark {
  position: absolute;
  top: 10px;
  right: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 10%, transparent);
  pointer-events: none;
}

.cover-card__fallback-kicker,
.cover-card__fallback-note {
  position: relative;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.cover-card__fallback-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.25;
}

.cover-card__name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
}

.cover-card__meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

a.cover-card:hover .cover-card__img {
  border-color: #94a3b8;
}

.doc {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.doc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: -0.36px;
  line-height: 1.17;
}

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
}

.stage-tabs .chip {
  text-decoration: none;
}

.doc-h2 {
  margin: 28px 0 12px;
  scroll-margin-top: 88px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.2;
}

.stage-tabs + .doc-h2 {
  margin-top: 16px;
}

.doc-h3 {
  margin: 22px 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
}

.doc-lead {
  max-width: 42em;
  margin: 12px 0 0;
  color: var(--body);
}

.doc-tools {
  margin: 16px 0 0;
  font-size: 14px;
}

.doc-tools a {
  text-decoration: underline;
}

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

.doc-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.doc-list a {
  font-weight: 600;
}

.doc-list span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pack-bar {
  margin: 16px 0 8px;
}

.pack-bar__hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.pack-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.btn-text {
  border: 0;
  background: transparent;
  color: var(--body-strong);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
}

.btn-text:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.unit-grid {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.unit-card {
  position: relative;
}

.unit-card.is-unavailable {
  opacity: 0.55;
}

.unit-card__pick {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
}

.pack-bar.is-picking .unit-card:not(.is-unavailable) .unit-card__pick {
  display: flex;
}

.pack-bar.is-picking .unit-card.is-picked a {
  border-color: var(--ink);
}

.pack-bar.is-picking .unit-grid a {
  cursor: pointer;
}

.unit-card__pick input {
  margin: 0;
}

.unit-grid a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface-card);
  font-weight: 500;
}

.unit-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 1400;
  object-fit: contain;
  object-position: top center;
  border-radius: 8px;
  background: var(--surface-strong);
}

.home-card--thumb {
  min-height: 0;
  padding: 12px;
}

.home-card__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 1400;
  object-fit: contain;
  object-position: top center;
  border-radius: 8px;
  background: var(--surface-strong);
}

.unit-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.paper-preview {
  margin: 24px 0 0;
}

.paper-preview figcaption {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.paper-preview img {
  display: block;
  width: min(980px, 100%);
  height: auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.paper-preview .home-btn {
  margin-top: 10px;
}

.paper-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.paper-downloads .home-btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.unit-audio {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  width: min(784px, 80%);
  margin: 14px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.unit-audio__label {
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}

.unit-audio audio {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  height: 36px;
}

.unit-video {
  width: min(784px, 80%);
  margin: 14px 0 0;
}

.unit-video__label {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.unit-video__poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0c0a09;
  cursor: pointer;
  font: inherit;
  color: #fff;
}

.unit-video__poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.unit-video__poster span {
  position: absolute;
  inset: auto 12px 12px auto;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(12, 10, 9, 0.72);
  font-size: 13px;
}

.unit-video__player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #000;
}

.media-shelf {
  list-style: none;
  margin: 8px 0 20px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.media-shelf__book {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.media-shelf__cover {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 120px;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

.media-shelf__cover img {
  display: block;
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface);
}

.media-shelf__units {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.video-modal {
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c0a09;
}

.video-modal::backdrop {
  background: rgba(12, 10, 9, 0.55);
}

.video-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #fff;
}

.video-modal__bar strong {
  font-size: 14px;
  font-weight: 600;
}

.video-modal__player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.doc-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.doc-inline a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

.word-heads {
  max-width: 42em;
  margin: 8px 0 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
}

.edition-block {
  max-width: 42em;
  margin: 8px 0 0;
  color: var(--body);
  font-size: 15px;
}

.edition-block h3 {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink);
}

.edition-block p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.edition-block ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.edition-block li {
  margin-top: 4px;
}

.doc-faq {
  margin: 8px 0 0;
}

.doc-faq dt {
  margin-top: 12px;
  font-weight: 500;
  color: var(--ink);
}

.doc-faq dd {
  margin: 6px 0 0;
  color: var(--body);
}

.font-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 16px 0 0;
  font-size: 14px;
}

.home-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  color: var(--muted);
  font-size: 13px;
}

.home-footer p {
  margin: 0;
}

.home-footer__meta {
  margin-top: 4px !important;
}

.home-footer__meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-footer__beian {
  margin-top: 8px !important;
}

@media (max-width: 900px) {
  .home-top__inner {
    height: auto;
    min-height: 56px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
  }

  .home-menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-top__spacer {
    display: none;
  }

  .home-account {
    margin-left: auto;
  }

  .home-hero {
    padding-top: 48px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-rail {
    position: static;
    max-height: none;
    margin-top: 16px;
  }

  .home-logo__text {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-btn,
  .home-card,
  .home-menu__chev {
    transition: none;
  }

  .home-btn:hover:not(:disabled),
  a.home-card:hover {
    transform: none;
  }
}
