@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700&display=swap');

@font-face {
  font-family: "QingNiaoSong";
  src: url("fonts/qingniaohuaguangjianzhongchangsong.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #170f0b;
  --muted: #5f4c45;
  --paper: rgba(250, 245, 240, 0.68);
  --paper-soft: rgba(245, 232, 224, 0.65);
  --paper-strong: rgba(255, 252, 248, 0.82);
  --line: rgba(255, 255, 255, 0.42);
  --line-dark: rgba(67, 34, 20, 0.2);
  --red: #bb3f3c;
  --red-deep: #8c1f1e;
  --cream: #fff6ee;
  --radius: 25px;
  --glass-blur: blur(18px) saturate(132%);
  --shadow: 0 14px 36px rgba(52, 18, 7, 0.26);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 -16px 28px rgba(135, 73, 48, 0.08);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #9f4d25;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #9f4d25;
  font-synthesis: none;
  -webkit-font-synthesis: none;
}

/* 青鸟字体：汉字收紧间距，数字/英文加宽 */
.hero h1,
.nav-links,
.button,
.text-button,
.search-submit,
.section-heading h2,
.about-section h2,
.work-card h3,
.viewer-meta h3 {
  font-weight: 400;
  letter-spacing: -0.06em;
  word-spacing: 0.12em;
}

body::after {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 25;
  width: 100vw;
  height: 172px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(159, 77, 37, 0.24), rgba(159, 77, 37, 0.08) 42%, rgba(159, 77, 37, 0));
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.78) 34%, rgba(0, 0, 0, 0.22) 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.78) 34%, rgba(0, 0, 0, 0.22) 72%, transparent 100%);
  opacity: 0;
  transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

body.has-top-blur::after {
  opacity: 1;
}

body.is-ios-safari::after {
  display: none;
}

.page-bg {
  position: fixed;
  inset: -8px;
  z-index: 0;
  pointer-events: none;
  background: url("index pictures/background.png") center center / cover no-repeat;
  transform: translateZ(0);
}

.page-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    radial-gradient(circle at 50% 18%, rgba(255, 236, 216, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(58, 16, 5, 0.08), rgba(80, 24, 7, 0.28));
}

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

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

.site-header {
  position: relative;
  z-index: 1;
  min-height: auto;
  color: var(--cream);
}

.topbar {
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  z-index: 20;
  width: auto;
  padding: 50px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: rgba(255, 246, 238, 0.88);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: end;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 238, 0.28);
  background: rgba(60, 22, 10, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 20px rgba(38, 12, 4, 0.28);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: #fff8ef;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 19px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 999px;
  color: rgba(255, 248, 240, 0.92);
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover {
  color: #fffaf5;
  background: rgba(255, 248, 240, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.nav-links a:active {
  transform: translateY(0) scale(0.97);
  background: rgba(255, 248, 240, 0.1);
}

.hero {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 170px 0 0;
  display: grid;
  align-content: start;
  justify-items: center;
}

.hero-copy {
  text-align: center;
  text-shadow: 0 6px 22px rgba(50, 15, 4, 0.48);
}

.kicker {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.15;
}

.hero h1 {
  margin: 0;
  color: #fff8f0;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-title-img {
  width: min(800px, 72vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 20px rgba(50, 15, 4, 0.42));
}

.toolbar-shell {
  position: sticky;
  top: 10px;
  z-index: 30;
  width: min(820px, 100%);
  margin: 46px auto 18px;
  transition: opacity 0.38s ease, transform 0.38s ease;
  will-change: opacity, transform;
}

.toolbar-shell::after {
  display: none;
}

.toolbar-shell.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  visibility: hidden;
}

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 15;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 246, 238, 0.24);
  background: rgba(60, 22, 10, 0.22);
  color: #fff8ef;
  opacity: 0.72;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
  animation: scrollHintBob 1.9s ease-in-out infinite;
}

.scroll-hint::after {
  content: "";
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.scroll-hint:hover {
  opacity: 1;
}

@keyframes scrollHintBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

body.is-scrolled .scroll-hint {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    animation: none;
  }
}

/* ===================== 独立页面 ===================== */
.page-wrap {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 118px 0 96px;
}

.page-header {
  margin-bottom: 34px;
}

.page-header .eyebrow {
  color: #ffe1cc;
}

.page-header h1 {
  margin: 6px 0 0;
  color: #fff8ef;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 5px 18px rgba(46, 14, 5, 0.4);
}

.page-lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 246, 238, 0.9);
  font-size: 18px;
  line-height: 1.9;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow), var(--inset);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 34px;
}

.panel + .panel {
  margin-top: 22px;
}

.panel h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 24px;
}

.feature-card .f-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(187, 63, 60, 0.12);
  color: var(--red-deep);
  margin-bottom: 14px;
}

.feature-card .f-ico svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.page-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.page-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 22px 24px;
}

.page-stats strong {
  display: block;
  color: var(--red-deep);
  font: 800 34px/1.05 Arial, sans-serif;
}

.page-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* 联系方式 */
.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(120, 60, 40, 0.12);
  border-radius: var(--radius);
  background: #fbf3ec;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.contact-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(53, 20, 8, 0.14);
}

.contact-row .c-ico {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(187, 63, 60, 0.12);
  color: var(--red-deep);
}

.contact-row .c-ico svg {
  width: 23px;
  height: 23px;
}

.contact-row .c-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact-row .c-value {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 17px;
}

.contact-note {
  margin-top: 18px;
  color: rgba(255, 246, 238, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

/* 版权声明 */
.copyright-notice {
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  color: rgba(255, 246, 238, 0.75);
  font-size: 14px;
  line-height: 1.8;
  border-top: 1px solid rgba(255, 246, 238, 0.12);
}

.copyright-left {
  text-align: left;
}

.copyright-left p {
  margin: 0;
  font-weight: 500;
}

.copyright-right {
  text-align: right;
  flex-shrink: 0;
}

.copyright-right p {
  margin: 0;
  font-weight: 500;
}

.copyright-author {
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: rgba(255, 246, 238, 0.9);
}

.copyright-author + .copyright-author {
  margin-top: 4px;
}

@media (max-width: 720px) {
  .feature-grid,
  .page-stats {
    grid-template-columns: 1fr;
  }

  .page-wrap {
    padding-top: 96px;
  }

  .panel {
    padding: 24px;
  }
}

/* ===================== 侧边栏 ===================== */
:root {
  --sb-w: 238px;
  --sb-w-collapsed: 68px;
}

body.has-sidebar {
  padding-left: var(--sb-w);
  transition: padding-left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

body.has-sidebar.sidebar-collapsed {
  padding-left: var(--sb-w-collapsed);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: var(--sb-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  color: #fff5ec;
  background: rgba(46, 17, 8, 0.42);
  border-right: 1px solid rgba(255, 246, 238, 0.16);
  box-shadow: 2px 0 22px rgba(30, 10, 3, 0.26);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s ease;
  overflow: hidden;
}

.sidebar.is-collapsed {
  width: var(--sb-w-collapsed);
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 246, 238, 0.12);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: #fff8ef;
}

.sidebar-brand-mark {
  flex: none;
  width: 100%;
  max-width: 160px;
  display: block;
  background: transparent;
  box-shadow: none;
}

.sidebar-brand-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1.15) drop-shadow(0 2px 8px rgba(50, 15, 4, 0.35));
}

.sidebar-toggle,
.sb-caret,
.sidebar-opener {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.sidebar-toggle {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: rgba(255, 246, 238, 0.82);
  transition: background 0.18s ease;
}

.sidebar-toggle:hover {
  background: rgba(255, 248, 240, 0.14);
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sb-item,
.sb-parent-link,
.sb-sub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 11px;
  color: rgba(255, 246, 238, 0.86);
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

a.sb-item:hover,
.sb-parent-link:hover,
.sb-sub-item:hover {
  background: rgba(255, 248, 240, 0.12);
  color: #fff9f3;
}

.sb-ico {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.sb-ico svg {
  width: 21px;
  height: 21px;
}

.sb-ico-sm svg {
  width: 13px;
  height: 13px;
  opacity: 0.85;
}

.sb-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-item.is-active,
.sb-parent.is-active .sb-parent-link,
.sb-sub-item.is-active {
  background: rgba(187, 63, 60, 0.92);
  color: #fffaf5;
  box-shadow: 0 4px 12px rgba(120, 25, 23, 0.34);
}

.sb-group {
  display: flex;
  flex-direction: column;
}

.sb-parent {
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 11px;
}

.sb-parent-link {
  flex: 1;
  min-width: 0;
}

.sb-caret {
  flex: none;
  width: 32px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: rgba(255, 246, 238, 0.66);
}

.sb-caret svg {
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}

.sb-group.is-open .sb-caret svg {
  transform: rotate(90deg);
}

.sb-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.sb-group.is-open .sb-sub {
  max-height: 480px;
}

.sb-sub-item {
  padding: 8px 11px 8px 12px;
  margin: 2px 0 2px 15px;
  font-size: 15px;
  color: rgba(255, 246, 238, 0.74);
  border-left: 1px solid rgba(255, 246, 238, 0.16);
  border-radius: 0 10px 10px 0;
}

.sidebar.is-collapsed .sb-label,
.sidebar.is-collapsed .sidebar-brand-text,
.sidebar.is-collapsed .sidebar-brand-mark,
.sidebar.is-collapsed .sb-caret,
.sidebar.is-collapsed .sb-sub {
  display: none;
}

.sidebar.is-collapsed .sb-item,
.sidebar.is-collapsed .sb-parent-link {
  justify-content: center;
  gap: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 auto;
}

.sidebar.is-collapsed .sidebar-head,
.sidebar.is-collapsed .sidebar-brand {
  justify-content: center;
}

@media (max-width: 900px) {
  body.has-sidebar,
  body.has-sidebar.sidebar-collapsed {
    padding-left: 0;
  }

  .sidebar {
    display: none;
  }

  /* 箭头避开底部 tab 栏 */
  .scroll-hint {
    bottom: 90px;
  }
}

.toolbar {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 134px;
  gap: 14px;
  align-items: start;
  padding: 0;
  transition: filter 0.22s ease;
}

.toolbar::before {
  display: none;
}

.search-box {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.search-box input,
.search-submit {
  width: 100%;
  height: 54px;
  min-height: 54px;
  border-radius: var(--radius);
}

.search-box input {
  border: 1px solid rgba(76, 46, 35, 0.22);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  color: var(--ink);
  padding: 0 24px;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(53, 20, 8, 0.10);
  outline: 0;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.search-box input:focus {
  border-color: rgba(154, 45, 42, 0.5);
  box-shadow: 0 2px 10px rgba(53, 20, 8, 0.10), 0 0 0 3px rgba(187, 63, 60, 0.16);
}

.search-box input::placeholder {
  color: rgba(80, 68, 63, 0.45);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf1e8;
  color: var(--red-deep);
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(53, 20, 8, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  transform-origin: center;
}

.button.primary {
  min-height: 54px;
  border-color: transparent;
  background: var(--red);
  color: #fffaf5;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(140, 31, 30, 0.28);
}

.button.primary:hover {
  background: #c94b48;
}

.button:hover,
.text-button:hover,
.filters label:hover {
  transform: translateY(-2px);
}

.button:active,
.text-button:active {
  transform: translateY(0) scale(0.98);
}

.search-submit {
  position: relative;
  z-index: 1;
  align-self: start;
  margin-left: 0;
  border-radius: var(--radius);
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(140, 31, 30, 0.28);
}

.toolbar .search-submit {
  font-size: 24px;
}

.filters {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.filters label {
  position: relative;
  min-width: 0;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(120, 60, 40, 0.12);
  border-radius: var(--radius);
  background: rgba(246, 234, 225, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: #120c09;
  box-shadow: 0 2px 8px rgba(54, 19, 7, 0.10);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.filters label:hover {
  background: rgba(251, 243, 236, 0.78);
}

.filters span {
  position: absolute;
  left: 18px;
  right: 40px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

select {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  appearance: none;
  background: transparent;
  color: transparent;
  padding: 0 40px 0 18px;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  outline: 0;
}

/* 下拉箭头：CSS 重绘为干净的 V 形雪佛龙 */
.filters label::after {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 13px;
  height: 13px;
  content: "";
  transform: translateY(-50%);
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c120d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  pointer-events: none;
  transition: transform 0.2s ease;
}

.filters label:hover::after {
  transform: translateY(-50%) translateY(1px);
}

main {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.stats-band {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.stats-band.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stats-band div,
.work-card,
.class-card,
.about-section,
.viewer-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow), var(--inset);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.stats-band div {
  min-height: 114px;
  padding: 22px 24px;
}

.stats-band strong {
  display: block;
  color: var(--red-deep);
  font: 800 36px/1.05 Arial, sans-serif;
}

.stats-band span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
}

.section {
  padding-top: 18px;
}

.section-heading {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffe1cc;
  font: 700 13px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.section-heading h2,
.about-section h2 {
  margin: 0;
  color: #fff8ef;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.1;
  text-shadow: 0 5px 18px rgba(46, 14, 5, 0.4);
}

.section-heading p:last-child,
.about-section p {
  margin: 10px 0 0;
  color: rgba(255, 246, 238, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.result-line {
  width: min(1120px, 100%);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff9ef;
  font-size: 26px;
  font-weight: 700;
  text-shadow: 0 4px 14px rgba(50, 15, 4, 0.45);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.result-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(246, 225, 218, 0.78);
  color: var(--red-deep);
  padding: 2px 14px;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(54, 19, 7, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.work-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: 335px 1fr;
  overflow: hidden;
  border-width: 6px;
  border-color: rgba(255, 246, 238, 0.9);
  isolation: isolate;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.68s ease, transform 0.68s ease, box-shadow 0.22s ease;
}

.work-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 56px rgba(52, 18, 7, 0.38), var(--inset);
}

.thumb {
  overflow: hidden;
  background: rgba(230, 213, 203, 0.9);
  border-radius: calc(var(--radius) - 6px) calc(var(--radius) - 6px) 0 0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.36s ease;
}

.work-card:hover .thumb img {
  transform: scale(1.04);
}

.placeholder {
  height: 100%;
  padding: 26px;
  display: grid;
  align-content: space-between;
  background: rgba(246, 232, 224, 0.72);
}

.placeholder strong {
  color: var(--red-deep);
  font: 800 44px/1 Arial, sans-serif;
}

.placeholder span {
  color: var(--muted);
  line-height: 1.7;
}

.work-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.68), rgba(248, 238, 231, 0.62));
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: rgba(140, 31, 30, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-line span:not(:first-child)::before {
  content: "·";
  color: rgba(140, 31, 30, 0.42);
}

.work-card h3 {
  margin: 0;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 25px;
  line-height: 1.5;
}

.work-card p {
  margin: 0;
  color: #40302a;
  font-size: 15px;
  line-height: 1.8;
}

.work-card .author-line {
  margin: -6px 0 0;
  color: var(--red-deep);
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.work-card > .work-body > p:not(.author-line) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.tag {
  display: inline-flex;
  min-width: 0;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 31, 30, 0.14);
  background: rgba(244, 214, 208, 0.68);
  color: var(--red-deep);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}

.card-actions .button {
  flex: 1;
  min-height: 40px;
  font-size: 15px;
}

.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.class-section {
  padding-top: 86px;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.class-card {
  min-height: 166px;
  padding: 26px;
}

.class-card strong {
  display: block;
  color: var(--red-deep);
  font: 800 46px/1 Arial, sans-serif;
}

.class-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

.about-section {
  margin: 86px 0 0;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.8fr);
  gap: 28px;
}

.about-section .eyebrow {
  color: var(--red-deep);
}

.about-section h2 {
  color: var(--ink);
  text-shadow: none;
}

.about-section p {
  color: var(--muted);
}

.viewer {
  width: min(1120px, calc(100% - 28px));
  max-height: 88vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.viewer::backdrop {
  background: rgba(30, 12, 6, 0.62);
  backdrop-filter: blur(8px);
}

.viewer-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.3fr);
  grid-template-rows: minmax(0, 88vh);
  max-height: 88vh;
  overflow: hidden;
  border-radius: var(--radius);
}

.icon-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(60, 22, 10, 0.08);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.icon-button:hover {
  background: rgba(60, 22, 10, 0.16);
  transform: scale(1.06);
}

/* === 左侧信息栏 === */
.viewer-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.88), rgba(248, 238, 231, 0.82));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.viewer-meta-footer {
  flex: none;
  padding: 16px 56px 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 0;
}

.viewer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 56px 56px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 主标题 */
#viewerTitle {
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.viewer-main-title {
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.4;
  color: #1a120e;
  letter-spacing: -0.03em;
}

.viewer-sub-title {
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.45;
  color: #1a120e;
  letter-spacing: -0.02em;
}

/* 作者 */
.viewer-author {
  margin: 0 0 12px;
  color: #9f2d2b;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* 元数据行：班级 / 媒体 / 形式 */
.viewer-meta-row {
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meta-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.meta-label {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  font-weight: 400;
  color: #8a7a72;
  letter-spacing: 0.02em;
}

.meta-value {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a120e;
}

/* 入库时间 */
.viewer-entry-date {
  margin: 0 0 10px;
}

.viewer-entry-date .meta-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

/* 简介 */
#viewerDesc {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: #3d322d;
  text-align: justify;
}

/* 底部固定栏：标签 + 按钮 */
  background: rgba(253, 251, 247, 0.85);
}

/* 标签组（在内容区末尾，无分割线） */
#viewerTags {
  margin: 0;
}

.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.viewer-actions .button.primary,
.share-button {
  min-height: 46px;
  padding: 0 26px;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.share-button {
  border-color: rgba(67, 34, 20, 0.18);
  background: rgba(255, 251, 246, 0.78);
  color: var(--red-deep);
}

.share-status {
  min-height: 18px;
  margin: 0;
  color: var(--red-deep);
  font-size: 13px;
  line-height: 1.4;
}

/* === 右侧预览区 === */
.viewer-frame {
  min-height: 50vh;
  background: rgba(234, 217, 204, 0.78);
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.viewer-frame img,
.viewer-frame iframe {
  width: 100%;
  border: 0;
}

.viewer-frame iframe {
  height: 100%;
  min-height: 50vh;
}

.viewer-frame-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.viewer-frame-content img {
  width: 100%;
  height: auto;
  display: block;
}

.viewer-frame-content iframe {
  width: 100%;
  height: 100%;
  min-height: 50vh;
  border: 0;
}

/* 链接类作品缩略图全屏预览 */
.viewer-link-embed {
  width: 100%;
  height: 100%;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
}

.viewer-link-embed > img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  object-position: top center;
  display: block;
  min-height: 0;
}

.viewer-link-embed .vlp-open-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: var(--muted);
}

.viewer-link-embed .vlp-open-bar .button {
  flex: none;
  min-height: 36px;
  font-size: 14px;
  padding: 0 14px;
}

/* 链接类无缩略图时的占位 */
.viewer-link-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 40px;
}

.vlp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  color: var(--muted);
}

.vlp-inner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  max-width: 240px;
}

.vlp-inner .button {
  min-height: 44px;
  font-size: 15px;
}

/* 查看作品按钮样式覆盖 */
.viewer-meta .button.primary {
  align-self: flex-start;
}
/* 移动端 viewer 垂直堆叠 */
@media (max-width: 820px) {
  .viewer-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 92vh;
  }

  .viewer-meta {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .viewer-frame {
    min-height: 55vh;
  }
}

@media (max-width: 820px) and (min-width: 641px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}


/* Apple 风格按钮 hover 光追
   overflow:hidden 静态写在 CSS 里，避免 JS 动态添加时闪出方块 */
.button, .text-button, .search-submit,
.sb-item, .sb-parent-link, .sb-sub-item,
.nav-links a,
.news-item,
.dock-item {
  overflow: hidden;
}

.glow-target {
  position: relative;
}

.glow-target .glow-spot {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 252, 240, 0.44) 0%, rgba(255, 240, 210, 0.16) 45%, transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.glow-target:hover .glow-spot {
  opacity: 1;
}

/* 激活红底时用白色叠加 */
.sb-item.is-active .glow-spot,
.sb-parent.is-active .glow-spot {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.07) 50%, transparent 72%);
}

/* ===================== 移动端底部 Dock ===================== */
.mobile-dock {
  display: none;
}

@media (max-width: 900px) {
  .mobile-dock {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 10px) + 24px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 80;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 32px);
    max-width: 440px;
    padding: 6px 8px;
    background: rgba(28, 10, 4, 0.68);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 0.5px solid rgba(255, 246, 238, 0.18);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(6, 2, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .dock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: rgba(255, 246, 238, 0.45);
    font-size: 10px;
    font-family: -apple-system, "SF Pro Text", "Noto Serif SC", sans-serif;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s ease, background 0.18s ease;
  }

  .dock-item.is-active {
    color: #fff8ef;
    background: rgba(255, 246, 238, 0.13);
  }

  .dock-item svg {
    width: 22px;
    height: 22px;
  }

  .dock-label {
    white-space: nowrap;
  }

  body.has-sidebar {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 10px));
  }
}

/* ===================== 新闻报道页面 ===================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(52, 18, 7, 0.32);
}

.news-item .n-body {
  flex: 1;
  min-width: 0;
}

.news-item .n-title {
  margin: 0;
  font-family: "QingNiaoSong", "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.5;
}

.news-item .n-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}

.news-item .n-meta span::before {
  content: none;
}

.news-item .n-arrow {
  flex: none;
  width: 20px;
  height: 20px;
  color: rgba(140, 31, 30, 0.5);
}

@media (max-width: 640px) {
  /* 一行一个作品 */
  .work-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-card {
    grid-template-rows: 260px 1fr;
  }

  /* 标题图片放大到检索框宽度 */
  .hero-title-img {
    width: min(560px, 85vw);
  }

  /* 检索框和筛选框收窄，保留页边距 */
  .toolbar-shell {
    width: calc(100% - 32px);
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 8px;
  }

  .search-box input,
  .search-submit {
    min-height: 50px;
    height: 50px;
    font-size: 15px;
    border-radius: 999px;
  }

  .toolbar .search-submit {
    font-size: 20px;
  }

  .filters {
    gap: 6px;
  }

  .filters label {
    height: 42px;
    border-radius: 999px;
  }

  .filters span {
    font-size: 15px;
    left: 7px;
    right: 20px;
  }

  .filters label::after {
    right: 8px;
    width: 5px;
    height: 5px;
  }

  .news-item {
    padding: 14px 16px;
  }
  .news-item .n-title {
    font-size: 16px;
  }
}

/* 正文段落保持中等字重，标题/数字/按钮/标签保留各自的粗细层次 */
.section-heading p,
.about-section p,
.work-card p,
.stats-band span,
.class-card span,
.viewer-meta p {
  font-weight: 500;
}
