﻿:root {
  --bg: #070d1c;
  --panel: #121c3a;
  --panel-hover: #1a2750;
  --line: rgba(120, 160, 255, 0.16);
  --text: #e8eefc;
  --muted: #8b9bb8;
  --blue: #3b82f6;
  --brand: #f5f8ff;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body.user-dark {
  height: 100%;
  overflow: hidden;
}
body.user-dark {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 80% 45% at 8% -8%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 0%, rgba(139, 92, 246, 0.18), transparent 50%),
    linear-gradient(165deg, #050816 0%, #0a1024 45%, #0d1530 100%);
  color: var(--text);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.user-shell {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
}
.user-topbar {
  height: 54px;
  background: linear-gradient(90deg, rgba(7, 13, 31, 0.96), rgba(16, 26, 54, 0.94), rgba(10, 16, 36, 0.96));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(120, 160, 255, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}
.user-topbar .logo {
  font-weight: 700; font-size: 15px; white-space: nowrap; color: #f0f4ff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.55);
  display: inline-flex; align-items: center; gap: 8px;
}
.user-topbar .logo img {
  width: 30px; height: 30px; border-radius: 8px; object-fit: cover;
  background: #fff; box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}
.scroll-tip {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  height: 54px;
  line-height: 54px;
  font-size: 12px;
  color: #a5b4fc;
}
.scroll-text {
  display: inline-block;
  padding-left: 20%;
  animation: marquee 28s linear infinite;
}
.scroll-tip:hover .scroll-text { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-70%); }
}
.user-top-right { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.vip-pill, .upgrade-membership {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b 40%, #a855f7);
  color: #111;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}
.upgrade-membership:hover { filter: brightness(1.06); color: #111; }
.points-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: 16px; border: 1px solid rgba(99, 140, 255, 0.4);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.35), rgba(139, 92, 246, 0.3));
  color: #fff; font-size: 12px; text-decoration: none;
}
.points-pill:hover { background: linear-gradient(90deg, rgba(37, 99, 235, 0.5), rgba(139, 92, 246, 0.45)); color: #fff; }
.user-menu { position: relative; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.user-chip i { font-size: 12px; opacity: .8; }
.user-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 280px;
  background: #fff; color: #333; border-radius: 8px; box-shadow: 0 12px 28px rgba(0,0,0,.18); z-index: 50; overflow: hidden;
}
.user-dropdown.open { display: block; }
.ud-head { display: flex; gap: 12px; padding: 14px; background: linear-gradient(135deg, #2563eb, #7c3aed 55%, #d946ef); color: #fff; }
.ud-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.35); }
.ud-name { font-weight: 600; margin-bottom: 4px; }
.ud-meta { font-size: 12px; opacity: .92; line-height: 1.5; }
.ud-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.ud-actions a {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; text-decoration: none; font-size: 12px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.ud-actions a.danger { background: #ef4444; grid-column: 1 / -1; box-shadow: none; }
.logout-link {
  color: #a5b4fc;
  font-size: 12px;
  border: 1px solid rgba(120, 160, 255, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
}
.logout-link:hover { color: #fff; border-color: rgba(140, 180, 255, 0.55); }

.user-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.user-sidebar {
  display: flex;
  width: 306px;
  flex-shrink: 0;
  align-self: stretch;
  height: 100%;
  max-height: 100%;
  background: linear-gradient(165deg, #0a1f5c 0%, #12307a 42%, #1a1a6e 100%);
  border-right: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 10px 0 36px rgba(15, 23, 90, 0.35);
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.user-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #22d3ee, #60a5fa 40%, #a78bfa 70%, #f472b6);
  pointer-events: none;
  z-index: 2;
}
.user-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 40% at 0% 0%, rgba(56, 189, 248, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(168, 85, 247, 0.22), transparent 50%);
  z-index: 0;
}
.sidebar-primary {
  width: 102px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #071a4d 0%, #0b2466 50%, #10105a 100%);
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  padding: 12px 8px 56px;
  border-right: 1px solid rgba(125, 211, 252, 0.22);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, .55) transparent;
}
.sidebar-primary .menu-item {
  padding: 11px 6px 10px;
  text-align: center;
  cursor: pointer;
  color: #dbeafe;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 14px;
  margin: 0 0 7px;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s, transform .12s;
  position: relative;
}
.sidebar-primary .menu-item .mi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 7px;
  border-radius: 14px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(191, 219, 254, 0.28);
  color: #f0f9ff;
  transition: all .15s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.sidebar-primary .menu-item .ml {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
  color: #e0f2fe;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.sidebar-primary .menu-item:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(125, 211, 252, 0.45);
  transform: translateY(-1px);
}
.sidebar-primary .menu-item:hover .mi {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.55);
}
.sidebar-primary .menu-item:hover .ml { color: #fff; }
.sidebar-primary .menu-item.active {
  color: #fff;
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.35), rgba(129, 140, 248, 0.32));
  border-color: rgba(165, 243, 252, 0.55);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.sidebar-primary .menu-item.active .mi {
  background: linear-gradient(135deg, #22d3ee, #6366f1 55%, #d946ef);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.65);
}
.sidebar-primary .menu-item.active .ml {
  color: #fff;
  font-weight: 800;
}
.sidebar-primary .menu-item.active::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 12px rgba(103, 232, 249, 1);
}
.sidebar-secondary {
  flex: 1;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #12358a 0%, #163f9c 45%, #1b2f86 100%);
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  padding: 14px 10px 56px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, .5) transparent;
}
.sidebar-secondary.is-home { display: none; }
.user-sidebar:has(.sidebar-secondary.is-home) { width: 102px; }
.gekai {
  color: #fff;
  font-size: 12px;
  margin: 4px 6px 12px;
  padding: 9px 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.35), rgba(99, 102, 241, 0.28));
  border: 1px solid rgba(165, 243, 252, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.25);
}
.gekai::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 10px rgba(103, 232, 249, 1);
  flex-shrink: 0;
}
.treeview-menu { list-style: none; }
.treeview-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 14px;
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  margin: 0 0 7px;
  border: 1px solid rgba(191, 219, 254, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .12s;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.treeview-menu a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dd3fc;
  flex-shrink: 0;
  transition: all .15s ease;
  box-shadow: 0 0 6px rgba(125, 211, 252, .5);
}
.treeview-menu a:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(125, 211, 252, 0.5);
  color: #fff;
  transform: translateX(3px);
}
.treeview-menu a:hover::before {
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .8);
}
.treeview-menu a.active {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255,255,255,.2);
}
.treeview-menu a.active::before {
  background: #67e8f9;
  box-shadow: 0 0 12px rgba(103, 232, 249, 1);
}
.treeview-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #67e8f9;
  box-shadow: 0 0 10px rgba(103, 232, 249, .9);
}
.menu-content.hide { display: none; }

.user-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(180deg, rgba(8, 14, 32, 0.35), rgba(10, 16, 36, 0.15)),
    #eef2ff;
  color: #1e293b;
  padding: 16px;
}
.user-main.is-dashboard {
  background: transparent;
  color: #e8eefc;
  padding: 0;
}

.alert {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.alert-success { background: #e8f8f5; color: #0f766e; }
.alert-error { background: #fee2e2; color: #b91c1c; }
.user-main.is-dashboard .alert-success { background: #12352f; color: #7ddec8; }
.user-main.is-dashboard .alert-error { background: #3a1515; color: #f5a5a5; }

/* dashboard */
.content-header {
  color: #666;
  font-size: 13px;
  margin-bottom: 12px;
}

.dash-wrap { max-width: 1440px; margin: 0 auto; padding: 20px 20px 40px; }
.dash-panel {
  background: linear-gradient(145deg, rgba(22, 34, 72, 0.95), rgba(14, 22, 48, 0.92));
  border: 1px solid rgba(120, 160, 255, 0.18);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.dash-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin: 0 0 18px;
  color: #93c5fd;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}
.dash-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 4px;
  border-radius: 100px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, transparent);
}
.dash-title-center { display: block; text-align: center; }
.dash-title-center::after { left: 50%; transform: translateX(-50%); }

.dash-flow { padding-bottom: 14px; }
.flow-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #172033;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: background .2s;
}
.flow-step:last-child { margin-bottom: 0; }
.flow-step:hover { background: #273449; }
.flow-left { display: flex; align-items: center; gap: 14px; }
.step-number {
  width: 28px; height: 28px; border-radius: 50%;
  background: #3b82f6; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.flow-title { color: #f3f4f6; font-size: 15px; font-weight: 500; }
.flow-go {
  color: #3b82f6; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}

.carousel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  background: #0b1220;
}
.carousel-list { display: flex; width: 100%; }
.carousel-item { flex: 0 0 100%; }
.carousel-img { width: 100%; height: auto; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(192,192,192,.35); color: #fff; cursor: pointer;
  font-size: 18px; display: none; z-index: 2;
}
.carousel:hover .carousel-btn { display: block; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.nav-item {
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s;
  display: block;
  background: #fff;
}
.nav-item:hover { transform: scale(1.02); }
.nav-img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px;
  color: #333;
  display: flex;
  align-items: center;
  transition: .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 20px rgba(0,0,0,.16); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; flex-shrink: 0; margin-right: 12px;
}
.stat-label { font-size: 13px; color: #666; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.15; margin: 4px 0; }
.stat-sub { font-size: 12px; color: #888; }
.stat-value.c-blue { color: #2563eb; }
.stat-value.c-green { color: #059669; }
.stat-value.c-orange { color: #d97706; }
.stat-value.c-purple { color: #7c3aed; }

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.chart-row .dash-panel { margin-bottom: 0; }
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.chart-head .dash-title { margin-bottom: 10px; }
.chart-sub { color: #fff; font-size: 13px; opacity: .9; }
.chart-canvas { height: 240px; }

.quick-nav { width: 100%; max-width: none; margin-bottom: 8px; }
.quick-nav .dash-title { margin-bottom: 20px; }
.quick-nav .dash-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: .2s;
  min-height: 150px;
  justify-content: center;
  color: inherit;
}
.tool-card:hover { background: #f8fafc; transform: translateY(-3px); }
.tool-icon { width: 52px; height: 52px; margin-bottom: 12px; object-fit: contain; }
.tool-title { font-weight: 600; color: #3b82f6; margin-bottom: 6px; font-size: 15px; }
.tool-desc { font-size: 13px; color: #555; }
.special-title { color: #60a5fa; }

/* 关键词列表页 — 铺满主内容区 */
.kw-page {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-height: calc(100% - 4px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(140, 180, 255, 0.28);
  padding: 14px 16px 12px;
  color: #333;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.kw-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.kw-toolbar-left, .kw-toolbar-right { display: flex; align-items: center; gap: 6px; }
.kw-page .btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 3px;
  font-size: 13px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  line-height: 1;
}
.kw-page .btn-add { background: #18bc9c; color: #fff; border-color: #18bc9c; }
.kw-page .btn-add:hover { background: #15a589; }
.kw-page .btn-refresh {
  background: #222; color: #fff; border-color: #111;
  width: 32px; padding: 0; justify-content: center;
}
.kw-page .btn-del { background: #dd4b39; color: #fff; border-color: #d73925; }
.kw-page .btn-del:hover { background: #d73925; }
.kw-page .btn-tool {
  width: 32px; padding: 0; justify-content: center;
  background: #fff; color: #555; border-color: #ddd;
}
.kw-page .btn-tool:hover { background: #f5f5f5; color: #222; }
.kw-table-wrap { overflow: auto; border: 1px solid #e8e8e8; }
.kw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  color: #333;
}
.kw-table th, .kw-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}
.kw-table thead th {
  background: #fafafa;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #e5e5e5;
}
.kw-table tbody tr:nth-child(even) { background: #f9f9f9; }
.kw-table tbody tr:hover { background: #f3f8fc; }
.kw-table .col-check { width: 42px; text-align: center; }
.kw-table .col-idx { width: 64px; }
.kw-table .col-ops { width: 110px; }
.kw-table .empty { text-align: center; color: #999; padding: 28px; }
.kw-footer {
  margin-top: 10px;
  color: #888;
  font-size: 12px;
}
.switch-form { display: inline; margin: 0; }
.switch {
  width: 44px; height: 22px; border-radius: 22px; border: none;
  position: relative; cursor: pointer; padding: 0; vertical-align: middle;
  transition: background .2s;
}
.switch.on { background: #18bc9c; }
.switch.off { background: #d0d0d0; }
.switch-dot {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: left .2s;
}
.switch.on .switch-dot { left: 24px; }
.btn-op {
  width: 28px; height: 28px; border: none; border-radius: 3px;
  color: #fff; cursor: pointer; margin-right: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.btn-op-edit { background: #3b82f6; }
.btn-op-edit:hover { background: #367fa9; }
.btn-op-del { background: #dd4b39; }
.btn-op-del:hover { background: #d73925; }
.kw-table .cell-wrap { white-space: normal; max-width: 420px; line-height: 1.45; }
.kw-page .btn-back {
  background: #3b82f6;
  color: #fff;
  border-color: #367fa9;
}
.kw-page .btn-back:hover { background: #367fa9; }
.kw-toolbar-right.order-status-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.order-status-tabs .btn-tool {
  background: transparent; border: 0; color: #64748b; height: auto; padding: 4px 2px; font-size: 13px;
  box-shadow: none;
}
.order-status-tabs .btn-tool:hover { color: #2563eb; background: transparent; }
.order-status-tabs .btn-tool.active {
  color: #2563eb; font-weight: 600; background: transparent; border: 0;
  border-bottom: 2px solid #2563eb; border-radius: 0;
}
.draft-add-form .radio-inline { margin-right: 14px; font-weight: normal; display: inline-flex; align-items: center; gap: 4px; }
.pingtai-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pingtai-item {
  min-width: 100px; height: 40px; padding: 0 12px; border-radius: 10px; text-align: center;
  border: 1px solid #ccc; line-height: 38px; color: #666; font-weight: 700; font-size: 12px; cursor: pointer;
  background: #fff; user-select: none;
}
.pingtai-item.active {
  background: linear-gradient(83deg, #d4c9ff, #78c6ff); color: #6623ca; border: 2px solid #5917be; line-height: 36px;
}
.account-pick { display: flex; flex-wrap: wrap; gap: 8px 14px; min-height: 36px; padding-top: 4px; color: #666; }
.account-pick .acc-item { font-weight: normal; display: inline-flex; align-items: center; gap: 4px; }
.btn-img-list {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 3px;
  background: #7c3aed;
  color: #fff !important;
  font-size: 12px;
  line-height: 1.2;
}
.btn-img-list:hover { background: #6d28d9; }
.btn-view-content {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 5px;
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  font-size: 13px;
  white-space: nowrap;
}

/* 投稿记录页 — 铺满主内容区（覆盖 .kw-page 白卡片） */
.kw-page.mo-page,
.mo-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 12px !important;
  min-height: calc(100% - 4px);
}
.mo-page-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 14px; flex-wrap: wrap;
  padding: 16px 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(241,245,255,.96));
  border: 1px solid rgba(140, 180, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.mo-page-title h2 {
  margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #0f172a;
  background: linear-gradient(135deg, #1e293b, #4f46e5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mo-page-title p { margin: 0; font-size: 13px; color: #64748b; }
.mo-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mo-stat-row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 14px;
}
.mo-stat {
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(241,245,255,.95));
  border: 1px solid rgba(140, 180, 255, 0.28);
  border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  position: relative; overflow: hidden;
}
.mo-stat::after {
  content: ""; position: absolute; right: -12px; top: -12px;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
}
.mo-stat-l { font-size: 12px; color: #64748b; position: relative; z-index: 1; }
.mo-stat-v { font-size: 24px; font-weight: 750; color: #0f172a; margin-top: 4px; position: relative; z-index: 1; }
.mo-stat.s-wait .mo-stat-v { color: #d97706; }
.mo-stat.s-plan .mo-stat-v { color: #2563eb; }
.mo-stat.s-pub .mo-stat-v { color: #059669; }
.mo-stat.s-reject .mo-stat-v { color: #dc2626; }

.mo-filter-panel {
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(241,245,255,.96));
  border: 1px solid rgba(140, 180, 255, 0.28);
  border-radius: 16px;
  padding: 16px 18px 14px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.mo-filter-form { margin-bottom: 12px; }
.mo-filter-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 14px;
}
.mo-field { display: flex; flex-direction: column; gap: 6px; }
.mo-field > label {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  font-weight: 600;
}
.mo-filter-row input[type="search"] {
  width: min(280px, 100%);
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
}
.mo-date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mo-date-range input[type="date"] {
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
}
.mo-date-range span { color: #94a3b8; font-size: 12px; }
.mo-actions-inline { display: flex; gap: 8px; }
.mo-field-actions .btn { height: 36px; }
.mo-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}
.mo-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  text-decoration: none !important;
  transition: all .15s ease;
}
.mo-status-tab:hover {
  border-color: #a78bfa;
  color: #4f46e5;
  background: #f5f3ff;
  transform: translateY(-1px);
}
.mo-status-tab.active {
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.mo-tab-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .08);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: 600;
}
.mo-status-tab.active .mo-tab-count {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.mo-filter-summary {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}
.mo-filter-summary b { color: #4f46e5; }

.mo-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(140, 180, 255, 0.28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.mo-list-head {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 0.85fr) minmax(220px, 2fr) 88px 100px 120px 150px minmax(160px, 1.3fr);
  gap: 10px 14px;
  padding: 12px 18px;
  font-size: 13px;
  color: #1e293b;
  font-weight: 750;
  letter-spacing: .03em;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  border-bottom: 1px solid rgba(99, 102, 241, 0.22);
}
.mo-list-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mo-list-head > span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 6px rgba(99, 102, 241, .55);
  flex-shrink: 0;
}
.mo-empty {
  padding: 56px 24px;
  text-align: center;
  color: #64748b;
  background: #fff;
  border: 0;
  border-radius: 0;
}
.mo-empty-ico {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(139,92,246,.15));
  color: #6366f1; font-size: 22px;
}
.mo-empty-title { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.mo-empty-desc { font-size: 13px; margin-bottom: 16px; color: #64748b; }

.mo-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 0.85fr) minmax(220px, 2fr) 88px 100px 120px 150px minmax(160px, 1.3fr);
  gap: 10px 14px;
  align-items: center;
  padding: 12px 18px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  box-shadow: none;
  transition: background .12s ease;
}
.mo-card:last-child { border-bottom: 0; }
.mo-card:hover {
  transform: none;
  background: #f8faff;
  border-color: #eef2f7;
  box-shadow: none;
}
.mo-card.is-published {
  border-color: #eef2f7;
  background: #f7fffb;
}
.mo-card.is-published:hover { background: #eefdf6; }
.mo-card.status-0 { border-left: 3px solid #f59e0b; padding-left: 15px; }
.mo-card.status-1 { border-left: 3px solid #3b82f6; padding-left: 15px; }
.mo-card.status-2 { border-left: 3px solid #10b981; padding-left: 15px; }
.mo-card.status-3 { border-left: 3px solid #ef4444; padding-left: 15px; }
.mo-card.status-4 { border-left: 3px solid #ef4444; padding-left: 15px; }
.mo-card.status-9 { border-left: 3px solid #8b5cf6; padding-left: 15px; }

/* 收录查询记录 — 复用 mo 骨架，换列宽 */
.sl-list-head,
.sl-card {
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.9fr) minmax(220px, 1.8fr) 100px 120px 150px minmax(140px, 1.1fr);
}
.sl-plat-icon {
  background: #fff !important;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: none !important;
  padding: 4px;
}
.sl-plat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sl-record-page .mo-media-tip {
  color: #64748b;
}
.sl-record-page .mo-status-tabs {
  border-top: none;
  padding-top: 0;
}
.sl-record-page a.mo-stat {
  display: block;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sl-record-page a.mo-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
}
.sl-record-page a.mo-stat.is-active {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.16);
  background: linear-gradient(160deg, #fff, #eef2ff);
}
.sl-plat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 12px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
  margin-bottom: 12px;
}
.sl-plat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .15s ease;
  max-width: 100%;
}
.sl-plat-tab img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.sl-plat-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-plat-tab:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #f0f7ff;
}
.sl-plat-tab.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}
@media (max-width: 860px) {
  .sl-plat-tabs { gap: 6px; }
  .sl-plat-tab { height: 32px; padding: 0 10px; }
}

.mo-col { min-width: 0; }
.mo-label { font-size: 11px; color: #94a3b8; margin-bottom: 3px; }
.mo-value {
  font-size: 13px;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mo-sub { margin-top: 3px; font-size: 11px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-media { display: flex; align-items: center; gap: 10px; }
.mo-media-avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.mo-media-meta { min-width: 0; flex: 1; }
.mo-media-name {
  font-size: 14px;
  font-weight: 650;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mo-media-tip {
  margin-top: 3px;
  font-size: 11px;
  color: #b45309;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mo-order-no {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
}
.mo-order-no > span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace;
  font-size: 12px; color: #334155;
}
.mo-copy {
  flex-shrink: 0; height: 22px; padding: 0 8px; border-radius: 6px;
  border: 1px solid rgba(148,163,184,.4); background: #fff; color: #64748b;
  font-size: 11px; cursor: pointer;
}
.mo-copy:hover { border-color: #818cf8; color: #4f46e5; }
.mo-copy.copied { background: #ecfdf5; border-color: #34d399; color: #059669; }
.mo-remark {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mo-price-num {
  font-size: 16px;
  font-weight: 750;
  color: #0f172a;
  text-align: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mo-status { text-align: center; }
.mo-status-badge {
  display: inline-block;
  min-width: 68px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}
.mo-status-badge.badge-pub { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.mo-status-badge.badge-wait { background: linear-gradient(135deg, #f59e0b, #d97706); }
.mo-status-badge.badge-done { background: linear-gradient(135deg, #10b981, #059669); }
.mo-status-badge.badge-reject { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.mo-status-badge.badge-after { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.mo-status-badge.badge-hidden { background: #94a3b8; }
.mo-action { text-align: center; }
.mo-btn-view {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.3);
}
.mo-btn-view:hover { filter: brightness(1.06); }
.mo-btn-disabled {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 12px;
  border: 1px solid #e2e8f0;
}
.mo-time .mo-value { color: #475569; font-size: 12px; white-space: normal; line-height: 1.4; }
.mo-note-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.mo-footer {
  margin-top: 12px;
  padding: 12px 18px;
  color: #64748b;
  font-size: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(241,245,255,.96));
  border: 1px solid rgba(140, 180, 255, 0.28);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}
.mo-stat-row,
.mo-filter-panel,
.mo-list {
  width: 100%;
  box-sizing: border-box;
}
.user-main:has(.wx2-page) .content-header,
.user-main:has(.mo-page) .content-header { display: none; }
@media (max-width: 1200px) {
  .mo-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mo-list-head { display: none; }
  .mo-card {
    grid-template-columns: 1fr 1fr;
    padding: 12px 14px;
  }
  .mo-media, .mo-title, .mo-note { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .mo-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mo-card { grid-template-columns: 1fr; }
}

.tag-knowledge {
  display: inline-block;
  color: #fff;
  background: linear-gradient(168deg, #238edc, #75c21c);
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
}
.tag-green {
  display: inline-block;
  background: #e8f8f5;
  color: #0f766e;
  border: 1px solid #99f6e4;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
}
.kw-page .btn-purple {
  background: #7c3aed;
  color: #fff;
  border-color: #6d28d9;
}
.kw-page .btn-purple:hover { background: #6d28d9; }
.kw-note {
  color: #c27803;
  font-size: 13px;
  margin: -2px 0 12px;
  line-height: 1.5;
}
.kw-page .btn-purple-add {
  background: #7c3aed;
  border-color: #6d28d9;
}
.kw-page .btn-purple-add:hover { background: #6d28d9; }
.kw-table-wide th, .kw-table-wide td { font-size: 12px; }
.cell-err { color: #dd4b39; max-width: 160px; white-space: normal; }
.st-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  color: #fff;
  background: #999;
}
.st-badge.st-done { background: #18bc9c; }
.st-badge.st-running { background: #3b82f6; }
.st-badge.st-pending { background: #f39c12; }
.st-badge.st-error { background: #dd4b39; }
.kw-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
}
.kw-page .btn-xs {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 26px;
}
.tj-page { color: #e8eef8; padding: 20px; }
.user-main.is-dashboard .tj-page { padding: 20px; }
.tj-head { margin-bottom: 16px; }
.tj-head h2 { margin: 0 0 6px; font-size: 22px; color: #60a5fa; }
.tj-sub { color: #9aa3af; font-size: 13px; }
.tj-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.tj-kpi {
  background: #1e293b;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.tj-kpi-label { color: #9aa3af; font-size: 12px; margin-bottom: 8px; }
.tj-kpi-val { font-size: 26px; font-weight: 800; line-height: 1; }
.tj-kpi-val.c1 { color: #60a5fa; }
.tj-kpi-val.c2 { color: #34d399; }
.tj-kpi-val.c3 { color: #f59e0b; }
.tj-kpi-val.c4 { color: #a78bfa; }
.tj-kpi-val.c5 { color: #f472b6; }
.tj-kpi-val.c6 { color: #22d3ee; }
.tj-chart-row, .tj-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.tj-panel {
  background: #1e293b;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.tj-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tj-panel-hd h3 { margin: 0; color: #60a5fa; font-size: 16px; }
.tj-panel-hd span { color: #9aa3af; font-size: 12px; }
.tj-canvas { height: 220px; }
.tj-empty { color: #9aa3af; text-align: center; padding: 28px 0; }
.tj-bars { display: flex; flex-direction: column; gap: 10px; }
.tj-bar-row { display: grid; grid-template-columns: 120px 1fr 36px; gap: 8px; align-items: center; }
.tj-bar-name { font-size: 12px; color: #dbeafe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tj-bar-track { height: 10px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.tj-bar-fill { height: 100%; background: linear-gradient(90deg, #4d6bfe, #a78bfa); border-radius: 999px; }
.tj-bar-num { text-align: right; color: #fff; font-size: 12px; }
.tj-panel .kw-table { background: transparent; color: #e5e7eb; }
.tj-panel .kw-table th { background: rgba(255,255,255,.04); color: #93c5fd; border-bottom-color: rgba(255,255,255,.08); }
.tj-panel .kw-table td { border-bottom-color: rgba(255,255,255,.06); }
.tj-panel .kw-table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
.tj-panel .kw-table tbody tr:hover { background: rgba(255,255,255,.06); }
.user-main:has(.tj-page) { background: #121212; color: #e8e8e8; }
@media (max-width: 1100px) {
  .tj-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .tj-chart-row, .tj-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .tj-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
.wm-page { background: #fff; min-height: calc(100% - 4px); width: 100%; max-width: none; box-sizing: border-box; padding: 4px 8px 24px; color: #333; }
.wm-filters { margin-bottom: 4px; background: #fff; }
.wm-filter-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
  align-items: flex-start;
}
.wm-filter-label {
  width: 85px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 22px;
  text-align: right;
}
.wm-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 2px;
  align-items: center;
  flex: 1;
}
.wm-tag {
  display: inline-block;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 13px;
  color: #666;
  line-height: 22px;
  height: 22px;
  text-decoration: none;
  border: 1px solid transparent;
}
.wm-tag:hover,
.wm-tag.active {
  background: #7b31e9;
  color: #fff;
  border-color: #7b31e9;
}
.wm-search {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0 8px;
  flex-wrap: wrap;
  padding-left: 8px;
}
.wm-search input[name="kw"] {
  width: 260px;
  max-width: 100%;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0 10px;
  font-size: 14px;
}
.wm-btn-primary {
  height: 28px;
  min-width: 60px;
  padding: 0 14px;
  border: 1px solid #7b31e9;
  border-radius: 3px;
  background: #7b31e9;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wm-btn-primary:hover { background: #ff6600; border-color: #ff6600; }
.wm-btn-reset {
  height: 28px;
  min-width: 60px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.wm-sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 8px 10px;
  margin: 0 0 8px;
  background: #faf8ff;
  border: 1px solid #efe8ff;
  border-radius: 6px;
  font-size: 13px;
}
.wm-sort-bar::before {
  content: "排序：";
  color: #666;
  font-weight: 600;
}
.wm-sort-item {
  color: #555;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.wm-sort-item:hover {
  color: #7b31e9;
  background: #f3ebff;
}
.wm-sort-item.active {
  color: #7b31e9;
  background: #efe6ff;
  border-color: #d9c6ff;
  font-weight: 600;
}
.wm-btn-reset:hover { background: #ff6600; color: #fff; border-color: #ff6600; }
.wm-btn-outline {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #a63cb6;
  border-radius: 5px;
  background: #fff;
  color: #a63cb6;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 120px;
}
.wm-btn-outline.is-fav { background: #a63cb6; color: #fff; }
.wm-btn-sm { height: 32px; padding: 0 10px; font-size: 14px; min-width: 120px; }
.wm-list { display: flex; flex-direction: column; }
.wm-empty { text-align: center; color: #999; padding: 48px 0; }
.wm-card {
  display: grid;
  grid-template-columns: 28px minmax(200px, 1.5fr) minmax(90px, 0.7fr) 64px 64px 110px 72px 100px 130px;
  gap: 8px;
  align-items: center;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  padding: 18px 10px;
  background: #fff;
}
.wm-card:hover { background: #f9f9f9; }
.wm-check { display: flex; align-items: center; justify-content: center; margin: 0; }
.wm-check-input { width: 14px; height: 14px; accent-color: #7b31e9; }
.wm-title {
  display: inline-block;
  background: #000;
  color: #fff !important;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.wm-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wm-badge {
  display: inline-block;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  border-radius: 2px;
  background: #eef2ff;
  color: #1688f1;
  font-size: 12px;
}
.wm-copy {
  border: none; background: none; color: #1688f1; cursor: pointer; font-size: 13px; padding: 0;
  text-decoration: none;
}
.wm-remark {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  max-width: 850px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wm-channel { color: #5b5ed2; font-size: 13px; text-align: center; border-left: 1px solid #eee; padding-left: 8px; }
.wm-channel-top { font-weight: 600; font-size: 15px; }
.wm-channel-sub { color: #888; font-size: 12px; margin-top: 2px; }
.wm-metric { text-align: center; }
.wm-weight {
  width: 42px; height: 22px; margin: 0 auto 4px;
  display: inline-flex; overflow: hidden; border-radius: 2px;
  font-size: 12px; font-weight: 700; line-height: 22px;
}
.wm-weight-ico { width: 18px; background: #2f6bff; color: #fff; text-align: center; }
.wm-weight-num { flex: 1; background: #4b8bff; color: #fff; text-align: center; min-width: 20px; }
.wm-metric-label, .wm-stat-label { font-size: 12px; color: #999; }
.wm-stat { text-align: center; }
.wm-stat-val { font-size: 15px; color: #333; font-weight: 700; margin-bottom: 2px; }
.wm-price-wrap { text-align: center; }
.wm-price {
  background: #fff3f5;
  color: #f75444;
  border-radius: 5px;
  text-align: center;
  padding: 5px 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
  display: inline-block;
  min-width: 90px;
}
.wm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.wm-actions .wm-btn-primary {
  height: 32px;
  min-width: 120px;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  border: none;
  border-radius: 5px;
}
.wm-actions .wm-btn-primary:hover {
  opacity: .92;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  border-color: transparent;
}
@media (max-width: 1200px) {
  .wm-card { grid-template-columns: 28px 1fr 1fr; }
  .wm-actions { flex-direction: row; }
}
.wm-pager-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 8px 0 4px;
}
.wm-pager-info { color: #888; font-size: 13px; margin-right: auto; }
.wm-pager {
  display: inline-block;
  padding-left: 0;
  margin: 0;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.42857143;
  overflow: hidden;
}
.wm-pager a,
.wm-pager span {
  position: relative;
  float: left;
  padding: 9px 15px;
  text-decoration: none;
  color: #444c69;
  background-color: #fff;
  border: 1px solid #ddd;
  margin-left: -1px;
}
.wm-pager > a:first-child,
.wm-pager > span:first-child {
  margin-left: 0;
  border-bottom-left-radius: 3px;
  border-top-left-radius: 3px;
}
.wm-pager > a:last-child,
.wm-pager > span:last-child {
  border-bottom-right-radius: 3px;
  border-top-right-radius: 3px;
}
.wm-pager a:hover,
.wm-pager span:hover {
  z-index: 2;
  color: #262a3b;
  background-color: #eeeeee;
  border-color: #ddd;
}
.wm-pager a.active,
.wm-pager-current {
  z-index: 3;
  color: #fff !important;
  background-color: #444c69 !important;
  border-color: #444c69 !important;
  cursor: default;
}
.wm-pager-disabled {
  color: #777777 !important;
  background-color: #fff !important;
  border-color: #ddd !important;
  cursor: not-allowed;
}
.wm-pager-ellipsis {
  color: #777;
  background: #fff;
}
.wm-pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
}
.wm-pager-jump input {
  width: 48px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0 6px;
}
.wm-pager-jump button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 2px;
  cursor: pointer;
}
.pg-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}
.pg-jump input {
  width: 52px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 6px;
}
.pg-jump button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}
.kw-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
}
.kw-pager select {
  height: 26px;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin: 0 4px;
}
.kw-pages { display: flex; align-items: center; gap: 6px; }
.kw-pages .pg {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #555;
  background: #fff;
}
.kw-pages .pg.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}
.kw-pages .pg.disabled { opacity: .45; pointer-events: none; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.gallery-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}
.gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.gallery-name { margin-top: 8px; font-size: 13px; color: #333; }

/* inner pages keep light panels */
.panel { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; }
.panel-body { padding: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; font-size: 13px; font-weight: 500;
}
.btn-primary { background: #3b82f6; color: #fff; }
.btn-success { background: #18bc9c; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-default { background: #f3f4f6; color: #333; border-color: #e5e7eb; }
.btn-brand { background: #4f46e5; color: #fff; width: 100%; height: 40px; border: none; border-radius: 4px; cursor: pointer; }
.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; background: #fff; color: #222; }
table.data th, table.data td { border: 1px solid #e8e8e8; padding: 10px 12px; text-align: left; }
table.data th { background: #fafafa; }
.form-box { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 20px; color: #222; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 4px;
}
.form-row textarea { height: auto; min-height: 90px; padding: 10px 12px; }
.form-group { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.form-group > label { width: 120px; text-align: right; padding-top: 8px; font-size: 13px; flex-shrink: 0; }
.form-group .ctrl { flex: 1; }
.form-title { text-align: center; color: #4e73df; font-weight: 700; margin: 12px 0 16px; }
.form-title.main { font-size: 18px; }
.red { color: red; margin-right: 4px; }
.hint, .hint-center { color: #777; font-size: 12px; }
.hint-center { text-align: center; margin: 8px 0; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.mini-card { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.06); color: #222; }
.mini-card .n { font-size: 13px; color: #888; }
.mini-card .v { font-size: 26px; font-weight: 700; margin-top: 6px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.search-bar input, .search-bar select { height: 34px; border: 1px solid #e5e7eb; border-radius: 4px; padding: 0 10px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; color: #fff; }
.badge-done, .badge-normal { background: #18bc9c; }
.badge-wait { background: #f39c12; }
.badge-pub { background: #3498db; }
.badge-reject { background: #e74c3c; }
.badge-after { background: #9b59b6; }
.badge-hidden { background: #95a5a6; }
.toggle { border: none; background: none; cursor: pointer; font-size: 18px; }
.toggle.on { color: #18bc9c; }
.toggle.off { color: #bbb; }
.status-query { color: #fff; background: linear-gradient(168deg,#238edc,#75c21c); padding: 6px 8px; border-radius: 5px; font-size: 13px; }
.status-idle { color: #ccc; }
.btn-article { color: #fff; background: linear-gradient(135deg, #2563eb, #8b5cf6); padding: 6px 8px; border-radius: 5px; font-size: 13px; }
.modal-mask { position: fixed; inset: 0; background: rgba(4, 7, 15, .58); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-mask[style*="flex"], .modal-mask.show { display: flex; animation: add-mask-in .18s ease; }
.modal { background: #fff; border-radius: 16px; width: min(540px,100%); max-height: 90vh; overflow: auto; color: #0f172a; box-shadow: 0 24px 64px rgba(15, 23, 42, .35); border: 1px solid rgba(148, 163, 184, .28); animation: add-modal-in .22s ease; }
.modal-lg { width: min(740px,100%); }
.modal-header {
  padding: 14px 18px; border-bottom: 0;
  display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: 15px; letter-spacing: .02em;
  background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 48%, #7c3aed 100%); color: #fff;
  position: relative;
}
.modal-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.modal-header > span { display: inline-flex; align-items: center; gap: 8px; }
.modal-header > span::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, .8);
}
.modal-header button { border: none; background: rgba(255,255,255,.12); width: 28px; height: 28px; border-radius: 8px; font-size: 14px; cursor: pointer; color: #e2e8f0; line-height: 1; }
.modal-header button:hover { color: #fff; background: rgba(255,255,255,.22); }
.modal-body { padding: 20px 20px 8px; background: linear-gradient(180deg, #f8faff 0%, #fff 48%); }
.modal-body .form-row { margin-bottom: 14px; }
.modal-body .form-row label { display:block; margin-bottom:7px; font-size:13px; font-weight:600; color:#334155; }
.modal-body .form-row input, .modal-body .form-row select, .modal-body .form-row textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; font-size: 13px; transition: border-color .15s, box-shadow .15s;
}
.modal-body .form-row textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.modal-body .form-row input:focus, .modal-body .form-row select:focus, .modal-body .form-row textarea:focus {
  outline: none; border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .16);
}
.modal-footer {
  padding: 14px 18px 16px; border-top: 1px solid #eef2f7;
  display: flex; justify-content: flex-end; gap: 10px;
  background: #fff;
}
.modal-footer .btn {
  min-width: 88px; height: 36px; border-radius: 10px !important; font-size: 13px; font-weight: 600;
  border: 0; cursor: pointer; padding: 0 16px;
}
.modal-footer .btn-default,
.modal-footer button[type="reset"],
.modal-footer .btn-cancel {
  background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #e2e8f0 !important;
}
.modal-footer .btn-default:hover { background: #e2e8f0 !important; }
.modal-footer .btn-success,
.modal-footer .btn-primary,
.modal-footer button[type="submit"]:not(.btn-default) {
  background: linear-gradient(135deg, #3b82f6, #6366f1 50%, #8b5cf6) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}
.modal-footer .btn-success:hover,
.modal-footer button[type="submit"]:not(.btn-default):hover {
  filter: brightness(1.05);
}

@keyframes add-mask-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes add-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* webmedia_task 添加弹窗 — 对齐源站 */
.modal-task-add {
  width: min(640px, 96vw);
  border-radius: 2px;
}
.task-add-form .form-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.task-add-form .form-group > label {
  width: 130px;
  text-align: right;
  padding-top: 9px;
  font-size: 13px;
  color: #333;
  flex-shrink: 0;
  font-weight: 400;
}
.task-add-form .form-group .ctrl { flex: 1; min-width: 0; }
.task-add-form .form-group .ctrl input[type="text"],
.task-add-form .form-group .ctrl input[type="number"],
.task-add-form .form-group .ctrl input[type="date"],
.task-add-form .form-group .ctrl select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}
.task-add-form .date-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.task-add-form .date-range input { flex: 1; }
.task-add-form .hint {
  margin: 6px 0 0;
  color: #909399;
  font-size: 12px;
  line-height: 1.5;
}
.task-add-form .hint a { color: #5b5ed2; }
.task-add-form .red { color: #f56c6c; margin-right: 2px; }
.seg-radio {
  display: inline-flex;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.seg-radio .seg-item {
  margin: 0 !important;
  cursor: pointer;
  display: inline-flex;
}
.seg-radio .seg-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg-radio .seg-item span {
  display: inline-block;
  min-width: 72px;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  color: #606266;
  background: #fff;
  border-right: 1px solid #dcdfe6;
}
.seg-radio .seg-item:last-child span { border-right: 0; }
.seg-radio .seg-item input:checked + span {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
}
.task-add-footer {
  justify-content: flex-start;
  padding: 8px 18px 18px;
  border-top: 0;
}
.btn-task-submit {
  min-width: 120px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1 50%, #8b5cf6);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}
.btn-task-submit:hover { filter: brightness(1.05); }

.modal-header .layer-tools { display: flex; gap: 2px; }
.modal-header .layer-tools button { width: 28px; height: 22px; line-height: 18px; font-size: 14px; }
.modal-task-add.is-max { width: min(960px, 98vw); }
.kw-search-form { display: flex; align-items: center; gap: 6px; }
.kw-search-form input[type="search"] {
  height: 32px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 4px; min-width: 180px; font-size: 13px;
}
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-bottom: 10px; align-items: center; }
.mc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #ece9ff; color: #5b4cdb; border-radius: 14px;
  padding: 3px 8px 3px 10px; font-size: 12px; max-width: 100%;
}
.mc-chip em { font-style: normal; color: #7c6ee6; margin-left: 2px; }
.mc-chip button {
  border: 0; background: transparent; color: #5b4cdb; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px;
}
.mc-selected-count {
  display: inline-flex; align-items: center;
  background: #222; color: #fff; border-radius: 14px;
  padding: 3px 10px; font-size: 12px;
}
.mc-empty { color: #999; font-size: 12px; padding: 10px; }
.modal-mc-add {
  width: min(760px, 96vw);
  max-height: 92vh;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-mc-add.is-max { width: min(980px, 98vw); height: 90vh; }
.modal-mc-add .modal-body { overflow: auto; flex: 1; padding: 18px 20px; }
.mc-add-form { display: flex; flex-direction: column; max-height: inherit; }
.mc-field {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.mc-field > label {
  width: 88px;
  text-align: right;
  padding-top: 9px;
  font-size: 13px;
  color: #333;
  flex-shrink: 0;
}
.mc-field .mc-ctrl { flex: 1; min-width: 0; }
.mc-field .mc-ctrl > input[name="title"] {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}
.mc-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}
.mc-filter-bar #mcFilter {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}
.mc-price-range {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.mc-price-range input {
  width: 88px !important;
  height: 34px !important;
  padding: 0 8px !important;
  border: 1px solid #dcdfe6 !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  box-sizing: border-box;
}
.mc-price-range span { color: #999; }
.mc-btn-clear {
  height: 34px;
  min-width: 36px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #666;
  cursor: pointer;
  flex-shrink: 0;
}
.mc-btn-clear:hover { background: #f5f5f5; }
.mc-price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.mc-preset {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e4e7ed;
  border-radius: 14px;
  background: #fff;
  color: #666;
  font-size: 12px;
  cursor: pointer;
}
.mc-preset:hover { border-color: #6c5ce7; color: #6c5ce7; }
.mc-preset.active {
  background: #6c5ce7;
  border-color: #6c5ce7;
  color: #fff;
}
.mc-batch-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.mc-check-all {
  font-size: 13px;
  color: #555;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
}
.mc-pick-meta { color: #888; font-size: 12px; flex: 1; }
.mc-pick-meta b { color: #5b4cdb; font-weight: 700; }
.mc-btn-batch {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  background: #18bc9c;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.mc-btn-batch:hover { background: #15a589; }
.mc-pick-list {
  max-height: 280px;
  overflow: auto;
  border: 1px solid #eef0f3;
  border-radius: 4px;
  background: #fff;
}
.modal-mc-add.is-max .mc-pick-list { max-height: calc(90vh - 320px); }
.mc-pick-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f3f4f6;
  user-select: none;
  margin: 0;
}
.mc-pick-item:hover { background: #f5f0ff; }
.mc-pick-item input { margin: 0; flex-shrink: 0; }
.mc-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-pick-item em { color: #888; font-style: normal; font-size: 12px; flex-shrink: 0; }
.mc-hint {
  margin: 8px 0 0;
  color: #909399;
  font-size: 12px;
  line-height: 1.5;
}
.mc-hint a { color: #5b5ed2; }
.mc-add-footer {
  justify-content: flex-start;
  padding: 10px 20px 16px;
  border-top: 0;
}
.mc-field .red { color: #f56c6c; margin-right: 2px; }
.mc-view-list { max-height: 360px; overflow: auto; }
.mc-view-item {
  display: flex; justify-content: space-between; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #333;
}
.mc-view-item em { color: #888; font-style: normal; }
@media (max-width: 640px) {
  .mc-filter-bar { flex-wrap: wrap; }
  .mc-price-range { width: 100%; }
  .mc-price-range input { flex: 1; width: auto !important; }
  .mc-field { flex-direction: column; gap: 6px; }
  .mc-field > label { width: auto; text-align: left; padding-top: 0; }
}

.bs-select { position: relative; }
.bs-select .bs-display {
  width: 100%; height: 38px; padding: 0 32px 0 12px; border: 1px solid #dcdfe6; border-radius: 4px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23999' fill='none' stroke-width='1.5'/></svg>") no-repeat right 12px center;
  text-align: left; cursor: pointer; font-size: 13px; color: #606266;
}
.bs-select .bs-display.has-value {
  background-color: #ece9ff;
  color: #5b4cdb;
  font-weight: 500;
}
.bs-select.open .bs-menu { display: block; }
.bs-menu {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  background: #fff; border: 1px solid #e4e7ed; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 260px; overflow: auto;
}
.bs-search {
  width: calc(100% - 16px); margin: 8px; height: 32px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 4px;
}
.bs-opt { padding: 8px 12px; font-size: 13px; cursor: pointer; color: #333; }
.bs-opt:hover { background: #f5f0ff; }
.bs-opt.active { background: #6c5ce7; color: #fff; }

/* 投稿弹窗 — 对齐源站 tougao */
.modal-tougao {
  width: min(920px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
}
.modal-tougao .modal-header { flex-shrink: 0; }
.modal-tougao .modal-body.tougao-body {
  overflow: auto;
  flex: 1;
  padding: 18px 22px;
}
.modal-tougao .form-group {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.modal-tougao .form-group > label {
  width: 110px;
  text-align: right;
  padding-top: 9px;
  font-size: 13px;
  color: #333;
  flex-shrink: 0;
  font-weight: 400;
}
.modal-tougao .form-group .ctrl { flex: 1; min-width: 0; }
.modal-tougao .form-group .ctrl > input,
.modal-tougao .form-group .ctrl > select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}
.modal-tougao .form-group .ctrl > select:disabled {
  background: #f5f7fa;
  color: #606266;
  cursor: not-allowed;
}
.tougao-cat-row { display: flex; gap: 10px; align-items: center; }
.tougao-cat-row select { flex: 1; }
.btn-huanypi {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #409eff;
  cursor: pointer;
  font-size: 13px;
}
.btn-huanypi:hover { background: #66b1ff; }
.tougao-hint-red {
  margin: 6px 0 0;
  color: #f56c6c;
  font-size: 12px;
  line-height: 1.5;
}
.tougao-rules {
  margin-bottom: 8px;
  padding: 10px 12px;
  background: #fff8f8;
  border: 1px solid #fde2e2;
  border-radius: 4px;
}
.tougao-rules p {
  margin: 0 0 4px;
  color: #f56c6c;
  font-size: 12px;
  line-height: 1.55;
}
.tougao-rules p:last-child { margin-bottom: 0; }
.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px;
  border: 1px solid #dcdfe6;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #f5f7fa;
}
.rt-toolbar button {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: #606266;
}
.rt-toolbar button:hover,
.rt-toolbar button.active {
  background: #fff;
  border-color: #dcdfe6;
}
.rt-sep {
  width: 1px;
  height: 20px;
  margin: 4px 4px;
  background: #dcdfe6;
}
.rt-editor {
  min-height: 280px;
  max-height: 420px;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 0 0 4px 4px;
  background: #fff;
  font-size: 14px;
  line-height: 1.75;
  outline: none;
}
.rt-editor:empty:before {
  content: attr(data-placeholder);
  color: #c0c4cc;
}
.rt-source {
  width: 100%;
  min-height: 280px;
  padding: 12px;
  border: 1px solid #dcdfe6;
  border-radius: 0 0 4px 4px;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}
.modal-tougao .tougao-content-group { align-items: stretch; }
.modal-tougao .tougao-content-group > label { padding-top: 4px; }

.modal-tougao .tougao-footer {
  display: block;
  padding: 8px 22px 22px;
  border-top: 0;
  text-align: left;
}
.btn-tougao-start {
  display: inline-block;
  min-width: 220px;
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: #1f1f1f;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  line-height: 40px;
}
.btn-tougao-start:hover { background: #333; }
.tougao-notes {
  margin-top: 18px;
  padding-top: 4px;
}
.tougao-notes-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}
.tougao-notes ol {
  margin: 0;
  padding-left: 18px;
  color: #909399;
  font-size: 12px;
  line-height: 1.75;
}
.tougao-notes li {
  margin-bottom: 4px;
  padding-left: 2px;
}

/* 关键词添加弹框 */
.kw-add-modal {
  width: min(920px, 96vw);
  max-height: 92vh;
  border-radius: 16px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .28) !important;
}
.kw-modal-hd {
  background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 48%, #7c3aed 100%);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 650;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.kw-modal-x {
  border: none;
  background: rgba(255,255,255,.12);
  color: #e2e8f0;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  width: 28px; height: 28px;
  border-radius: 8px;
}
.kw-modal-x:hover { color: #fff; background: rgba(255,255,255,.22); }
.kw-modal-bd {
  padding: 22px 28px 12px;
  overflow: auto;
  flex: 1;
  background: linear-gradient(180deg, #f8faff 0%, #fff 40%);
}
.kw-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.kw-label {
  width: 78px;
  flex-shrink: 0;
  text-align: right;
  line-height: 40px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}
.kw-ctrl { flex: 1; min-width: 0; }
.kw-input {
  width: 100%;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.kw-input:focus { outline: none; border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .16); }
.kw-tip { margin-top: 6px; color: #94a3b8; font-size: 12px; line-height: 1.5; }
.kw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px 90px; }
.kw-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kw-btn .fa { font-size: 13px; }
.kw-btn:disabled { opacity: .65; cursor: wait; }
.kw-btn-ai { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.kw-btn-ai:hover { filter: brightness(1.05); }
.kw-btn-peer { background: linear-gradient(135deg, #ec4899, #a855f7); color: #fff; border-color: transparent; }
.kw-btn-peer:hover { filter: brightness(1.05); }
.kw-btn-tool { background: #fff; color: #475569; border-color: #e2e8f0; }
.kw-btn-tool:hover { color: #4f46e5; border-color: #a5b4fc; }
.kw-textarea {
  width: 100%;
  min-height: 240px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  color: #0f172a;
  font-family: inherit;
}
.kw-textarea:focus { outline: none; border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .16); }
.kw-modal-ft {
  background: #fff;
  border-top: 1px solid #eef2f7;
  padding: 14px 16px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.kw-btn-ok {
  min-width: 96px;
  height: 38px;
  padding: 0 22px;
  background: linear-gradient(135deg, #3b82f6, #6366f1 50%, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}
.kw-btn-ok:hover { filter: brightness(1.05); }

/* 关键词编辑弹窗 */
.kw-edit-modal {
  width: min(640px, 96vw);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}
.kw-edit-bd { padding: 28px 32px 8px; }
.kw-edit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.kw-edit-label {
  width: 96px;
  flex-shrink: 0;
  text-align: right;
  color: #333;
  font-size: 14px;
}
.kw-edit-ctrl { flex: 1; min-width: 0; }
.kw-pill-group { display: flex; flex-wrap: wrap; gap: 12px; }
.kw-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 600;
  color: #6b4fd8;
  background: linear-gradient(83deg, #ebe4ff, #dfeeff);
  border: 1px solid transparent;
  margin: 0;
}
.kw-pill input { position: absolute; opacity: 0; pointer-events: none; }
.kw-pill-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid #c4b5fd; position: relative; flex-shrink: 0;
}
.kw-pill.is-on {
  color: #fff;
  background: linear-gradient(83deg, #7c5cff, #5b8def);
  box-shadow: 0 4px 12px rgba(91, 100, 240, .28);
}
.kw-pill.is-on .kw-pill-dot {
  border-color: #fff;
  background: #fff;
}
.kw-pill.is-on .kw-pill-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #3b82f6;
}
.kw-edit-ft {
  background: #f5f5f5;
  border-top: 1px solid #eee;
  padding: 14px 16px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.kw-btn-ok-dark {
  min-width: 96px; height: 38px; padding: 0 22px;
  background: #1f1f1f; color: #fff; border: none; border-radius: 8px;
  cursor: pointer; font-size: 14px; font-weight: 600;
}
.kw-btn-ok-dark:hover { background: #333; }
.kw-btn-reset {
  min-width: 96px; height: 38px; padding: 0 22px;
  background: #efeaff; color: #6b4fd8; border: none; border-radius: 8px;
  cursor: pointer; font-size: 14px; font-weight: 600;
}
.kw-btn-reset:hover { background: #e4dbff; }

@media (max-width: 640px) {
  .kw-field { flex-direction: column; gap: 6px; }
  .kw-label { text-align: left; line-height: 1.4; width: auto; }
  .kw-actions { margin-left: 0; }
  .kw-edit-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .kw-edit-label { text-align: left; width: auto; }
}

.placeholder-box { background: #fff; border-radius: 8px; padding: 40px; text-align: center; border: 1px dashed #d1d5db; color: #666; }
.user-login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(59, 130, 246, 0.35), transparent 45%),
    radial-gradient(ellipse at 90% 5%, rgba(217, 70, 239, 0.22), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(34, 211, 238, 0.1), transparent 50%),
    linear-gradient(160deg, #050816, #0a1024 50%, #101a36);
  padding: 20px;
}
.user-login-box {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  border: 1px solid rgba(140, 180, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(99, 102, 241, 0.22);
  padding: 36px; color: #222;
}
.user-login-box h1 {
  text-align: center; margin-bottom: 8px; font-size: 24px;
  background: linear-gradient(135deg, #2563eb, #8b5cf6 50%, #d946ef);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.user-login-box .sub { text-align: center; color: #64748b; margin-bottom: 24px; font-size: 14px; }
.errtips { padding: 8px 12px; background: #fee2e2; color: #b91c1c; border-radius: 4px; margin-bottom: 16px; font-size: 13px; }

.faq-item { background:#fff; border:1px solid #eee; border-radius:8px; padding:14px 16px; margin-bottom:10px; }
.faq-q { font-weight:600; margin-bottom:8px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.faq-a { color:#555; line-height:1.7; font-size:13px; }
.notice-card { background:#fff; border-left:4px solid #3b82f6; border-radius:8px; padding:14px 16px; margin-bottom:12px; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.notice-card.level-warn { border-left-color:#f59e0b; }
.notice-card.level-success { border-left-color:#10b981; }
.notice-title { font-weight:700; margin-bottom:4px; }
.notice-meta { color:#888; font-size:12px; margin-bottom:8px; }
.notice-body { color:#444; line-height:1.7; font-size:13px; }
.plan-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:8px; }
.plan-card { background:#fff; border:1px solid #e8e8e8; border-radius:12px; padding:18px; position:relative; }
.plan-card.featured { border-color:#3b82f6; box-shadow:0 8px 24px rgba(59,130,246,.15); }
.plan-name { font-size:18px; font-weight:700; margin-bottom:8px; }
.plan-price { font-size:28px; font-weight:800; color:#2563eb; margin-bottom:12px; }
.plan-price small { font-size:13px; color:#888; font-weight:500; }
.plan-features { list-style:none; margin:0 0 14px; padding:0; }
.plan-features li { padding:6px 0; border-bottom:1px dashed #f0f0f0; font-size:13px; color:#444; }
@media (max-width: 900px) { .plan-grid { grid-template-columns:1fr; } }

@media (max-width: 1100px) {
  .nav-grid, .stat-grid, .chart-row, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  html, body.user-dark { height: auto; overflow: auto; }
  .user-shell { height: auto; max-height: none; overflow: visible; }
  .user-body { flex-direction: column; overflow: visible; height: auto; }
  .user-sidebar, .user-sidebar:has(.sidebar-secondary.is-home) {
    width: 100%;
    height: auto;
    max-height: none;
    position: sticky;
    top: 54px;
    z-index: 30;
  }
  .sidebar-primary {
    width: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    padding: 8px 10px 10px;
    gap: 6px;
  }
  .sidebar-primary .menu-item {
    min-width: 80px;
    margin: 0;
    flex-shrink: 0;
  }
  .sidebar-primary .menu-item.active::after { display: none; }
  .sidebar-secondary { min-height: 120px; height: auto; padding-bottom: 16px; }
  .user-main { height: auto; overflow: visible; }
  .scroll-tip { display: none; }
  .nav-grid, .stat-grid, .chart-row, .card-grid, .form-grid, .tool-grid { grid-template-columns: 1fr; }
}
/* ===== GEO Tech UI polish v2 ===== */
.user-main {
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(139, 92, 246, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(7, 13, 31, 0.55), rgba(10, 16, 36, 0.25)),
    #e8eefc;
  padding: 14px 16px 18px;
  /* 保持仅主内容区滚动，左侧导航固定 */
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
}
.user-main > .kw-page,
.user-main > .wm-page,
.user-main > .ag-page,
.user-main > .mo-page,
.user-main > .alert + .kw-page,
.user-main > .alert + .wm-page,
.user-main > .alert + .mo-page {
  width: 100%;
  max-width: none;
}
.user-main.is-dashboard {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
    transparent;
  overflow-x: hidden;
  overflow-y: auto;
}

.panel, .form-box, .placeholder-box, .mini-card, .ag-page,
.wm-page, .wm-filters, .faq-item, .gallery-item {
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(241,245,255,.96)) !important;
  border: 1px solid rgba(140, 180, 255, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,.6) !important;
}
.wm-page { padding: 12px 14px 24px !important; min-height: calc(100% - 8px); }
.panel-body { padding: 16px !important; }

.btn, .wm-btn-primary, .wm-btn-outline, .wm-btn-reset, .kw-btn-search, .kw-btn-reset {
  border-radius: 10px !important;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease !important;
}
.btn-primary, .wm-btn-primary, .kw-btn-search {
  background: linear-gradient(135deg, #3b82f6, #6366f1 50%, #8b5cf6) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35) !important;
}
.btn-primary:hover, .wm-btn-primary:hover, .kw-btn-search:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  background: linear-gradient(135deg, #60a5fa, #8b5cf6) !important;
}
.wm-btn-reset, .btn-default, .wm-btn-outline, .kw-btn-reset {
  background: #fff !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  color: #334155 !important;
}
.wm-btn-reset:hover, .wm-btn-outline:hover {
  border-color: #818cf8 !important;
  color: #4f46e5 !important;
  background: #eef2ff !important;
}
.btn-brand {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #d946ef) !important;
  background-size: 160% 160% !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4) !important;
  height: 42px !important;
}

table.data, .ag-table, .kw-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  border-radius: 12px;
}
table.data th, .ag-table th, .kw-table th {
  background: linear-gradient(180deg, #f8faff, #eef2ff) !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
  font-weight: 650 !important;
}
table.data td, .ag-table td, .kw-table td {
  border-color: #eef2f7 !important;
}
table.data tbody tr:hover, .ag-table tbody tr:hover {
  background: #eef4ff !important;
}

.form-row input, .form-row select, .form-row textarea,
.form-group input, .form-group select, .form-group textarea,
.search-bar input, .search-bar select,
.wm-search input, .adm-toolbar input {
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  transition: border-color .15s, box-shadow .15s !important;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus,
.form-group input:focus, .search-bar input:focus, .wm-search input:focus {
  outline: none !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
}

.wm-tag {
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  transition: all .15s ease !important;
}
.wm-tag:hover, .wm-tag.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}
.wm-card {
  border-radius: 12px !important;
  border: 1px solid rgba(140, 180, 255, 0.2) !important;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease !important;
}
.wm-card:hover {
  background: #f8faff !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12) !important;
  transform: translateY(-1px);
}
.wm-sort-bar {
  background: linear-gradient(90deg, rgba(238, 242, 255, 0.9), rgba(255,255,255,0.9)) !important;
  border: 1px solid rgba(140, 180, 255, 0.25) !important;
  border-radius: 12px !important;
}
.wm-sort-item.active {
  color: #4f46e5 !important;
  font-weight: 700 !important;
}

.dash-panel {
  position: relative;
  overflow: hidden;
}
.dash-panel::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(99, 140, 255, 0.06) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: db-scan 8s linear infinite;
}
.flow-step, .stat-card, .nav-item-card {
  transition: transform .15s ease, box-shadow .15s ease !important;
}
.flow-step:hover, .nav-item-card:hover {
  transform: translateY(-2px);
}

.user-dropdown {
  border: 1px solid rgba(140, 180, 255, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.28) !important;
  overflow: hidden;
}
.badge, .wm-badge {
  border-radius: 999px !important;
  letter-spacing: .02em;
}
.modal {
  border-radius: 16px !important;
  border: 1px solid rgba(140, 180, 255, 0.3) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.4) !important;
  overflow: hidden;
}
.modal-mask { background: rgba(4, 7, 15, .62) !important; backdrop-filter: blur(4px); }

.plan-card {
  border-radius: 16px !important;
  border: 1px solid rgba(140, 180, 255, 0.28) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
}
.plan-price { background: linear-gradient(135deg, #2563eb, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

.content-header {
  color: #64748b !important;
  font-size: 13px;
  letter-spacing: .02em;
}

/* ========== 统一「添加」弹窗 / 表单美化 ========== */
.modal-task-add,
.modal-mc-add,
.modal-tougao,
.draft-add-form,
.modal.modal-lg {
  border-radius: 16px !important;
}
.modal-task-add {
  width: min(680px, 96vw) !important;
  border-radius: 16px !important;
}
.modal-mc-add {
  border-radius: 16px !important;
}
.task-add-form .form-group > label,
.draft-add-form .form-group > label,
.modal-tougao .form-group > label,
.mc-add-form .mc-field > label {
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.task-add-form .form-group .ctrl input[type="text"],
.task-add-form .form-group .ctrl input[type="number"],
.task-add-form .form-group .ctrl input[type="date"],
.task-add-form .form-group .ctrl select,
.draft-add-form .form-group .ctrl input,
.draft-add-form .form-group .ctrl select,
.draft-add-form .form-group .ctrl textarea,
.modal .form-group .ctrl input,
.modal .form-group .ctrl select,
.modal .form-group .ctrl textarea {
  height: 40px;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
.draft-add-form .form-group .ctrl textarea,
.modal .form-group .ctrl textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
}
.task-add-form .form-group .ctrl input:focus,
.task-add-form .form-group .ctrl select:focus,
.draft-add-form .form-group .ctrl input:focus,
.draft-add-form .form-group .ctrl select:focus,
.modal .form-group .ctrl input:focus,
.modal .form-group .ctrl select:focus,
.modal .form-group .ctrl textarea:focus {
  outline: none !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .16) !important;
}
.task-add-form .hint,
.draft-add-form .hint,
.modal-body .hint {
  color: #94a3b8 !important;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 6px;
}
.seg-radio {
  border-radius: 10px !important;
  border-color: #e2e8f0 !important;
  overflow: hidden;
}
.seg-radio .seg-item span {
  padding: 9px 16px !important;
  font-weight: 600;
}
.seg-radio .seg-item input:checked + span {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  color: #fff !important;
}
.pingtai-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pingtai-item {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.pingtai-item:hover {
  border-color: #a5b4fc;
  color: #4f46e5;
  background: #eef2ff;
}
.pingtai-item.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
}
.account-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed #c7d2fe;
  border-radius: 12px;
  background: #f8faff;
  min-height: 44px;
}
.account-pick .acc-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #334155;
}
.btn-task-submit,
.mc-btn-batch,
.modal-footer .btn-task-submit {
  background: linear-gradient(135deg, #3b82f6, #6366f1 50%, #8b5cf6) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  height: 38px !important;
  padding: 0 18px !important;
  font-weight: 650 !important;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}
.kw-edit-modal {
  border-radius: 16px !important;
}
.kw-edit-modal .modal-header,
.kw-edit-modal .kw-modal-hd {
  background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 48%, #7c3aed 100%) !important;
}
.wx2-page .modal-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 48%, #7c3aed 100%) !important;
}
.wx2-page .ck-tip {
  background: linear-gradient(135deg, #eef2ff, #f0f9ff) !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 10px !important;
  color: #334155 !important;
}
.radio-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid transparent;
}
.radio-inline:has(input:checked) {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}
@media (max-width: 640px) {
  .modal-body .form-group,
  .task-add-form .form-group,
  .draft-add-form .form-group,
  .kw-field {
    flex-direction: column !important;
    gap: 6px !important;
  }
  .modal-body .form-group > label,
  .task-add-form .form-group > label,
  .draft-add-form .form-group > label,
  .kw-label {
    width: auto !important;
    text-align: left !important;
    padding-top: 0 !important;
    line-height: 1.4 !important;
  }
  .kw-actions { margin-left: 0 !important; }
}
