:root {
  --zh-blue: #1772f6;
  --zh-blue-dark: #0f5bd7;
  --ink: #121a26;
  --muted: #646f7d;
  --line: #e6eaf0;
  --paper: #ffffff;
  --wash: #f5f7fb;
  --soft-blue: #eaf3ff;
  --shadow: 0 14px 45px rgba(18, 26, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% -6%, rgba(23, 114, 246, 0.16), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(33, 150, 136, 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, var(--wash) 30rem);
  color: var(--ink);
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

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

code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  background: #edf2f7;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(230, 234, 240, 0.9);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  max-width: 1180px;
  height: 58px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--zh-blue);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--zh-blue);
}

.nav-form {
  margin: 0;
}

.nav-form button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.nav-form button:hover {
  color: var(--zh-blue);
}

.page {
  padding: 18px 20px 52px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash-message {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.flash-success {
  color: #16794c;
  background: #e9f8ef;
  border: 1px solid rgba(22, 121, 76, 0.18);
}

.flash-error {
  color: #8f1f16;
  background: #fff0ed;
  border: 1px solid rgba(216, 57, 49, 0.22);
}

.hero {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.summary-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(230, 234, 240, 0.92);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(23, 114, 246, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(18, 26, 38, 0.07);
}

.summary-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.summary-copy span {
  color: var(--zh-blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.summary-copy strong {
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.summary-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.summary-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.summary-stats span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  color: #3b4655;
  background: #f3f7fc;
  font-size: 0.86rem;
}

.summary-stats strong {
  color: var(--zh-blue);
  font-size: 1rem;
}

.summary-stats .danger-chip {
  color: #8f1f16;
  background: #fff0ed;
}

.summary-stats .danger-chip strong {
  color: #d83931;
}

.hero > div:first-child,
.stats-card,
.filter-card,
.answer-card,
.empty-card,
.detail-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(230, 234, 240, 0.92);
  box-shadow: var(--shadow);
}

.hero > div:first-child {
  padding: 34px;
  border-radius: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--zh-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.08em;
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.stats-card {
  border-radius: 24px;
  padding: 26px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.stats-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.stats-card strong {
  color: var(--zh-blue);
  font-size: 2.45rem;
  line-height: 1;
}

.stats-card .danger-number {
  color: #d83931;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
}

.filter-card {
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 34px rgba(18, 26, 38, 0.06);
}

.filter-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.filter-card input[type="date"],
.filter-card input[type="password"],
.filter-card input:not([type]),
.filter-card select,
.admin-form input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
}

.filter-card input:focus,
.filter-card select:focus,
.admin-form input:focus {
  border-color: var(--zh-blue);
  box-shadow: 0 0 0 3px rgba(23, 114, 246, 0.12);
}

.checkline {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
}

.filter-card button,
.primary-action,
.admin-form button,
.primary-button {
  border: 0;
  border-radius: 999px;
  background: var(--zh-blue);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.filter-card button,
.admin-form button {
  width: 100%;
  height: 40px;
}

.filter-card button:hover,
.primary-action:hover,
.admin-form button:hover,
.primary-button:hover {
  background: var(--zh-blue-dark);
}

.reset-link {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.feed {
  display: grid;
  gap: 14px;
}

.grouped-feed {
  gap: 18px;
}

.author-group {
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 114, 246, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(218, 226, 238, 0.95);
  box-shadow: 0 12px 34px rgba(18, 26, 38, 0.06);
}

.author-group-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(230, 234, 240, 0.92);
  background: rgba(255, 255, 255, 0.84);
}

.author-avatar-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--zh-blue), #55a4ff);
  font-size: 1.18rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 114, 246, 0.22);
}

.author-group-title h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.04em;
}

.author-group-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.author-group-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.author-group-actions a {
  color: var(--zh-blue);
  font-weight: 800;
}

.author-group-feed {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.author-group .answer-card {
  box-shadow: none;
  border-color: rgba(230, 234, 240, 0.95);
}

.answer-card {
  border-radius: 18px;
  padding: 18px 20px;
}

.answer-card-deleted {
  border-color: rgba(216, 57, 49, 0.35);
  background:
    linear-gradient(90deg, rgba(216, 57, 49, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.96);
}

.answer-card h2,
.detail-card h1 {
  margin: 10px 0;
  letter-spacing: -0.04em;
}

.answer-card h2 {
  font-size: 1.25rem;
  line-height: 1.35;
}

.answer-card h2 a:hover {
  color: var(--zh-blue);
}

.answer-meta,
.detail-ids,
.detail-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.image-pill {
  color: var(--zh-blue);
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-weight: 800;
}

.status-available {
  color: #16794c;
  background: #e9f8ef;
}

.status-deleted {
  color: #b42318;
  background: #fff0ed;
}

.status-unknown {
  color: #946200;
  background: #fff7d6;
}

.deleted-alert,
.unknown-alert {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.deleted-alert {
  color: #8f1f16;
  background: #fff0ed;
  border: 1px solid rgba(216, 57, 49, 0.22);
}

.unknown-alert {
  color: #7a4f00;
  background: #fff7d6;
  border: 1px solid rgba(148, 98, 0, 0.22);
}

.detail-alert {
  margin-top: 18px;
}

.answer-excerpt {
  margin: 0;
  color: #2f3a49;
  line-height: 1.78;
}

.comment-preview {
  margin-top: 14px;
  padding: 0;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px solid #edf1f6;
  overflow: hidden;
}

.comment-preview summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
  list-style: none;
}

.comment-preview summary::-webkit-details-marker {
  display: none;
}

.comment-preview summary span {
  color: var(--ink);
  font-weight: 800;
}

.comment-preview summary em {
  font-style: normal;
}

.comment-preview summary::after {
  content: "展开";
  color: var(--zh-blue);
  font-weight: 700;
}

.comment-preview[open] summary::after {
  content: "收起";
}

.comment-preview-body {
  padding: 0 14px 12px;
}

.comment-preview-item {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid #edf1f6;
}

.comment-preview-item:first-of-type {
  border-top: 0;
}

.comment-preview-item strong {
  font-size: 0.88rem;
}

.comment-preview-item span {
  color: #3d4856;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comment-preview-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.comment-preview-more {
  display: inline-flex;
  margin-top: 10px;
  color: var(--zh-blue);
  font-weight: 700;
  font-size: 0.88rem;
}

.thumb-grid,
.image-wall {
  display: grid;
  gap: 10px;
}

.thumb-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.thumb-grid a,
.image-wall a {
  overflow: hidden;
  border-radius: 14px;
  background: #edf2f7;
}

.thumb-grid img,
.image-wall img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.thumb-grid img {
  aspect-ratio: 16 / 10;
}

.thumb-grid a:hover img,
.image-wall a:hover img {
  transform: scale(1.035);
}

.more-images {
  min-height: 120px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--soft-blue);
  color: var(--zh-blue);
  font-size: 1.35rem;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.ghost-action {
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--zh-blue);
  font-weight: 700;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 0;
}

.pager a,
.pager span {
  color: var(--muted);
}

.pager a:hover {
  color: var(--zh-blue);
}

.empty-card {
  border-radius: 20px;
  padding: 42px;
  text-align: center;
}

.detail-shell {
  max-width: 920px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--zh-blue);
  font-weight: 700;
}

.detail-card {
  border-radius: 24px;
  padding: clamp(24px, 5vw, 42px);
}

.detail-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.16;
}

.detail-images {
  margin-top: 30px;
}

.detail-images h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

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

.image-wall img {
  max-height: 520px;
  object-fit: contain;
}

.answer-body {
  margin-top: 30px;
  color: #202a36;
  font-size: 1.04rem;
  line-height: 1.95;
}

.answer-body p {
  margin: 0 0 1em;
}

.answer-inline-figure {
  margin: 1.25rem 0;
}

.answer-inline-image {
  width: min(100%, 720px);
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  background: #f5f5f7;
}

.answer-body a {
  color: #0066cc;
}

.comments-section {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.comments-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.comments-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.comments-heading span,
.comments-updated {
  color: var(--muted);
  font-size: 0.88rem;
}

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

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

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--soft-blue);
  color: var(--zh-blue);
  font-weight: 800;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-main {
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef1f5;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.comment-main p,
.reply-item p {
  margin: 8px 0 0;
  color: #273240;
  line-height: 1.8;
}

.author-pill {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--zh-blue);
  font-weight: 800;
}

.reply-list {
  margin-top: 12px;
  padding: 12px;
  display: grid;
  gap: 12px;
  border-radius: 14px;
  background: #f7f9fc;
}

.empty-comments {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--muted);
}

.detail-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.admin-shell {
  max-width: 560px;
}

.admin-login-card,
.admin-card,
.author-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(230, 234, 240, 0.92);
  box-shadow: var(--shadow);
}

.admin-login-card {
  padding: 34px;
  border-radius: 24px;
}

.admin-login-card h1,
.admin-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.06em;
}

.admin-login-card p,
.admin-hero p,
.admin-hint {
  color: var(--muted);
  line-height: 1.8;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.admin-security-note {
  margin: 0;
}

.admin-section-separator {
  height: 1px;
  margin: 22px 0;
  background: rgba(0, 0, 0, 0.08);
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.captcha-preview {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(245, 245, 247, 0.72);
}

.captcha-preview img {
  display: block;
  width: 160px;
  height: 56px;
}

.captcha-refresh {
  min-width: 88px;
}

.nav-user {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--zh-blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-overview {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-overview-main {
  padding: 34px;
  border-radius: 28px;
}

.admin-overview-main h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}

.admin-overview-main p {
  margin: 0;
}

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

.admin-stat-tile {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 24px;
}

.admin-stat-tile span,
.admin-stat-tile em {
  color: var(--muted);
  font-style: normal;
}

.admin-stat-tile span {
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-stat-tile strong {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.admin-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 48px rgba(0, 0, 0, 0.06);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
}

.admin-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #4f5b69;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.admin-tab:hover {
  color: #172334;
  background: rgba(0, 113, 227, 0.08);
  transform: translateY(-1px);
}

.admin-tab-active {
  color: #fff;
  background: #0071e3;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
}

.admin-layout-wide {
  grid-template-columns: 380px minmax(0, 1fr);
}

.admin-sidebar-stack {
  display: grid;
  gap: 16px;
  align-self: start;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.setup-alert {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  color: #7a4f00;
  background: #fff7d6;
  border: 1px solid rgba(148, 98, 0, 0.22);
  line-height: 1.7;
}

.admin-hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 22px;
  margin-bottom: 22px;
}

.admin-hero > div:first-child {
  padding: 34px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(230, 234, 240, 0.92);
  box-shadow: var(--shadow);
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-card {
  position: sticky;
  top: 80px;
  border-radius: 20px;
  padding: 22px;
}

.admin-card-muted {
  background: rgba(252, 253, 255, 0.84);
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-kicker {
  margin: 0 0 6px;
  color: #7b8794;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-meta-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.92);
  color: #5f6b78;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-card h2,
.author-title h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.admin-note-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #415061;
  line-height: 1.7;
}

.admin-collection-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

.admin-collection-head h2 {
  margin: 4px 0 0;
  letter-spacing: -0.04em;
}

.author-list {
  display: grid;
  gap: 14px;
}

.author-main {
  display: grid;
  gap: 14px;
}

.author-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border-radius: 20px;
  padding: 22px;
}

.author-card-disabled {
  opacity: 0.72;
}

.author-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.author-title-block {
  min-width: 0;
}

.author-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.author-token {
  margin: 8px 0 0 !important;
  color: #7a8694 !important;
  font-size: 0.84rem;
}

.author-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
  word-break: break-all;
}

.author-note {
  color: #2f3a49 !important;
}

.author-fetch-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-fetch-summary span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #3b4655;
  background: #f3f7fc;
  font-size: 0.85rem;
}

.author-fetch-form {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

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

.author-fetch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-profile-link {
  display: inline-flex;
  margin-top: 2px;
  color: var(--zh-blue);
  font-weight: 700;
  white-space: nowrap;
}

.author-actions {
  display: flex;
  gap: 10px;
}

.author-actions-stacked {
  flex-direction: column;
  align-items: stretch;
}

.author-actions form {
  margin: 0;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.ghost-button {
  border: 0;
  background: var(--soft-blue);
  color: var(--zh-blue);
}

.danger-button {
  border: 0;
  background: #fff0ed;
  color: #b42318;
}

.admin-security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 320px;
  gap: 22px;
  align-items: start;
}

.security-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.security-summary-row {
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(245, 245, 247, 0.76);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.security-summary-row span {
  color: #64707d;
  font-size: 0.82rem;
  font-weight: 700;
}

.security-summary-row strong {
  color: #172334;
  font-weight: 760;
}

.security-link-list {
  display: grid;
  gap: 10px;
}

.security-link-list .ghost-action {
  justify-content: center;
}

.inline-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-runtime-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 320px;
  gap: 22px;
  align-items: start;
}

.runtime-settings-form {
  display: grid;
  gap: 22px;
}

.runtime-section {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.runtime-section + .runtime-section {
  border-top: 1px solid rgba(214, 223, 236, 0.75);
  padding-top: 20px;
}

.runtime-section-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

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

.runtime-field-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(246, 249, 253, 0.9);
  border: 1px solid rgba(221, 229, 241, 0.86);
}

.runtime-field-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.runtime-field-head > span:first-child {
  min-width: 0;
}

.runtime-source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5e6b82;
  background: rgba(147, 160, 182, 0.14);
}

.runtime-source-chip-active {
  color: #0a63c9;
  background: rgba(0, 113, 227, 0.14);
}

.runtime-textarea {
  min-height: 132px;
  resize: vertical;
}

.runtime-field-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.runtime-field-meta span,
.runtime-field-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.runtime-field-meta strong {
  display: block;
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.45;
}

.runtime-form-actions {
  display: flex;
  justify-content: flex-start;
}

.runtime-inline-alert {
  margin-bottom: 18px;
}

.runtime-reset-copy {
  margin: 0 0 14px;
  color: var(--muted);
}

.site-footer {
  width: min(100%, 980px);
  margin: 6px auto 0;
  padding: 0 0 18px;
}

.site-footer-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  padding: 13px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 8px 24px rgba(15, 23, 42, 0.035);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
}

.site-footer-panel::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  filter: blur(10px);
  pointer-events: none;
}

.site-footer-panel strong {
  position: relative;
  z-index: 1;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 600;
}

.site-footer-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #748091;
  font-size: 0.8rem;
  line-height: 1.56;
}

.site-footer-panel a {
  color: #637186;
  text-decoration: none;
}

.site-footer-panel a:hover {
  color: #4f5d71;
  text-decoration: underline;
}

.site-footer-records {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.site-footer-records span {
  color: #98a2b3;
  font-size: 0.76rem;
}

.public-complaint-layout {
  margin-top: 8px;
}

.public-complaint-card {
  padding: 28px;
}

.takedown-public-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.takedown-public-copy p {
  margin: 0;
}

.takedown-request-list {
  display: grid;
  gap: 18px;
}

.takedown-card {
  position: static;
}

.takedown-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.takedown-meta-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(245, 247, 251, 0.9);
  border: 1px solid rgba(221, 229, 241, 0.86);
}

.takedown-meta-grid span,
.takedown-url span,
.takedown-reason-block span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.takedown-meta-grid strong,
.takedown-url a,
.takedown-reason-block p {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.takedown-url,
.takedown-reason-block {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.takedown-url {
  margin-top: 2px;
}

.takedown-url a {
  color: #0a63c9;
  text-decoration: none;
}

.takedown-url a:hover {
  text-decoration: underline;
}

.takedown-reason-block p {
  margin: 0;
  color: #1f2937;
  line-height: 1.7;
}

.takedown-admin-note {
  margin-top: -2px;
}

.takedown-process-form {
  margin-top: 10px;
}

.takedown-delete-form {
  margin-top: 10px;
}

.takedown-note-input {
  min-height: 108px;
}

@media (max-width: 860px) {
  .hero,
  .summary-strip,
  .layout,
  .author-group-head,
  .admin-hero,
  .admin-layout,
  .author-card,
  .admin-security-layout,
  .admin-runtime-layout {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .admin-card {
    position: static;
  }

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

  .admin-tabs {
    width: 100%;
    grid-auto-flow: row;
  }

  .admin-tab {
    width: 100%;
  }

  .runtime-field-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-panel,
  .takedown-meta-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: 100%;
  }

  .admin-collection-head,
  .author-card-head {
    align-items: start;
    flex-direction: column;
  }

  .author-group-actions {
    justify-content: flex-start;
  }

  .summary-stats {
    justify-content: flex-start;
  }

  .thumb-grid,
  .image-wall {
    grid-template-columns: 1fr;
  }

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

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

/* Apple-style visual refresh. Kept as an override layer to preserve existing HTML behavior. */
:root {
  --zh-blue: #0071e3;
  --zh-blue-dark: #005bbf;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --paper: rgba(255, 255, 255, 0.86);
  --wash: #f5f5f7;
  --soft-blue: #e8f2ff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
  --surface-blur: saturate(180%) blur(24px);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -14rem, rgba(255, 255, 255, 0.96), transparent 33rem),
    radial-gradient(circle at 8% 8%, rgba(0, 113, 227, 0.09), transparent 30rem),
    radial-gradient(circle at 96% 20%, rgba(174, 174, 178, 0.16), transparent 28rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 42%, #f2f2f4 100%);
  color: var(--ink);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.26), transparent 62%);
}

code {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.055);
}

.topbar {
  background: rgba(251, 251, 253, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
}

.topbar-inner {
  max-width: 1240px;
  height: 52px;
}

.brand {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111, #777);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
  vertical-align: 1px;
}

.nav {
  gap: 18px;
  color: #515154;
  font-size: 0.82rem;
  font-weight: 500;
}

.nav a,
.nav-form button {
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav-form button:hover {
  color: #000;
  transform: translateY(-1px);
}

.page {
  padding: 22px 22px 64px;
}

.shell {
  max-width: 1240px;
}

.summary-strip,
.filter-card,
.author-group,
.answer-card,
.empty-card,
.detail-card,
.admin-login-card,
.admin-card,
.author-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 70px rgba(0, 0, 0, 0.08);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
}

.summary-strip {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 22px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 14% 12%, rgba(0, 113, 227, 0.14), transparent 24rem);
  animation: appleRise 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.summary-copy span {
  color: #86868b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.summary-copy strong {
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.summary-copy em {
  color: #6e6e73;
}

.summary-stats span {
  min-height: 34px;
  color: #1d1d1f;
  background: rgba(245, 245, 247, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.045);
  font-weight: 500;
}

.summary-stats strong {
  color: #000;
  font-weight: 760;
}

.summary-stats .danger-chip {
  color: #a01812;
  background: rgba(255, 239, 236, 0.92);
}

.layout {
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 22px;
}

.layout.row {
  display: flex;
}

.archive-layout {
  display: grid;
  gap: 22px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 16px;
  align-items: end;
}

.filter-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 0.8fr) minmax(180px, 0.9fr) auto auto;
  gap: 12px;
  align-items: end;
}

.filter-toolbar .form-label,
.filter-toolbar .checkline {
  margin-bottom: 0;
}

.filter-toolbar .checkline {
  min-height: 42px;
  display: flex !important;
  gap: 10px;
  align-items: center;
  padding: 0 2px;
  cursor: pointer;
}

.filter-toolbar .form-check-input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  cursor: pointer;
}

.filter-toolbar .form-check-label {
  cursor: pointer;
  user-select: none;
}

.toggle-check {
  position: relative;
  border-radius: 999px;
}

.toggle-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle-check-box {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(0, 0, 0, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.toggle-check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(42deg) scale(0.7);
  transition: opacity 140ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-check-input:checked + .toggle-check-box {
  border-color: #0071e3;
  background: #0071e3;
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.28);
}

.toggle-check-input:checked + .toggle-check-box::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}

.toggle-check:focus-visible .toggle-check-box {
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}

.toggle-check:hover .toggle-check-box {
  transform: translateY(-1px);
}

.toggle-check-text {
  color: #515154;
  font-weight: 650;
}

.filter-actions {
  display: grid;
  gap: 8px;
}

.centered-feed {
  width: min(100%, 980px);
  margin: 0 auto;
}

.sidebar {
  top: 72px;
}

.filter-card {
  padding: 18px;
  border-radius: 26px;
  animation: appleRise 580ms 70ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.filter-card label,
.admin-form label {
  color: #6e6e73;
  font-size: 0.8rem;
  font-weight: 650;
}

.filter-card input[type="date"],
.filter-card input[type="password"],
.filter-card input:not([type]),
.filter-card select,
.admin-form input,
.form-control,
.form-select {
  height: 42px;
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  color: #1d1d1f;
  background: rgba(245, 245, 247, 0.72);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.filter-card input:hover,
.filter-card select:hover,
.admin-form input:hover,
.form-control:hover,
.form-select:hover {
  background: rgba(255, 255, 255, 0.9);
}

.filter-card input:focus,
.filter-card select:focus,
.admin-form input:focus,
.form-control:focus,
.form-select:focus {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
  background: #fff;
  transform: translateY(-1px);
}

.filter-card button,
.primary-action,
.admin-form button,
.primary-button,
.btn-primary {
  min-height: 40px;
  border-radius: 999px;
  background: #0071e3;
  color: #fff;
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.filter-card button:hover,
.primary-action:hover,
.admin-form button:hover,
.primary-button:hover,
.btn-primary:hover {
  background: #147ce5;
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.28);
  transform: translateY(-2px);
}

.reset-link,
.back-link,
.comment-preview-more,
.author-profile-link,
.author-group-actions a {
  color: #0066cc;
  font-weight: 650;
}

.grouped-feed {
  gap: 22px;
}

.author-group {
  border-radius: 30px;
  overflow: clip;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.56)),
    radial-gradient(circle at 10% 0%, rgba(0, 113, 227, 0.1), transparent 22rem);
  animation: appleRise 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--reveal-index, 0) * 60ms);
}

.author-group-head {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.48);
}

.author-avatar-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.44), transparent 24%),
    linear-gradient(145deg, #1d1d1f, #6e6e73);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.44) inset;
  font-size: 1.1rem;
}

.author-group-title h2 {
  color: #1d1d1f;
  font-size: 1.18rem;
  font-weight: 760;
}

.author-group-title p,
.author-group-actions {
  color: #6e6e73;
}

.author-group-feed {
  gap: 12px;
  padding: 14px;
}

.answer-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms ease,
    border-color 240ms ease,
    background 240ms ease;
  animation: appleFade 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--reveal-index, 0) * 35ms);
}

.answer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.58), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(0, 113, 227, 0.08), transparent 18rem);
  opacity: 0;
  transition: opacity 240ms ease;
}

.answer-card:hover {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 26px 70px rgba(0, 0, 0, 0.11);
  transform: translateY(-4px);
}

.answer-card:hover::before {
  opacity: 1;
}

.answer-card-deleted {
  border-color: rgba(255, 59, 48, 0.22);
  background:
    linear-gradient(120deg, rgba(255, 241, 239, 0.92), rgba(255, 255, 255, 0.8));
}

.answer-card h2,
.detail-card h1 {
  color: #1d1d1f;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.answer-card h2 {
  font-size: 1.28rem;
}

.answer-card h2 a {
  background-image: linear-gradient(#1d1d1f, #1d1d1f);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color 180ms ease, background-size 220ms ease;
}

.answer-card h2 a:hover {
  color: #000;
  background-size: 100% 1px;
}

.answer-meta,
.detail-ids,
.detail-footer,
.comment-meta {
  color: #6e6e73;
}

.answer-card .answer-meta,
.answer-card .actions {
  justify-content: center;
}

.answer-card .answer-excerpt {
  max-width: 760px;
  margin-inline: auto;
}

.status-badge,
.image-pill,
.author-pill {
  font-weight: 700;
}

.status-available {
  color: #007a3d;
  background: rgba(52, 199, 89, 0.13);
}

.status-deleted {
  color: #b42318;
  background: rgba(255, 59, 48, 0.12);
}

.status-unknown {
  color: #8a5a00;
  background: rgba(255, 204, 0, 0.16);
}

.deleted-alert,
.unknown-alert,
.setup-alert {
  border-radius: 16px;
}

.comment-preview {
  border-radius: 18px;
  background: rgba(245, 245, 247, 0.74);
  border-color: rgba(0, 0, 0, 0.055);
}

.comment-preview summary {
  min-height: 44px;
}

.comment-preview summary::after {
  color: #0066cc;
}

.thumb-grid a,
.image-wall a,
.more-images {
  border-radius: 20px;
}

.thumb-grid.row,
.image-wall.row {
  display: flex;
  justify-content: center;
}

.thumb-grid.row a,
.image-wall.row a {
  flex: 0 1 31%;
  display: block;
}

.thumb-grid a,
.image-wall a {
  background: #f5f5f7;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.thumb-grid img,
.image-wall img {
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
}

.thumb-grid a:hover img,
.image-wall a:hover img {
  transform: scale(1.045);
  filter: saturate(1.06);
}

.ghost-action,
.ghost-button {
  background: rgba(0, 113, 227, 0.1);
  color: #0066cc;
  transition: background 180ms ease, transform 180ms ease;
}

.ghost-action:hover,
.ghost-button:hover {
  background: rgba(0, 113, 227, 0.16);
  transform: translateY(-2px);
}

.pager {
  padding: 26px 0 8px;
}

.pager a,
.pager span,
.pager strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(0, 0, 0, 0.055);
}

.pager a:hover {
  color: #000;
  transform: translateY(-1px);
}

.pager-jump {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.pager-jump-label {
  color: var(--muted);
  font-weight: 700;
}

.pager-input {
  width: 88px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  background: rgba(255, 255, 255, 0.64);
  text-align: center;
  box-shadow: none;
}

.pager-input:focus {
  background: #fff;
}

.pager-input::-webkit-outer-spin-button,
.pager-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pager-input[type="number"] {
  -moz-appearance: textfield;
}

.detail-shell {
  max-width: 980px;
}

.detail-card {
  border-radius: 34px;
  animation: appleRise 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.detail-card h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.answer-body {
  color: #1d1d1f;
  font-size: 1.08rem;
}

.comments-section {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.comment-avatar {
  background: linear-gradient(145deg, #1d1d1f, #8e8e93);
  color: white;
}

.comment-main {
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

.reply-list,
.empty-comments {
  border-radius: 18px;
  background: rgba(245, 245, 247, 0.82);
}

.admin-hero > div:first-child,
.admin-login-card,
.admin-card,
.author-card {
  border-radius: 28px;
}

.author-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.author-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.1);
}

.danger-button {
  background: rgba(255, 59, 48, 0.12);
  color: #b42318;
}

@keyframes appleRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes appleFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .page {
    padding: 16px 14px 46px;
  }

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

  .summary-strip,
  .author-group-head {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .filter-toolbar,
  .filter-fields {
    grid-template-columns: 1fr;
  }

  .summary-stats,
  .author-group-actions {
    justify-content: flex-start;
  }

  .summary-copy {
    align-items: flex-start;
  }

  .centered-feed {
    width: 100%;
  }

  .thumb-grid.row a,
  .image-wall.row a {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
