/* ============================================================
   ACG动漫导航网 · 全站样式（动漫粉紫渐变 · 移动端优先）
   前台 + 后台
   ============================================================ */
:root {
  --primary: #ff4d8d;
  --primary-dark: #e0246f;
  --primary-soft: #ffe9f2;
  --accent: #a855f7;
  --accent-soft: #f3e8ff;
  --grad: linear-gradient(135deg, #ff6fa5 0%, #ff4d8d 55%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, #ffe0ec 0%, #e9dcff 100%);
  --bg: #fff5f8;
  --card: #ffffff;
  --text: #2d2a32;
  --muted: #9a8a94;
  --border: #f5dbe6;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(255, 77, 141, .06);
  --shadow-lg: 0 10px 28px rgba(255, 77, 141, .18);
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 12px; }
.container.narrow { max-width: 660px; }
.main { min-height: 55vh; }

/* ================= 头部 ================= */
.m-head {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.m-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.logo-icon { font-size: 22px; animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff4d8d 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.m-search {
  flex: 1;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 77, 141, .04);
}
.m-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 7px 14px;
  font-size: 13px;
}
.m-search button {
  border: 0;
  background: var(--grad);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  flex: none;
}
.m-search button:hover { filter: brightness(1.08); }

.m-nav {
  background: var(--grad-soft);
  border-top: 1px solid var(--border);
}
.m-nav-inner {
  display: flex;
  gap: 2px;
  padding-top: 4px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.m-nav-inner::-webkit-scrollbar { display: none; }
.m-nav a {
  flex: none;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}
.m-nav a.active { background: var(--grad); color: #fff; box-shadow: var(--shadow); }

/* 分类横滑条 */
.cat-scroll { border-top: 1px solid var(--border); background: var(--card); }
.cat-scroll-inner {
  display: flex;
  gap: 6px;
  padding-top: 6px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.cat-scroll-inner::-webkit-scrollbar { display: none; }
.cat-scroll a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text);
}
.cat-scroll a:hover { border-color: var(--primary); color: var(--primary); background: #fff; }

/* ================= 首页 Hero ================= */
.intro {
  background: linear-gradient(135deg, #ff6fa5 0%, #ff9a8b 45%, #a855f7 100%);
  color: #fff;
  padding: 34px 0 38px;
  text-align: center;
}
.intro-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.intro-desc {
  max-width: 640px;
  margin: 10px auto 0;
  opacity: .95;
  font-size: 14px;
}
.intro-stats {
  display: inline-flex;
  gap: 20px;
  margin-top: 16px;
  padding: 7px 22px;
  background: rgba(255, 255, 255, .20);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 13px;
  backdrop-filter: blur(4px);
}
.intro-stats b { font-size: 16px; margin-right: 3px; }

/* ================= 区块 ================= */
.panel-sec { margin-top: 16px; }
.sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.sec-head h2 { font-size: 16px; font-weight: 700; }
.sec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  flex: none;
  box-shadow: 0 2px 6px rgba(255, 77, 141, .3);
}
.sec-badge-rec { background: linear-gradient(135deg, #fbbf24, #f97316); }
.sec-badge-q { background: linear-gradient(135deg, #34d399, #14b8a6); }
.sec-more { margin-left: auto; font-size: 13px; color: var(--muted); }
.sec-more:hover { color: var(--primary); }

/* 网站格子 */
.cell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.site-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 6px;
  text-align: center;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.site-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.cell-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border-radius: 11px;
  font-size: 22px;
  line-height: 1;
}
.cell-name {
  font-size: 12.5px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
  max-width: 100%;
}

/* 首页分类分区 */
.cat-section { margin-top: 18px; }
.cat-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.cs-icon { font-size: 18px; }
.cat-section-head h3 { font-size: 16px; font-weight: 700; }
.cat-section-head h3 a { color: var(--text); }
.cat-section-head h3 a:hover { color: var(--primary); }
.cs-count {
  background: var(--grad-soft);
  color: var(--primary-dark);
  font-size: 12px;
  border-radius: 999px;
  padding: 0 8px;
}
.cs-more { margin-left: auto; font-size: 13px; color: var(--muted); }
.cs-more:hover { color: var(--primary); }

/* ================= 双栏布局 ================= */
.d-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.d-main { min-width: 0; }
.d-side { display: flex; flex-direction: column; gap: 16px; }

.crumbs {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--text); }

/* 分类头 */
.cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cat-head-icon { font-size: 30px; flex: none; }
.cat-head h1 { font-size: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-head-count {
  background: var(--grad-soft);
  color: var(--primary-dark);
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
}
.cat-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.highlight { color: var(--primary); margin-left: 8px; }

/* ================= 卡片 ================= */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* ================= 详情页 ================= */
.detail-card { padding: 18px; }
.detail-head { display: flex; gap: 14px; align-items: flex-start; }
.detail-head > * { min-width: 0; }
.detail-icon {
  width: 56px;
  height: 56px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border-radius: 14px;
  font-size: 30px;
}
.detail-title { min-width: 0; flex: 1; }
.detail-title h1 { font-size: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-domain { color: var(--primary); word-break: break-all; margin-top: 4px; font-size: 14px; }

.btn-enter {
  display: inline-block;
  margin: 16px 0;
  background: var(--grad);
  color: #fff !important;
  padding: 11px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 77, 141, .3);
}
.btn-enter:hover { filter: brightness(1.08); }
.btn-enter-sm { margin: 8px 0 0; padding: 8px 18px; font-size: 13px; }

.detail-meta {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.detail-meta > div {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}
.detail-meta > div:last-child { border-bottom: 0; }
.detail-meta dt { color: var(--muted); font-size: 12px; }
.detail-meta dd { font-size: 13.5px; margin-top: 2px; word-break: break-all; overflow-wrap: anywhere; }
.detail-meta .detail-meta-full { grid-column: 1 / -1; }

.detail-desc h3 { font-size: 15px; margin-bottom: 6px; }
.detail-desc p { color: #4a4250; font-size: 14px; }

/* 移动端防溢出 */
.detail-title h1,
.detail-desc p,
.crumbs,
.crumbs span,
.cat-head h1 {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.d-main > *,
.card { min-width: 0; }
.cat-head > * { min-width: 0; }
.cat-head > div { flex: 1; }
.query-row a { max-width: 100%; }
img { max-width: 100%; height: auto; }
body { overflow-x: clip; }

/* 相关查询 */
.query-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0;
}
.query-label {
  color: var(--muted);
  font-size: 13px;
  flex: none;
  min-width: 64px;
}
.query-row a {
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
}
.query-row a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* 侧栏列表 */
.rank-list { list-style: none; counter-reset: r; }
.rank-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  counter-increment: r;
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before {
  content: counter(r);
  flex: none;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.rank-list a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 13.5px;
}
.rank-list a:hover { color: var(--primary); }
.side-tip { color: var(--muted); font-size: 13px; }

/* ================= 按钮 / 表单 ================= */
.btn-primary {
  display: inline-block;
  background: var(--grad);
  color: #fff !important;
  padding: 10px 22px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 77, 141, .3);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; text-align: center; }
.btn-ghost {
  display: inline-block;
  background: #fff;
  color: var(--text);
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.detail-actions { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.success-box .detail-actions { justify-content: center; }

.form { display: flex; flex-direction: column; gap: 15px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-row label em { color: var(--danger); font-style: normal; }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=number],
.form-row select, .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-row textarea { resize: vertical; }
.form-tip { color: var(--muted); font-size: 12px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.form-check label.check-label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.form-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }

/* 蜜罐 */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 提示框 */
.alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  border: 1px solid;
}
.alert ul { margin: 6px 0 0 18px; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.alert-info { background: var(--primary-soft); border-color: #fbcfe3; color: var(--primary-dark); }

.empty-tip { color: var(--muted); padding: 16px 0; }

.mini-rec {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff;
  font-size: 11px;
  border-radius: 5px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.success-box { text-align: center; padding: 40px 16px; }
.success-icon { font-size: 48px; margin-bottom: 10px; }
.success-box h2 { font-size: 20px; margin-bottom: 6px; }
.success-box p { color: var(--muted); margin-bottom: 20px; }
.success-box .detail-actions { justify-content: center; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.page-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--grad); border-color: transparent; color: #fff; }

/* ================= 页脚 ================= */
.m-footer {
  background: #2b1e3d;
  margin-top: 30px;
  padding: 24px 0;
  text-align: center;
}
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.footer-nav a { color: #cfc3dd; }
.footer-nav a:hover { color: #ff8fb3; }
.footer-nav span { color: #554a6b; }
.footer-text { margin-top: 10px; color: #9d91b0; font-size: 12.5px; }
.footer-icp { margin-top: 6px; font-size: 12px; color: #9d91b0; }
.footer-ver { margin-top: 6px; font-size: 12px; color: #6f6385; }

/* ============================================================
   后台
   ============================================================ */
.admin-body { background: var(--bg); }
.admin-wrap { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 200px;
  flex: none;
  background: #2b1e3d;
  color: #d1c7e0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid #3d2f55;
}
.admin-logo:hover { color: #fff; }
.admin-nav { flex: 1; padding: 10px 0; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #d1c7e0;
  font-size: 13.5px;
}
.admin-nav a span { font-size: 15px; }
.admin-nav a:hover { background: #3d2f55; color: #fff; }
.admin-nav a.active { background: var(--grad); color: #fff; }
.admin-nav .badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 6px;
}
.admin-side-foot { border-top: 1px solid #3d2f55; padding: 10px 0; }
.admin-side-foot a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: #9d91b0;
  font-size: 13.5px;
}
.admin-side-foot a:hover { color: #fff; background: #3d2f55; }

.admin-main { flex: 1; min-width: 0; padding: 0 18px 36px; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.admin-title { font-size: 19px; }
.admin-user { color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.sc-icon {
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--grad-soft);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.stat-card b { display: block; font-size: 20px; line-height: 1.2; }
.stat-card small { color: var(--muted); font-size: 12px; }
.stat-warn .sc-icon { background: #fffbeb; }
.stat-danger .sc-icon { background: #fef2f2; }
.stat-fire .sc-icon { background: #fff0f3; }

/* 阅读量柱形图 */
.chart-scroll { overflow-x: auto; }
.chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 200px;
  min-width: 620px;
  padding-top: 18px;
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}
.chart-val { font-size: 10px; color: var(--muted); margin-bottom: 2px; line-height: 1; white-space: nowrap; }
.chart-bar {
  width: 100%;
  max-width: 20px;
  background: linear-gradient(180deg, #ff6fa5, #a855f7);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.chart-bar.today { box-shadow: 0 0 0 2px rgba(255, 77, 141, .45); }
.chart-date { font-size: 9px; color: var(--muted); margin-top: 4px; }
.chart-note { margin-top: 10px; font-size: 12px; color: var(--muted); }

.admin-cols { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.col-main { min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 16px; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.panel h3 { font-size: 15px; }
.link { font-size: 13px; }
.panel-danger { border-color: #fecaca; background: #fff7f7; }
.admin-tips { margin-left: 18px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.admin-hot { list-style: none; }
.admin-hot li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.admin-hot li:last-child { border-bottom: 0; }
.admin-hot a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  padding: 9px 10px;
  background: #fdf6f9;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:hover td { background: #fff9fb; }
.table tr:last-child td { border-bottom: 0; }
.t-title { font-weight: 600; color: var(--text); }
.t-title:hover { color: var(--primary); }
.t-sub { font-size: 12px; color: var(--muted); word-break: break-all; }
.t-desc { max-width: 200px; color: var(--muted); font-size: 12.5px; }
.t-icon { font-size: 18px; }

.status-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.status-approved { background: #f0fdf4; color: #15803d; }
.status-pending { background: #fffbeb; color: #b45309; }
.status-rejected { background: #fef2f2; color: #b91c1c; }

.btn-mini {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 12.5px;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
}
.btn-mini.ok { background: #f0fdf4; color: #15803d; }
.btn-mini.ok:hover { background: #16a34a; color: #fff; }
.btn-mini.no { background: #fef2f2; color: #b91c1c; }
.btn-mini.no:hover { background: var(--danger); color: #fff; }
.btn-mini.ghost { border-color: var(--border); background: #fff; }
.btn-mini.ghost:hover { border-color: var(--primary); color: var(--primary); }
.inline-form { display: inline-block; margin-right: 4px; }
.inline-form .btn-mini { margin: 2px 0; }

.form-inline-2 { display: grid; grid-template-columns: 1fr; gap: 14px 18px; }
.form-inline-2 .form-row-full { grid-column: 1 / -1; }
.form-inline-2 .form-actions { grid-column: 1 / -1; }
.form-row-full { grid-column: 1 / -1; }

.filter-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-form input[type=text], .filter-form select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
}

.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs a {
  padding: 6px 16px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.tabs a:hover { color: var(--primary); }
.tabs a.active { background: var(--grad); border-color: transparent; color: #fff; }

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6fa5 0%, #ff9a8b 45%, #a855f7 100%);
  padding: 20px;
}
.login-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 30px;
}
.login-head { text-align: center; margin-bottom: 22px; }
.login-head .logo-icon { font-size: 38px; }
.login-head h1 { font-size: 19px; margin-top: 8px; }
.login-head p { color: var(--muted); font-size: 13px; }
.login-tip { text-align: center; margin-top: 10px; }
.login-back { text-align: center; margin-top: 14px; font-size: 13px; }
.login-back a { color: var(--muted); }
.login-back a:hover { color: var(--primary); }

/* ================= 响应式 ================= */
@media (min-width: 768px) {
  .d-layout { grid-template-columns: 1fr 300px; }
  .admin-cols { grid-template-columns: 1fr 300px; }
  .form-inline-2 { grid-template-columns: 1fr 1fr; }
  .cell-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .m-nav { background: var(--card); }
  .m-nav-inner { justify-content: center; }
  .m-head-row { gap: 20px; }
  .m-search { max-width: 420px; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .detail-meta > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .detail-meta > div:last-child { border-right: 0 !important; }
  .intro-title { font-size: 34px; }
}

@media (min-width: 992px) {
  .admin-sidebar { width: 220px; }
  .admin-main { padding: 0 24px 40px; }
}
