/* 管理端(主办方/平台方通用后台样式) */
body.dash { background: #f7f1ea; }
.dash-shell { display: flex; min-height: 100vh; }

.side {
  width: 220px; flex: none; background: linear-gradient(180deg, #8e1a24, #5c0e15);
  color: #ffdfae; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side .logo { padding: 22px 20px 16px; font-size: 19px; font-weight: 800; letter-spacing: 1px; border-bottom: 1px solid rgba(255, 214, 140, .18); }
.side .logo small { display: block; font-size: 11px; font-weight: 400; opacity: .7; margin-top: 4px; letter-spacing: 2px; }
.side nav { flex: 1; overflow: auto; padding: 10px 0; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 12px 22px; color: #f6cf95; font-size: 14px; cursor: pointer; border-left: 3px solid transparent; }
.side nav a:hover { background: rgba(255, 214, 140, .08); }
.side nav a.on { background: rgba(255, 214, 140, .12); border-left-color: var(--gold); color: #ffe9c2; font-weight: 700; }
.side .foot { padding: 14px 20px; font-size: 12px; opacity: .75; border-top: 1px solid rgba(255,214,140,.18); }

.main { flex: 1; min-width: 0; padding: 22px 26px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.topbar h2 { font-size: 20px; color: var(--red-deep); }
.topbar .acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.balance-chip { background: linear-gradient(135deg, #fff, #fdf0e2); border: 1px solid #f0d9c2; border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--ink-2); }
.balance-chip b { color: var(--red-deep); font-size: 17px; }

.panel { display: none; }
.panel.on { display: block; animation: fadeUp .25s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } .side { width: 64px; } .side .logo, .side nav a span, .side .foot { display: none; } .side nav a { justify-content: center; } }

.fee-note { background: #fff7e8; border: 1px dashed #e5c184; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #9a6b1d; line-height: 1.7; margin-bottom: 14px; }

.rp-item { border: 1px solid #f0e0d2; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fffdf9; }
.rp-item .row1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-item .row1 .money { font-size: 18px; }
.rp-item .meta { font-size: 12px; color: var(--ink-2); margin-top: 6px; line-height: 1.7; }
.grab-rows { margin-top: 10px; max-height: 180px; overflow: auto; border-top: 1px dashed #eee; padding-top: 8px; }
.grab-rows .g { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.grab-rows .g .amt { margin-left: auto; color: var(--red-deep); font-weight: 600; }

.mode-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mode-btn { border: 1px solid #eadbc8; background: #fffdf9; border-radius: 12px; padding: 16px 14px; text-align: center; }
.mode-btn .ico { font-size: 26px; }
.mode-btn .t { font-weight: 700; color: var(--red-deep); margin: 6px 0 4px; }
.mode-btn .d { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.mode-btn.cur { border-color: var(--red); box-shadow: 0 0 0 2px rgba(184, 35, 47, .15); }
.mode-btn .cur-tag { color: var(--red); font-size: 12px; }

.tx-type { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #f4e9df; color: #8a6f66; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); }
.login-card .logo { text-align: center; font-size: 42px; }
.login-card h1 { text-align: center; font-size: 20px; color: var(--red-deep); margin: 8px 0 4px; }
.login-card .sub { text-align: center; font-size: 12px; color: var(--ink-2); margin-bottom: 22px; }
.demo-tip { margin-top: 16px; font-size: 12px; color: #a08a80; text-align: center; line-height: 1.8; }

.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.sw { position: relative; width: 44px; height: 24px; background: #ddd; border-radius: 999px; transition: background .2s; cursor: pointer; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: left .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.sw.on { background: var(--ok); }
.sw.on::after { left: 23px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-cell { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.photo-cell img { width: 100%; height: 90px; object-fit: cover; display: block; }
.photo-cell .ops { position: absolute; inset: auto 0 0 0; display: flex; background: rgba(0,0,0,.45); }
.photo-cell .ops button { flex: 1; border: none; color: #fff; font-size: 12px; padding: 5px 0; background: transparent; }
.photo-cell .p-tag { position: absolute; top: 4px; left: 4px; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 10px 4px 0; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); }
.chart .bar i { display: block; width: 70%; background: linear-gradient(180deg, var(--red), var(--red-deep)); border-radius: 4px 4px 0 0; min-height: 2px; }

/* 色调按钮色条 */
.theme-chip { height: 10px; border-radius: 999px; margin-top: 8px; }
.mode-btn[data-theme="zhongshi"] .theme-chip { background: linear-gradient(90deg, #b02331, #e8c47a); }
.mode-btn[data-theme="romance"] .theme-chip { background: linear-gradient(90deg, #e05a9c, #ffd6ea); }
.mode-btn[data-theme="galaxy"] .theme-chip { background: linear-gradient(90deg, #3b1a8e, #9df0ff); }
.mode-btn[data-theme="champagne"] .theme-chip { background: linear-gradient(90deg, #8a6d1b, #ffe89a); }
