/* ============================================================
   ember · 独立模板样式
   一级：顶部横向分册条 / 二级：左侧本册目录 / 三级：右侧页内索引
   配色：橙红 - 玫红 - 珊瑚，避免蓝紫冷色
   ============================================================ */

:root {
  --bg: #fffaf8;
  --bg-elev: #ffffff;
  --bg-soft: #fff1ec;
  --bg-mid: #ffe4da;
  --ink: #1c1315;
  --ink-2: #5a474c;
  --ink-3: #92777d;
  --line: #f1ddd7;
  --line-strong: #e6c8c0;
  --brand: #ff2d55;
  --brand-2: #ff7a1a;
  --brand-deep: #d61b47;
  --brand-soft: #ffe4ea;
  --grad: linear-gradient(115deg, #ff7a1a 0%, #ff2d55 52%, #e0115f 100%);
  --grad-soft: linear-gradient(115deg, rgba(255, 122, 26, .14), rgba(255, 45, 85, .14));
  --hero-fade: rgba(255, 250, 248, 0);
  --hero-fade-mid: rgba(255, 250, 248, .56);
  --shadow: 0 20px 44px -28px rgba(74, 18, 32, .38);
  --shadow-sm: 0 8px 20px -14px rgba(74, 18, 32, .45);
  --head-h: 104px;
  --sub-w: 274px;
  --aside-w: 208px;
  --radius: 12px;
  --font: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --bg: #140e10;
  --bg-elev: #1d1417;
  --bg-soft: #241a1d;
  --bg-mid: #2b1e22;
  --ink: #fdeef0;
  --ink-2: #d6bcc2;
  --ink-3: #a98a91;
  --line: #3a292d;
  --line-strong: #513a40;
  --brand: #ff5c7a;
  --brand-2: #ff9a3d;
  --brand-deep: #ff7f97;
  --brand-soft: #3a1d26;
  --shadow: 0 22px 48px -30px rgba(0, 0, 0, .8);
  --shadow-sm: 0 10px 24px -16px rgba(0, 0, 0, .75);
  --hero-fade: rgba(20, 14, 16, 0);
  --hero-fade-mid: rgba(20, 14, 16, .56);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(920px 420px at 8% -10%, rgba(255, 186, 140, .28), transparent 62%),
    radial-gradient(760px 360px at 96% -13%, rgba(255, 128, 160, .24), transparent 64%),
    var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(900px 420px at 6% -12%, rgba(255, 122, 26, .10), transparent 62%),
    radial-gradient(760px 360px at 98% -12%, rgba(255, 45, 85, .11), transparent 64%),
    var(--bg);
}

[hidden] {
  display: none !important;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .18s ease;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid rgba(255, 45, 85, .52);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: none;
}

/* ---------------- header ---------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 248, .88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}

html[data-theme="dark"] .masthead {
  background: rgba(20, 14, 16, .86);
}

.masthead.is-stuck {
  box-shadow: 0 14px 34px -26px rgba(60, 12, 24, .45);
}

.mast {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 9px clamp(14px, 2vw, 26px) 7px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 2px 6px -3px rgba(28, 20, 24, .16);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 15.5px;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mast-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(190px, 22vw, 300px);
  height: 36px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: border-color .18s ease, box-shadow .18s ease, width .2s ease;
}

.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, .12);
}

.search-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search:focus-within .search-icon {
  stroke: var(--brand);
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.search-input::placeholder {
  color: var(--ink-3);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-kbd {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-3);
  font: 600 10.5px/1 var(--mono);
}

.ghost-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.ghost-btn:hover {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.ghost-btn:active {
  transform: translateY(0);
}

.ghost-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-btn,
.menu-btn {
  display: none;
}

.theme-moon {
  display: block;
}

.theme-sun {
  display: none;
}

.width-icon-boxed {
  display: block;
}

.width-icon-full {
  display: none;
}

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

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

html[data-width="boxed"] .width-icon-full {
  display: block;
}

html[data-width="boxed"] .width-icon-boxed {
  display: none;
}

/* ---------------- level-1 nav ---------------- */

.navwrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 clamp(12px, 2vw, 24px);
}

.nav-label {
  flex: 0 0 auto;
  padding: 0 10px 0 2px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}

.topnav {
  position: relative;
  flex: 1;
  min-width: 0;
}

.topnav::before,
.topnav::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 48px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s ease;
}

.topnav::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 250, 248, .97), rgba(255, 250, 248, 0));
}

.topnav::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 250, 248, .97), rgba(255, 250, 248, 0));
}

.navwrap.can-left .topnav::before,
.navwrap.can-right .topnav::after {
  opacity: 1;
}

.nav-fade {
  position: absolute;
  top: 0;
  right: calc(clamp(12px, 2vw, 24px) + 30px);
  z-index: 3;
  width: 30px;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(270deg, rgba(255, 250, 248, .98), rgba(255, 250, 248, 0));
  transition: opacity .28s ease;
}

.navwrap.can-right .nav-fade {
  opacity: 1;
}

html[data-theme="dark"] .nav-fade {
  background: linear-gradient(270deg, rgba(20, 14, 16, .97), rgba(20, 14, 16, 0));
}

html[data-theme="dark"] .topnav::before {
  background: linear-gradient(90deg, rgba(20, 14, 16, .96), rgba(20, 14, 16, 0));
}

html[data-theme="dark"] .topnav::after {
  background: linear-gradient(270deg, rgba(20, 14, 16, .96), rgba(20, 14, 16, 0));
}

.topnav-track {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-height: 39px;
  padding: 0 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-inline: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.topnav-track::-webkit-scrollbar {
  display: none;
}

.navchip {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 12px 9px;
  border: 0;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: color .22s ease, background .22s ease, opacity .22s ease;
}

.navchip::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--grad);
  opacity: 0;
  transform: scaleX(.4);
  transform-origin: center;
  transition: opacity .24s ease, transform .32s cubic-bezier(.22, .8, .28, 1);
}

.navchip:hover {
  background: linear-gradient(180deg, rgba(255, 122, 26, .09), rgba(255, 45, 85, .045));
  color: var(--ink);
}

.navchip:hover::after {
  opacity: .5;
  transform: scaleX(1);
}

.navchip.is-active {
  color: var(--brand-deep);
  font-weight: 650;
  background: transparent;
}

.navchip.is-active::after {
  opacity: 1;
  transform: scaleX(1);
  animation: navUnderline .42s cubic-bezier(.22, .8, .28, 1) both;
}

.navchip:active {
  background: linear-gradient(180deg, rgba(255, 122, 26, .1), rgba(255, 45, 85, .06));
}

.navchip.is-sliver {
  opacity: 0;
  pointer-events: none;
}

@keyframes navUnderline {
  from { opacity: 0; transform: scaleX(.18); }
  to { opacity: 1; transform: scaleX(1); }
}

.navchip.is-active:hover {
  color: var(--brand-deep);
  background: linear-gradient(180deg, rgba(255, 122, 26, .08), rgba(255, 45, 85, .04));
}

.nav-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: color .22s ease, background .22s ease, opacity .26s ease, transform .26s cubic-bezier(.22, .8, .28, 1);
}

.nav-arrow:hover {
  color: var(--brand-deep);
  background: var(--bg-soft);
}

.nav-arrow:active {
  transform: scale(.92);
}

.nav-arrow:disabled {
  opacity: .22;
  cursor: default;
  transform: none;
}

.nav-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------------- search panel ---------------- */

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: clamp(18px, 3.2vw, 46px);
  left: auto;
  width: min(720px, calc(100vw - 92px));
  max-height: min(66vh, 560px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: 0 30px 50px -34px rgba(60, 12, 24, .5);
  animation: panelDrop .22s ease both;
}

@keyframes panelDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.search-panel-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 24px) 22px;
}

.panel-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.panel-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, .1);
}

.panel-search svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.panel-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.search-hint {
  margin: 0 0 8px;
  color: var(--ink-3);
  font-size: 12px;
}

.search-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-hit {
  padding: 11px 12px;
  border-radius: 10px;
  transition: background .16s ease;
}

.search-hit:hover {
  background: var(--bg-soft);
}

.search-hit-title {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
}

.search-hit-path {
  display: block;
  color: var(--ink-3);
  font-size: 11.5px;
}

.search-hit-text {
  display: block;
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.search-hit-text mark {
  padding: 0 1px;
  border-radius: 2px;
  background: linear-gradient(transparent 52%, rgba(255, 158, 74, .55) 52%);
  color: inherit;
}

/* ---------------- shell ---------------- */

.drawer-mask {
  display: none;
}

.shell {
  display: grid;
  grid-template-columns: var(--sub-w) minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - var(--head-h));
}

.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-w);
  align-items: start;
  min-width: 0;
}

body:not(.has-sub) .shell {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.has-aside) .main {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------------- level-2 submenu ---------------- */

.submenu {
  position: sticky;
  top: var(--head-h);
  align-self: start;
  height: calc(100vh - var(--head-h));
  overflow-y: auto;
  padding: 18px 14px 40px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 228, 218, .55), transparent 190px),
    var(--bg);
  scrollbar-width: thin;
}

html[data-theme="dark"] .submenu {
  background:
    linear-gradient(180deg, rgba(255, 122, 26, .06), transparent 190px),
    var(--bg);
}

.submenu-top {
  position: relative;
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--line);
}

.submenu-kicker {
  margin: 0 0 3px;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
}

.submenu-book {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.submenu-book:hover {
  color: var(--brand-deep);
}

.submenu-close {
  display: none;
}

.submenu-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 6px 12px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-elev);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.submenu-filter:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, .1);
}

.submenu-filter svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.8;
}

.submenu-filter input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  outline: 0;
}

.sub-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-children {
  position: relative;
  margin-left: 0;
  padding-left: 16px;
  overflow: hidden;
  transition: height .32s cubic-bezier(.22, .8, .28, 1), opacity .24s ease;
}

.sub-children::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 6px;
  left: 16px;
  width: 1px;
  background-image: linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 10px);
  background-size: 1px 10px;
  background-repeat: repeat-y;
  opacity: .82;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

html[data-theme="dark"] .sub-children::before {
  opacity: .55;
}

.sub-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 12.8px;
  line-height: 1.55;
  transition: background .24s ease, color .2s ease, transform .24s cubic-bezier(.22, .8, .28, 1);
}

.sub-row:hover {
  background: var(--bg-soft);
  color: var(--ink);
  transform: translateX(2px);
}

.sub-row:active {
  transform: translateX(2px) scale(.985);
}

.sub-group > summary {
  list-style: none;
  cursor: pointer;
}

.sub-group > summary::-webkit-details-marker {
  display: none;
}

.sub-link {
  flex: 1;
  min-width: 0;
  color: inherit;
  overflow-wrap: anywhere;
}

.sub-leaf {
  display: block;
  overflow-wrap: anywhere;
}

.sub-row.is-active,
.sub-link.is-active {
  color: var(--brand-deep);
  font-weight: 600;
}

.sub-row.is-active {
  background: linear-gradient(100deg, rgba(255, 45, 85, .12) 0%, rgba(255, 122, 26, .05) 100%);
}

html[data-theme="dark"] .sub-row.is-active {
  background: linear-gradient(100deg, rgba(255, 92, 122, .15), rgba(255, 154, 61, .06));
}

.sub-link.is-active {
  background: transparent;
}

.sub-group:has(> summary > .sub-link.is-active) > summary {
  background: linear-gradient(100deg, rgba(255, 45, 85, .12) 0%, rgba(255, 122, 26, .05) 100%);
  border-radius: 10px;
}

html[data-theme="dark"] .sub-group:has(> summary > .sub-link.is-active) > summary {
  background: linear-gradient(100deg, rgba(255, 92, 122, .15), rgba(255, 154, 61, .06));
}

.sub-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--ink-3);
  transition: color .24s ease;
}

.sub-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform .3s cubic-bezier(.22, .8, .28, 1);
}

.sub-group:not([open]) > summary:hover .sub-toggle svg {
  transform: translateX(2px);
}

.sub-group[open] > summary .sub-toggle svg {
  transform: rotate(90deg);
}

.sub-group[open] > summary .sub-toggle {
  color: var(--brand);
}

.submenu-empty {
  margin: 14px 8px;
  color: var(--ink-3);
  font-size: 12.5px;
}

/* ---------------- content ---------------- */

.main-inner {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 30px clamp(20px, 3.2vw, 46px) 72px;
  transition: max-width .26s ease;
}

html[data-width="boxed"] .main-inner {
  max-width: 820px;
}

.article {
  width: 100%;
  overflow-wrap: break-word;
  animation: contentIn .38s ease both;
}

@keyframes contentIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- breadcrumb ---------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.crumbs a {
  color: var(--ink-2);
  font-weight: 500;
}

.crumbs a:hover {
  color: var(--brand-deep);
}

.crumb-sep {
  color: var(--line-strong);
}

.crumb-current {
  color: var(--brand-deep);
  font-weight: 600;
}

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

.article h1,
.article h2,
.article h3,
.article h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
  word-break: normal;
}

.article h1 {
  margin: 0 0 26px;
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 800;
  letter-spacing: -.025em;
}

.article h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin-top: 15px;
  border-radius: 3px;
  background: var(--grad);
}

.article h2 {
  position: relative;
  margin: 42px 0 16px;
  padding-left: 18px;
  font-size: 23px;
}

.article h2::before {
  content: "";
  position: absolute;
  top: .52em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, .08);
}

.article h3 {
  margin: 30px 0 12px;
  font-size: 18.5px;
}

.article h4 {
  margin: 24px 0 10px;
  font-size: 16px;
}

.article p {
  margin: 12px 0;
  color: var(--ink-2);
}

.article li {
  color: var(--ink-2);
}

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

.article a {
  border-bottom: 1px solid rgba(255, 45, 85, .3);
}

.article a:hover {
  border-bottom-color: var(--brand);
}

.article hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink-2);
}

.article blockquote p {
  margin: 0;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.article ul li::marker {
  color: var(--brand-2);
}

.article code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--brand-deep);
  font-family: var(--mono);
  font-size: .9em;
}

.article pre {
  margin: 18px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  background: #241a1d;
  box-shadow: var(--shadow-sm);
}

.article pre code {
  padding: 0;
  background: transparent;
  color: #ffe9e2;
  font-size: 13px;
  line-height: 1.7;
}

/* 代码块：语言条 + 复制按钮 + 高亮配色 */

.code-block {
  position: relative;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  background: #241a1d;
  box-shadow: var(--shadow-sm);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 9px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(90deg, #2d2024 0%, #261a1e 100%);
}

.code-lang {
  overflow: hidden;
  color: #b58c91;
  font: 600 10px/1 var(--mono);
  letter-spacing: .13em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-copy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: #e8c4bb;
  font: 500 11.5px/1 var(--font);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.code-copy:hover {
  background: rgba(255, 154, 61, .16);
  color: #ffd8c4;
}

.code-copy:active {
  transform: scale(.97);
}

.code-copy.is-copied {
  background: rgba(255, 122, 26, .18);
  color: #ffb38f;
}

.code-copy svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article .code-block pre {
  margin: 0;
  padding: 15px 18px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.code-block pre code {
  display: block;
  min-width: max-content;
}

.code-block .hljs {
  background: transparent;
  color: #ffe9e2;
}

.code-block .hljs-comment,
.code-block .hljs-quote {
  color: #9d7d84;
  font-style: italic;
}

.code-block .hljs-keyword,
.code-block .hljs-selector-tag,
.code-block .hljs-literal,
.code-block .hljs-link {
  color: #ff9a3d;
}

.code-block .hljs-string,
.code-block .hljs-attr,
.code-block .hljs-attribute,
.code-block .hljs-name,
.code-block .hljs-symbol,
.code-block .hljs-bullet,
.code-block .hljs-addition {
  color: #ffd17a;
}

.code-block .hljs-number,
.code-block .hljs-type,
.code-block .hljs-built_in,
.code-block .hljs-builtin-name,
.code-block .hljs-selector-id,
.code-block .hljs-selector-class {
  color: #ff7f97;
}

.code-block .hljs-title,
.code-block .hljs-function,
.code-block .hljs-section {
  color: #ffb86b;
}

.code-block .hljs-variable,
.code-block .hljs-template-variable,
.code-block .hljs-params,
.code-block .hljs-property {
  color: #ffc8b8;
}

.code-block .hljs-meta,
.code-block .hljs-regexp {
  color: #ff8a5c;
}

.code-block .hljs-tag,
.code-block .hljs-selector-attr {
  color: #ff9a3d;
}

.code-block .hljs-deletion {
  color: #ff7a8a;
}

.code-block .hljs-emphasis {
  font-style: italic;
}

.code-block .hljs-strong {
  font-weight: 700;
}

.article table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  font-size: 13.5px;
}

.article th,
.article td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.article th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.article tr:last-child td {
  border-bottom: 0;
}

.article tbody tr:hover td {
  background: rgba(255, 122, 26, .05);
}

.table-scroll {
  margin: 18px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  margin: 0;
}

.table-tip {
  margin: 0 0 6px;
  color: var(--ink-3);
  font-size: 12px;
}

.article img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.article .alert {
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}

/* ---------------- right page toc ---------------- */

.mobile-outline {
  display: none;
}

.pagetoc {
  position: sticky;
  top: var(--head-h);
  align-self: start;
  max-height: calc(100vh - var(--head-h));
  overflow-y: auto;
  padding: 34px 18px 50px 6px;
  scrollbar-width: thin;
}

.pagetoc-title {
  margin: 0 0 10px 10px;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
}

.pagetoc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagetoc-item {
  margin: 1px 0;
}

.pagetoc-item a {
  position: relative;
  display: block;
  padding: 6px 10px 6px 18px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 12.2px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color .18s ease, background .2s ease;
}

.pagetoc-item a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: rgba(255, 45, 85, .25);
  transition: width .22s ease, height .22s ease, margin .22s ease, background .22s ease, box-shadow .22s ease;
}

.pagetoc-item a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.pagetoc-item a:hover::before {
  background: rgba(255, 45, 85, .48);
}

.pagetoc-item.lvl-3 a {
  padding-left: 30px;
  font-size: 11.6px;
  color: var(--ink-3);
}

.pagetoc-item.lvl-3 a::before {
  left: 18px;
  width: 4px;
  height: 4px;
  margin-top: -2px;
}

.pagetoc-item a.is-current {
  color: var(--brand-deep);
  font-weight: 600;
  background: linear-gradient(100deg, var(--brand-soft) 0%, rgba(255, 228, 218, .5) 100%);
}

.pagetoc-item a.is-current::before {
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, .1);
}

.pagetoc-item.lvl-3 a.is-current::before {
  left: 17px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
}

/* ---------------- pager ---------------- */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 52px;
}

.pager-card {
  flex: 0 1 420px;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pager-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pager-card.is-next {
  margin-left: auto;
  text-align: right;
}

.pager-dir {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: .08em;
}

.pager-card strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ---------------- landing hero ---------------- */

.hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg,
    var(--hero-fade) 0%,
    var(--hero-fade-mid) 38%,
    var(--bg) 100%);
  pointer-events: none;
  z-index: 3;
}

.is-landing .main {
  position: relative;
  display: block;
}

.is-landing .shell {
  grid-template-columns: minmax(0, 1fr);
}

.is-landing .main-inner {
  position: relative;
  z-index: 1;
  max-width: 1760px;
  padding-top: 76px;
}

.hero-halo {
  position: absolute;
  inset: -120px -10% auto;
  height: 340px;
  background:
    radial-gradient(420px 200px at 22% 40%, rgba(255, 154, 61, .22), transparent 70%),
    radial-gradient(520px 230px at 76% 26%, rgba(255, 45, 85, .18), transparent 70%);
  animation: haloPulse 14s ease-in-out infinite alternate;
}

@keyframes haloPulse {
  from { transform: scale(1) translate3d(-12px, 0, 0); opacity: .75; }
  to { transform: scale(1.08) translate3d(16px, -6px, 0); opacity: 1; }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  animation: sparkDrift 15s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.orb-a {
  left: 23%;
  top: 36%;
  width: 7px;
  height: 7px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 0 18px rgba(255, 122, 26, .55);
  animation-duration: 13s;
}

.orb-b {
  left: 54%;
  top: 19%;
  width: 5px;
  height: 5px;
  background: #fff7f0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 0 14px rgba(255, 45, 85, .45);
  animation-duration: 17s;
  animation-delay: -4s;
}

.orb-c {
  left: 78%;
  top: 42%;
  width: 6px;
  height: 6px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .14), 0 0 16px rgba(255, 154, 61, .5);
  animation-duration: 15s;
  animation-delay: -8s;
}

.blob {
  border-radius: 50%;
  filter: blur(12px);
  background: radial-gradient(circle, rgba(255, 154, 61, .55), rgba(255, 45, 85, .16) 55%, transparent 72%);
  opacity: .3;
  animation-name: blobDrift;
  animation-duration: 22s;
}

.blob-d {
  right: 3%;
  top: -18%;
  width: 160px;
  height: 160px;
}

.blob-e {
  left: 7%;
  top: 4%;
  width: 110px;
  height: 110px;
  animation-duration: 19s;
  animation-delay: -6s;
}

@keyframes sparkDrift {
  0% { transform: translate3d(0, 0, 0) scale(.9); opacity: .35; }
  55% { opacity: .75; }
  100% { transform: translate3d(24px, -30px, 0) scale(1.08); opacity: .45; }
}

@keyframes blobDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .28; }
  100% { transform: translate3d(26px, -18px, 0) scale(1.08); opacity: .46; }
}

.hero-waves {
  position: absolute;
  left: -2%;
  bottom: 0;
  width: 104%;
  height: 280px;
  transform-origin: 50% 100%;
}

.wave-a,
.wave-b,
.wave-line {
  will-change: transform;
}

.wave-a {
  animation: swayA 15s ease-in-out infinite alternate;
}

.wave-b {
  animation: swayB 19s ease-in-out infinite alternate;
}

.wave-line {
  animation: swayA 12s ease-in-out infinite alternate;
}

.line-b {
  animation: swayB 17s ease-in-out infinite alternate;
}

.wave-glint {
  animation: waveGlint 9s linear infinite;
  opacity: .28;
  stroke-width: 1.1;
}

.glint-b {
  animation-duration: 13s;
  animation-delay: -5s;
  animation-direction: reverse;
  opacity: .18;
}

@keyframes swayA {
  0% { transform: translate3d(-26px, 4px, 0) scaleY(.98); }
  50% { transform: translate3d(2px, -6px, 0) scaleY(1.04); }
  100% { transform: translate3d(22px, 2px, 0) scaleY(1); }
}

@keyframes swayB {
  0% { transform: translate3d(26px, 2px, 0) scaleY(1); }
  50% { transform: translate3d(-4px, -4px, 0) scaleY(1.03); }
  100% { transform: translate3d(-22px, 4px, 0) scaleY(.98); }
}

@keyframes waveGlint {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: -100; }
}

.is-landing .article h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  margin-bottom: 18px;
}

.is-landing .article h1::after {
  width: 118px;
  height: 4px;
}

.is-landing .article > p:first-of-type {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------------- footer ---------------- */

.foot {
  position: relative;
  margin-top: 40px;
  background: #1b1215;
  color: #f6e6e2;
}

.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}

.foot-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 30px clamp(20px, 3.2vw, 46px);
}

.foot-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff4f1;
}

.ai-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: #c9aca8;
  font-size: 12px;
  line-height: 1.65;
}

.ai-chip {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--grad);
  color: #fff;
  font: 700 10.5px/1 var(--font);
  letter-spacing: .04em;
}

.foot-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 12px 0 0;
  color: #d5b6b0;
  font-size: 12.5px;
  line-height: 1.7;
}

.contact-label {
  margin-right: 6px;
  color: #b8979c;
  font-size: 10.8px;
  letter-spacing: .08em;
}

.contact-value {
  color: #ffe5dd;
}

.foot-contact a {
  color: #ffc4a6;
  transition: color .18s ease;
}

.foot-contact a:hover {
  color: #ffd6c2;
}

.contact-sep {
  color: #6b4f53;
}

.foot-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin: 10px 0 0;
  color: #c9aca8;
  font-size: 12px;
  line-height: 1.7;
}

.foot-links-label {
  color: #b8979c;
  font-size: 10.8px;
  letter-spacing: .08em;
}

.foot-link {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  color: #ffc4a6;
  transition: color .18s ease;
}

.foot-link-name {
  color: #ffe5dd;
  font-weight: 600;
}

.foot-link-desc {
  color: #c9aca8;
  font-size: 12px;
}

.foot-link:hover,
.foot-link:hover .foot-link-name {
  color: #ffd6c2;
}

.foot-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 18px;
  flex-wrap: wrap;
}

.foot-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
}

.legal-sep {
  color: #6b4f53;
  font-size: 11px;
}

.foot-copy {
  color: #a98a90;
  font-size: 11.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.icp,
.police,
.foot-top {
  color: #c9aca8;
  font-size: 12px;
  line-height: 1.6;
  transition: color .18s ease;
}

.police {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.police-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  object-fit: contain;
  opacity: .92;
}

.icp:hover,
.police:hover,
.foot-top:hover {
  color: #ffb38f;
}

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

@media (max-width: 1180px) {
  .main {
    grid-template-columns: minmax(0, 1fr);
  }

  .pagetoc {
    display: none;
  }

  body.has-aside .main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  :root {
    --head-h: 100px;
    --sub-w: 260px;
  }

  .mast {
    min-height: 56px;
    gap: 10px;
  }

  .brand-text {
    font-size: 14.5px;
  }

  .search {
    display: none;
  }

  .search-btn,
  .menu-btn {
    display: inline-grid;
  }

  #width-btn {
    display: none;
  }

  .nav-label {
    display: none;
  }

  .navwrap {
    padding: 0 12px;
  }

  .nav-arrow {
    display: none;
  }

  .nav-fade {
    right: calc(clamp(12px, 2vw, 24px) + 2px);
    width: 26px;
  }

  .navchip {
    padding: 7px 10px 8px;
    font-size: 12.5px;
  }

  .shell {
    display: block;
  }

  .submenu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(86vw, 340px);
    height: 100%;
    padding-top: 20px;
    border-right: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 30px 0 60px -40px rgba(40, 8, 16, .6);
    transform: translateX(-104%);
    transition: transform .3s cubic-bezier(.22, .75, .25, 1);
    visibility: hidden;
  }

  body.drawer-open .submenu {
    transform: none;
    visibility: visible;
  }

  .submenu-close {
    position: absolute;
    top: 12px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg-elev);
    color: var(--ink-2);
    cursor: pointer;
  }

  .submenu-close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .drawer-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(36, 12, 18, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s ease;
  }

  body.drawer-open .drawer-mask {
    opacity: 1;
    pointer-events: auto;
  }

  body.drawer-open {
    overflow: hidden;
  }

  .main-inner {
    padding: 22px 18px 56px;
  }

  .article h1 {
    font-size: 27px;
    margin-bottom: 20px;
  }

  .article h2 {
    margin-top: 34px;
    font-size: 20.5px;
  }

  .article h3 {
    font-size: 17px;
  }

  .article p,
  .article li {
    font-size: 14.5px;
  }

  .article table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 12.5px;
  }

  .article th,
  .article td {
    padding: 7px 7px;
    white-space: normal;
    word-break: break-word;
  }

  .table-scroll table {
    display: table;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .table-scroll.is-wide table {
    width: max-content;
    min-width: 100%;
  }

  .table-scroll.is-wide th,
  .table-scroll.is-wide td {
    white-space: nowrap;
  }

  .article th:first-child,
  .article td:first-child {
    white-space: nowrap;
  }

  .mobile-outline {
    display: block;
    margin: 0 0 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-elev);
    box-shadow: var(--shadow-sm);
  }

  .mobile-outline > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    list-style: none;
    cursor: pointer;
    color: var(--ink);
    font-size: 13px;
  }

  .mobile-outline > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-outline-label {
    font-weight: 600;
  }

  .mobile-outline-hint {
    color: var(--ink-3);
    font-size: 11.5px;
  }

  .mobile-outline[open] .mobile-outline-hint {
    color: var(--brand);
  }

  .mobile-outline-list {
    margin: 0;
    padding: 4px 14px 12px;
    list-style: none;
    border-top: 1px solid var(--line);
  }

  .mobile-outline-list li {
    padding: 5px 0;
  }

  .mobile-outline-list li.lvl-3 {
    padding-left: 14px;
  }

  .mobile-outline-list a {
    display: block;
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .mobile-outline-list a:hover {
    color: var(--brand-deep);
  }

  .article th {
    white-space: nowrap;
  }

  .pager {
    flex-direction: column;
    margin-top: 40px;
  }

  .pager-card {
    flex: 1 1 auto;
    width: 100%;
  }

  .pager-card.is-next {
    margin-left: 0;
    text-align: left;
  }

  .is-landing .main-inner {
    padding-top: 52px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    height: 230px;
  }

  .hero-waves {
    height: 210px;
  }

  .is-landing .article h1 {
    font-size: 30px;
  }

  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 18px;
  }

  .foot-meta {
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .mast-actions {
    gap: 4px;
  }

  .foot-meta {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 12px;
  }

  .foot-legal {
    gap: 4px 8px;
  }

  .police {
    font-size: 11.5px;
  }

  .ghost-btn {
    width: 33px;
    height: 33px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 50%;
  }

  .brand-text {
    max-width: 42vw;
  }

  .navwrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .main-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .search-panel {
    position: fixed;
    top: var(--head-h);
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
    border-radius: 0 0 14px 14px;
    max-height: calc(100vh - var(--head-h));
  }
}

/* 桌面端搜索输入固定在顶栏，面板内不再重复输入框 */

@media (min-width: 961px) {
  .panel-search {
    display: none;
  }
}

/* ---------------- print ---------------- */

@media print {
  .masthead,
  .submenu,
  .pagetoc,
  .pager,
  .foot-top,
  .drawer-mask {
    display: none !important;
  }

  .shell,
  .main {
    display: block;
  }

  .main-inner {
    max-width: none;
    padding: 0;
  }

  .foot {
    background: transparent;
    color: #333;
  }

  .foot-title,
  .ai-note,
  .icp {
    color: #333;
  }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
