/**
 * 全站样式：清新配色、玻璃拟态、细腻动效、移动端优先
 */

:root {
  --bg0: #f6fffb;
  --bg1: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.10);
  --brand: #14b8a6;
  --brand2: #22c55e;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow2: 0 10px 30px rgba(20, 184, 166, 0.18);
  --radius: 18px;
  --radius2: 14px;
  --mono: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--mono);
  color: var(--ink);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(45, 212, 191, 0.18), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(34, 197, 94, 0.14), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
}

.is-locked { overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.page { position: relative; min-height: 100%; }

.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(closest-side at 50% 20%, rgba(0,0,0,0.85), transparent 70%);
  opacity: 0.55;
}
.bg__glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
  transform: translateZ(0);
}
.bg__glow--a { left: -120px; top: -140px; background: rgba(45, 212, 191, 0.55); }
.bg__glow--b { right: -160px; top: 120px; background: rgba(34, 197, 94, 0.45); }

.shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}
.shell--narrow { width: min(520px, calc(100% - 32px)); padding-top: 56px; }
.shell--mobile {
  width: min(560px, calc(100% - 28px));
  padding: 18px 0 28px;
  /* 类百度：整体居中模块（垂直 + 水平） */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 0px);
}

.hero { padding: 10px 0 8px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2px;
}
.hero__title {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.6px;
}
.hero__desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 62ch;
}

.search { margin-top: 10px; }
.search__box {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px 12px;
  font-size: 16px;
  color: var(--ink);
}
.search__btn {
  position: relative;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px 18px;
  min-width: 108px;
  color: white;
  font-weight: 650;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: var(--shadow2);
  transform: translateZ(0);
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}
.search__btn:disabled { opacity: 0.65; cursor: not-allowed; filter: grayscale(0.15); }
.search__btn:not(:disabled):active { transform: translateY(1px) scale(0.99); }
.search__btnShine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-40%);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine {
  0% { transform: translateX(-55%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(55%); opacity: 0; }
}
.search__hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
 * 极简移动端前台（按需求：搜索框 + 搜索按钮 + 单图结果 + 三按钮）
 * ========================= */
.simplehead {
  padding: 10px 0 8px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.simplehead__title {
  font-weight: 900;
  letter-spacing: -0.4px;
  font-size: 18px;
  text-align: center;
}

.simple {
  margin-top: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.simple__search {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.simple__input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 14px 10px;
}
.simple__btn {
  border: 0;
  border-radius: 16px;
  padding: 12px 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: var(--shadow2);
  cursor: pointer;
}
.simple__btn:disabled { opacity: .7; cursor: not-allowed; }

/* 前台：游客上传 — 与搜索条同宽磨砂卡片，避免默认 a 标签蓝字下划线（依赖样式表加载） */
.simple__tools {
  margin-top: 12px;
  width: 100%;
  max-width: 560px;
}
.simple__uploadCard {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.simple__uploadCard:link,
.simple__uploadCard:visited,
.simple__uploadCard:hover,
.simple__uploadCard:active {
  color: var(--ink);
  text-decoration: none;
}
.simple__uploadCard:hover {
  border-color: rgba(20, 184, 166, 0.38);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}
.simple__uploadCard:active {
  transform: scale(0.992);
}
.simple__uploadIcon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.32);
}
.simple__uploadSvg {
  width: 24px;
  height: 24px;
  color: #fff;
}
.simple__uploadBody {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
  text-align: left;
}
.simple__uploadTitle {
  font-weight: 850;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.simple__uploadSub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.simple__uploadArrow {
  flex-shrink: 0;
  font-size: 18px;
  color: rgba(20, 184, 166, 0.85);
  font-weight: 300;
}

.simple__state {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.7;
  width: 100%;
  max-width: 560px;
}

/* 半匹配：相关关键词列表（点选后加载该组图片） */
.kwlist {
  margin-top: 14px;
  padding: 14px 12px 16px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: kwfade 0.35s ease;
  width: 100%;
  max-width: 560px;
}
@keyframes kwfade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.kwlist__title {
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}
.kwlist__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.kwchip {
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.kwchip:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.18);
}
.kwchip:active {
  transform: translateY(0);
}

/* 首页页脚版权（系统设置「版权信息」） */
.simplefooter {
  margin-top: 20px;
  padding: 0 8px 8px;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
  opacity: 0.92;
}

.viewer {
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
  max-width: 560px;
}

/* 多图：图片区左右切换（与键盘、滑动一致） */
.viewer__frame {
  position: relative;
  display: block;
}
.viewer__navbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.viewer__navbtn:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.22);
  background: rgba(255, 255, 255, 0.95);
}
.viewer__navbtn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.98);
}
.viewer__navbtn:disabled {
  opacity: 0;
  pointer-events: none;
}
.viewer__navbtn--prev { left: 8px; }
.viewer__navbtn--next { right: 8px; }

.viewer__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.03);
}
.viewer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
}
.act {
  appearance: none;
  border-radius: 16px;
  padding: 12px 10px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  cursor: pointer;
}
.act--primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.22);
}
.act--ghost { color: var(--ink); }

@media (max-width: 420px) {
  .simple__search { grid-template-columns: 1fr 92px; }
  .viewer__actions { grid-template-columns: 1fr; }
  .viewer__navbtn { width: 38px; height: 38px; font-size: 22px; }
  .viewer__navbtn--prev { left: 4px; }
  .viewer__navbtn--next { right: 4px; }
}

.hero__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.linkchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.linkchip:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10); border-color: rgba(20, 184, 166, 0.35); }
.linkchip--ghost { color: var(--muted); }

.results { margin-top: 26px; }
.results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 12px;
}
.results__title { font-weight: 750; letter-spacing: -0.2px; }
.results__meta { color: var(--muted); font-size: 13px; }

.skeleton { margin-top: 6px; }
.skeleton__line {
  height: 14px;
  width: min(360px, 70%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15,23,42,0.08), rgba(15,23,42,0.14), rgba(15,23,42,0.08));
  background-size: 200% 100%;
  animation: sk 1.1s ease-in-out infinite;
}
.skeleton__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.skeleton__card {
  height: 220px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(15,23,42,0.06), rgba(15,23,42,0.12), rgba(15,23,42,0.06));
  background-size: 200% 100%;
  animation: sk 1.1s ease-in-out infinite;
}
@keyframes sk { 0% { background-position: 0% 0%; } 100% { background-position: -200% 0%; } }

@media (max-width: 720px) {
  .skeleton__cards { grid-template-columns: 1fr; }
}

.empty {
  border-radius: var(--radius);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  padding: 22px 16px;
  text-align: center;
}
.empty__icon { display: flex; justify-content: center; margin-bottom: 10px; opacity: 0.95; }
.empty__title { font-weight: 750; margin-bottom: 6px; }
.empty__sub { color: var(--muted); font-size: 14px; line-height: 1.7; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

.cardx {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.cardx:hover { transform: translateY(-2px); box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14); }

.cardx__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(15, 23, 42, 0.04);
}
.cardx__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 520ms ease;
}
.cardx:hover .cardx__img { transform: scale(1.05); }
.cardx__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 20% 0%, rgba(255,255,255,0.35), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.cardx__body { padding: 14px 14px 16px; }
.cardx__title { font-weight: 800; letter-spacing: -0.2px; }
.cardx__desc { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.cardx__desc--muted { opacity: 0.85; }
.cardx__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.mini {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.mini:hover { transform: translateY(-1px); border-color: rgba(20, 184, 166, 0.35); box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10); }
.mini--primary {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.22);
}
.mini--ghost { background: rgba(255, 255, 255, 0.55); }

/**
 * 技术说明：必须显式处理 [hidden]，否则 .lightbox 的 display:grid
 * 会覆盖浏览器对 hidden 的默认隐藏，导致一打开页面就全屏蒙层+毛玻璃。
 */
.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
}
.lightbox__top {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  z-index: 2;
}
.lbbtn {
  appearance: none;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.lbbtn--primary {
  border: 0;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.95), rgba(34, 197, 94, 0.95));
}
.lightbox__stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.lightbox__img {
  max-width: min(980px, 100%);
  max-height: min(86vh, 100%);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
  transition: transform 180ms ease;
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* 通用表单 / 后台 */
.card {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card--form { padding: 18px; }
.card--login { padding: 22px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__dot {
  width: 12px; height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.12);
}
.brand__title { font-weight: 850; letter-spacing: -0.3px; }
.brand__sub { color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.nav__link {
  text-decoration: none;
  color: var(--ink);
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  transition: transform 160ms ease, border-color 160ms ease;
}
.nav__link:hover { transform: translateY(-1px); border-color: rgba(20, 184, 166, 0.35); }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 13px; color: var(--muted); }
.field__input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field__input:focus {
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}
.field__input--file { padding: 10px; }
.field__input--textarea {
  min-height: 72px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.55;
}
.field__hint {
  margin: -6px 0 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* 后台编辑页：多图缩略图 + 加号追加 */
.edit-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 18px;
}
.edit-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
}
.edit-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edit-thumb__delwrap {
  position: absolute;
  top: 4px;
  right: 4px;
  margin: 0;
}
.edit-thumb__del {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.edit-thumb__del:hover {
  background: rgba(220, 38, 38, 0.9);
}
.edit-appendform {
  display: contents;
}
.edit-add {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border: 2px dashed rgba(20, 184, 166, 0.45);
  background: rgba(20, 184, 166, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.edit-add:hover {
  border-color: rgba(20, 184, 166, 0.85);
  background: rgba(20, 184, 166, 0.14);
}
.edit-add:active {
  transform: scale(0.98);
}
.edit-add__plus {
  font-size: 36px;
  font-weight: 300;
  color: var(--brand);
  line-height: 1;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 750;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: var(--shadow2);
  transition: transform 160ms ease, filter 160ms ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--danger {
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.18);
}
.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: none;
}

.alert {
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 14px;
  line-height: 1.6;
}
.alert--error {
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(254, 226, 226, 0.55);
  color: #7f1d1d;
}
.alert--ok {
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(220, 252, 231, 0.55);
  color: #14532d;
}

.captcha-row { display: grid; grid-template-columns: 1fr 132px; gap: 10px; align-items: center; }
.captcha-img {
  width: 132px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  object-fit: cover;
  background: white;
  cursor: pointer;
}

.login-head { margin-bottom: 12px; }
.login-head__title { font-size: 22px; font-weight: 900; letter-spacing: -0.3px; }
.login-head__sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.hint { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
}

/* 条目列表：标题与搜索同一行（窄屏换行） */
.toolbar--list {
  align-items: flex-end;
  gap: 14px;
}

/* 列表关键词搜索 */
.listsearch {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 1;
  min-width: min(100%, 280px);
  max-width: 420px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.listsearch__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 8px 6px;
  color: var(--ink);
}
.listsearch__btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.22);
  transition: transform 140ms ease, filter 140ms ease;
}
.listsearch__btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.listsearch__btn:active { transform: translateY(0); }

/* 分页 */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
}
.pager__link {
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.pager__link:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.pager__meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
}

.tablewrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
}
table.admin {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  background: rgba(255, 255, 255, 0.65);
}
table.admin th, table.admin td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: middle;
  text-align: left;
  font-size: 14px;
}
table.admin th { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: 0.2px; }
.thumb {
  width: 92px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
}
.rowactions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 条目列表：置顶行与角标 */
table.admin tr.is-pinned td {
  background: rgba(20, 184, 166, 0.07);
}
.pinbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.2px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(20, 184, 166, 0.28);
}
.pinbadge--muted {
  color: var(--muted);
  font-weight: 600;
  background: transparent;
  border-color: transparent;
}
.pinform {
  display: inline-flex;
  margin: 0;
}

.page--admin-login .shell--narrow { padding-top: 72px; }

/* =========================
 * 后台导航与系统设置页
 * ========================= */
.admintop {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}
.admintop__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admintop__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.admilink {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}
.admilink--danger {
  border-color: rgba(239, 68, 68, 0.35);
  color: #991b1b;
}

.adminmenu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.adminmenu__link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.adminmenu__link:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.adminmenu__link.is-active {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.22);
}

.dashgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
/* 后台首页四个入口：宽屏四列，中等两列 */
.dashgrid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .dashgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dashgrid { grid-template-columns: 1fr; }
  .dashgrid--4 { grid-template-columns: 1fr; }
}
.dashcard {
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.65);
  padding: 14px 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.dashcard:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}
.dashcard__t { font-weight: 900; letter-spacing: -0.2px; }
.dashcard__d { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* 美化「选择文件」：自定义按钮 + 文件名展示 */
.filepick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.filepick__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.22);
  transition: transform 140ms ease, filter 140ms ease;
}
.filepick__btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.filepick__btn:active { transform: translateY(0); }
.filepick__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.22), 0 12px 24px rgba(20, 184, 166, 0.22);
}
.filepick__name {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
