:root {
  --accent: #e8590c;
  --accent-hover: #ce4908;
  --accent-text: #b94005;
  --accent-soft: #fff2e9;
  --accent-border: #f5d8c6;
  --bg: #faf9f8;
  --surface: #fff;
  --text: #222;
  --muted: #75716e;
  --line: #e8e4e1;
  --subtle: #f3f0ee;
  --danger: #c52b27;
  --danger-soft: #fff0ef;
  --blue: #275cb9;
  --blue-soft: #edf2ff;
  --green: #357753;
  --shadow: 0 10px 32px #30261b15;
  --radius: 8px;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  color: var(--text);
  background: var(--bg);
  font: 15px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a,
button {
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  font-weight: 750;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 650;
}
i.ph {
  font-size: 19px;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: -0.12em;
}
a,
button {
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
a:hover {
  color: var(--accent-text);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-border);
  border-color: var(--accent);
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
}
.required {
  color: var(--accent-text);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 550;
  white-space: nowrap;
}
.button:hover {
  background: var(--subtle);
  color: var(--text);
  border-color: #d5ceca;
}
.button.primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--surface);
}
.button.danger:hover {
  filter: brightness(0.9);
}
.button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 5px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--subtle);
  color: var(--text);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-text);
  font-size: 12px;
  padding: 5px 0;
  white-space: nowrap;
}
.text-button:hover {
  text-decoration: underline;
}
.danger-text {
  color: var(--danger) !important;
}
.count {
  font-size: 11px;
  line-height: 1.6;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--subtle);
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  font: 11px/1.4 var(--mono);
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-gray {
  background: var(--subtle);
  color: #69615b;
}
.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.series-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 7px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 11px;
  line-height: 1.4;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.series-tag:hover {
  background: #ffe5d6;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand:hover {
  color: var(--text);
}
.brand-mark {
  background: var(--accent);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 6px;
}
.brand-mark i.ph {
  font-size: 20px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 3px;
}
.public-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.public-header {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.public-header-inner {
  max-width: 880px;
  padding: 0 16px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.public-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}
.public-header nav > a.active {
  color: var(--accent-text);
}
.account-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  background: var(--bg);
  color: var(--muted);
}
.account-button:hover {
  border-color: var(--accent-border);
  color: var(--accent-text);
}
.public-main {
  flex: 1;
}
.public-container {
  max-width: 880px;
  margin: auto;
  padding: 48px 16px 40px;
}
.home-intro {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  position: relative;
}
.home-intro h1 {
  font-size: 30px;
  letter-spacing: -0.025em;
}
.title-period {
  color: var(--accent);
  margin-left: 4px;
}
.home-intro > p {
  color: var(--muted);
  font-size: 14px;
  max-width: 660px;
  line-height: 1.9;
  margin-top: 12px;
}
.intro-ornament {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.intro-ornament span {
  width: 18px;
  height: 3px;
  background: var(--accent);
}
.intro-ornament span:nth-child(2) {
  opacity: 0.45;
  width: 10px;
}
.intro-ornament span:nth-child(3) {
  opacity: 0.18;
  width: 6px;
}
.intro-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 21px;
  font-size: 11px;
  color: var(--muted);
}
.intro-meta > span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.intro-meta i.ph {
  font-size: 14px;
}
.intro-count {
  font-family: var(--mono);
}
.intro-count > span {
  color: #c3bab3;
  margin: 0 6px;
}
.article-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.article-scope a {
  padding: 8px 0 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.article-scope a[aria-current="page"] {
  color: var(--accent-text);
  border-color: var(--accent);
  font-weight: 600;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading > .small {
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-heading .ph {
  font-size: 15px;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.series-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 13px;
  min-width: 0;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.series-card:hover {
  transform: translateY(-2px);
  border-color: #e8b595;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}
.series-code {
  font: 10px/1.6 var(--mono);
  padding: 2px 5px;
  letter-spacing: 0.015em;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-top > .ph {
  color: #c99c83;
  font-size: 17px;
}
.series-card h3 {
  font-size: 15px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.series-card > p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 7px;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 45px;
}
.card-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.card-meta b {
  font-family: var(--mono);
  font-weight: 400;
}
.articles-section {
  margin-top: 40px;
}
.article-list {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}
.article-row:last-child {
  border-bottom: 0;
}
.article-row:hover {
  background: #fdfbf9;
}
.article-index {
  font: 10px var(--mono);
  color: #aaa09a;
}
.article-title {
  font-size: 13px;
  min-width: 0;
  line-height: 1.7;
}
.article-row > .series-tag {
  flex-shrink: 0;
  max-width: 185px;
  font-size: 10px;
}
.article-row time {
  margin-left: auto;
  color: var(--muted);
  font: 10px var(--mono);
  white-space: nowrap;
}
.article-arrow {
  font-size: 13px !important;
  color: #b3a69d;
}
.end-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #948880;
  font-size: 10px;
  margin: 22px 0 0;
}
.end-note > span {
  height: 1px;
  width: 24px;
  background: var(--line);
}
.load-more {
  text-align: center;
  margin-top: 24px;
}
.load-more p {
  font: 10px var(--mono);
  color: var(--muted);
  margin-top: 12px;
}
.home-bottom-note {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 45px;
  color: var(--muted);
  font-size: 11px;
}
.home-bottom-note > .ph {
  color: var(--accent-text);
  font-size: 17px;
}
.home-bottom-note a {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--accent-text);
}
.home-bottom-note a > .ph {
  font-size: 14px;
}
.public-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 26px 16px;
  color: var(--muted);
  font-size: 11px;
}
.footer-dot {
  color: #c6bdb7;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs .ph {
  font-size: 10px;
}
.breadcrumbs > span {
  color: var(--text);
}
.series-detail {
  padding-top: 30px;
}
.series-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px;
  margin-bottom: 36px;
  gap: 20px;
}
.series-hero h1 {
  font-size: 27px;
  margin: 14px 0 12px;
}
.series-hero p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
}
.series-detail-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  margin: 24px 0;
}
.series-detail-meta > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.series-detail-meta .ph {
  font-size: 14px;
}
.series-hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--accent-soft);
  border-radius: 5px;
  color: var(--accent-text);
  padding: 16px;
}
.series-hero-art > .ph {
  font-size: 54px;
  color: #d9804c;
}
.series-hero-art > span {
  font: 11px var(--mono);
  word-break: break-all;
  text-align: center;
}
.series-hero-art > small {
  font-size: 9px;
  color: #a88772;
}
.chapter-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.chapter-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}
.chapter-row:last-child {
  border-bottom: 0;
}
.chapter-row:hover {
  background: var(--subtle);
}
.chapter-index {
  font: 23px var(--mono);
  color: #b8b0aa;
}
.chapter-row h3 {
  font-size: 13px;
  font-weight: 550;
}
.chapter-row p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.chapter-row time {
  font: 10px var(--mono);
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.chapter-row > .ph {
  font-size: 15px;
  color: #b5aaa2;
}
.back-home {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 26px;
  color: var(--muted);
}
.not-found {
  min-height: calc(100dvh - 145px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
}
.not-found-number {
  font: 650 132px/1 var(--font);
  letter-spacing: -0.08em;
  color: #e4dcd6;
  margin-bottom: 22px;
}
.not-found-number > span {
  color: var(--accent);
}
.not-found h1 {
  font-size: 24px;
}
.not-found p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 16px 0 26px;
}
.not-found-note {
  font-size: 10px;
  color: #a99d95;
  margin-top: 45px;
}
.sidebar {
  width: 200px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 40;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  height: 64px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.sidebar nav {
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar nav > a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  font-size: 13px;
  border-radius: 5px;
  color: #665e58;
}
.sidebar nav > a:hover {
  background: var(--bg);
}
.sidebar nav > a.active {
  color: var(--accent-text);
  font-weight: 650;
  background: var(--accent-soft);
}
.sidebar nav > a.active > .ph {
  color: var(--accent);
}
.nav-end {
  margin-left: auto;
  font-size: 14px !important;
  color: #aaa09a;
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 10px 3px;
}
.sidebar-logout {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 15px 20px;
}
.sidebar-logout button {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  padding: 0;
}
.sidebar-logout button:hover {
  color: var(--danger);
}
.sidebar-note {
  padding: 0 20px 17px;
  font-size: 9px;
  color: #aaa09a;
}
.admin-topbar {
  height: 64px;
  position: absolute;
  inset: 0 0 auto 200px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.topbar-label {
  font-size: 11px;
  color: #a29993;
  letter-spacing: 0.06em;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.avatar {
  height: 29px;
  width: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 6px;
}
.avatar > .ph {
  font-size: 17px;
}
.mobile-menu {
  display: none;
}
.admin-main {
  max-width: 1164px;
  padding: 36px 32px 48px;
  margin: 64px auto 0;
  margin-left: 200px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.heading-line {
  display: flex;
  align-items: center;
  gap: 11px;
}
.heading-line > .count {
  font-size: 11px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 10px;
  min-width: 0;
  flex: 1;
}
.search-field > .ph {
  font-size: 17px;
  color: var(--muted);
}
.search-field input {
  border: 0;
  background: none;
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  font-size: 14px;
  outline: none;
}
.search-field:focus-within {
  border-color: var(--accent);
}
.search-field a {
  display: flex;
}
.filter-bar select {
  width: 175px;
  padding: 8px 10px;
  font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 0;
}
.filter-submit {
  padding: 7px 11px;
  font-size: 12px;
}
.type-tabs {
  display: flex;
  background: var(--subtle);
  padding: 3px;
  border-radius: 5px;
  font-size: 13px;
  gap: 2px;
  white-space: nowrap;
}
.type-tabs a {
  padding: 5px 9px;
  border-radius: 3px;
}
.type-tabs span {
  color: #a99b91;
  font-size: 12px;
  margin-left: 3px;
}
.type-tabs .active {
  background: var(--surface);
  color: var(--accent-text);
  box-shadow: 0 1px 3px #33221108;
}
.data-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: visible;
}
.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
}
.bulk-select-all,
.row-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  cursor: pointer;
}
.row-select {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 32px;
  justify-content: center;
}
.bulk-select-all input,
.row-select input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.bulk-count,
.bulk-hint {
  font-size: 13px;
  color: var(--muted);
}
.bulk-hint {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--line);
}
.bulk-delete {
  margin-inline-start: auto;
  color: var(--danger);
  border-color: var(--line);
  background: var(--surface);
}
.bulk-delete:hover:not(:disabled) {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}
.bulk-delete:disabled {
  color: var(--muted);
  background: var(--bg);
  opacity: 0.65;
}
[data-bulk] .data-table td:first-child {
  position: relative;
  padding-inline-start: 56px;
}
.data-table tr.is-selected:hover {
  background: var(--accent-soft);
}
.data-table tr.is-selected {
  background: var(--accent-soft);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.data-table th {
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 550;
  color: var(--muted);
  text-align: left;
  padding: 14px 20px;
  background: var(--subtle);
  border-bottom: 1px solid var(--line);
}
.data-table th:first-child {
  border-top-left-radius: 7px;
}
.data-table th:last-child {
  border-top-right-radius: 7px;
}
.data-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #f0ece9;
  vertical-align: middle;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fdfbf9;
}
.pages-table th:first-child {
  width: 45%;
}
.pages-table th:nth-child(2) {
  width: 23%;
}
.pages-table th:nth-child(3) {
  width: 10%;
}
.pages-table th:nth-child(4) {
  width: 15%;
}
.pages-table th:last-child {
  width: 7%;
}
.table-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}
.table-slug {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table .series-tag {
  font-size: 12px;
}
.data-table time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.align-right {
  text-align: right !important;
}
.row-actions {
  text-align: right;
  position: relative;
}
.action-menu {
  display: inline-block;
  text-align: left;
}
.action-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted);
}
.action-menu summary::-webkit-details-marker {
  display: none;
}
.action-menu summary:hover,
.action-menu[open] summary {
  background: var(--subtle);
}
.action-menu summary > .ph {
  font-size: 22px;
}
.action-dropdown {
  position: absolute;
  right: 15px;
  top: calc(50% + 12px);
  z-index: 50;
  width: 145px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.action-dropdown > a,
.action-dropdown > button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border-radius: 3px;
  padding: 8px;
  font-size: 11px;
  white-space: nowrap;
}
.action-dropdown .ph {
  font-size: 15px;
}
.action-dropdown > a:hover,
.action-dropdown > button:hover {
  background: var(--bg);
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7f5f3;
  border-top: 1px solid var(--line);
  padding: 13px 17px;
  border-radius: 0 0 7px 7px;
  font-size: 13px;
  color: var(--muted);
}
.table-pagination nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  height: 29px;
  border-radius: 4px;
  font-size: 11px;
}
.pagination-number.active {
  background: var(--accent);
  color: var(--surface);
}
.workspace-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  color: #9c9086;
  margin-top: 24px;
}
.workspace-note > .ph {
  font-size: 14px;
  margin-top: 2px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  text-align: center;
  min-height: 280px;
}
.empty-icon {
  color: #c5b5a9;
  background: var(--subtle);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.empty-icon > .ph {
  font-size: 28px;
}
.empty-state h3 {
  font-size: 16px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 20px;
}
.empty-state > .button {
  margin-top: 12px;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 13px;
  width: fit-content;
}
.back-link > .ph {
  font-size: 13px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 22px;
}
.editor-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.editor-panel {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}
.panel-heading h2 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-heading h2 > .ph {
  color: var(--accent-text);
  font-size: 18px;
}
.panel-heading .small {
  font-size: 10px;
}
.editor-panel label,
dialog label,
.login-card label {
  font-size: 12px;
  display: block;
  font-weight: 500;
  margin: 19px 0 7px;
}
.editor-panel label:first-of-type {
  margin-top: 0;
}
.label-en {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.editor-panel input:not([type="file"]),
.editor-panel select,
.editor-panel textarea,
dialog input:not([type="checkbox"], [type="radio"]),
dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fcfbfa;
  padding: 10px 11px;
  font-size: 12px;
  min-width: 0;
  line-height: 1.65;
}
.editor-panel textarea {
  resize: vertical;
  min-height: 110px;
}
.editor-panel select {
  appearance: auto;
}
.input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fcfbfa;
  border-radius: 5px;
  overflow: hidden;
}
.input-prefix > span {
  font: 11px var(--mono);
  padding: 0 0 0 12px;
  color: var(--muted);
}
.input-prefix > input {
  border: 0 !important;
  background: none !important;
  padding-left: 6px !important;
  outline: none;
}
.input-prefix:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--accent-border);
}
.field-help {
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
  line-height: 1.9;
}
.field-help .mono {
  display: block;
  font-size: 10px;
  color: var(--accent-text);
  overflow-wrap: anywhere;
}
.field-status {
  float: right;
  font-size: 10px;
  color: var(--green);
  font-weight: 400;
}
.field-status.invalid {
  color: var(--danger);
}
.panel-divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.upload-panel .panel-heading {
  margin-bottom: 18px;
}
.dropzone {
  border: 1px dashed #d7c8bc;
  border-radius: 6px;
  background: #fdfaf7;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 6px;
  padding: 33px 14px !important;
  cursor: pointer;
  transition:
    background 0.15s,
    border 0.15s;
}
.dropzone:hover,
.dropzone.dragover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.upload-icon {
  height: 46px;
  width: 46px;
  background: var(--accent-soft);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.upload-icon > .ph {
  font-size: 24px;
}
.dropzone strong {
  font-size: 13px;
  font-weight: 550;
}
.dropzone > span:not(.upload-icon) {
  font-size: 11px;
  color: var(--muted);
}
.dropzone b {
  color: var(--accent-text);
  font-weight: 500;
}
.dropzone small {
  font: 10px var(--mono);
  color: #a39388;
  margin-top: 13px;
}
.upload-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin: 18px 0 7px;
}
progress {
  accent-color: var(--accent);
  width: 100%;
  height: 5px;
  display: block;
}
.upload-result {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f8f3;
  border: 1px solid #dfebdf;
  border-radius: 5px;
  padding: 12px;
  margin-top: 15px;
  color: var(--green);
  min-width: 0;
}
.upload-result > .ph {
  font-size: 22px;
}
.upload-result strong {
  font-size: 11px;
  display: block;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.upload-result span {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  margin-top: 3px;
}
.editor-help {
  padding: 24px;
  background: var(--subtle);
  border-radius: var(--radius);
  align-self: start;
  color: var(--muted);
}
.editor-help > .ph {
  font-size: 21px;
  color: #b59e8c;
  display: block;
  margin-bottom: 12px;
}
.editor-help h3 {
  font-size: 13px;
  color: #5e5146;
  margin-bottom: 12px;
}
.editor-help p {
  font-size: 11px;
  line-height: 1.95;
  margin-top: 12px;
}
.editor-help p > .ph {
  font-size: 14px;
  vertical-align: -2px;
  margin-right: 3px;
}
.editor-help code {
  font: 10px var(--mono);
  background: #eae4de;
  padding: 2px 4px;
  border-radius: 2px;
}
.help-divider {
  height: 1px;
  background: #e2dbd5;
  margin: 20px 0;
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 330px;
  overflow: auto;
}
.file-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 10px/1.6 var(--mono);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.file-list li:last-child {
  border: 0;
}
.file-list .ph {
  font-size: 15px;
  color: var(--blue);
}
.file-list li > span {
  overflow-wrap: anywhere;
}
.file-list small {
  margin-left: auto;
  white-space: nowrap;
  font-size: 9px;
  color: var(--muted);
}
.missing-warning {
  margin-top: 14px;
  padding: 12px;
  background: #fff6e9;
  border-radius: 5px;
  font-size: 10px;
  color: #95600f;
}
.missing-warning strong {
  display: block;
  margin-bottom: 5px;
}
.missing-warning p {
  overflow-wrap: anywhere;
}
.editor-bottom {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.editor-bottom > div {
  margin-right: auto;
}
.editor-bottom > .small {
  font-size: 10px;
}
.series-table th:first-child {
  width: 36%;
}
.series-table th:nth-child(2) {
  width: 27%;
}
.series-table th:nth-child(3) {
  width: 12%;
}
.series-table th:nth-child(4) {
  width: 15%;
}
.series-table th:last-child {
  width: 10%;
}
.series-table-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}
.series-editor-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.series-help .series-dates {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font: 9px var(--mono);
  color: #a39183;
}
.backup-summary {
  margin-bottom: 28px;
}
.backup-summary p {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
}
.backup-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.backup-row:last-child {
  border-bottom: 0;
}
.backup-row > div {
  min-width: 0;
}
.backup-row h3 {
  font-size: 15px;
}
.backup-row p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.backup-row small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.backup-row .button {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 639px) {
  .backup-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }
}
.password-panel {
  max-width: 560px;
}
.cover-preview {
  margin-bottom: 16px;
}
.cover-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
}
.cover-actions .button {
  white-space: nowrap;
}
#cover-dialog {
  width: min(920px, calc(100vw - 32px));
}
.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
  max-height: 55dvh;
  overflow: auto;
  padding: 4px;
}
.cover-choice {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  text-align: left;
  background: var(--surface);
}
.cover-choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cover-choice:hover {
  border-color: var(--accent);
}
.cover-choice img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
}
.cover-choice span {
  display: block;
  padding: 6px 2px;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.series-card > .series-card-cover {
  display: block;
  width: calc(100% + 36px);
  max-width: none;
  margin: -18px -18px 16px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.series-hero-cover {
  display: block;
  width: 260px;
  max-width: 40%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  align-self: center;
}
@media (max-width: 639px) {
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .cover-actions .button {
    font-size: 12px;
  }
  .series-hero-cover {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
  }
  .password-panel input {
    font-size: 16px !important;
  }
}
.series-upload-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.series-upload-area strong {
  font-size: 14px;
}
.series-upload-area p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.series-upload-results {
  margin: 8px 0 16px;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.series-upload-results:empty {
  display: none;
}
.pending-upload .order-title::after {
  content: "待发布";
  margin-left: 8px;
  color: var(--accent-text);
  font-size: 11px;
}
.order-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 11px 9px;
  border-radius: 5px;
  margin-bottom: 8px;
  min-width: 0;
}
.drag-handle {
  cursor: grab;
  width: 20px;
  color: #c2a892;
  touch-action: none;
}
.drag-handle:active {
  cursor: grabbing;
}
.order-index {
  font: 12px var(--mono);
  color: #a3968b;
}
.order-title {
  font-size: 11px;
  line-height: 1.7;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-row > .badge {
  font-size: 9px;
}
.order-controls {
  display: flex;
  align-items: center;
  gap: 0;
}
.order-controls .icon-button {
  width: 22px;
  height: 26px;
}
.order-controls .ph {
  font-size: 13px;
}
.order-controls .text-button {
  font-size: 10px;
  color: var(--muted);
  margin-left: 6px;
}
.order-empty {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 30px 12px;
}
.sortable-ghost {
  opacity: 0.35;
  background: var(--accent-soft);
}
.sortable-chosen {
  border-color: var(--accent-border);
}
.inline-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 12px;
  background: var(--subtle);
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
}
.inline-note .ph {
  font-size: 14px;
  color: var(--accent-text);
  margin-top: 2px;
}
.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: var(--danger-soft);
  border: 1px solid #f1dcd9;
  border-radius: var(--radius);
  padding: 22px 25px;
  margin-top: 25px;
}
.danger-zone h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--danger);
}
.danger-zone p {
  font-size: 10px;
  color: #9f6b64;
  margin-top: 6px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 27px;
  width: min(480px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 24px 80px #24190f26;
  color: var(--text);
}
dialog::backdrop {
  background: #25201b66;
  backdrop-filter: blur(3px);
}
.dialog-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dialog-title h2 {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
}
.dialog-title h2 > .ph {
  color: var(--accent-text);
}
.dialog-title > .icon-button {
  margin-left: auto;
}
.dialog-danger-icon {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 7px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 25px;
}
dialog p {
  font-size: 12px;
  line-height: 1.9;
}
dialog .radio-option {
  font-size: 14px;
  background: var(--bg);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
dialog .radio-option span {
  min-width: 0;
}
dialog .radio-option strong,
dialog .radio-option small {
  display: block;
}
dialog .radio-option small {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
}
dialog .radio-option:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
dialog .radio-option:has(input[value="delete"]) strong {
  color: var(--danger);
}
#confirm-dialog {
  width: min(540px, calc(100vw - 32px));
}
#confirm-message {
  font-size: 14px;
  color: var(--muted);
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent);
}
.available-pages {
  max-height: 340px;
  overflow: auto;
  margin-top: 15px;
}
.available-page {
  display: flex !important;
  align-items: center;
  gap: 9px;
  font-size: 12px !important;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin: 0 !important;
  cursor: pointer;
}
.available-page > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.available-page small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.available-page .badge {
  font-size: 9px;
}
#toast {
  position: fixed;
  right: 24px;
  top: 22px;
  z-index: 2147483640;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--green);
  border: 1px solid #dce6da;
  border-radius: 7px;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100vw - 32px);
}
#toast.visible {
  opacity: 1;
  transform: translateY(0);
}
#toast.error {
  color: var(--danger);
  border-color: #efc9c4;
}
.login-body {
  min-height: 100dvh;
}
.login-main {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.login-wrap {
  width: min(430px, 100%);
}
.login-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 17px;
}
.login-back > .ph {
  font-size: 14px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 35px;
  box-shadow: 0 4px 16px #30201005;
}
.login-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  height: 43px;
  width: 43px;
  border-radius: 9px;
  margin-bottom: 19px;
}
.login-symbol > .ph {
  font-size: 25px;
}
.login-card h1 {
  font-size: 24px;
}
.login-card > p {
  font-size: 12px;
  margin-top: 7px;
}
.login-card form {
  margin-top: 30px;
}
.password-input {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  padding: 4px 8px 4px 12px;
}
.password-input:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--accent-border);
}
.password-input > .ph {
  font-size: 17px;
  color: #a38f80;
}
.password-input input {
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 12px;
}
.password-input button > .ph {
  font-size: 17px;
}
.login-submit {
  width: 100%;
  margin-top: 22px;
  height: 41px;
}
.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: #9b897a;
  padding-top: 22px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.login-security > .ph {
  font-size: 14px;
}
.login-footer {
  font-size: 10px;
  color: #a8998c;
  text-align: center;
  margin-top: 23px;
}
.form-error {
  font-size: 11px;
  padding: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 5px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.form-error > .ph {
  font-size: 15px;
  margin-top: 2px;
}
@media (min-width: 1564px) {
  .admin-main {
    margin-left: calc(200px + (100vw - 1564px) / 2);
  }
}
@media (max-width: 1100px) {
  .admin-main {
    padding: 28px 22px;
  }
  .admin-topbar {
    padding: 0 22px;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-bar .search-field {
    flex-basis: 40%;
  }
  .filter-bar select {
    width: 160px;
  }
  .type-tabs {
    margin-left: auto;
  }
  .editor-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .editor-panel {
    padding: 20px;
  }
  .series-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .series-help {
    display: none;
  }
  .pages-table th:first-child {
    width: 42%;
  }
  .pages-table th:nth-child(2) {
    width: 22%;
  }
  .pages-table th:nth-child(4) {
    width: 18%;
  }
  .data-table th,
  .data-table td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .editor-bottom > .small {
    display: none;
  }
}
@media (max-width: 767px) {
  .public-container {
    padding-top: 32px;
  }
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-row > .series-tag {
    display: none;
  }
  .sidebar {
    width: 180px;
  }
  .admin-main {
    margin-left: 180px;
    padding: 24px 18px;
  }
  .admin-topbar {
    left: 180px;
  }
  .sidebar-brand {
    padding: 15px;
  }
  .sidebar nav {
    padding-left: 8px;
    padding-right: 8px;
  }
  .filter-bar .search-field {
    flex-basis: 100%;
  }
  .filter-bar select {
    flex: 1;
  }
  .type-tabs {
    width: 100%;
    margin: 0;
    justify-content: center;
  }
  .type-tabs a {
    flex: 1;
    text-align: center;
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    max-width: 290px;
    font-size: 11px;
  }
  .heading-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .editor-column {
    gap: 16px;
  }
  .editor-grid > .editor-column:last-child {
    grid-row: 1;
  }
  .page-heading .button {
    font-size: 11px;
    padding: 7px 10px;
  }
  .series-table th:nth-child(4),
  .series-table td:nth-child(4) {
    display: none;
  }
  .series-table th:first-child {
    width: 40%;
  }
  .series-table th:nth-child(2) {
    width: 30%;
  }
  .series-table th:last-child {
    width: 15%;
  }
  .order-row > .badge {
    display: none;
  }
  .series-hero {
    padding: 24px;
    grid-template-columns: minmax(0, 1fr) 140px;
  }
  .series-hero h1 {
    font-size: 24px;
  }
  .card-meta {
    font-size: 9px;
  }
}
@media (max-width: 639px) {
  .public-header {
    height: 56px;
  }
  .public-header nav {
    gap: 20px;
    font-size: 12px;
  }
  .public-header .brand {
    font-size: 16px;
  }
  .brand-mark {
    height: 27px;
    width: 27px;
  }
  .public-container {
    padding: 28px 20px 30px;
  }
  .home-intro {
    padding-bottom: 23px;
    margin-bottom: 26px;
  }
  .home-intro h1 {
    font-size: 25px;
  }
  .home-intro > p {
    font-size: 12px;
    line-height: 1.9;
  }
  .intro-meta {
    font-size: 9px;
    align-items: flex-start;
    gap: 8px;
  }
  .intro-meta > span:first-child {
    font-size: 9px;
  }
  .intro-count {
    font-size: 9px;
    white-space: nowrap;
  }
  .intro-count > span {
    margin: 0 2px;
  }
  .intro-meta .ph {
    font-size: 12px;
  }
  .series-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .series-card {
    padding: 17px 18px 12px;
  }
  .series-card > p {
    min-height: 0;
    margin-bottom: 12px;
    font-size: 12px;
  }
  .series-card h3 {
    font-size: 16px;
  }
  .card-top {
    margin-bottom: 8px;
  }
  .card-meta {
    font-size: 10px;
  }
  .series-code {
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading > .small {
    font-size: 10px;
  }
  .articles-section {
    margin-top: 30px;
  }
  .article-row {
    padding: 15px 12px;
    gap: 9px;
  }
  .article-title {
    font-size: 12px;
  }
  .article-row time {
    font-size: 9px;
  }
  .article-arrow {
    display: none;
  }
  .article-index {
    font-size: 9px;
  }
  .home-bottom-note {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
    margin-top: 32px;
  }
  .home-bottom-note a {
    font-size: 10px;
  }
  .public-footer {
    font-size: 10px;
    padding: 23px 16px;
    gap: 6px;
  }
  .series-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 23px;
  }
  .series-hero-art {
    display: none;
  }
  .series-hero h1 {
    font-size: 24px;
  }
  .series-hero p {
    font-size: 12px;
  }
  .series-detail-meta {
    gap: 13px;
    font-size: 9px;
  }
  .series-detail-meta .ph {
    font-size: 12px;
  }
  .chapter-row {
    gap: 13px;
    padding: 17px 14px;
  }
  .chapter-index {
    font-size: 20px;
  }
  .chapter-row h3 {
    font-size: 12px;
  }
  .chapter-row > .ph {
    display: none;
  }
  .chapter-row time {
    font-size: 9px;
  }
  .chapter-row p > .mono {
    font-size: 9px;
  }
  .breadcrumbs {
    font-size: 10px;
  }
  .not-found-number {
    font-size: 108px;
  }
  .sidebar {
    width: 220px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    z-index: 80;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #21170f55;
    z-index: 70;
    width: 100%;
    height: 100%;
  }
  .admin-main {
    margin: 56px 0 0;
    padding: 25px 16px 35px;
  }
  .admin-topbar {
    height: 56px;
    left: 0;
    padding: 0 16px;
    position: absolute;
  }
  .mobile-menu {
    display: flex;
  }
  .topbar-label {
    margin-right: auto;
    margin-left: 10px;
    font-size: 10px;
  }
  .admin-user {
    font-size: 10px;
  }
  .page-heading {
    margin-bottom: 22px;
    align-items: center;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 220px;
  }
  .heading-line {
    gap: 7px;
  }
  .heading-line > .count {
    font-size: 9px;
  }
  .heading-actions {
    gap: 7px;
  }
  .filter-bar {
    padding: 11px;
    gap: 8px;
    margin-bottom: 15px;
  }
  .filter-bar select {
    font-size: 11px;
  }
  .filter-bar input {
    font-size: 11px;
  }
  .data-panel {
    background: transparent;
    border: 0;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100% !important;
  }
  .data-table thead {
    display: none;
  }
  .data-table tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    margin-bottom: 11px;
    position: relative;
    padding: 16px;
  }
  .data-table td {
    padding: 5px 0;
    border: 0;
    font-size: 11px;
  }
  .data-table td:first-child {
    padding: 0 28px 10px 0;
  }
  [data-bulk] .data-table td:first-child {
    padding-inline-start: 30px;
    min-height: 48px;
  }
  .row-select {
    inset-inline-start: -5px;
    top: 0;
    transform: none;
  }
  .bulk-actions {
    padding: 12px;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
  }
  .bulk-hint {
    display: none;
  }
  .bulk-delete {
    padding: 8px 10px;
    min-height: 40px;
  }
  .data-table td[data-label]:not(:first-child) {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .data-table td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    font-size: 10px;
    color: var(--muted);
    width: 55px;
    flex-shrink: 0;
  }
  .data-table .table-title {
    font-size: 13px;
  }
  .data-table .table-slug {
    font-size: 9px;
  }
  .data-table .row-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    width: auto !important;
  }
  .action-dropdown {
    right: 0;
    top: 32px;
  }
  .data-table .series-tag {
    font-size: 10px;
  }
  .table-pagination {
    background: transparent;
    border: 0;
    padding: 12px 0;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .table-pagination nav {
    gap: 2px;
  }
  .workspace-note {
    justify-content: flex-start;
    font-size: 9px;
  }
  .series-table td:nth-child(4) {
    display: none;
  }
  .series-table-desc {
    font-size: 10px;
  }
  .series-table td:nth-child(2)::before {
    content: "访问路径";
    font-size: 10px;
    color: var(--muted);
    display: inline-block;
    width: 65px;
  }
  .series-table td:nth-child(2) > a {
    font-size: 10px;
  }
  .editor-panel {
    padding: 18px;
  }
  .panel-heading {
    gap: 8px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .panel-heading .small {
    display: none;
  }
  .editor-grid {
    gap: 16px;
  }
  .editor-help {
    padding: 20px;
  }
  .editor-bottom {
    margin-top: 20px;
    padding: 15px 0;
  }
  .danger-zone {
    padding: 18px;
    align-items: flex-start;
  }
  .danger-zone h3 {
    font-size: 13px;
  }
  .danger-zone p {
    font-size: 10px;
  }
  .danger-zone .button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .order-row {
    gap: 6px;
    padding: 9px 5px;
  }
  .order-title {
    font-size: 11px;
  }
  .order-index {
    font-size: 11px;
  }
  .order-controls .icon-button {
    width: 20px;
  }
  .order-controls .text-button {
    font-size: 9px;
    margin-left: 2px;
  }
  .panel-heading .button {
    padding: 6px 8px;
    font-size: 10px;
  }
  .order-row .drag-handle {
    width: 15px;
  }
  .back-link {
    font-size: 10px;
  }
  .login-card {
    padding: 27px;
  }
  .login-card h1 {
    font-size: 22px;
  }
  .login-security {
    font-size: 9px;
  }
  dialog {
    padding: 22px;
  }
  .dialog-title h2 {
    font-size: 16px;
  }
  #toast {
    right: 16px;
    top: 16px;
    font-size: 11px;
  }
  .not-found {
    min-height: calc(100dvh - 125px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
i.ph {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
}
i.ph::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
  -webkit-mask: var(--icon) center/contain no-repeat;
}
.article-title {
  font-size: 14px;
}
.series-card > p {
  font-size: 13px;
  min-height: 49px;
}
.series-card h3 {
  font-size: 16px;
}
.table-title {
  font-size: 14px;
}
.button {
  font-size: 14px;
}
.home-intro > p {
  font-size: 15px;
}
.series-card > p {
  line-height: 1.85;
}
.card-meta {
  font-size: 11px;
}
@media (max-width: 639px) {
  .article-title {
    font-size: 13px;
  }
  .series-card > p {
    font-size: 13px;
    min-height: 0;
  }
  .table-title {
    font-size: 13px;
  }
  .button {
    font-size: 13px;
  }
  .home-intro > p {
    font-size: 13px;
  }
  .card-meta {
    font-size: 10px;
  }
}
