@font-face {
  font-family: "LiangPeiShengCuan";
  src: url("./梁培生小爨-简.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f7f5f0;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --surface: #ffffff;
  --surface-soft: #fcfbf8;
  --text: #181512;
  --text-soft: rgba(24, 21, 18, 0.78);
  --text-faint: rgba(24, 21, 18, 0.52);
  --border: rgba(24, 21, 18, 0.1);
  --border-strong: rgba(24, 21, 18, 0.18);
  --accent: #6b5844;
  --accent-soft: rgba(107, 88, 68, 0.1);
  --section-bg: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.9) 100%);
  --shadow-soft: 0 18px 50px rgba(39, 28, 18, 0.06);
  --shadow-card: 0 22px 70px rgba(39, 28, 18, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-full: 999px;
  --container: 1180px;
  --transition: 0.28s ease;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-reading: "Songti SC", "Source Han Serif SC", "Noto Serif SC", serif;
  --font-display: "LiangPeiShengCuan", "梁培生小爨简", "STKaiti", "Kaiti SC", "KaiTi",
    "Songti SC", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(107, 88, 68, 0.07), transparent 34%),
    linear-gradient(180deg, #f9f8f4 0%, #f4f1ea 100%);
  color: var(--text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

code {
  padding: 0.15em 0.45em;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  font-size: 0.92em;
}

.font-display,
.brand-mark,
.brand-name,
.hero-title,
.section-title,
.card-title,
#footerText {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(24, 21, 18, 0.08);
  background: rgba(249, 247, 242, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(24, 21, 18, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
  background: rgb(0, 0, 0);
  box-shadow: 0 8px 24px rgba(39, 28, 18, 0.05);
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--text);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-soft);
}

.nav a,
.mobile-nav a {
  position: relative;
  transition: color var(--transition);
}

.nav a::after,
.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: transform var(--transition), opacity var(--transition);
}

.nav a:hover,
.mobile-nav a:hover {
  color: var(--text);
}

.nav a:hover::after,
.mobile-nav a:hover::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(39, 28, 18, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: rgba(249, 247, 242, 0.96);
}

.mobile-nav {
  display: grid;
  gap: 2px;
  padding: 12px 0 18px;
}

.mobile-nav a {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-soft);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.16;
}

.hero::before {
  top: -120px;
  left: -110px;
  background: rgba(107, 88, 68, 0.18);
}

.hero::after {
  right: -120px;
  bottom: -130px;
  background: rgba(177, 154, 121, 0.14);
}

.hero-rings {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
}

.ring {
  position: absolute;
  left: 50%;
  border: 1px solid var(--text);
  border-radius: 50%;
  transform: translateX(-50%);
}

.ring-1 {
  top: 72px;
  width: 520px;
  height: 520px;
}

.ring-2 {
  top: 126px;
  width: 446px;
  height: 446px;
}

.ring-3 {
  top: 180px;
  width: 372px;
  height: 372px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 112px 0 124px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 21, 18, 0.11);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgb(255, 255, 255);
  background: rgb(0, 0, 0);
  box-shadow: 0 12px 30px rgba(39, 28, 18, 0.04);
  margin-bottom: 24px;
}

.hero-title {
  margin: 0;
  font-size: clamp(48px, 7.6vw, 92px);
  line-height: 1.04;
  font-weight: 400;
  color: #1e1813;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 780px;
  margin: 30px auto 0;
  font-family: var(--font-reading);
  font-size: 17px;
  line-height: 2.05;
  color: var(--text-soft);
  text-align: justify;
  text-indent: 2em;
  letter-spacing: 0.01em;
}

.hero-image {
  margin: 38px auto 0;
  max-width: 124px;
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.hero-seal {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(247,242,234,0.96) 100%);
}

.hero-seal span {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 140px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 14px 30px rgba(24, 21, 18, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(24, 21, 18, 0.16);
}

.btn-secondary {
  border: 1px solid rgba(24, 21, 18, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 21, 18, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

.intro-section {
  border-top: 1px solid rgba(24, 21, 18, 0.08);
  background: var(--section-bg);
}

.intro-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  padding: 92px 0 108px;
  align-items: start;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.section-title {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 400;
  color: var(--text);
}

.subsection-title {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.24;
  font-weight: 400;
  color: var(--text);
}

.intro-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: var(--radius-xl);
  padding: 42px;
  box-shadow: var(--shadow-soft);
}

.intro-stack {
  display: grid;
  gap: 22px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.editor-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: calc(var(--radius-xl) - 6px);
  padding: 26px 28px;
  box-shadow: 0 10px 28px rgba(39, 28, 18, 0.035);
}

.editor-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.editor-role::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.58;
}

.editor-name {
  margin: 16px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--text);
}

.editor-bio {
  margin: 0;
  font-family: var(--font-reading);
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-soft);
}

.editor-image-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.editor-image {
  display: block;
  width: min(10%, 560px);
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card-dots {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.card-dots span {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(24, 21, 18, 0.26);
  border-radius: 50%;
  display: inline-block;
}

.intro-text {
  margin: 0;
  white-space: pre-line;
  font-family: var(--font-reading);
  font-size: 17px;
  line-height: 2;
  color: var(--text-soft);
}

.content-section {
  padding: 92px 0 116px;
}

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

.content-note {
  max-width: 500px;
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-faint);
}

.cards-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.content-card {
  display: block;
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 100%);
  padding: 26px;
  box-shadow: 0 8px 24px rgba(39, 28, 18, 0.03);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 21, 18, 0.16);
  box-shadow: var(--shadow-card);
  background: #fff;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-index {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(24, 21, 18, 0.34);
}

.card-tag {
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-faint);
  background: var(--surface-soft);
  white-space: nowrap;
  transition: all var(--transition);
}

.content-card:hover .card-tag {
  border-color: rgba(24, 21, 18, 0.16);
  color: var(--text);
}

.card-title {
  margin: 34px 0 0;
  font-size: 28px;
  line-height: 1.32;
  font-weight: 400;
  color: #231b15;
}

.card-desc {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-soft);
}

.card-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(24, 21, 18, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(24, 21, 18, 0.72);
}

.card-arrow {
  transition: transform var(--transition);
}

.content-card:hover .card-arrow {
  transform: translateX(4px);
}

.nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--text);
}

.page-hero .hero-inner {
  padding: 104px 0 112px;
}

.page-lead {
  max-width: 780px;
  margin: 28px auto 0;
  font-family: var(--font-reading);
  font-size: 17px;
  line-height: 2;
  color: var(--text-soft);
  text-align: justify;
}

.scholars-section {
  border-top: 1px solid rgba(24, 21, 18, 0.08);
}

.scholars-layout,
.literature-layout {
  align-items: start;
}

.page-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-faint);
}

.scholar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scholar-card {
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 100%);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(39, 28, 18, 0.04);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.scholar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 21, 18, 0.16);
  box-shadow: var(--shadow-card);
}

.scholar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scholar-name {
  margin: 28px 0 10px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 400;
  color: #231b15;
}

.scholar-meta {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-faint);
}

.scholar-bio {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-soft);
  font-family: var(--font-reading);
}

.scholar-links {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(24, 21, 18, 0.08);
}

.scholar-link {
  min-width: 128px;
}

.literature-section {
  border-top: 1px solid rgba(24, 21, 18, 0.08);
}

.literature-note-card {
  margin-top: 26px;
}

.section-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.status-note,
.list-count {
  padding: 10px 16px;
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-faint);
}

.literature-manager,
.literature-list-panel {
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.literature-form {
  margin-top: 24px;
}

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

.field-group {
  display: grid;
  gap: 8px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.field-group span {
  font-size: 13px;
  color: var(--text-faint);
}

.field-group input,
.field-group textarea,
.search-wrap input {
  width: 100%;
  border: 1px solid rgba(24, 21, 18, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.field-group textarea {
  min-height: 120px;
  resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus,
.search-wrap input:focus {
  border-color: rgba(24, 21, 18, 0.28);
  box-shadow: 0 0 0 4px rgba(24, 21, 18, 0.06);
  background: #fff;
}

.form-actions,
.literature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-actions {
  margin-top: 24px;
}

.database-toolbar {
  margin-top: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.search-wrap {
  flex: 1 1 340px;
  display: grid;
  gap: 8px;
}

.search-wrap span {
  font-size: 13px;
  color: var(--text-faint);
}

.toolbar-btn {
  min-width: auto;
  min-height: 46px;
  padding: 0 18px;
}

.danger-btn {
  border-color: rgba(122, 43, 43, 0.14);
  color: #7a2b2b;
}

.danger-btn:hover {
  border-color: rgba(122, 43, 43, 0.28);
  background: rgba(122, 43, 43, 0.04);
}

.literature-list {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.literature-item {
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 100%);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(39, 28, 18, 0.035);
}

.literature-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.literature-citation {
  margin: 18px 0 0;
  font-family: var(--font-reading);
  font-size: 22px;
  line-height: 1.6;
  font-weight: 500;
  color: #231b15;
}

.literature-author {
  color: var(--text);
}

.literature-meta-line {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-faint);
}

.literature-note {
  margin: 16px 0 0;
  font-family: var(--font-reading);
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-soft);
  white-space: pre-line;
}

.literature-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(24, 21, 18, 0.08);
}

.empty-state {
  border: 1px dashed rgba(24, 21, 18, 0.14);
  border-radius: var(--radius-xl);
  padding: 42px 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.empty-state h4 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  color: #231b15;
}

.empty-state p {
  margin: 14px auto 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-faint);
}

.site-footer {
  border-top: 1px solid rgba(24, 21, 18, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.footer-inner {
  padding: 36px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-faint);
}

.footer-left {
  display: grid;
  gap: 8px;
}

#footerText {
  font-size: 24px;
  color: var(--text);
}

.footer-sub {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.footer-mark {
  letter-spacing: 0.18em;
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .editor-grid,
  .scholar-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.16em;
  }

  .hero-inner {
    padding: 78px 0 92px;
  }

  .hero-title {
    font-size: clamp(42px, 14vw, 72px);
  }

  .hero-subtitle,
  .intro-text,
  .page-lead {
    font-size: 15px;
    line-height: 1.95;
  }

  .hero-image {
    max-width: 106px;
  }

  .intro-card,
  .literature-manager,
  .literature-list-panel {
    padding: 28px;
  }

  .editor-card,
  .scholar-card,
  .literature-item {
    padding: 22px;
  }

  .editor-name {
    font-size: 21px;
  }

  .content-section,
  .intro-grid {
    padding-top: 72px;
    padding-bottom: 84px;
  }

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

  .card-title {
    font-size: 25px;
  }

  .scholar-name,
  .literature-citation {
    font-size: 26px;
  }

  .ring-1 {
    width: 390px;
    height: 390px;
  }

  .ring-2 {
    top: 108px;
    width: 328px;
    height: 328px;
  }

  .ring-3 {
    top: 142px;
    width: 272px;
    height: 272px;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .database-toolbar {
    align-items: stretch;
  }

  .toolbar-btn,
  .form-actions .btn {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

[data-admin-only][hidden],
[data-admin-guest][hidden] {
  display: none !important;
}

.admin-auth-panel {
  margin-top: 10px;
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  padding: 5px;
  box-shadow: var(--shadow-soft);
}

.admin-state-badge {
  padding: 0px 0px;
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0px;
  line-height: 1.5;
  color: var(--text-faint);
}

.admin-state-badge.is-admin {
  color: #0000007f;
  background: #1e1813;
  border-color: #1e1813;
}

.admin-notice {
  margin: 0px 0 0;
  font-size: 4px;
  line-height: 1.85;
  color: var(--text-soft);
}

.admin-login-form {
  margin-top: 0px;
}

.compact-actions {
  margin-top: 8px;
}

.admin-session {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(24, 21, 18, 0.04);
  border: 1px solid rgba(24, 21, 18, 0.08);
}

.admin-session-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-soft);
}

.admin-locked-card {
  margin-top: 0px;
  border: 0px dashed rgba(24, 21, 18, 0.14);
  border-radius: 0px;
  padding: 0px;
  background: rgba(24, 21, 18, 0.03);
}

.admin-locked-card h4 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  color: #231b15;
}

.admin-locked-card p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-faint);
}

.danger-btn {
  border-color: rgba(135, 46, 46, 0.22);
  color: #7a1d1d;
}

.danger-btn:hover {
  border-color: rgba(135, 46, 46, 0.34);
  background: rgba(135, 46, 46, 0.06);
}

.scholar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .admin-auth-panel {
    padding: 28px;
  }

  .admin-state-badge {
    width: 100%;
    text-align: center;
  }
}
