/* ============================================================
   星星伴侣 · 运营管理系统
   风格：年轻情侣 / 扁平椭圆卡片 / 玻璃流态 / 线条饱满 / 界限分明
   ============================================================ */
:root {
  --rose: #FF4D6F;
  --rose-deep: #E6395E;
  --lavender: #8B5CF6;
  --lavender-deep: #7C3AED;
  --sky: #38BDF8;
  --peach: #FF9E6B;
  --ink: #332B40;
  --ink-soft: #5B556E;
  --muted: #8E8AA3;
  --line: rgba(139, 92, 246, .16);
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-dark: rgba(45, 33, 68, .88);
  --glass-dark-line: rgba(255, 255, 255, .14);
  --green: #10B981;
  --green-soft: rgba(16, 185, 129, .12);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, .14);
  --red: #EF4444;
  --red-soft: rgba(239, 68, 68, .10);
  --primary-grad: linear-gradient(120deg, #FF4D6F 0%, #8B5CF6 100%);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 26px;
  --radius-oval: 999px;
  --shadow: 0 8px 30px rgba(139, 92, 246, .10), 0 2px 8px rgba(51, 43, 64, .04);
  --shadow-lg: 0 24px 60px rgba(139, 92, 246, .22), 0 8px 24px rgba(51, 43, 64, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 12% 6%, rgba(255, 77, 111, .16), transparent 62%),
    radial-gradient(820px 520px at 92% 14%, rgba(139, 92, 246, .18), transparent 62%),
    radial-gradient(700px 560px at 50% 112%, rgba(56, 189, 248, .14), transparent 62%),
    radial-gradient(560px 420px at 78% 80%, rgba(255, 158, 107, .14), transparent 60%),
    #FFF7FA;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

/* 漂浮玻璃光斑 */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
body::before { width: 380px; height: 380px; left: -90px; top: 12%; background: rgba(255, 77, 111, .20); }
body::after { width: 460px; height: 460px; right: -120px; bottom: 6%; background: rgba(139, 92, 246, .20); }

a { color: inherit; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }
input, select, textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .66);
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #B4AEC6; }
input:focus, select:focus, textarea:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .16);
  background: rgba(255, 255, 255, .92);
}
select { cursor: pointer; }
button { cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-oval);
  padding: 10px 20px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: all .18s ease;
  letter-spacing: .2px;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--primary-grad); color: #fff; box-shadow: 0 8px 22px rgba(255, 77, 111, .30); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(139, 92, 246, .38); filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .66); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); background: #fff; box-shadow: 0 6px 18px rgba(255, 77, 111, .14); }
.btn-light { background: rgba(255, 255, 255, .78); color: var(--rose); border-color: rgba(255, 255, 255, .6); }
.btn-light:hover { background: #fff; box-shadow: 0 8px 20px rgba(255, 255, 255, .35); transform: translateY(-1px); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: rgba(239, 68, 68, .28); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .66);
  color: var(--muted);
  font-size: 18px;
  transition: all .18s ease;
}
.icon-btn:hover { color: var(--rose); border-color: var(--rose); background: #fff; box-shadow: 0 6px 18px rgba(255, 77, 111, .16); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-oval);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
.tag.ok { background: var(--green-soft); color: var(--green); border-color: rgba(16, 185, 129, .25); }
.tag.warn { background: var(--amber-soft); color: #B45309; border-color: rgba(245, 158, 11, .30); }
.tag.red { background: var(--red-soft); color: var(--red); border-color: rgba(239, 68, 68, .25); }
.server-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.server-strip div {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .70);
  box-shadow: var(--shadow);
}
.server-strip span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.server-strip b { display: block; margin-top: 4px; color: var(--ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 5px rgba(16, 185, 129, .18); }

/* ===== 登录页 ===== */
#loginScreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(760px 480px at 22% 18%, rgba(255, 77, 111, .20), transparent 60%),
    radial-gradient(680px 460px at 84% 84%, rgba(139, 92, 246, .20), transparent 60%),
    radial-gradient(520px 380px at 72% 22%, rgba(56, 189, 248, .14), transparent 60%),
    rgba(255, 247, 250, .88);
  backdrop-filter: blur(6px);
}
.login-card {
  width: 440px;
  max-width: 100%;
  border-radius: 30px;
  padding: 42px 40px 34px;
  text-align: center;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .88)) padding-box,
    linear-gradient(135deg, rgba(255, 77, 111, .55), rgba(139, 92, 246, .55), rgba(56, 189, 248, .40)) border-box;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  animation: cardFloat .5s ease both;
}
@keyframes cardFloat { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.login-brand {
  width: min(300px, 86%);
  height: auto;
  border-radius: 20px;
  margin: 0 auto 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(20, 77, 120, .25);
}
.login-brand img { width: 100%; height: auto; aspect-ratio: 3 / 1; display: block; object-fit: cover; }
.login-card h1 { margin: 0; font-size: 24px; letter-spacing: .5px; color: var(--ink); }
.login-card p { color: var(--muted); margin: 8px 0 28px; font-size: 13px; }
.login-form input { margin-bottom: 16px; padding: 13px 16px; border-radius: 18px; }
.login-form .btn { padding: 13px 16px; font-size: 15px; }
.login-tip { color: #B4AEC6; font-size: 12px; margin-top: 20px; }

/* ===== 布局 ===== */
#app { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  width: 252px;
  flex-shrink: 0;
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  margin: 14px 0 14px 14px;
  padding: 16px 12px;
  border-radius: 26px;
  border: 1px solid var(--glass-dark-line);
  background:
    linear-gradient(rgba(45, 33, 68, .90), rgba(33, 24, 56, .94)) padding-box,
    linear-gradient(180deg, rgba(255, 77, 111, .55), rgba(139, 92, 246, .60)) border-box;
  color: #B9B1D1;
  overflow-y: auto;
  box-shadow: 0 18px 44px rgba(51, 43, 64, .28);
  backdrop-filter: blur(18px);
  transition: transform .2s ease;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 4px 10px 20px;
  letter-spacing: .3px;
}
.brand-badge {
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 13px;
  background: var(--primary-grad);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 10px 22px rgba(255, 77, 111, .40);
}
.brand-badge img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.nav-group { margin-bottom: 4px; }
.nav-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: #A79FC4;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: all .18s ease;
}
.nav-group-head:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-group-head em { font-style: normal; font-size: 16px; color: #7E7499; transition: transform .22s ease; }
.nav-group.open .nav-group-head em { transform: rotate(45deg); color: #fff; }
.nav-group-body { display: none; padding-left: 8px; }
.nav-group.open .nav-group-body { display: block; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 14px;
  color: #B9B1D1;
  cursor: pointer;
  margin-bottom: 2px;
  font-size: 13px;
  text-decoration: none;
  position: relative;
  transition: all .18s ease;
}
.menu-item:hover { color: #fff; background: rgba(255, 255, 255, .09); transform: translateX(2px); }
.menu-item.active {
  color: #fff;
  background: var(--primary-grad);
  box-shadow: 0 8px 20px rgba(255, 77, 111, .35);
}
.side-foot {
  margin-top: auto;
  padding: 14px 12px 6px;
  border-top: 1px solid var(--glass-dark-line);
  font-size: 12px;
  color: #948BB0;
}
.side-foot .dot.ok { margin-right: 8px; }

.main { flex: 1; min-width: 0; padding: 14px 22px 28px; position: relative; z-index: 1; }
.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .60);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  padding: 10px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.sidebar-toggle { display: none; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; min-width: 0; }
.crumb-root { color: #A9A3BC; }
.crumb i { font-style: normal; color: #CFC8DD; }
.crumb b { color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* ===== 页面与面板 ===== */
.page { animation: pageIn .28s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel {
  background: var(--glass);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.panel-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-head h3::before { content: ""; width: 6px; height: 18px; border-radius: 6px; background: var(--primary-grad); }
.panel-sub { margin: 4px 0 0 14px; color: var(--muted); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.welcome {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: linear-gradient(120deg, #FF4D6F 0%, #8B5CF6 55%, #6C5CE7 100%);
  border-radius: 28px;
  color: #fff;
  padding: 24px 28px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(139, 92, 246, .32);
}
.welcome::before,
.welcome::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}
.welcome::before { width: 180px; height: 180px; right: 8%; top: -60px; background: rgba(255, 255, 255, .16); }
.welcome::after { width: 120px; height: 120px; left: 34%; bottom: -50px; background: rgba(255, 158, 107, .35); }
.welcome > * { position: relative; z-index: 1; }
.welcome h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: .3px; }
.welcome p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 13px; }
.welcome-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== 统计卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 16px; margin-bottom: 18px; }
.card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card.gold {
  background: linear-gradient(135deg, #FF4D6F, #8B5CF6);
  border: none;
  color: #fff;
  box-shadow: 0 14px 34px rgba(255, 77, 111, .32);
}
.card.gold .card-label, .card.gold .card-foot { color: rgba(255, 255, 255, .80); }
.card-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.card-value { font-size: 28px; font-weight: 900; margin: 6px 0 4px; line-height: 1.15; letter-spacing: -.5px; }
.card-foot { color: #A9A3BC; font-size: 12px; }

/* ===== 工具栏与表格 ===== */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toolbar input { width: 280px; max-width: 100%; }
.toolbar select { width: 160px; }
.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, .66);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; background: transparent; }
#page-products table, #page-cards table, #page-orders table { min-width: 720px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); word-break: break-word; }
th {
  color: #6E6786;
  font-weight: 700;
  background: rgba(139, 92, 246, .07);
  white-space: nowrap;
}
th:first-child { border-top-left-radius: 16px; }
th:last-child { border-top-right-radius: 16px; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(255, 77, 111, .05); }
.badge-vip {
  display: inline-block;
  background: linear-gradient(135deg, #FFD66B, #FF9E6B);
  color: #7C2D12;
  padding: 3px 12px;
  border-radius: var(--radius-oval);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(255, 158, 107, .35);
}
.badge-plain {
  display: inline-block;
  background: rgba(139, 92, 246, .10);
  color: var(--muted);
  padding: 3px 12px;
  border-radius: var(--radius-oval);
  font-size: 12px;
  font-weight: 600;
}
.cell-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; white-space: normal; }
.pager { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.pager button {
  min-width: 34px;
  height: 34px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, .70);
  border-radius: 12px;
  cursor: pointer;
  transition: all .16s ease;
  font-weight: 600;
}
.pager button:hover:not(:disabled) { border-color: var(--rose); color: var(--rose); transform: translateY(-1px); }
.pager button.active { background: var(--primary-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255, 77, 111, .30); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager span { color: var(--muted); margin-left: 8px; }

/* ===== 表单 ===== */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form label { color: var(--muted); font-size: 12px; font-weight: 700; }
.form .btn { justify-self: start; }
.membership-payment { width: 100%; min-width: 0; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.membership-payment h3 { margin: 0 0 8px; }
.membership-payment > p { color: var(--muted); margin: 0 0 16px; overflow-wrap: anywhere; }
.membership-payment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.membership-payment-field { display: grid; gap: 8px; min-width: 0; }
.membership-payment-field input { min-width: 0; }
.membership-payment-field > label, .membership-payment-options legend { color: var(--muted); font-size: 12px; font-weight: 700; }
.membership-payment-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; border: 0; padding: 0; margin: 0; min-width: 0; }
.membership-payment-options legend { padding: 0; margin-bottom: 8px; }
.membership-payment-options label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.membership-payment input[type="checkbox"] { width: auto; height: auto; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--rose); }
@media (max-width: 640px) { .membership-payment-fields { grid-template-columns: minmax(0, 1fr); } }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink) !important; font-weight: 600 !important; }
.switch input { display: none; }
.switch span {
  width: 42px;
  height: 22px;
  border-radius: 22px;
  background: rgba(139, 92, 246, .25);
  position: relative;
  transition: background .2s ease;
  flex-shrink: 0;
}
.switch span:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: left .2s ease;
  box-shadow: 0 2px 4px rgba(51, 43, 64, .20);
}
.switch input:checked + span { background: var(--primary-grad); }
.switch input:checked + span:after { left: 22px; }
.info div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; gap: 14px; }
.info span { color: var(--muted); flex-shrink: 0; }
.info b { text-align: right; word-break: break-all; font-weight: 700; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(51, 43, 64, .42);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 16px;
}
.modal-mask.show { display: flex; }
.modal {
  width: 520px;
  max-width: 100%;
  border-radius: 26px;
  border: 1.5px solid rgba(255, 255, 255, .70);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow: auto;
  animation: modalIn .2s ease both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1.5px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  z-index: 1;
}
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.modal-close {
  border: none;
  background: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  transition: all .15s ease;
}
.modal-close:hover { color: var(--rose); background: var(--red-soft); }
.modal-body { padding: 22px; }
.modal-body.form { grid-template-columns: 1fr; gap: 14px; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1.5px solid var(--line);
  background: rgba(255, 255, 255, .70);
  position: sticky;
  bottom: 0;
}

/* ===== Toast ===== */
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(16, 185, 129, .40);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
  max-width: 360px;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.err { border-color: rgba(239, 68, 68, .40); }

/* ===== 下载设置页 ===== */
.dl-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(120deg, rgba(255, 77, 111, .13), rgba(139, 92, 246, .15));
  border: 1.5px solid rgba(255, 255, 255, .75);
  border-radius: 24px;
  padding: 20px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.dl-intro .dl-ico { width: 48px; height: 48px; border-radius: 17px; font-size: 21px; }
.dl-intro h2 { margin: 0 0 4px; font-size: 18px; }
.dl-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.dl-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, .75);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.dl-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dl-ico {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-grad);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(255, 77, 111, .30);
  flex-shrink: 0;
}
.dl-card-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.dl-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.dl-form { grid-template-columns: 1fr; gap: 12px; }
.dl-field { display: flex; flex-direction: column; gap: 6px; }
.dl-field label { color: var(--muted); font-size: 12px; font-weight: 700; }
.dl-save { margin-top: auto; padding-top: 16px; display: flex; justify-content: flex-end; }

/* ===== 滚动条 ===== */
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 5px; }

/* ===== 响应式 ===== */
@media (max-width: 1180px) {
  .grid2, .grid3, .dl-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 80;
    width: 262px;
    height: 100vh;
    margin: 0;
    transform: translateX(-105%);
    border-radius: 0 26px 26px 0;
    box-shadow: 12px 0 36px rgba(51, 43, 64, .30);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .main { padding: 12px 12px 20px; }
  .topbar { top: 12px; margin-bottom: 12px; padding: 8px 12px; }
  .sidebar-toggle { display: inline-flex; }
  .welcome { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .cards { grid-template-columns: 1fr; }
  .toolbar input { width: 100%; }
  .form { grid-template-columns: 1fr; }
  .crumb-root { display: none; }
}

/* ===== Operations console refresh · 2026-08 ===== */
:root {
  --rose: #E34B70;
  --rose-deep: #C9335F;
  --lavender: #8B7CFF;
  --lavender-deep: #7061E8;
  --ink: #1C2334;
  --ink-soft: #505D73;
  --muted: #778299;
  --line: rgba(28, 35, 52, .10);
  --glass: rgba(255, 255, 255, .64);
  --glass-strong: rgba(255, 255, 255, .86);
  --primary-grad: linear-gradient(132deg, #E34B70 0%, #8B7CFF 100%);
  --shadow: 0 18px 48px rgba(38, 50, 80, .10), 0 2px 8px rgba(28, 35, 52, .04);
  --shadow-lg: 0 30px 72px rgba(38, 50, 80, .20), 0 8px 24px rgba(28, 35, 52, .08);
}

body {
  background:
    radial-gradient(820px 500px at 100% -8%, rgba(139, 124, 255, .15), transparent 64%),
    radial-gradient(680px 480px at -8% 86%, rgba(227, 75, 112, .13), transparent 62%),
    linear-gradient(145deg, #F4F6FA, #E4EAF3 58%, #DCE5F0);
}
body::before { width: 420px; height: 420px; background: rgba(227, 75, 112, .10); filter: blur(105px); }
body::after { width: 460px; height: 460px; background: rgba(139, 124, 255, .13); filter: blur(110px); }

.sidebar {
  width: 268px;
  padding: 18px 12px;
  background:
    linear-gradient(175deg, rgba(25, 30, 47, .97), rgba(31, 29, 51, .98)) padding-box,
    linear-gradient(165deg, rgba(255, 255, 255, .20), rgba(139, 124, 255, .38)) border-box;
  box-shadow: 0 26px 70px rgba(25, 31, 50, .34);
}
.side-brand { padding: 4px 10px 24px; gap: 12px; }
.side-brand small { display: block; color: #868CB2; font-size: 9px; letter-spacing: 1.4px; margin-top: 1px; font-weight: 700; }
.brand-badge { width: 40px; height: 40px; line-height: 40px; border-radius: 14px; }
.nav-group { margin-bottom: 7px; }
.nav-group-head { padding: 9px 13px; color: #8F96B8; font-size: 11px; letter-spacing: .7px; text-transform: uppercase; }
.nav-group-head:hover { color: #E7E9F8; background: transparent; }
.nav-group-body { padding-left: 0; }
.menu-item { min-height: 40px; padding: 9px 12px; gap: 9px; color: #C5CAE1; }
.menu-item:hover { background: rgba(255, 255, 255, .075); transform: none; }
.menu-item.active { background: linear-gradient(110deg, rgba(227, 75, 112, .96), rgba(139, 124, 255, .96)); box-shadow: 0 10px 24px rgba(92, 70, 177, .30); }
.nav-icon { width: 18px; text-align: center; color: #B9C0DD; font-size: 15px; line-height: 1; }
.menu-item.active .nav-icon { color: #fff; }
.side-foot { padding-top: 16px; color: #9198B5; }

.main { padding: 18px 28px 34px; }
.topbar {
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
  border-color: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(38, 50, 80, .08);
}
.crumb-root { color: var(--muted); font-size: 12px; letter-spacing: .2px; }
.topbar .tag { padding: 6px 12px; }

.command-hero {
  position: relative;
  overflow: hidden;
  min-height: 158px;
  padding: 28px 30px;
  border-radius: 26px;
  background: linear-gradient(120deg, #D9456C, #8B7CFF 58%, #76A7DC);
  box-shadow: 0 22px 50px rgba(116, 93, 194, .28);
}
.command-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -100px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .06), 0 0 0 86px rgba(255, 255, 255, .04);
}
.command-hero > * { position: relative; z-index: 1; }
.command-hero .eyebrow { color: rgba(255, 255, 255, .75); letter-spacing: 1.3px; font-size: 10px; font-weight: 800; }
.command-hero h2 { color: #fff; margin: 5px 0 7px; font-size: clamp(22px, 3vw, 31px); letter-spacing: -.7px; }
.command-hero p { color: rgba(255, 255, 255, .86); margin: 0; }
.command-hero .btn-light { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .30); backdrop-filter: blur(10px); }
.command-hero .btn-light:hover { color: #fff; background: rgba(255, 255, 255, .28); }

.command-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.command-cards .card {
  min-height: 132px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .70);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
}
.command-cards .card::before { height: 3px; opacity: .8; }
.command-cards .card.accent::before { background: linear-gradient(90deg, #8B7CFF, #68B8E9); }
.command-cards .card.gold::before { background: linear-gradient(90deg, #E34B70, #F0A54A); }
.command-cards .card-label { color: var(--muted); font-size: 12px; letter-spacing: .2px; }
.command-cards .card-value { color: var(--ink); font-size: 27px; margin: 10px 0 6px; letter-spacing: -.6px; }
.command-cards .card-value small { color: #B8C0D0; font-size: 17px; }
.command-cards .card-foot { color: var(--muted); font-size: 11px; }
.command-cards .card-foot b { color: var(--ink-soft); }

.panel {
  padding: 21px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}
.panel-head { align-items: flex-start; margin-bottom: 16px; }
.panel-head h3 { letter-spacing: -.2px; }
.panel-head h3::before { width: 4px; height: 17px; border-radius: 4px; }
.panel-head a { color: var(--accent-ink, var(--rose)); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.panel-sub { margin-left: 10px; }
.table-wrap { border-radius: 15px; border-color: rgba(28, 35, 52, .08); background: rgba(255, 255, 255, .42); }
th { background: rgba(238, 241, 246, .68); color: #748098; font-size: 11px; letter-spacing: .25px; }
td { border-color: rgba(28, 35, 52, .065); }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: rgba(139, 124, 255, .055); }
.toolbar { padding: 10px; background: rgba(238, 241, 246, .55); border: 1px solid rgba(28, 35, 52, .07); border-radius: 16px; }
.toolbar input, .toolbar select { background: rgba(255, 255, 255, .83); }

.feed-list { display: grid; gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(28, 35, 52, .07); }
.feed-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 13px 14px; background: rgba(255, 255, 255, .48); }
.feed-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--primary-grad); font-size: 13px; font-weight: 800; }
.feed-item b { display: inline-block; font-size: 13px; margin-right: 7px; }
.feed-item span:not(.feed-avatar) { color: var(--muted); font-size: 11px; }
.feed-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.release-summary { display: grid; gap: 10px; }
.release-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 13px; background: rgba(255, 255, 255, .50); border: 1px solid rgba(28, 35, 52, .065); }
.release-row span { color: var(--muted); font-size: 12px; }
.release-row b { color: var(--ink); font-size: 13px; }
.success-text { color: var(--green) !important; }
.feedback-copy { min-width: 300px; max-width: 640px; white-space: pre-wrap; line-height: 1.65; }
.room-command-panel .panel-head { gap: 12px; }

@media (max-width: 1380px) {
  .command-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .main { padding: 14px 16px 28px; }
  .command-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .sidebar { width: 276px; transform: translateX(-105%); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-toggle { display: inline-flex; }
  .main { padding: 12px 12px 22px; }
  .command-hero { min-height: 180px; padding: 22px 20px; }
  .command-hero .welcome-btns { width: 100%; }
  .command-hero .btn-light { flex: 1; padding-left: 10px; padding-right: 10px; }
  .command-cards { grid-template-columns: 1fr; gap: 10px; }
  .command-cards .card { min-height: 104px; }
  .panel { padding: 16px; border-radius: 18px; }
  .feedback-copy { min-width: 220px; }
}
