﻿:root {
  --bg-base: #0a111f;
  --bg-base-soft: #121d31;
  --panel-bg: rgba(14, 24, 42, 0.84);
  --panel-border: rgba(215, 189, 145, 0.22);
  --text-main: #f3f5fa;
  --text-sub: #a9b3c8;
  --text-faint: #7f8aa4;
  --gold: #d7bd91;
  --gold-strong: #f1d2a4;
  --ink: #1c1407;
  --reading-width: 72ch;
}

.about-page .bidu-card a {
  color: #f3d49c;
}

.about-page .bidu-card a:hover {
  color: #ffe7bc;
}

.author-data-panel {
  display: grid;
  gap: 16px;
}

.author-data-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.author-data-summary > div {
  border: 1px solid rgba(147, 170, 219, 0.24);
  border-radius: 12px;
  background: rgba(8, 14, 27, 0.72);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.author-data-summary strong {
  font-size: 20px;
  color: #f5d9a4;
}

.author-data-summary span {
  color: #9ab0d7;
  font-size: 13px;
}

.author-data-card {
  border: 1px solid rgba(147, 170, 219, 0.24);
  border-radius: 14px;
  background: rgba(7, 14, 30, 0.7);
  padding: 18px;
}

.author-data-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #f5f7ff;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text-main);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 78% -2%, rgba(215, 189, 145, 0.18), transparent 48%),
    radial-gradient(circle at 8% 12%, rgba(120, 143, 195, 0.2), transparent 44%),
    linear-gradient(155deg, var(--bg-base), var(--bg-base-soft));
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.3;
  z-index: 0;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(241, 210, 164, 0.85);
  outline-offset: 2px;
}

.top-nav,
.top-site-switch-row {
  position: relative;
  z-index: 30;
}

.page-shell,
.site-footer {
  position: relative;
  z-index: 2;
}

.top-site-switch-row {
  width: min(1240px, 92%);
  margin: 14px auto 0;
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 30;
}

.anti-forgery-holder {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.top-nav {
  width: min(1240px, 92%);
  margin: 20px auto 0;
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(7, 13, 24, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

.top-site-switch-row + .top-nav {
  margin-top: 10px;
}

.top-nav-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  min-width: 0;
  flex: 1 1 620px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(154, 176, 218, 0.32);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-main {
  font-family: "Orbitron", "Rajdhani", sans-serif;
  letter-spacing: 1.2px;
  font-size: 21px;
  color: var(--gold-strong);
}

.brand-sub {
  color: #9db0d6;
  font-size: 12px;
  letter-spacing: 0.35px;
}

.top-site-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(162, 181, 219, 0.28);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(9, 15, 27, 0.64);
}

.top-site-switch .site-switch-item {
  padding: 7px 12px;
  border-right: 1px solid rgba(157, 176, 213, 0.24);
  background: transparent;
  color: #bbcae8;
  font-size: 13px;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.top-site-switch .site-switch-item:last-child {
  border-right: 0;
}

.top-site-switch .site-switch-item:hover {
  background: rgba(241, 210, 164, 0.16);
  color: #ffe7c0;
}

.top-site-switch .site-switch-item.active {
  background: rgba(241, 210, 164, 0.2);
  color: #ffebc9;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-sub);
  min-width: 0;
  flex: 1 1 420px;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a.active {
  color: var(--text-main);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-group::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 10px;
}

.nav-group-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.nav-group-title::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(212, 225, 255, 0.85);
  order: 2;
  margin-top: 2px;
}

.nav-group-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 156px;
  padding: 8px;
  border: 1px solid rgba(159, 180, 224, 0.28);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  z-index: 25;
  flex-direction: column;
  gap: 4px;
}

.nav-group-menu a {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: #d5e0f8;
  white-space: nowrap;
}

.nav-group-menu a::after {
  display: none;
}

.nav-group-menu a:hover {
  background: rgba(241, 210, 164, 0.14);
  color: #ffe6b8;
}

.nav-group:hover .nav-group-menu,
.nav-group.is-open .nav-group-menu,
.nav-group:focus-within .nav-group-menu {
  display: flex;
}

.cta-link {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(241, 210, 164, 0.44);
  background: linear-gradient(130deg, rgba(241, 210, 164, 0.92), rgba(201, 165, 113, 0.9));
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.nav-search {
  margin-left: auto;
  width: min(300px, 100%);
  flex: 0 1 300px;
}

.nav-search input {
  width: 100%;
  border: 1px solid rgba(165, 183, 219, 0.3);
  background: rgba(8, 14, 26, 0.74);
  color: #e7ecfa;
  border-radius: 999px;
  padding: 8px 14px;
  outline: none;
}

.nav-search input::placeholder {
  color: #8090b3;
}

.nav-search input:focus {
  border-color: rgba(241, 210, 164, 0.6);
  box-shadow: 0 0 0 2px rgba(241, 210, 164, 0.18);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.login-link,
.logout-link {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  border: 1px solid rgba(163, 181, 219, 0.28);
  color: #d7e0f4;
  background: rgba(10, 17, 32, 0.58);
  cursor: pointer;
  line-height: 1;
  font-family: "Noto Sans SC", sans-serif;
}

.nav-actions button.login-link,
.nav-actions button.logout-link {
  appearance: none;
  -webkit-appearance: none;
}

.login-link:hover,
.logout-link:hover {
  border-color: rgba(241, 210, 164, 0.4);
  color: #fff1d6;
}

.login-user {
  border: 1px solid rgba(241, 210, 164, 0.45);
  background: rgba(30, 22, 10, 0.55);
  color: #ffe4b7;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.login-user-fixed {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}

a.login-user-fixed {
  cursor: pointer;
}

.page-shell {
  width: min(1240px, 92%);
  margin: 20px auto 40px;
  display: grid;
  gap: 22px;
}

.site-switch-bar {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid rgba(168, 187, 221, 0.3);
  background: rgba(11, 18, 32, 0.58);
}

.site-switch-bar .site-switch-item {
  padding: 12px 18px;
  border-right: 1px solid rgba(157, 176, 213, 0.24);
  background: rgba(167, 184, 217, 0.1);
  color: #c9d8f4;
  font-size: 14px;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-switch-bar .site-switch-item:last-child {
  border-right: 0;
}

.site-switch-bar .site-switch-item:hover {
  background: rgba(241, 210, 164, 0.16);
  color: #ffe7c0;
}

.site-switch-bar .site-switch-item.active {
  background: rgba(241, 210, 164, 0.2);
  color: #ffebc9;
  font-weight: 700;
}

.notice-strip {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.notice-title {
  border: 1px solid rgba(241, 210, 164, 0.45);
  color: var(--gold-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}

.notice-list {
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
  display: flex;
  gap: 18px;
  overflow: auto;
  white-space: nowrap;
  color: #ccd6ee;
  font-size: 14px;
  scrollbar-width: thin;
}

.notice-list li::before {
  content: "•";
  margin-right: 6px;
  color: #f0d3a7;
}

.notice-more {
  font-size: 13px;
  color: #b4c3e3;
}

.hero-panel {
  border-radius: 18px;
  border: 1px solid rgba(215, 189, 145, 0.25);
  background:
    linear-gradient(120deg, rgba(27, 37, 63, 0.86), rgba(15, 22, 38, 0.94)),
    linear-gradient(25deg, rgba(255, 255, 255, 0.04), transparent 35%);
  box-shadow: 0 24px 52px rgba(2, 6, 14, 0.42);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  animation: fade-up 0.6s ease;
}

.category-panel {
  padding: 22px;
}

.category-panel-main {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(240px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.category-panel-content {
  border: 1px solid rgba(161, 179, 215, 0.24);
  border-radius: 14px;
  background: rgba(9, 16, 30, 0.62);
  padding: 18px;
}

.category-panel-head {
  margin-bottom: 14px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(156, 177, 218, 0.35);
  background: rgba(10, 17, 30, 0.68);
  color: #d8e4ff;
  font-size: 13px;
}

.category-pill:hover {
  border-color: rgba(241, 210, 164, 0.55);
  color: #ffe8bf;
}

.category-empty-tip {
  color: #a9bbdf;
  font-size: 14px;
}

.category-side {
  border: 1px solid rgba(162, 179, 215, 0.26);
  border-radius: 14px;
  background: rgba(8, 14, 27, 0.72);
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.category-side h3 {
  margin: 0;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: 24px;
  letter-spacing: 0.5px;
}

.category-side p {
  margin: 0;
  color: #aebddb;
  font-size: 14px;
  line-height: 1.75;
}

.category-side-list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-side-list a {
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(155, 175, 213, 0.24);
  background: rgba(11, 19, 34, 0.7);
  color: #d7e3fd;
  padding: 8px 10px;
  font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-side-list a:hover {
  border-color: rgba(241, 210, 164, 0.55);
  color: #ffe8bf;
  transform: translateX(3px);
}

.hero-main {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(215, 189, 145, 0.45);
  color: #eed8b3;
  font-size: 13px;
}

.hero-title {
  margin: 0;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 4.9vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-sub);
  max-width: var(--reading-width);
  font-size: 15px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(161, 179, 216, 0.35);
  background: rgba(12, 20, 35, 0.7);
  color: #dce4f7;
}

.hero-actions {
  margin-top: 4px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.hero-btn-primary {
  color: #1b1508;
  background: linear-gradient(130deg, #efce9f, #c59c66);
  border-color: rgba(241, 210, 164, 0.5);
}

.hero-btn-ghost {
  color: #d8e2f8;
  background: rgba(12, 19, 33, 0.6);
  border-color: rgba(160, 177, 212, 0.32);
}

.hero-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.hero-side {
  border: 1px solid rgba(162, 179, 215, 0.28);
  border-radius: 14px;
  background: rgba(8, 14, 27, 0.72);
  padding: 18px;
}

.hero-cover-image {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(166, 184, 219, 0.24);
  margin-bottom: 14px;
}

.hero-side h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  color: #e7eeff;
  letter-spacing: 0.6px;
}

.hero-metrics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-metrics li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(139, 160, 201, 0.28);
  padding-bottom: 10px;
}

.hero-metrics li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-metrics span {
  color: var(--text-sub);
  font-size: 13px;
}

.hero-metrics strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 24px;
  color: var(--gold-strong);
  letter-spacing: 0.5px;
}

.hero-bottom {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(159, 178, 216, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-faint);
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.service-card {
  padding: 22px;
}

.service-side-card {
  background:
    linear-gradient(145deg, rgba(15, 25, 44, 0.92), rgba(10, 18, 31, 0.88)),
    linear-gradient(0deg, rgba(241, 210, 164, 0.08), transparent 35%);
}

.service-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.service-head h2 {
  margin: 0;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: 28px;
  letter-spacing: 0.5px;
}

.service-head span {
  border: 1px solid rgba(241, 210, 164, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--gold-strong);
  font-size: 12px;
}

.service-card p {
  margin: 10px 0 12px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.85;
  max-width: var(--reading-width);
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.service-list li {
  border-radius: 8px;
  border: 1px solid rgba(157, 176, 216, 0.22);
  background: rgba(10, 16, 29, 0.64);
  padding: 8px 10px;
  color: #d1dbef;
  font-size: 13px;
}

.service-action {
  margin-top: 12px;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(241, 210, 164, 0.45);
  color: #ffe7bf;
  font-size: 13px;
  font-weight: 700;
}

.service-stat-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.service-stat-grid div {
  border-radius: 10px;
  border: 1px solid rgba(159, 177, 213, 0.24);
  background: rgba(8, 14, 24, 0.64);
  padding: 10px 8px;
  text-align: center;
}

.service-stat-grid strong {
  display: block;
  color: #ffe2b3;
  font-family: "Rajdhani", sans-serif;
  font-size: 22px;
  line-height: 1;
}

.service-stat-grid span {
  display: block;
  margin-top: 5px;
  color: #a5b4d2;
  font-size: 12px;
}

.welfare-panel {
  padding: 24px;
}

.welfare-intro {
  margin: 6px 0 14px;
  color: #bfcae2;
  line-height: 1.9;
  font-size: 15px;
  max-width: var(--reading-width);
}

.welfare-hero {
  border-radius: 14px;
  border: 1px solid rgba(170, 188, 223, 0.26);
  background:
    linear-gradient(145deg, rgba(9, 16, 29, 0.9), rgba(14, 24, 42, 0.88)),
    radial-gradient(circle at 80% 10%, rgba(241, 210, 164, 0.24), transparent 45%);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  align-items: center;
}

.welfare-hero img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(160, 178, 213, 0.22);
}

.welfare-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.welfare-hero-metrics div {
  border-radius: 10px;
  border: 1px solid rgba(160, 178, 213, 0.24);
  background: rgba(9, 16, 29, 0.66);
  padding: 12px 8px;
  text-align: center;
}

.welfare-hero-metrics strong {
  display: block;
  color: #f6d8ab;
  font-size: 24px;
  font-family: "Rajdhani", sans-serif;
  line-height: 1;
}

.welfare-hero-metrics span {
  margin-top: 6px;
  display: block;
  color: #a8b7d4;
  font-size: 12px;
}

.welfare-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.welfare-card {
  border-radius: 12px;
  border: 1px solid rgba(163, 182, 216, 0.23);
  background:
    linear-gradient(145deg, rgba(12, 20, 35, 0.9), rgba(8, 13, 25, 0.86)),
    linear-gradient(180deg, rgba(241, 210, 164, 0.08), transparent 35%);
  padding: 14px;
}

.welfare-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.welfare-card-head h3 {
  margin: 0;
  font-size: 18px;
  color: #ecf1ff;
}

.welfare-card-head span {
  border: 1px solid rgba(241, 210, 164, 0.45);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  color: #f5ddb6;
}

.welfare-audience {
  margin: 8px 0 10px;
  color: #b6c4df;
  font-size: 13px;
}

.welfare-points,
.welfare-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.welfare-points li {
  border-radius: 8px;
  border: 1px solid rgba(153, 173, 212, 0.25);
  background: rgba(9, 16, 28, 0.68);
  padding: 8px 9px;
  color: #dae4f8;
  font-size: 13px;
  line-height: 1.75;
}

.welfare-rules {
  margin-top: 9px;
}

.welfare-rules li {
  padding-left: 14px;
  color: #9eafcf;
  font-size: 13px;
  line-height: 1.7;
  position: relative;
}

.welfare-rules li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(241, 210, 164, 0.78);
}

.welfare-footnote {
  margin: 12px 0 0;
  color: #8495b8;
  font-size: 12px;
}

.panel {
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: 0 20px 46px rgba(3, 8, 18, 0.34);
}

.books-panel {
  padding: 24px;
}

.panel-head {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-head h2 {
  margin: 0;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: 30px;
  letter-spacing: 0.6px;
}

.panel-head span {
  color: var(--text-faint);
  font-size: 14px;
}

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

.book-card {
  border-radius: 12px;
  border: 1px solid rgba(161, 178, 214, 0.24);
  overflow: hidden;
  background: rgba(8, 14, 27, 0.8);
  transform: translateY(8px);
  opacity: 0;
  animation: fade-up 0.45s ease forwards;
}

.book-card:nth-child(2) {
  animation-delay: 0.08s;
}

.book-card:nth-child(3) {
  animation-delay: 0.16s;
}

.book-card:nth-child(4) {
  animation-delay: 0.24s;
}

.book-cover {
  height: 96px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 10px;
}

.book-cover span {
  background: rgba(11, 16, 27, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 9px;
}

.book-body {
  padding: 14px;
}

.book-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.38;
}

.book-meta {
  margin-top: 8px;
  color: #c2cee5;
  font-size: 12px;
}

.book-body p {
  margin: 10px 0 12px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.82;
}

.book-body a {
  color: var(--gold-strong);
  font-size: 14px;
  font-weight: 700;
}

.book-body a:hover {
  color: #f8e2bf;
}

.site-footer {
  width: min(1240px, 92%);
  margin: 0 auto 22px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(151, 173, 216, 0.22);
  border-radius: 14px;
  background: rgba(7, 13, 24, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.9;
  display: grid;
  gap: 2px 14px;
  text-align: center;
}

.site-footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: #c0cee9;
  font-size: 12px;
}

.site-footer-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 26px;
}

.site-footer-col {
  min-width: 0;
}

.site-footer-col h4 {
  margin: 0 0 8px;
  color: #e4ecff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.site-footer-links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 8px;
}

.site-footer-links:last-child {
  margin-bottom: 0;
}

.site-footer-links a {
  color: #b8c8e8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-links a:hover {
  color: #ffe3ba;
}

.site-footer-license-list {
  display: grid;
  gap: 5px;
  color: #95a8cd;
  font-size: 12px;
  line-height: 1.6;
}

.site-footer-contact {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(151, 173, 216, 0.2);
  color: #adc1e6;
  font-size: 12px;
  line-height: 1.65;
}

.spotlight-panel {
  padding: 24px;
}

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

.spotlight-card {
  border: 1px solid rgba(166, 182, 216, 0.24);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(7, 13, 24, 0.72);
}

.spotlight-card img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.spotlight-body {
  padding: 14px;
}

.spotlight-body span {
  display: inline-block;
  border: 1px solid rgba(241, 210, 164, 0.45);
  color: var(--gold-strong);
  border-radius: 999px;
  font-size: 12px;
  padding: 3px 9px;
}

.spotlight-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.spotlight-body p {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
  min-height: 44px;
}

.spotlight-body a {
  margin-top: 10px;
  display: inline-block;
  color: var(--gold-strong);
  font-weight: 700;
  font-size: 13px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.auth-modal.show {
  display: block;
}

.auth-mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.7);
}

.auth-dialog {
  position: relative;
  width: min(460px, calc(100% - 28px));
  margin: 90px auto 0;
  border-radius: 14px;
  border: 1px solid rgba(241, 210, 164, 0.33);
  background: linear-gradient(160deg, rgba(14, 23, 40, 0.97), rgba(19, 27, 47, 0.95));
  padding: 20px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35);
}

.auth-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8e3fb;
  font-size: 18px;
  cursor: pointer;
}

.auth-dialog h3 {
  margin: 0;
  font-size: 24px;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
}

.auth-tip {
  margin: 8px 0 14px;
  color: var(--text-sub);
  font-size: 14px;
}

.auth-provider-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.provider-btn {
  border: 1px solid rgba(160, 179, 215, 0.32);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(8, 15, 28, 0.75);
  color: #dbe7ff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.provider-btn.wechat:hover {
  border-color: rgba(90, 214, 117, 0.65);
}

.provider-btn.qq:hover {
  border-color: rgba(77, 174, 255, 0.65);
}

.auth-phone {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.auth-phone input {
  width: 100%;
  border: 1px solid rgba(163, 181, 217, 0.35);
  border-radius: 10px;
  background: rgba(10, 17, 30, 0.78);
  color: #edf3ff;
  padding: 10px 12px;
  outline: none;
}

.auth-phone input:focus {
  border-color: rgba(241, 210, 164, 0.68);
}

.phone-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.phone-captcha-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.phone-captcha-row span {
  font-size: 13px;
  color: #d8e7ff;
  border: 1px dashed rgba(163, 181, 217, 0.45);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(7, 14, 26, 0.65);
  white-space: nowrap;
}

.phone-code-row button,
.phone-login-btn {
  border: 1px solid rgba(241, 210, 164, 0.45);
  border-radius: 10px;
  color: #ffe3b7;
  background: rgba(39, 28, 14, 0.55);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}

.phone-code-row button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.phone-login-btn {
  background: linear-gradient(130deg, rgba(241, 210, 164, 0.95), rgba(204, 167, 112, 0.95));
  color: #24180a;
}

.auth-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: #f5adad;
  font-size: 13px;
}

.auth-message.success {
  color: #91e39a;
}

.create-book-panel {
  padding: 24px;
}

.create-book-subtitle {
  margin: 6px 0 16px;
  color: #c1cee9;
  line-height: 1.88;
  font-size: 15px;
  max-width: var(--reading-width);
}

.create-book-login-warning {
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(241, 210, 164, 0.38);
  background: rgba(52, 37, 17, 0.58);
  color: #ffe2b7;
  padding: 10px 12px;
  font-size: 13px;
}

.create-book-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
}

.create-book-form {
  border: 1px solid rgba(162, 180, 216, 0.22);
  border-radius: 12px;
  background: rgba(8, 15, 27, 0.75);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.create-book-field {
  display: grid;
  gap: 6px;
}

.create-book-field label {
  color: #d7e3fb;
  font-size: 14px;
}

.create-book-field input,
.create-book-field select,
.create-book-field textarea {
  width: 100%;
  border: 1px solid rgba(156, 176, 216, 0.3);
  border-radius: 10px;
  background: rgba(10, 17, 30, 0.8);
  color: #eef4ff;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.create-book-field textarea {
  resize: vertical;
  min-height: 110px;
}

.create-book-field input:focus,
.create-book-field select:focus,
.create-book-field textarea:focus {
  border-color: rgba(241, 210, 164, 0.64);
  box-shadow: 0 0 0 2px rgba(241, 210, 164, 0.14);
}

.select2-container {
  width: 100% !important;
  max-width: 100%;
}

.select2-container--default .select2-selection--single {
  min-height: 42px;
  border: 1px solid rgba(156, 176, 216, 0.3);
  border-radius: 10px;
  background: rgba(10, 17, 30, 0.8);
  color: #eef4ff;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #eef4ff;
  line-height: 40px;
  padding-left: 12px;
  padding-right: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
  right: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #8fa2c8;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #a6bbdf transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(241, 210, 164, 0.64);
  box-shadow: 0 0 0 2px rgba(241, 210, 164, 0.14);
}

.select2-dropdown {
  border: 1px solid rgba(156, 176, 216, 0.3);
  border-radius: 10px;
  background: rgba(10, 17, 30, 0.96);
  color: #e8f0ff;
  box-sizing: border-box;
  overflow: hidden;
}

.select2-container--default .select2-search--dropdown {
  padding: 8px;
  background: rgba(10, 17, 30, 0.96);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid rgba(156, 176, 216, 0.36);
  border-radius: 8px;
  background: rgba(9, 15, 27, 0.95);
  color: #e8f0ff;
  outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: rgba(241, 210, 164, 0.66);
  box-shadow: 0 0 0 2px rgba(241, 210, 164, 0.16);
}

.select2-container--default .select2-results > .select2-results__options {
  background: rgba(10, 17, 30, 0.96);
  max-height: 260px;
  overflow-x: hidden;
}

.select2-container--open .select2-dropdown {
  max-width: calc(100vw - 24px) !important;
  overflow-x: hidden;
}

.select2-results__option {
  padding: 9px 12px;
  color: #d8e4ff;
}

.select2-container--default .select2-results__option--selected {
  background: rgba(32, 52, 85, 0.78);
  color: #ffe6be;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(241, 210, 164, 0.26);
  color: #fff2dc;
}

.select2-container--default .select2-results__option--disabled {
  color: #7f8eab;
}

.select2-container--default .select2-results__message {
  color: #9fb1d6;
}

.admin-filter .select2-container,
.admin-actions-cell .select2-container {
  min-width: 140px;
}

.image-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.image-upload-input {
  flex: 1 1 260px;
  max-width: 100%;
  min-height: 40px;
  padding: 4px 8px;
  border: 1px solid rgba(156, 176, 216, 0.3);
  border-radius: 10px;
  background: rgba(10, 17, 30, 0.8);
  color: #dbe7ff;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.image-upload-input:hover {
  border-color: rgba(241, 210, 164, 0.45);
}

.image-upload-input:focus {
  border-color: rgba(241, 210, 164, 0.64);
  box-shadow: 0 0 0 2px rgba(241, 210, 164, 0.14);
}

.image-upload-input::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(241, 210, 164, 0.46);
  border-radius: 8px;
  background: rgba(90, 64, 23, 0.36);
  color: #ffe3b8;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-upload-input::file-selector-button:hover {
  background: rgba(113, 82, 32, 0.5);
  border-color: rgba(241, 210, 164, 0.62);
}

.image-upload-input::-webkit-file-upload-button {
  margin-right: 10px;
  border: 1px solid rgba(241, 210, 164, 0.46);
  border-radius: 8px;
  background: rgba(90, 64, 23, 0.36);
  color: #ffe3b8;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-upload-input::-webkit-file-upload-button:hover {
  background: rgba(113, 82, 32, 0.5);
  border-color: rgba(241, 210, 164, 0.62);
}

.image-upload-btn {
  border: 1px solid rgba(241, 210, 164, 0.46);
  border-radius: 10px;
  background: rgba(90, 64, 23, 0.36);
  color: #ffe3b8;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-upload-btn:hover {
  background: rgba(113, 82, 32, 0.5);
  border-color: rgba(241, 210, 164, 0.62);
}

.image-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.image-upload-hint {
  margin: 0;
  color: #9fb0d2;
  font-size: 12px;
  line-height: 1.6;
}

.image-upload-preview {
  display: none;
  gap: 8px;
  margin-top: 2px;
}

.image-upload-preview img {
  width: 132px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(161, 180, 216, 0.3);
  background: rgba(9, 15, 27, 0.75);
}

.image-upload-preview a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(161, 180, 216, 0.28);
  border-radius: 999px;
  color: #d8e4ff;
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(8, 14, 25, 0.7);
}

.image-upload-preview a:hover {
  color: #ffe8c4;
  border-color: rgba(241, 210, 164, 0.5);
}

.image-upload-preview a[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.image-upload-status {
  margin: 0;
  min-height: 20px;
  color: #f2a9a9;
  font-size: 12px;
}

.image-upload-status.success {
  color: #8ee39d;
}

.image-upload-controls {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.image-upload-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 210, 164, 0.46);
  border-radius: 10px;
  background: rgba(90, 64, 23, 0.36);
  color: #ffe3b8;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-upload-picker:hover {
  background: rgba(113, 82, 32, 0.5);
  border-color: rgba(241, 210, 164, 0.62);
}

.image-upload-picker input[type="file"] {
  display: none;
}

.image-upload-help {
  margin: 6px 0 0;
  color: #9fb0d2;
  font-size: 12px;
  line-height: 1.6;
}

.create-book-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.create-book-actions {
  margin-top: 4px;
  display: grid;
  gap: 8px;
}

.create-book-submit {
  width: fit-content;
  padding: 10px 20px;
  border: 1px solid rgba(241, 210, 164, 0.5);
  border-radius: 10px;
  background: linear-gradient(130deg, #efcf9f, #c69e68);
  color: #23170b;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.create-book-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.create-book-message {
  min-height: 20px;
  margin: 0;
  color: #f4abab;
  font-size: 12px;
}

.create-book-message.success {
  color: #8ee39d;
}

.create-book-side {
  display: grid;
  gap: 12px;
}

.create-book-cover-preview {
  border: 1px solid rgba(161, 179, 215, 0.25);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(13, 22, 38, 0.92), rgba(9, 15, 28, 0.85)),
    radial-gradient(circle at 82% 8%, rgba(241, 210, 164, 0.2), transparent 40%);
  min-height: 190px;
  display: grid;
  place-items: center;
}

.create-book-cover-preview span {
  border: 1px solid rgba(241, 210, 164, 0.45);
  border-radius: 999px;
  color: #f3ddb8;
  font-size: 12px;
  padding: 4px 9px;
}

.create-book-side img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(160, 178, 214, 0.24);
}

.create-book-tip-card {
  border: 1px solid rgba(162, 181, 216, 0.23);
  border-radius: 12px;
  background: rgba(10, 17, 30, 0.74);
  padding: 14px;
}

.create-book-tip-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.create-book-tip-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.create-book-tip-card li {
  border-radius: 8px;
  border: 1px solid rgba(151, 171, 211, 0.2);
  background: rgba(8, 14, 24, 0.62);
  padding: 8px 9px;
  font-size: 13px;
  line-height: 1.72;
  color: #c8d5ef;
}

.agree-panel {
  padding: 24px;
}

.agree-subtitle {
  margin: 6px 0 12px;
  color: #becbe7;
  line-height: 1.88;
  font-size: 15px;
  max-width: var(--reading-width);
}

.agree-status-row {
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(160, 179, 215, 0.24);
  background: rgba(9, 16, 28, 0.64);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.agree-status-label {
  color: #a8b8d8;
  font-size: 12px;
}

.agree-status-badge {
  border: 1px solid rgba(241, 210, 164, 0.44);
  border-radius: 999px;
  padding: 4px 10px;
  color: #f6ddb5;
  font-size: 12px;
}

.agree-status-link {
  margin-left: auto;
  color: #cfdcff;
  font-size: 13px;
}

.agree-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

.agree-left {
  display: grid;
  gap: 12px;
}

.agree-left img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(160, 178, 214, 0.24);
}

.agree-card {
  border: 1px solid rgba(160, 179, 214, 0.24);
  border-radius: 12px;
  background: rgba(8, 15, 27, 0.72);
  padding: 14px;
}

.agree-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.agree-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.agree-list li {
  border-radius: 8px;
  border: 1px solid rgba(149, 170, 211, 0.2);
  background: rgba(7, 13, 23, 0.58);
  padding: 8px 10px;
  font-size: 13px;
  color: #c8d4ee;
  line-height: 1.72;
}

.agree-check {
  margin-top: 10px;
  border: 1px solid rgba(241, 210, 164, 0.35);
  border-radius: 10px;
  background: rgba(34, 24, 10, 0.44);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffe0b2;
  font-size: 13px;
}

.agree-form {
  border: 1px solid rgba(160, 179, 214, 0.24);
  border-radius: 12px;
  background: rgba(8, 15, 27, 0.76);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.author-center-panel {
  padding: 24px;
}

.author-center-actions {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.writer-center-nav {
  margin: 6px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.writer-center-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(159, 178, 214, 0.28);
  background: rgba(9, 16, 29, 0.64);
  color: #cfe0ff;
  font-size: 13px;
  line-height: 1;
  transition: all 0.2s ease;
}

.writer-center-nav a:hover {
  color: #fff0d2;
  border-color: rgba(241, 210, 164, 0.5);
  background: rgba(78, 56, 25, 0.34);
}

.writer-center-nav a.active {
  color: #ffe7bf;
  border-color: rgba(241, 210, 164, 0.56);
  background: rgba(103, 73, 26, 0.48);
  font-weight: 700;
}

.author-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.author-center-card {
  border: 1px solid rgba(160, 179, 214, 0.24);
  border-radius: 12px;
  background: rgba(8, 15, 27, 0.76);
  padding: 16px;
}

.author-center-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
}

.author-center-profile-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.author-center-profile-list.compact {
  grid-template-columns: 1fr;
}

.author-center-profile-list div {
  border: 1px solid rgba(151, 171, 211, 0.2);
  border-radius: 10px;
  background: rgba(7, 13, 23, 0.58);
  padding: 8px 10px;
}

.author-center-profile-list dt {
  margin: 0;
  color: #9db0d6;
  font-size: 12px;
}

.author-center-profile-list dd {
  margin: 4px 0 0;
  color: #eaf1ff;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
}

.author-center-profile-text {
  margin: 12px 0 0;
  color: #c3d0ea;
  line-height: 1.85;
  font-size: 14px;
}

.author-center-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.author-center-stat-grid div {
  border: 1px solid rgba(156, 176, 216, 0.24);
  border-radius: 10px;
  background: rgba(9, 16, 29, 0.68);
  padding: 12px 8px;
  text-align: center;
}

.author-center-stat-grid strong {
  display: block;
  color: #ffe3b6;
  font-family: "Rajdhani", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.author-center-stat-grid span {
  margin-top: 6px;
  display: block;
  color: #9fb1d6;
  font-size: 12px;
}

.author-center-meta {
  margin-top: 10px;
  color: #aebdde;
  font-size: 13px;
}

.discover-panel {
  padding: 24px;
}

.discover-empty {
  border-radius: 10px;
  border: 1px solid rgba(160, 179, 214, 0.24);
  background: rgba(8, 15, 27, 0.62);
  color: #b7c7e7;
  padding: 14px;
  font-size: 14px;
}

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

.discover-category-card {
  border-radius: 12px;
  border: 1px solid rgba(160, 179, 214, 0.24);
  background:
    linear-gradient(145deg, rgba(10, 17, 30, 0.82), rgba(6, 12, 24, 0.78)),
    linear-gradient(180deg, rgba(241, 210, 164, 0.06), transparent 35%);
  padding: 14px;
}

.discover-category-card h3 {
  margin: 0;
  font-size: 18px;
}

.discover-category-card p {
  margin: 10px 0;
  color: #b8c8e7;
  font-size: 13px;
  line-height: 1.8;
  min-height: 60px;
}

.discover-category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #93a7cf;
  font-size: 12px;
}

.discover-category-meta a {
  color: #f1d8af;
  font-weight: 700;
}

.library-filter {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 10px;
  align-items: end;
}

.library-filter-field {
  display: grid;
  gap: 6px;
}

.library-filter-field label {
  color: #c7d4ee;
  font-size: 13px;
}

.library-filter-field input,
.library-filter-field select {
  width: 100%;
  border: 1px solid rgba(156, 176, 216, 0.32);
  border-radius: 10px;
  background: rgba(10, 17, 30, 0.82);
  color: #edf4ff;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}

.library-filter-field input:focus,
.library-filter-field select:focus {
  border-color: rgba(241, 210, 164, 0.66);
}

.library-filter-btn {
  border: 1px solid rgba(241, 210, 164, 0.45);
  border-radius: 10px;
  background: linear-gradient(130deg, #efcf9f, #c69e68);
  color: #25190a;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.library-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.library-filter-reset {
  border-radius: 10px;
  border: 1px solid rgba(163, 181, 219, 0.32);
  background: rgba(10, 17, 30, 0.64);
  color: #d9e4fb;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1;
}

.library-filter-reset:hover {
  border-color: rgba(241, 210, 164, 0.48);
  color: #ffe6b8;
}

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

.library-book-card {
  border-radius: 12px;
  border: 1px solid rgba(160, 179, 214, 0.24);
  background: rgba(8, 14, 24, 0.76);
  overflow: hidden;
}

.library-book-cover {
  height: 110px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 10px;
}

.library-book-cover span {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(9, 15, 27, 0.34);
  font-size: 11px;
  padding: 3px 8px;
}

.library-book-body {
  padding: 12px;
}

.library-book-body h3 {
  margin: 0;
  font-size: 18px;
}

.library-book-meta {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #aabcde;
  font-size: 13px;
}

.library-book-body p {
  margin: 9px 0;
  color: #c2d0ea;
  line-height: 1.8;
  font-size: 14px;
}

.library-book-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.library-book-actions a {
  color: #f2d9b0;
  font-weight: 700;
  font-size: 13px;
}

.library-book-actions small {
  color: #8ea2c9;
  font-size: 12px;
}

.book-detail-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

.book-detail-cover {
  border-radius: 12px;
  min-height: 310px;
  border: 1px solid rgba(160, 179, 214, 0.24);
  padding: 12px;
  display: flex;
  align-items: flex-start;
}

.book-detail-cover span {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(9, 15, 27, 0.32);
  padding: 3px 8px;
  font-size: 11px;
}

.book-detail-main h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.book-detail-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a9bcdf;
  font-size: 14px;
}

.book-detail-intro {
  margin: 12px 0;
  color: #d1ddf3;
  line-height: 1.88;
  font-size: 15px;
  max-width: var(--reading-width);
}

.book-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-detail-tags span {
  border-radius: 999px;
  border: 1px solid rgba(161, 179, 214, 0.3);
  background: rgba(10, 16, 29, 0.62);
  color: #d4e1fa;
  font-size: 12px;
  padding: 5px 10px;
}

.book-detail-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.book-detail-extra {
  margin-top: 12px;
}

.book-detail-info {
  border-radius: 12px;
  border: 1px solid rgba(159, 178, 214, 0.24);
  background: rgba(8, 15, 27, 0.68);
  padding: 14px;
}

.book-detail-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.book-detail-info p {
  margin: 6px 0;
  color: #becde9;
  font-size: 14px;
  line-height: 1.8;
}

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

.related-book-item {
  border-radius: 10px;
  border: 1px solid rgba(159, 178, 214, 0.24);
  background: rgba(8, 14, 24, 0.66);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.related-book-item strong {
  color: #e8f0ff;
  font-size: 15px;
}

.related-book-item span {
  color: #9fb1d3;
  font-size: 12px;
}

.notice-list-page {
  display: grid;
  gap: 10px;
}

.notice-list-item {
  border-radius: 12px;
  border: 1px solid rgba(158, 177, 213, 0.24);
  background: rgba(9, 15, 27, 0.68);
  padding: 14px;
}

.notice-list-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-list-head h3 {
  margin: 0;
  font-size: 20px;
}

.notice-list-head a {
  color: #f0f4ff;
}

.notice-top-tag {
  border: 1px solid rgba(241, 210, 164, 0.45);
  border-radius: 999px;
  color: #f7dfb6;
  font-size: 11px;
  padding: 2px 7px;
}

.notice-list-item p {
  margin: 9px 0 8px;
  color: #bdd0f0;
  line-height: 1.85;
  font-size: 14px;
  max-width: var(--reading-width);
}

.notice-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #93a8cf;
  font-size: 13px;
}

.notice-detail-head h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
}

.notice-detail-head p {
  margin: 8px 0 0;
  color: #b8c8e8;
  line-height: 1.82;
  font-size: 15px;
  max-width: var(--reading-width);
}

.notice-detail-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #90a5cd;
  font-size: 13px;
}

.notice-detail-content {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(156, 176, 215, 0.24);
  background: rgba(8, 14, 25, 0.72);
  padding: 18px 20px;
  color: #cfdcf3;
  line-height: 2;
  font-size: 16px;
}

.notice-detail-content p {
  margin: 0 0 12px;
  max-width: var(--reading-width);
}

.notice-detail-content p:last-child {
  margin-bottom: 0;
}

.notice-empty-line {
  min-height: 10px;
}

.related-notice-list {
  display: grid;
  gap: 7px;
}

.related-notice-list a {
  color: #dbe6ff;
  font-size: 14px;
}

.chapter-read-shell {
  padding: 24px;
}

.chapter-read-meta h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.chapter-read-meta div {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #9bb0d8;
  font-size: 13px;
}

.chapter-read-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chapter-read-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 12px;
  align-items: start;
}

.chapter-read-content {
  border-radius: 12px;
  border: 1px solid rgba(159, 178, 214, 0.24);
  background: rgba(8, 15, 27, 0.72);
  padding: 22px;
}

.chapter-read-content p {
  margin: 0 0 18px;
  color: #cfddf4;
  line-height: 2;
  font-size: 17px;
  text-indent: 2em;
}

.chapter-read-content p:last-child {
  margin-bottom: 0;
}

.chapter-read-sidebar {
  border-radius: 12px;
  border: 1px solid rgba(159, 178, 214, 0.24);
  background: rgba(8, 14, 25, 0.72);
  padding: 14px;
}

.chapter-read-sidebar h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.chapter-read-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 620px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.chapter-read-sidebar li {
  border-radius: 8px;
  border: 1px solid rgba(160, 179, 214, 0.24);
  background: rgba(9, 15, 27, 0.55);
}

.chapter-read-sidebar li.current {
  border-color: rgba(241, 210, 164, 0.48);
  background: rgba(97, 71, 31, 0.4);
}

.chapter-read-sidebar a {
  display: block;
  color: #d6e3fc;
  font-size: 13px;
  line-height: 1.7;
  padding: 8px 10px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list p {
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(160, 179, 214, 0.24);
  background: rgba(8, 15, 27, 0.66);
  padding: 10px 11px;
  color: #c5d4ef;
  font-size: 14px;
  line-height: 1.82;
}

.spotlight-detail {
  padding: 0;
  overflow: hidden;
}

.spotlight-detail img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.spotlight-detail-body {
  padding: 18px;
}

.spotlight-detail-body span {
  border: 1px solid rgba(241, 210, 164, 0.45);
  border-radius: 999px;
  color: #f7dfb6;
  font-size: 12px;
  padding: 3px 8px;
}

.spotlight-detail-body h1 {
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.2;
}

.spotlight-short {
  margin: 0 0 8px;
  color: #b4c6e7;
}

.spotlight-detail-body p {
  color: #c8d7f2;
  line-height: 1.92;
  font-size: 15px;
  max-width: var(--reading-width);
}

.spotlight-detail-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.template-card {
  border-radius: 12px;
  border: 1px solid rgba(159, 178, 214, 0.24);
  background: rgba(9, 15, 27, 0.68);
  padding: 12px;
}

.template-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.template-card pre {
  margin: 0;
  white-space: pre-wrap;
  color: #cbdbf5;
  line-height: 1.82;
  font-size: 14px;
  font-family: "Consolas", "Monaco", monospace;
}

.template-footnote {
  margin: 12px 0 0;
  color: #96a9cf;
  font-size: 12px;
}

@keyframes fade-up {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .top-nav {
    justify-content: flex-start;
  }

  .top-nav-left {
    width: 100%;
    flex: 1 1 100%;
    gap: 10px 16px;
  }

  .top-site-switch-row {
    margin-top: 14px;
  }

  .top-site-switch {
    width: 100%;
    border-radius: 12px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 10px 14px;
    flex: 1 1 100%;
  }

  .nav-search {
    width: min(320px, 100%);
    margin-left: 0;
    flex: 1 1 260px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .category-panel-main {
    grid-template-columns: 1fr;
  }

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

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

  .welfare-hero {
    grid-template-columns: 1fr;
  }

  .welfare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .create-book-grid {
    grid-template-columns: 1fr;
  }

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

  .author-center-grid {
    grid-template-columns: 1fr;
  }

  .author-center-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discover-category-grid,
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-filter {
    grid-template-columns: 1fr 1fr auto;
  }

  .book-detail-header {
    grid-template-columns: 1fr;
  }

  .chapter-read-grid {
    grid-template-columns: 1fr;
  }

  .related-books {
    grid-template-columns: 1fr;
  }

  .auth-dialog {
    margin-top: 70px;
  }
}

@media (max-width: 760px) {
  .top-nav {
    padding: 14px;
    gap: 10px;
  }

  .top-nav-left {
    width: 100%;
    gap: 8px 12px;
  }

  .brand-main {
    font-size: 20px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .nav-links {
    gap: 8px 12px;
    flex: 1 1 100%;
  }

  .top-site-switch-row {
    margin-top: 12px;
  }

  .top-site-switch .site-switch-item {
    flex: 1 1 50%;
    text-align: center;
    padding: 8px 10px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .nav-group {
    width: 100%;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-group-menu {
    position: static;
    display: flex;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-group-menu a {
    padding: 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }

  .nav-search {
    width: 100%;
    flex: 1 1 100%;
  }

  .notice-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-switch-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-switch-bar .site-switch-item {
    border-right: 0;
    border-bottom: 1px solid rgba(157, 176, 213, 0.24);
  }

  .site-switch-bar .site-switch-item:last-child {
    border-bottom: 0;
  }

  .category-panel-content,
  .category-side {
    padding: 16px;
  }

  .notice-list {
    flex-direction: column;
    white-space: normal;
  }

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

  .service-stat-grid,
  .welfare-hero-metrics,
  .welfare-grid {
    grid-template-columns: 1fr;
  }

  .create-book-row {
    grid-template-columns: 1fr;
  }

  .discover-category-grid,
  .library-book-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }

  .library-filter {
    grid-template-columns: 1fr;
  }

  .library-filter-actions {
    width: 100%;
  }

  .hero-panel,
  .books-panel,
  .welfare-panel {
    padding: 18px;
  }

  .create-book-panel {
    padding: 18px;
  }

  .agree-panel {
    padding: 18px;
  }

  .author-center-panel {
    padding: 18px;
  }

  .author-center-profile-list {
    grid-template-columns: 1fr;
  }

  .author-center-stat-grid {
    grid-template-columns: 1fr;
  }

  .discover-panel {
    padding: 18px;
  }

  .book-detail-main h1,
  .notice-detail-head h1,
  .spotlight-detail-body h1 {
    font-size: 28px;
  }

  .chapter-read-meta h1 {
    font-size: 28px;
  }

  .notice-detail-content {
    padding: 14px 14px 16px;
    font-size: 15px;
  }

  .chapter-read-content {
    padding: 16px;
  }

  .chapter-read-content p {
    font-size: 16px;
  }

  .hero-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .site-footer-top,
  .site-footer-links,
  .writer-center-nav {
    flex-direction: column;
    gap: 2px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.dm-welfare-page {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: rgba(7, 13, 24, 0.76);
  box-shadow: 0 24px 54px rgba(2, 6, 14, 0.42);
}

.dm-welfare-shell {
  position: relative;
  padding: 18px 0 52px;
  background:
    radial-gradient(circle at 82% -8%, rgba(215, 189, 145, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(10, 17, 31, 0.72), rgba(10, 17, 31, 0.9));
}

.dm-welfare-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% -8%, rgba(215, 189, 145, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(10, 17, 31, 0.76), rgba(10, 17, 31, 0.9));
}

.dm-welfare-container {
  position: relative;
  z-index: 1;
  width: min(1020px, 94%);
  margin: 0 auto;
}

.dm-welfare-section {
  margin: 18px 0;
  border-radius: 14px;
  border: 1px solid rgba(151, 173, 216, 0.24);
  background: rgba(8, 14, 27, 0.76);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  padding: 16px 20px 20px;
}

.dm-welfare-section-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(151, 173, 216, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-welfare-section-head::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1d2a4, #c09c69);
}

.dm-welfare-section-head h2 {
  margin: 0;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: 30px;
  letter-spacing: 0.5px;
  color: #f4e4c7;
}

.dm-welfare-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.dm-welfare-row:last-child {
  margin-bottom: 0;
}

.dm-welfare-label {
  margin: 0;
  min-width: 92px;
  color: var(--gold-strong);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.88;
  flex-shrink: 0;
}

.dm-welfare-value {
  margin: 0;
  color: #d2ddf6;
  font-size: 16px;
  line-height: 1.9;
  white-space: normal;
  word-break: break-word;
}

.dm-welfare-value a {
  color: #ffe0b1;
  text-decoration: none;
}

.dm-welfare-value a:hover {
  text-decoration: underline;
}

.dm-welfare-important-link {
  display: inline-block;
  margin-left: 6px;
  border: 1px solid rgba(255, 199, 120, 0.72);
  border-radius: 8px;
  padding: 1px 8px;
  color: #ffcc88;
  background: rgba(120, 70, 22, 0.28);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dm-welfare-important-link:hover {
  color: #ffe4bd;
  border-color: rgba(255, 219, 171, 0.9);
  background: rgba(142, 84, 24, 0.42);
  text-decoration: none;
}

.dm-welfare-highlight {
  color: #ffd39b;
  font-weight: 700;
}

.bidu-page {
  padding: 24px;
}

.bidu-subtitle {
  margin: 8px 0 16px;
  color: #c3d1ec;
  font-size: 15px;
  line-height: 1.88;
}

.bidu-subtitle a {
  color: #ffd7a0;
  text-decoration: underline;
}

.bidu-warning {
  margin-bottom: 14px;
  border: 1px solid rgba(241, 210, 164, 0.44);
  border-radius: 10px;
  background: rgba(70, 46, 16, 0.52);
  color: #ffe6bf;
  font-size: 13px;
  line-height: 1.78;
  padding: 10px 12px;
}

.bidu-card {
  border: 1px solid rgba(156, 177, 217, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(9, 16, 29, 0.86), rgba(7, 13, 24, 0.84)),
    linear-gradient(180deg, rgba(241, 210, 164, 0.06), transparent 35%);
  padding: 14px;
  margin-bottom: 12px;
}

.bidu-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  color: #f7e4c0;
}

.bidu-card p {
  margin: 0;
  color: #d2dff8;
  line-height: 1.86;
}

.bidu-list {
  margin: 0;
  padding-left: 19px;
  color: #d5e2fb;
  line-height: 1.82;
}

.bidu-list li + li {
  margin-top: 6px;
}

.bidu-highlight {
  margin-top: 10px;
  border-left: 3px solid rgba(241, 210, 164, 0.7);
  padding-left: 9px;
  color: #ffe2b3;
  font-weight: 700;
}

.bidu-stamp {
  margin-top: 8px;
  color: #aebedb;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.dm-welfare-editor-note {
  color: #ffe0b1;
  font-weight: 700;
  line-height: 1.88;
  margin-bottom: 10px;
}

.dm-welfare-editor-wrap {
  flex-wrap: wrap;
}

.dm-welfare-editor-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid rgba(151, 173, 216, 0.28);
}

.dm-welfare-editor-table td {
  border: 1px solid rgba(151, 173, 216, 0.22);
  padding: 9px 12px;
  font-size: 15px;
  line-height: 1.62;
}

.dm-welfare-editor-table td:nth-child(1),
.dm-welfare-editor-table td:nth-child(2) {
  background: rgba(17, 27, 45, 0.92);
  color: #d7e6ff;
  text-align: center;
  white-space: nowrap;
}

.dm-welfare-editor-table td:nth-child(3) {
  background: rgba(11, 19, 34, 0.9);
  color: #ffdcb2;
  white-space: normal;
  word-break: break-word;
}

.dm-welfare-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(241, 210, 164, 0.46);
  color: #ffe2b7;
  font-size: 12px;
  line-height: 1;
  transition: all 0.2s ease;
}

.dm-welfare-contact-link:hover {
  background: rgba(241, 210, 164, 0.18);
  border-color: rgba(241, 210, 164, 0.72);
  color: #fff1d7;
}

.dm-welfare-statement {
  margin: 26px 0 10px;
}

.dm-welfare-right-nav {
  position: fixed;
  right: 24px;
  bottom: 52px;
  z-index: 20;
  width: 168px;
  border: 1px solid rgba(151, 173, 216, 0.24);
  border-radius: 14px;
  background: rgba(7, 13, 24, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.dm-welfare-right-nav ul {
  margin: 0;
  padding: 10px;
  list-style: none;
  display: grid;
  gap: 6px;
}

.dm-welfare-right-nav li {
  line-height: 1;
  height: auto;
}

.dm-welfare-right-nav a {
  display: block;
  border-radius: 8px;
  padding: 9px 10px;
  color: #d2dffb;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dm-welfare-right-nav a:hover {
  color: #ffe8c5;
  background: rgba(241, 210, 164, 0.2);
}

.dm-welfare-nav-home {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(151, 173, 216, 0.22);
}

@media (max-width: 1280px) {
  .dm-welfare-right-nav {
    right: 10px;
  }
}

@media (max-width: 1100px) {
  .dm-welfare-right-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .dm-welfare-shell {
    padding: 16px 0 24px;
  }

  .dm-welfare-section {
    padding: 14px 14px 16px;
  }

  .dm-welfare-section-head h2 {
    font-size: 26px;
  }

  .dm-welfare-row {
    display: block;
  }

  .dm-welfare-label {
    min-width: 0;
    margin-bottom: 4px;
    line-height: 1.6;
    font-size: 16px;
  }

  .dm-welfare-value {
    font-size: 14px;
    line-height: 1.86;
  }

  .dm-welfare-editor-table td {
    padding: 8px 9px;
    font-size: 13px;
  }
}

.admin-nav-link {
  border: 1px solid rgba(159, 180, 224, 0.24);
  border-radius: 999px;
  padding: 6px 12px;
  transition: all 0.2s ease;
}

.admin-nav-link.allowed {
  border-color: rgba(241, 210, 164, 0.5);
  color: #ffe8c5;
  background: rgba(104, 72, 20, 0.28);
}

.admin-top-nav {
  background: linear-gradient(
      125deg,
      rgba(9, 17, 32, 0.94),
      rgba(15, 29, 56, 0.92)
    ),
    rgba(7, 13, 24, 0.82);
  border-color: rgba(241, 210, 164, 0.22);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.admin-top-nav .brand-sub {
  color: #b6c8ec;
}

.admin-nav-links {
  gap: 10px 12px;
  color: #b9c9e8;
}

.admin-nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(160, 180, 220, 0.2);
  background: rgba(9, 16, 30, 0.45);
}

.admin-nav-links a::after {
  display: none;
}

.admin-nav-links a:hover {
  color: #f4f8ff;
  border-color: rgba(200, 219, 255, 0.34);
  background: rgba(17, 30, 54, 0.62);
}

.admin-nav-links a.active {
  border-color: rgba(241, 210, 164, 0.5);
  color: #ffe8c5;
  background: rgba(104, 72, 20, 0.4);
  font-weight: 700;
}

.admin-nav-actions {
  gap: 8px;
}

.admin-home-link {
  border: 1px solid rgba(159, 178, 214, 0.3);
  border-radius: 999px;
  padding: 8px 12px;
  color: #d0def8;
  background: rgba(9, 16, 29, 0.7);
  transition: all 0.2s ease;
}

.admin-home-link:hover {
  color: #ffe7c3;
  border-color: rgba(241, 210, 164, 0.5);
  background: rgba(105, 72, 23, 0.34);
}

.login-role {
  border: 1px solid rgba(133, 161, 220, 0.4);
  background: rgba(10, 18, 34, 0.62);
  color: #c6d6ff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.admin-shell {
  padding: 24px;
}

.admin-intro {
  margin: 8px 0 18px;
  color: #c2d0ed;
  font-size: 15px;
  line-height: 1.88;
  max-width: var(--reading-width);
}

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

.admin-card {
  border: 1px solid rgba(148, 172, 219, 0.25);
  border-radius: 12px;
  background: rgba(8, 13, 24, 0.56);
  padding: 16px;
}

.admin-card h3 {
  margin: 0 0 8px;
  color: #f5f8ff;
  font-size: 20px;
}

.admin-card p {
  margin: 0 0 10px;
  color: #c8d3ee;
  line-height: 1.82;
  font-size: 14px;
}

.admin-card a {
  color: #ffdca9;
  text-decoration: none;
}

.admin-card a:hover {
  text-decoration: underline;
}

.admin-toolbar {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter label {
  color: #c9d8f7;
  font-size: 13px;
}

.admin-filter select {
  border: 1px solid rgba(159, 178, 214, 0.3);
  border-radius: 10px;
  background: rgba(9, 15, 28, 0.74);
  color: #e8efff;
  padding: 8px 10px;
  min-width: 140px;
}

.admin-filter input {
  border: 1px solid rgba(159, 178, 214, 0.3);
  border-radius: 10px;
  background: rgba(9, 15, 28, 0.74);
  color: #e8efff;
  padding: 8px 10px;
  min-width: 180px;
}

.admin-filter-btn,
.admin-add-btn {
  border: 1px solid rgba(241, 210, 164, 0.45);
  border-radius: 10px;
  background: linear-gradient(130deg, #efcf9f, #c69e68);
  color: #25190a;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-add-btn {
  text-decoration: none;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(147, 170, 219, 0.2);
  padding: 10px 8px;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #d9e5ff;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(13, 21, 38, 0.68);
}

.admin-table td {
  color: #c6d5f3;
}

.admin-intro-cell {
  max-width: 260px;
  line-height: 1.7;
}

.admin-actions-cell {
  white-space: nowrap;
}

.admin-mini-link,
.admin-mini-btn {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
  border: 1px solid rgba(159, 178, 214, 0.32);
  border-radius: 8px;
  background: rgba(9, 16, 29, 0.7);
  color: #d8e3fb;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.admin-mini-btn.pass {
  border-color: rgba(131, 211, 147, 0.45);
  color: #d5ffe0;
}

.admin-mini-btn.reject {
  border-color: rgba(225, 134, 134, 0.45);
  color: #ffd2d2;
}

.admin-mini-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-role-select {
  border: 1px solid rgba(159, 178, 214, 0.3);
  border-radius: 8px;
  background: rgba(9, 15, 28, 0.74);
  color: #e8efff;
  padding: 6px 8px;
  min-width: 110px;
  margin-right: 6px;
}

.admin-role-permission-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-role-permission-card {
  border: 1px solid rgba(147, 170, 219, 0.22);
  border-radius: 12px;
  background: rgba(8, 14, 25, 0.68);
  padding: 14px;
}

.admin-role-permission-card h3 {
  margin: 0;
  font-size: 19px;
}

.admin-role-permission-card p {
  margin: 6px 0 12px;
  color: #c7d5ef;
  font-size: 13px;
  line-height: 1.8;
}

.admin-role-menu-group {
  margin-bottom: 10px;
}

.admin-role-menu-group h4 {
  margin: 0 0 8px;
  color: #dfe9ff;
  font-size: 13px;
}

.admin-role-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.admin-role-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d3dff6;
  font-size: 13px;
}

.admin-role-menu-item input {
  width: 14px;
  height: 14px;
}

.admin-role-permission-actions {
  margin-top: 8px;
}

.admin-assign-inline {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}

.admin-form-grid {
  border: 1px solid rgba(160, 179, 214, 0.24);
  border-radius: 12px;
  background: rgba(8, 15, 27, 0.76);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.admin-forbidden {
  padding: 24px;
  text-align: center;
}

.admin-forbidden h2 {
  margin: 6px 0 12px;
}

.admin-forbidden p {
  margin: 0;
  color: #c8d3ee;
  font-size: 15px;
  line-height: 1.82;
}

.admin-forbidden-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.admin-pagination {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.discover-pagination {
  margin-top: 16px;
}

.admin-page-btn {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  border: 1px solid rgba(159, 178, 214, 0.32);
  border-radius: 8px;
  background: rgba(9, 16, 29, 0.7);
  color: #d8e3fb;
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
}

.admin-page-btn.active {
  border-color: rgba(241, 210, 164, 0.5);
  background: rgba(103, 73, 26, 0.48);
  color: #ffe5bd;
  font-weight: 700;
}

.admin-page-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-toast {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1200;
  min-width: 180px;
  max-width: min(420px, 92vw);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(9, 15, 28, 0.94);
  border: 1px solid rgba(159, 178, 214, 0.4);
  color: #d8e3fb;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.success {
  border-color: rgba(131, 211, 147, 0.5);
}

.admin-toast.error {
  border-color: rgba(225, 134, 134, 0.5);
}

.admin-dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 1190;
  display: grid;
  place-items: center;
}

.admin-dialog-layer[hidden] {
  display: none;
}

.admin-dialog-mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.62);
}

.admin-dialog-panel {
  position: relative;
  width: min(460px, calc(100vw - 28px));
  border: 1px solid rgba(159, 178, 214, 0.36);
  border-radius: 12px;
  background: rgba(8, 14, 27, 0.98);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  padding: 16px;
}

.admin-dialog-panel h3 {
  margin: 0 0 8px;
  color: #f2f7ff;
  font-size: 20px;
}

.admin-dialog-panel p {
  margin: 0;
  color: #c8d5f0;
  font-size: 14px;
  line-height: 1.8;
}

.admin-dialog-panel textarea {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(159, 178, 214, 0.34);
  border-radius: 10px;
  background: rgba(9, 15, 28, 0.82);
  color: #e7efff;
  padding: 10px;
  resize: vertical;
  min-height: 84px;
}

.admin-dialog-error {
  margin-top: 8px !important;
  color: #ffb3b3 !important;
  font-size: 13px !important;
}

.admin-dialog-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-dialog-btn {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.admin-dialog-btn.cancel {
  border: 1px solid rgba(159, 178, 214, 0.34);
  background: rgba(9, 15, 28, 0.7);
  color: #d6e3fb;
}

.admin-dialog-btn.confirm {
  border: 1px solid rgba(241, 210, 164, 0.45);
  background: linear-gradient(130deg, #efcf9f, #c69e68);
  color: #25190a;
  font-weight: 700;
}

@media (max-width: 768px) {
  .bidu-page {
    padding: 16px;
  }

  .bidu-card {
    padding: 12px;
  }

  .bidu-card h3 {
    font-size: 18px;
  }

  .bidu-list {
    padding-left: 16px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .admin-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-role-permission-grid {
    grid-template-columns: 1fr;
  }

  .admin-role-menu-list {
    grid-template-columns: 1fr;
  }

  .login-role {
    display: none;
  }

  .admin-table-wrap {
    overflow: visible;
  }

  .admin-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    border: 1px solid rgba(147, 170, 219, 0.24);
    border-radius: 10px;
    background: rgba(8, 14, 27, 0.7);
    margin-bottom: 10px;
    padding: 6px 8px;
  }

  .admin-table td {
    border-bottom: 1px dashed rgba(147, 170, 219, 0.18);
    padding: 8px 4px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    white-space: normal;
  }

  .admin-table td:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: #8ea6d3;
    font-size: 12px;
    flex: 0 0 76px;
    line-height: 1.5;
  }

  .admin-intro-cell {
    max-width: none;
  }

  .admin-actions-cell {
    justify-content: flex-start;
    gap: 6px;
  }

  .admin-actions-cell::before {
    display: none;
  }

  .admin-filter .select2-container,
  .admin-actions-cell .select2-container {
    min-width: 0 !important;
    width: 100% !important;
  }
}
