/* style.css —— 东台手环计数系统（科技感版） */
:root {
  --glass: 0.90;           /* 界面玻璃透明度（设置里可调） */
  --brand: #4C6FFF;
  --brand2: #7B5CFF;
  --grad: linear-gradient(135deg, #4C6FFF 0%, #7B5CFF 100%);
  --ink: #1B2030;
  --ink-soft: #8A94B0;
  --line: rgba(20,26,50,.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* 需求：禁用长按复制/复制弹窗，但输入框与可编辑区保留选择能力 */
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); font-size: 14px;
  background: linear-gradient(160deg, #0A0E1E 0%, #151B36 40%, #0D1330 100%);
  background-attachment: fixed; color-scheme: dark;
  overflow-x: hidden;
}
/* 动态光晕背景 */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
body::before { width: 46vw; height: 46vw; top: -12vw; left: -8vw; background: radial-gradient(circle, rgba(76,111,255,.34), transparent 70%); animation: drift1 16s ease-in-out infinite alternate; }
body::after { width: 40vw; height: 40vw; bottom: -10vw; right: -8vw; background: radial-gradient(circle, rgba(123,92,255,.32), transparent 70%); animation: drift2 20s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw,4vh) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-5vw,-3vh) scale(1.2); } }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 74px; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; outline: none; }

/* 主题 */
body.theme-dark { background: linear-gradient(160deg,#0A0E1E,#151B36 40%,#0D1330); color:#E5E7EB; }
body.theme-dark .card, body.theme-dark .sheet, body.theme-dark .panel, body.theme-dark .row, body.theme-dark .stat-box, body.theme-dark .stat-grid .cell { background: rgba(23,30,52,var(--glass)); color:#E5E7EB; }
body.theme-dark .topbar-title { color:#F3F4F6; }
body.theme-dark .section-title { color:#E5E7EB; }
body.theme-dark .opt, body.theme-dark input.text, body.theme-dark select.sel, body.theme-dark .field input { background: rgba(30,41,66,var(--glass)); border-color:#2C3A5C; color:#E5E7EB; }
body.theme-dark .sheet h3, body.theme-dark .lbl { color:#E5E7EB; }
body.theme-dark .switch { background:#3A4A6E; }
body.theme-cyan { background: linear-gradient(160deg,#E7F6FF,#D7EFFF 50%,#E7F6FF); color:#123; color-scheme:light; }
body.theme-warm { background: linear-gradient(160deg,#FFF6EA,#FFEAD2 50%,#FFF6EA); color:#3A2410; color-scheme:light; }
body.theme-purple { background: linear-gradient(160deg,#F6ECFF,#EBDDFF 50%,#F6ECFF); color:#2A1640; color-scheme:light; }
body.theme-light { background: linear-gradient(160deg,#F3F6FF,#E9EFFF 50%,#F3F6FF); color:#1B2030; color-scheme:light; }
.bgimg { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: var(--glass); }

/* ===== 通用玻璃卡片 ===== */
.card, .sheet, .panel, .login-card, .row, .stat-box, .stat-grid .cell, .topbar, .banner {
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* ===== 登录页 ===== */
.login-wrap { min-height: 88vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.login-logo { text-align: center; margin-bottom: 22px; animation: floaty 3.4s ease-in-out infinite; }
.login-logo .brand { font-size: clamp(20px, 9vw, 38px); font-weight: 900; letter-spacing: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(90deg,#fff,#E6EEFF 40%,#C6D6FF); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 5px #04101f) drop-shadow(0 0 1px #04101f) drop-shadow(0 0 22px rgba(120,150,255,.95)) drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.login-logo .sub { color: var(--ink-soft); font-size: 12px; margin-top: 6px; letter-spacing: 4px; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-7px); } }
.login-card { width: 100%; max-width: 360px; background: rgba(255,255,255,var(--glass)); border-radius: 20px; padding: 26px 24px; position: relative; box-shadow: 0 20px 50px rgba(4,8,26,.35), 0 0 0 1px rgba(255,255,255,.12) inset; animation: cardIn .5s ease; overflow: hidden; }
.login-card::before { content:""; position:absolute; top:-60%; right:-40%; width:120%; height:120%; background: radial-gradient(circle at top right, rgba(123,92,255,.18), transparent 60%); pointer-events:none; }
.login-card h2 { font-size: 19px; margin-bottom: 5px; }
.login-card .login-sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 20px; }
.login-info { width:100%; max-width:360px; margin-top:16px; display:flex; flex-direction:column; gap:12px; }
.login-section { background: rgba(255,255,255,var(--glass)); border-radius:16px; padding:14px 16px; box-shadow: 0 10px 26px rgba(4,8,26,.2); }
.login-section-title { font-weight:700; font-size:14px; margin-bottom:8px; }
.login-section-body { font-size:13px; line-height:1.6; color:var(--ink-soft); word-break:break-word; }
.log-item { padding:6px 0; border-top:1px dashed var(--line); font-size:13px; }
.log-item:first-child { border-top:none; }
.log-head { font-weight:700; color:var(--ink); }
.log-list { max-height:62vh; overflow-y:auto; font-size:13px; color:var(--ink-soft); line-height:1.6; }
.login-info .btn.secondary { margin-top:4px; }
.login-author { margin-top:18px; font-size:12px; color:var(--ink-soft); }
.login-ver { font-size:12px; color:var(--ink-soft); margin-top:4px; }
.dl-corner { position: fixed; top: 16px; right: 16px; z-index: 50; }
.dl-corner .btn { padding: 9px 14px; font-size: 13px; border-radius: 22px; }
.freed-head { position: sticky; top: 0; display: flex; justify-content: flex-end; z-index: 2; margin: -10px -6px 4px 0; }
.freed-edit { display:flex; gap:12px; margin-top:14px; }
.freed-edit .freed-col { flex:1; min-width:0; }
.freed-edit label { display:block; font-size:13px; color:#6B7280; margin-bottom:6px; }
.freed-edit input[type=time] { width:100%; padding:9px 12px; border:1px solid var(--line); border-radius:10px; font-size:14px; background:rgba(255,255,255,.5); color:#fff; box-sizing:border-box; outline:none; font-family:inherit; }
body.theme-light .freed-edit input[type=time], body.theme-cyan .freed-edit input[type=time], body.theme-warm .freed-edit input[type=time], body.theme-purple .freed-edit input[type=time] { color:#1B2030; }
.freed-note { font-size:12px; color:#6B7280; margin-top:12px; line-height:1.6; }
@keyframes cardIn { from { opacity:0; transform: translateY(22px) scale(.97); } to { opacity:1; transform:none; } }
.field { margin-bottom: 14px; position: relative; }
.field.has-clear input { padding-right: 34px; }
.field .clear-btn { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(150,160,200,.18); color: #fff; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
body.theme-light .field .clear-btn, body.theme-cyan .field .clear-btn, body.theme-warm .field .clear-btn, body.theme-purple .field .clear-btn { color: #1B2030; background: rgba(20,26,50,.08); }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; background: rgba(255,255,255,.55); transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(76,111,255,.18); }
.btn { display: block; width: 100%; padding: 13px; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; color: #fff; background: var(--grad); position: relative; overflow: hidden; transition: transform .12s, box-shadow .2s, filter .2s; box-shadow: 0 8px 22px rgba(76,111,255,.35); }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); filter: brightness(.95); }
.btn::after { content:""; position:absolute; top:0; left:-70%; width:50%; height:100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 0%,60%{ left:-70%; } 100%{ left:130%; } }
.btn.secondary { background: rgba(255,255,255,.12); color:#fff; box-shadow:none; border:1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
body.theme-cyan .btn.secondary, body.theme-warm .btn.secondary, body.theme-purple .btn.secondary, body.theme-light .btn.secondary { background: rgba(20,26,50,.08); color:#1B2030; border-color: rgba(20,26,50,.12); }
.btn.danger { background: linear-gradient(135deg,#FF5B5B,#E5484D); box-shadow: 0 8px 22px rgba(229,72,77,.3); }
.btn.small { width: auto; display: inline-block; padding: 9px 15px; font-size: 13px; border-radius: 10px; }
.divider { text-align: center; color: var(--ink-soft); margin: 16px 0 12px; font-size: 13px; position: relative; }
.divider::before, .divider::after { content:""; display:inline-block; width: 38%; height:1px; background: var(--line); vertical-align:middle; }
.divider::before { margin-right: 8px; } .divider::after { margin-left: 8px; }
.tip-sm { text-align: center; color: var(--ink-soft); font-size: 12px; margin-top: 10px; }
.err { color: #FF6B6B; font-size: 13px; margin-top: 8px; text-align: center; min-height: 18px; }

/* ===== 顶部标题栏 ===== */
.topbar { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 64px 12px; position: relative; background: transparent; }
.topbar-title { font-size: clamp(16px, 5.2vw, 22px); font-weight: 900; letter-spacing: 1px; padding: 0 40px; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(90deg,#fff,#B9C6FF 60%,#9FB0FF); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 8px rgba(76,111,255,.4)); }
body.theme-light .topbar-title, body.theme-cyan .topbar-title, body.theme-warm .topbar-title, body.theme-purple .topbar-title { background: linear-gradient(90deg,#1B2030,#3B4A8A 60%,#4C6FFF); -webkit-background-clip: text; background-clip: text; color: transparent; filter:none; }
.topbar-status { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.topbar-actions { position: absolute; right: 12px; top: 16px; display: flex; gap: 4px; z-index: 40; }
.topbar-left { position: absolute; left: 12px; top: 16px; display: flex; align-items: center; gap: 4px; z-index: 40; }
.topbar-left .icon-btn { background: rgba(20,26,50,.28); backdrop-filter: blur(2px); }
body.theme-light .topbar-left .icon-btn { background: rgba(255,255,255,.55); }
.exit-local-btn { padding: 6px 12px; border-radius: 8px; border: none; background: rgba(20,26,50,.28); color: #fff; font-size: 13px; cursor: pointer; transition: background .2s; }
body.theme-light .exit-local-btn { background: rgba(255,255,255,.6); color: #3B4A6B; }
.exit-local-btn:hover { background: rgba(255,255,255,.22); }
body.theme-light .exit-local-btn:hover { background: rgba(20,26,50,.1); }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: none; background: transparent; color:#fff; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .15s; }
body.theme-light .icon-btn, body.theme-cyan .icon-btn, body.theme-warm .icon-btn, body.theme-purple .icon-btn { background: transparent; color:#3B4A6B; }
.icon-btn:hover { background: rgba(255,255,255,.14); }
body.theme-light .icon-btn:hover, body.theme-cyan .icon-btn:hover, body.theme-warm .icon-btn:hover, body.theme-purple .icon-btn:hover { background: rgba(20,26,50,.08); }
.icon-btn:active { transform: scale(.9); filter: brightness(.9); }

/* ===== 顶部激活横幅 ===== */
.banner { background: linear-gradient(135deg, rgba(23,28,52,var(--glass)) 0%, rgba(45,58,104,var(--glass)) 60%, rgba(55,70,126,var(--glass)) 100%); color:#fff; padding: 14px 14px 12px; border-radius: 16px; margin: 10px 12px; box-shadow: 0 12px 30px rgba(4,8,26,.4), inset 0 0 0 1px rgba(255,255,255,.08); }
.empty-tip { color: #B9C2E0; font-size: 13px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.main-members { margin: 0 12px 2px; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: rgba(20,26,50,var(--glass)); color: #C7D0F0; border: 1px solid rgba(255,255,255,.08); }
body.theme-light .main-members, body.theme-cyan .main-members, body.theme-warm .main-members, body.theme-purple .main-members { background: rgba(255,255,255,var(--glass)); color:#3B4A6B; border-color: var(--line); }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 8px; font-size: 12px; background: rgba(255,255,255,.10); }
.chip .name { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .btnpm { width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(255,255,255,.22); color:#fff; font-size: 13px; line-height: 18px; padding: 0; }
.chip .close { width: 16px; height: 16px; border-radius: 50%; border: none; background: rgba(0,0,0,.4); color:#fff; font-size: 11px; line-height: 16px; padding:0; }

/* ===== 手环卡片 ===== */
.section { margin: 4px 12px 16px; }
.section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; color:#fff; }
body.theme-light .section-title, body.theme-cyan .section-title, body.theme-warm .section-title, body.theme-purple .section-title { color:#1B2030; }
.section-title::before { content:""; width: 4px; height: 16px; background: var(--grad); border-radius: 3px; display:inline-block; box-shadow: 0 0 10px rgba(76,111,255,.6); }
.section-title .act-count { margin-left:auto; font-size:13px; font-weight:600; opacity:.75; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.card { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,var(--glass)); overflow: hidden; position: relative; transition: transform .2s, box-shadow .25s; box-shadow: 0 10px 26px rgba(4,8,26,.25); }
body.theme-dark .card { border-color: rgba(255,255,255,.08); }
.card:hover { box-shadow: 0 16px 34px rgba(4,8,26,.4); }
.card-head { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; }
.card-head .cname { font-size: 15px; font-weight: 700; color:#fff; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.pencil { background: rgba(255,255,255,.28); border:none; color:#fff; border-radius:8px; width:25px; height:25px; font-size:13px; line-height:25px; padding:0; transition: transform .15s, background .2s; }
.pencil:active { transform: scale(.9); }
.card-head .head-ops { display: flex; gap: 6px; }
.pencil.del { background: rgba(255,255,255,.22); }
.pencil.del:hover { background: rgba(244,67,54,.75); }
.card-body { padding: 13px; }
.card .mode { font-size: 15px; font-weight: 700; }
.card .count { font-size: 32px; font-weight: 800; margin-top: 2px; color:#fff; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.card .count small { font-size: 12px; font-weight: 400; opacity:.85; }
.card.active { box-shadow: 0 0 0 2px var(--brand), 0 14px 34px rgba(76,111,255,.35); }
.card.active .card-body { color:#fff; }
/* 激活手环：环绕动态光环 */
.card.active::before { content:""; position:absolute; inset:-3px; border-radius:18px; padding:2px; background: conic-gradient(from 20deg, #4C6FFF, #7B5CFF, #22D3EE, #4C6FFF); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: none; pointer-events:none; z-index:3; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.badge-use { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg,#22D3EE,#16A34A); color:#fff; font-size:11px; padding:2px 9px; border-radius:20px; z-index:2; box-shadow:0 3px 10px rgba(22,163,74,.4); }
.badge-use::before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:#fff; margin-right:5px; animation:pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.card .actbtn { display:block; width:100%; margin-top:11px; padding:9px; border:none; border-radius:9px; font-size:13px; font-weight:700; color:#fff; transition: transform .15s, box-shadow .15s, filter .2s; box-shadow: 0 5px 14px rgba(4,8,26,.25); }
.card .actbtn:active { transform: scale(.95); filter: brightness(.92); }
.card.dragging { opacity: .55; transform: scale(.96); box-shadow: 0 18px 40px rgba(4,8,26,.4); cursor: grabbing; z-index: 20; }
.card { cursor: grab; }
.card.active .actbtn { background: rgba(255,255,255,.28); box-shadow: none; }
.card-add { border: 1.5px dashed rgba(150,160,200,.5); background: rgba(255,255,255,.06); display:flex; flex-direction:column; align-items:center; justify-content:center; height: 138px; color: #B9C2E0; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.card-add:hover { transform: translateY(-3px); border-color: var(--brand); background: rgba(76,111,255,.10); }
.card-add .plus { font-size: 32px; color:#fff; text-shadow:0 0 14px rgba(76,111,255,.8); }

/* ===== 列表/统计 ===== */
.row { background: rgba(255,255,255,var(--glass)); border-radius: 13px; padding: 12px; margin-bottom: 10px; box-shadow: 0 6px 18px rgba(4,8,26,.18); display:flex; align-items:center; justify-content:space-between; transition: transform .2s, box-shadow .2s; }
.row:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(4,8,26,.28); }
.row .lbl { font-weight:600; color:#fff; }
body.theme-light .row .lbl, body.theme-cyan .row .lbl, body.theme-warm .row .lbl, body.theme-purple .row .lbl { color:#1B2030; }
.row .sub { color: var(--ink-soft); font-size: 12px; margin-top: 3px; }
.stat-box { background: rgba(255,255,255,var(--glass)); border-radius: 13px; padding: 14px; margin-bottom: 10px; box-shadow: 0 8px 20px rgba(4,8,26,.18); }
.stat-box .big { font-size: 24px; font-weight: 800; color: var(--brand); }
.stat-grid { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:10px; margin-bottom:10px; }
.stat-grid .cell { background: rgba(255,255,255,var(--glass)); border-radius: 13px; padding: 13px; text-align:center; box-shadow: 0 8px 20px rgba(4,8,26,.18); transition: transform .2s; }
.stat-grid .cell:hover { transform: translateY(-3px); }
.stat-grid .cell .v { font-size: 21px; font-weight: 800; }
.stat-grid .cell .k { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.table { width:100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding:7px 8px; border-bottom:1px solid var(--line); text-align:left; }
.table th { color: var(--ink-soft); font-weight:500; }

/* ===== 弹层 ===== */
.mask { position: fixed; inset:0; background: rgba(4,8,26,.55); z-index: 90; display:flex; align-items:flex-end; backdrop-filter: blur(4px); animation: fadein .2s ease; }
.mask.center { align-items:center; justify-content:center; }
.sheet { width:100%; max-width:480px; margin:0 auto; background: rgba(255,255,255,var(--glass)); border-radius:20px 20px 0 0; padding:20px 20px 34px; max-height: 88vh; overflow-y:auto; animation: rise .25s ease; box-shadow: 0 -10px 40px rgba(4,8,26,.35); }
.sheet.center { border-radius:18px; width:90%; max-width:420px; max-height:88vh; animation: popIn .16s ease; }
.sheet h3 { font-size:16px; margin-bottom:14px; display:flex; justify-content:space-between; align-items:center; color:#fff; position:static; background:transparent; border-bottom:none; }
.sheet:not(.center) h3 { position:sticky; top:0; z-index:8; margin:-20px -20px 14px; padding:20px 20px 12px; background:#fff; border-bottom:1px solid var(--line); }
body.theme-light .sheet h3, body.theme-cyan .sheet h3, body.theme-warm .sheet h3, body.theme-purple .sheet h3 { color:#1B2030; }
body.theme-dark .sheet:not(.center) h3 { background:#17203A; }
/* 设置弹窗专用：标题+关闭按钮固定在弹窗最顶部、不悬浮覆盖内容，内容在下方独立滚动，与弹窗成为一体 */
.sheet.settings-sheet { display:flex; flex-direction:column; overflow:hidden; padding:0; }
.sheet.settings-sheet h3 { position:static; flex:none; margin:0; padding:20px 20px 14px; border-bottom:1px solid var(--line); background:#fff; }
body.theme-dark .sheet.settings-sheet h3 { background:#17203A; }
.sheet.settings-sheet .sheet-body { flex:1; overflow-y:auto; padding:4px 20px 30px; -webkit-overflow-scrolling:touch; }
.x { width:29px;height:29px;border:none;background:rgba(150,160,200,.18);border-radius:50%;font-size:15px;color:#fff;cursor:pointer;flex:none;line-height:1;display:flex;align-items:center;justify-content:center; }
body.theme-light .x, body.theme-cyan .x, body.theme-warm .x, body.theme-purple .x { color:#1B2030; background: rgba(20,26,50,.08); }
@keyframes rise { from { transform: translateY(22px); opacity:.4; } to { transform:none; opacity:1; } }
@keyframes popIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { transform: translateX(-50%) translateY(-6px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@keyframes fadein { from { opacity:0; } to { opacity:1; } }
.opt-row { display:flex; gap:8px; flex-wrap:wrap; }
.opt { padding:9px 17px; border-radius:22px; border:1px solid var(--line); background: rgba(255,255,255,.5); font-size:14px; color:#fff; transition: all .18s; }
body.theme-light .opt, body.theme-cyan .opt, body.theme-warm .opt, body.theme-purple .opt { color:#1B2030; background: rgba(255,255,255,.5); }
.opt.on { background: var(--grad); color:#fff; border-color:transparent; box-shadow:0 5px 16px rgba(76,111,255,.4); }
.opt:active { transform: scale(.95); }
.time-result { text-align:center; font-size:16px; font-weight:700; margin-top:10px; }
.palette { display:flex; flex-wrap:wrap; gap:9px; }
.dot { width:34px; height:34px; border-radius:50%; border:2px solid rgba(255,255,255,.2); transition: transform .15s, box-shadow .2s; }
.dot:hover { transform: scale(1.12); box-shadow: 0 0 12px currentColor; }
.dot.on { border-color:#fff; box-shadow: 0 0 0 3px rgba(76,111,255,.5); }
.switch-row { display:flex; justify-content:space-between; align-items:center; padding:11px 0; border-bottom:1px solid var(--line); color:#fff; }
body.theme-light .switch-row { color:#1B2030; }
.switch-row:last-child { border-bottom:none; }
.switch { width:44px; height:25px; border-radius:20px; background: rgba(150,160,200,.35); position:relative; border:none; transition:.2s; }
.switch.on { background: var(--grad); }
.switch::after { content:""; position:absolute; top:2.5px; left:2.5px; width:20px; height:20px; border-radius:50%; background:#fff; transition:.2s; box-shadow:0 2px 6px rgba(0,0,0,.3); }
.switch.on::after { left:21.5px; }
input.text, select.sel { width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:11px; font-size:15px; background: rgba(255,255,255,.5); color:#fff; transition: border-color .2s, box-shadow .2s; }
body.theme-light input.text, body.theme-cyan input.text, body.theme-warm input.text, body.theme-purple input.text { color:#1B2030; }
input.text:focus, select.sel:focus { border-color: var(--brand); box-shadow:0 0 0 3px rgba(76,111,255,.18); }
textarea.text, .section textarea { width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:11px; font-size:14px; font-family:inherit; background: rgba(255,255,255,.5); color:#fff; resize:vertical; min-height:70px; box-sizing:border-box; outline:none; transition: border-color .2s, box-shadow .2s; }
body.theme-light textarea.text, body.theme-light .section textarea, body.theme-cyan textarea.text, body.theme-cyan .section textarea, body.theme-warm textarea.text, body.theme-warm .section textarea, body.theme-purple textarea.text, body.theme-purple .section textarea { color:#1B2030; }
.section textarea:focus { border-color: var(--brand); box-shadow:0 0 0 3px rgba(76,111,255,.18); }
input[type=range] { -webkit-appearance:none; width:100%; height:6px; border-radius:4px; background: linear-gradient(90deg,#4C6FFF,#7B5CFF); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.35); }

/* ===== 底部菜单 ===== */
.tabbar { position: fixed; bottom:0; left:0; right:0; max-width:560px; margin:0 auto; background: rgba(15,20,40,var(--glass)); display:flex; border-top:1px solid rgba(255,255,255,.08); z-index:50; backdrop-filter: blur(16px); box-shadow: 0 -6px 24px rgba(4,8,26,.3); }
body.theme-light .tabbar, body.theme-cyan .tabbar, body.theme-warm .tabbar, body.theme-purple .tabbar { background: rgba(255,255,255,var(--glass)); border-top-color: var(--line); }
.tabbar .tb { flex:1; text-align:center; padding:16px 0 14px; font-size:14px; min-height:54px; color:#8A94B0; background:none; border:none; position:relative; transition: color .25s, transform .15s; }
.tabbar .tb:active { transform: scale(.94); }
.tabbar .tb.on { color: #fff; font-weight:700; text-shadow:0 0 12px rgba(123,92,255,.6); }
body.theme-light .tabbar .tb.on, body.theme-cyan .tabbar .tb.on, body.theme-warm .tabbar .tb.on, body.theme-purple .tabbar .tb.on { color:#4C6FFF; text-shadow:none; }
.tabbar .tb.on::after { content:""; position:absolute; bottom:4px; left:50%; transform:translateX(-50%); width:24px; height:3px; border-radius:3px; background:var(--grad); box-shadow:0 0 8px rgba(123,92,255,.8); }

/* ===== 悬浮球 ===== */
.float-ball { position: fixed; right: 14px; bottom: 92px; z-index: 80; }
.float-ball .ball { width: 58px; height:58px; border-radius:50%; background: var(--grad); color:#fff; font-size:21px; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(76,111,255,.5); transition: transform .2s, box-shadow .2s; animation: ballPulse 2.4s ease-in-out infinite; }
@keyframes ballPulse { 0%,100%{ box-shadow:0 8px 24px rgba(76,111,255,.5);} 50%{ box-shadow:0 8px 30px rgba(76,111,255,.85);} }
.float-ball .ball:active { transform: scale(.9); }
.float-ball .hidex { position:absolute; top:-4px; right:-4px; width:19px; height:19px; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; border:none; font-size:11px; line-height:19px; padding:0; }
.float-panel { position: fixed; inset:0; background:rgba(4,8,26,.6); z-index:85; display:flex; align-items:center; justify-content:center; backdrop-filter: blur(4px); }
.float-panel .panel { width:84%; max-width:400px; background: rgba(255,255,255,var(--glass)); border-radius:18px; padding:16px; max-height:74vh; overflow:auto; box-shadow:0 20px 50px rgba(4,8,26,.4); }
.float-panel .panel .row { margin-bottom:8px; box-shadow:none; border:1px solid var(--line); gap:6px; }
.btnpm2 { width:31px; height:31px; border-radius:50%; border:none; font-size:18px; font-weight:800; line-height:29px; padding:0; color:#fff; transition:transform .12s ease, filter .2s ease; box-shadow:0 4px 12px rgba(4,8,26,.3); }
.btnpm2:active { transform: scale(.9); filter: brightness(.9); }
[data-fp-ad][data-d="-1"] { background:linear-gradient(135deg,#FF6B6B,#E5484D); }
[data-fp-ad][data-d="1"] { background:linear-gradient(135deg,#34D399,#10B981); }

/* ===== 其它 ===== */
.page { position: relative; }
.toolbar { position: fixed; bottom: 56px; left:0; right:0; max-width:560px; margin:0 auto; padding:0 12px; display:flex; gap:10px; z-index:45; }
.toolbar .btn { flex:1; }
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); animation: toastIn .18s ease; background: rgba(17,24,39,.9); color:#fff; padding:11px 18px; border-radius:12px; font-size:14px; z-index:200; box-shadow:0 8px 26px rgba(0,0,0,.35); max-width:88%; backdrop-filter: blur(8px); }
.toast.err { background: rgba(229,72,77,.92); }
.hidden { display:none !important; }
.tag-ended { display:inline-block; font-size:11px; padding:2px 9px; border-radius:20px; background: rgba(150,160,200,.2); color:#9FB0FF; font-weight:600; }
.mc-dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin:0 4px 0 2px; vertical-align:middle; flex:none; }
.mc-dot.on { background:#22C55E; box-shadow:0 0 6px rgba(34,197,94,.65); }
.mc-dot.off { background:#EF4444; box-shadow:0 0 6px rgba(239,68,68,.55); }
.mc-txt { font-weight:700; }

/* ===== 屏幕自适应 ===== */
@media (min-width: 720px) {
  #app { max-width: 940px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .sheet { max-width: 620px; border-radius: 22px; }
  .tabbar, .toolbar { max-width: 940px; }
}
@media (min-width: 1120px) {
  #app { max-width: 1160px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .tabbar, .toolbar { max-width: 1160px; }
}

/* ===== 本轮新增：hover 放大 + 新组件 ===== */
/* 电脑端鼠标悬浮放大（反馈已点击） */
@media (hover:hover){
  .icon-btn:hover { transform: scale(1.06); background: rgba(255,255,255,.14); }
  .tabbar .tb:hover { color:#fff; background:rgba(255,255,255,.10); transform: translateY(-1px); }
  body.theme-light .tabbar .tb:hover, body.theme-cyan .tabbar .tb:hover, body.theme-warm .tabbar .tb:hover, body.theme-purple .tabbar .tb:hover { color:#3B4A6B; background:rgba(20,26,50,.07); }
  .btn:hover { transform: translateY(-1px) scale(1.01); box-shadow: 0 10px 26px rgba(76,111,255,.5); }
  .actbtn:hover { transform: scale(1.05); }
  .card:hover { transform: translateY(-3px); }
  .mini-btn:hover { transform: scale(1.05); }
  .sa-item:hover { transform: translateY(-1px); }
}
.icon-btn:active, .tabbar .tb:active, .btn:active { transform: scale(.93); }

/* 登录页：记住账号密码 */
.login-card .remember { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-soft); margin:6px 0 14px; user-select:none; }
.login-card .remember input { accent-color: #4C6FFF; width:16px; height:16px; }

/* 超管功能选项区 */
.sa-menu { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.sa-item { flex:1; min-width:92px; padding:11px 8px; border:none; border-radius:12px; background:rgba(255,255,255,.08); color:#B7C0DA; font-size:13px; font-weight:700; cursor:pointer; transition: all .2s; }
body.theme-light .sa-item, body.theme-cyan .sa-item, body.theme-warm .sa-item, body.theme-purple .sa-item { background: rgba(20,26,50,.06); color:#3B4A6B; }
.sa-item.on { background:var(--grad); color:#fff; box-shadow:0 6px 18px rgba(76,111,255,.4); }

/* 统计页：按天 + 申请删除 */
.daily-row { gap:10px; align-items:center; }
.daily-row .lbl { flex:1; }
.mini-btn { padding:5px 10px; border:none; border-radius:8px; background:rgba(239,68,68,.16); color:#FF8A8A; font-size:12px; font-weight:700; cursor:pointer; transition: all .2s; }
.mini-btn:hover { background:rgba(239,68,68,.3); }

/* 导出筛选表格 */
.exp-table { width:100%; border-collapse:collapse; font-size:12px; }
.exp-table th, .exp-table td { border:1px solid rgba(150,160,200,.18); padding:6px 8px; text-align:left; }
.exp-table th { background:rgba(76,111,255,.14); color:#C4CEF2; font-weight:700; }
body.theme-light .exp-table th { color:#2A3352; }
.exp-table td { color:#E5E7EB; }
body.theme-light .exp-table td { color:#1B2030; }

/* 门店详情大弹层 */
.sheet-lg { max-width:520px; }

/* 加载中 */
.loading { padding:30px; text-align:center; color:var(--ink-soft); }

/* 新建场次勾选用户 + 管理页多按钮换行 */
.opt-item { display:flex; align-items:center; gap:6px; padding:8px 10px; margin:4px 0; border-radius:10px; background:rgba(255,255,255,.06); font-size:14px; color:var(--ink); cursor:pointer; }
body.theme-light .opt-item { background: rgba(20,26,50,.06); }
.opt-item input { accent-color:#4C6FFF; }
.row { flex-wrap: wrap; }
.row .btn.small { margin: 2px 0; }
/* 连接状态信号 */
#topbar-status .conn-on { color:#4ADE80; }

/* 左上角连接信号 */
.conn-ind { position: fixed; left: 12px; top: 12px; z-index: 90; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 10px; background: rgba(15,20,40,.85); box-shadow: 0 4px 14px rgba(4,8,26,.4); }
.conn-ind.ok { color:#4ADE80; }
.conn-ind.warn { color:#FBBF24; }
body.theme-light .conn-ind { background: rgba(255,255,255,.92); color:#1B2030; box-shadow: 0 4px 14px rgba(20,26,50,.15); }

/* 登录页作者署名 */
.login-author { text-align:center; font-size:12px; color:#8A94B0; margin-top:14px; letter-spacing:.5px; }
body.theme-light .login-author { color:#6B7280; }
.login-ver { text-align:center; font-size:11px; color:#9AA3BC; margin-top:2px; letter-spacing:.5px; }
body.theme-light .login-ver { color:#8A94B0; }

/* 统计记录多选 */
.rec-check { display:flex; align-items:center; margin-right:4px; flex:none; }
.rec-check input { width:18px; height:18px; accent-color:#4C6FFF; cursor:pointer; }

/* 统计日期筛选 + 场次折叠块 */
.stat-filter { display:flex; gap:8px; align-items:center; margin-bottom:12px; }
.stat-date { flex:1; min-width:0; background:#fff; color:#1B2030; border:1px solid rgba(20,26,50,.15); border-radius:9px; padding:9px; font-size:14px; }
body.theme-dark .stat-date { background:#0E1428; color:#E5E7EB; border-color:rgba(255,255,255,.14); }
.sess-block { margin-bottom:10px; border:1px solid rgba(150,160,200,.15); border-radius:12px; overflow:hidden; }
.sess-head { display:flex; align-items:center; justify-content:space-between; padding:11px 13px; font-weight:700; cursor:pointer; background:transparent; border-bottom:1px solid rgba(20,26,50,.05); }
body.theme-light .sess-head { background:transparent; }
.sess-arr { color:#8A94B0; }
.sess-body { padding:2px 13px 12px; }
/* 我的申请记录：单条删除按钮（浅色主题下也清晰） */
.req-del { border:none; background:rgba(239,68,68,.16); color:#EF4444; border-radius:8px; width:26px; height:26px; line-height:24px; padding:0; font-size:13px; font-weight:700; cursor:pointer; transition: background .2s; flex:none; }
.req-del:hover { background:rgba(239,68,68,.32); color:#fff; }
.req-del:active { transform: scale(.94); }
.req-row .lbl { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 超管消息提醒（用户端浮窗） */
.msg-toast { position:fixed; top:14px; left:50%; transform:translateX(-50%); width:min(92vw,400px); background:#fff; color:#1B2030; border-radius:14px; box-shadow:0 8px 30px rgba(0,0,0,.22); padding:14px 16px; z-index:200; display:flex; flex-direction:column; gap:8px; border:1px solid rgba(76,111,255,.25); }
body.theme-dark .msg-toast { background:#111A33; color:#E5E7EB; border-color:rgba(76,111,255,.35); }
.msg-toast-title { font-weight:700; font-size:14px; color:#4C6FFF; display:flex; align-items:center; gap:6px; }
.msg-toast-body { font-size:14px; line-height:1.5; word-break:break-word; }
.msg-toast .btn { align-self:flex-end; }

/* 场次停用：激活按钮置灰 + 顶部提示条 */
.actbtn.locked { background:#9CA3AF !important; color:#F8FAFC !important; cursor:not-allowed; opacity:.9; }
.session-off-tip { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:10px 12px 0; padding:10px 14px; border-radius:12px; background:rgba(245,158,11,.16); border:1px solid rgba(245,158,11,.45); color:#B45309; font-size:13px; font-weight:600; }
.session-off-tip span { flex:1 1 auto; min-width:0; }
.session-off-tip .btn { flex:none; }
body.theme-dark .session-off-tip { color:#FCD34D; background:rgba(245,158,11,.12); }

/* ===================== 登录页 B 方案：分屏品牌（PC）/ 上下堆叠（手机） ===================== */
.lg2 { position: relative; display: flex; min-height: 100vh; width: 100%; background: #F6F7FB; color: #16213C; }
/* —— 左侧品牌区 —— */
.lg2-brand { position: relative; width: 42%; max-width: 560px; min-width: 360px; flex: none; overflow: hidden; color: #fff;
  background: linear-gradient(155deg,#132A5B 0%,#0E1B3D 48%,#0A1228 100%); }
.lg2-a1 { position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -260px; top: -180px; background: radial-gradient(circle,rgba(74,123,255,.42),transparent 65%); }
.lg2-a2 { position: absolute; width: 460px; height: 460px; border-radius: 50%; left: -190px; bottom: -200px; background: radial-gradient(circle,rgba(34,211,238,.26),transparent 66%); }
.lg2-ring { position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(120,190,255,.18); right: -90px; bottom: 60px; }
.lg2-brand-in { position: relative; height: 100%; min-height: 100vh; padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; box-sizing: border-box; }
.lg2-logo { display: flex; align-items: center; gap: 12px; }
.lg2-mark { width: 46px; height: 46px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg,rgba(34,211,238,.22),rgba(74,123,255,.30)); border: 1px solid rgba(140,200,255,.28); }
.lg2-mark svg { width: 26px; height: 26px; }
.lg2-logo b { display: block; font-size: 15px; letter-spacing: 1.5px; color: #DCE8FF; font-weight: 700; line-height: 1.3; }
.lg2-en { font-size: 10.5px; letter-spacing: 3px; color: #7C93C4; margin-top: 3px; }
.lg2-hero { margin-top: auto; margin-bottom: auto; }
.lg2-slogan { font-size: clamp(24px, 3vw, 36px); line-height: 1.32; letter-spacing: 2px; font-weight: 800; color: #fff; word-break: break-word; }
.lg2-hi { background: linear-gradient(90deg,#7BE8F8,#8FB2FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg2-tagline { margin-top: 14px; font-size: 13px; line-height: 1.9; color: #8FA6D8; letter-spacing: .3px; word-break: break-word; }
.lg2-chips { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.lg2-chips span { font-size: 11.5px; color: #B9CDF2; padding: 6px 12px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(150,190,255,.18); white-space: nowrap; }
.lg2-foot { font-size: 11px; color: #5D719D; letter-spacing: 1px; word-break: break-word; }
/* —— 右侧表单区 —— */
.lg2-form { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; position: relative; box-sizing: border-box; color: #16213C; }
.lg2-panel { width: 100%; max-width: 378px; }
.lg2-panel h2 { font-size: 25px; font-weight: 800; color: #16213C; letter-spacing: 1px; }
.lg2-sub { font-size: 12.5px; color: #8894B0; margin-top: 8px; }
.lg2-field { margin-top: 18px; }
.lg2-field label { display: block; font-size: 12.5px; color: #5D6A88; font-weight: 600; letter-spacing: .4px; margin-bottom: 7px; }
.lg2-field input { width: 100%; height: 46px; box-sizing: border-box; border-radius: 12px; border: 1px solid #E1E6F0; background: #fff; font-size: 14px; color: #1F2B45; padding: 0 14px; outline: none; box-shadow: 0 1px 2px rgba(20,40,80,.04); transition: border-color .2s, box-shadow .2s; }
.lg2-field input::placeholder { color: #A9B3C9; }
.lg2-field input:focus { border-color: #4A7BFF; box-shadow: 0 0 0 3px rgba(74,123,255,.12); }
.lg2-rem { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 12px; color: #6C7997; }
.lg2-chk { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.lg2-chk input { width: 15px; height: 15px; accent-color: #4A7BFF; }
.lg2-forgot { color: #7C8AA8; cursor: pointer; white-space: nowrap; }
.lg2-forgot:hover { color: #4A7BFF; }
.lg2-err { color: #E5484D; font-size: 12.5px; min-height: 17px; margin-top: 8px; }
.lg2-btn { display: block; width: 100%; height: 48px; margin-top: 4px; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; letter-spacing: 4px; color: #fff; cursor: pointer;
  background: linear-gradient(100deg,#3B6BFF,#4A7BFF); box-shadow: 0 12px 26px rgba(59,107,255,.30); }
.lg2-btn:active { transform: scale(.98); }
.lg2-or { display: flex; align-items: center; gap: 10px; margin: 15px 0 12px; color: #A3ADC4; font-size: 12px; }
.lg2-or::before, .lg2-or::after { content: ""; flex: 1; height: 1px; background: #E8ECF3; }
.lg2-btn2 { display: block; width: 100%; height: 44px; border-radius: 12px; border: 1px solid #E1E6F0; background: #fff; color: #42506E; font-size: 13.5px; cursor: pointer; }
.lg2-btn2:active { background: #F6F8FC; }
.lg2-tip { text-align: center; font-size: 11.5px; color: #9AA5BE; margin-top: 9px; }
/* 底部：软件介绍/更新日志/作者/版本 */
.lg2-meta { width: 100%; max-width: 378px; margin-top: 22px; }
.lg2-links { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.lg2-link { font-size: 12px; color: #6C7997; padding: 6px 13px; border-radius: 18px; background: #F1F4FA; border: 1px solid #E7EBF3; cursor: pointer; }
.lg2-link:hover { background: #E9EEF8; }
.lg2 .login-info { width: 100%; max-width: none; margin: 0; display: block; }
.lg2 .login-author { margin: 16px 0 0; text-align: center; }
.lg2 .login-ver { margin-top: 3px; text-align: center; }
/* 手机端：左右分屏 → 上下堆叠 */
@media (max-width: 720px) {
  .lg2 { flex-direction: column; }
  .lg2-brand { width: 100%; max-width: none; min-width: 0; height: 254px; }
  .lg2-brand-in { min-height: 0; height: 100%; padding: 26px 22px 0; justify-content: flex-start; gap: 0; }
  .lg2-a1 { width: 340px; height: 340px; right: -150px; top: -170px; }
  .lg2-a2 { width: 300px; height: 300px; left: -140px; bottom: -150px; }
  .lg2-ring { width: 260px; height: 260px; right: -90px; bottom: -60px; }
  .lg2-mark { width: 34px; height: 34px; border-radius: 11px; }
  .lg2-mark svg { width: 20px; height: 20px; }
  .lg2-logo b { font-size: 12.5px; letter-spacing: 1px; }
  .lg2-en { font-size: 9px; letter-spacing: 2.4px; }
  .lg2-hero { margin: 14px 0 0; }
  .lg2-slogan { font-size: 21px; letter-spacing: 1.2px; line-height: 1.35; }
  .lg2-tagline { font-size: 11.5px; margin-top: 9px; line-height: 1.7; }
  .lg2-chips { margin-top: 12px; gap: 6px; }
  .lg2-chips span { font-size: 10.5px; padding: 4px 9px; }
  .lg2-chips span:nth-child(n+3) { display: none; }
  .lg2-foot { display: none; }
  .lg2-form { display: block; padding: 0 0 22px; margin-top: -34px; position: relative; z-index: 3; }
  .lg2-panel { width: auto; max-width: none; margin: 0 16px; background: #fff; border-radius: 20px; padding: 22px 22px 18px; box-sizing: border-box;
    box-shadow: 0 16px 40px rgba(24,40,90,.16); }
  .lg2-panel h2 { font-size: 19px; }
  .lg2-sub { font-size: 11.5px; margin-top: 6px; }
  .lg2-field { margin-top: 14px; }
  .lg2-field input { height: 46px; font-size: 14px; }
  .lg2-rem { font-size: 11.5px; margin-top: 12px; }
  .lg2-btn { height: 48px; }
  .lg2-btn2 { height: 44px; }
  .lg2-meta { margin: 14px 16px 0; max-width: none; width: auto; }
  .lg2-links { justify-content: center; }
  .lg2 .login-author, .lg2 .login-ver { text-align: center; }
  .dl-corner { position: static; display: none; }
}
@media (max-width: 360px) {
  .lg2-panel { margin: 0 12px; padding: 18px 16px 14px; }
  .lg2-panel h2 { font-size: 18px; }
  .lg2-slogan { font-size: 19px; }
}

/* ============ 小屏文字适配：按钮不折行 / 工具条换行 / 统计格 2 列 ============ */
.btn.small { white-space: nowrap; }
/* 工具条统一：全选在左，清空/删除类在右，说明在左 */
.rec-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.rec-tools .btn { flex: none; }
.rec-tools .btn.selall { margin-left: 0; }
.rec-tools .btn:not(.selall) { margin-left: auto; }
.rec-tools .sub { color: var(--ink-soft); font-size: 12px; flex: 1 1 auto; margin-left: 0; }
.btn.right { display: block; margin-left: auto; margin-bottom: 8px; }
@media (max-width: 720px) {
  .rec-tools { gap: 7px; }
  .rec-tools .btn { padding: 8px 13px; font-size: 12.5px; border-radius: 9px; }
  .rec-tools .sub { flex-basis: 100%; margin-left: 0; font-size: 11.5px; line-height: 1.5; order: 3; }
  .rec-tools .sub.short { flex-basis: auto; order: 0; padding-right: 4px; }
  .stat-grid { gap: 7px; }
  .stat-grid .cell { padding: 10px 3px; }
  .stat-grid .cell .v { font-size: 18px; }
  .stat-grid .cell .k { font-size: 10.5px; line-height: 1.35; white-space: nowrap; letter-spacing: -0.2px; }
}
@media (max-width: 360px) {
  .stat-grid { gap: 6px; }
  .stat-grid .cell { padding: 9px 2px; }
  .stat-grid .cell .v { font-size: 16px; }
  .stat-grid .cell .k { font-size: 10px; white-space: nowrap; letter-spacing: -0.3px; }
  .rec-tools .btn { padding: 7px 10px; font-size: 12px; }
}

/* 顶栏图标统一（手机 / 电脑一致） */
.icon-btn svg { width: 19px; height: 19px; display: block; }
.icon-btn { line-height: 1; }
@media (max-width: 720px) {
  .topbar-actions { gap: 2px; right: 8px; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 18px; height: 18px; }
}

/* ============ 区块层级区分：折叠区（浅底）/ 卡片（带阴影）/ 内嵌行（细边无阴影） ============ */
.sess-block { margin-bottom: 12px; border: 1px solid rgba(20,32,64,.14); border-radius: 14px; overflow: hidden; background: rgba(20,32,64,.085); }

/* 内嵌行：白底 + 细边 + 小圆角，无阴影、不浮动，明显区别于外层场次卡 */
.row.req-row, .row.rec-row, .row.daily-row {
  background: #fff; border: 1px solid rgba(20,26,50,.07); border-radius: 11px;
  box-shadow: none; padding: 10px 12px; margin-bottom: 8px;
}
.row.req-row:hover, .row.rec-row:hover, .row.daily-row:hover { transform: none; box-shadow: none; }
body.theme-dark .sess-block { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
body.theme-dark .sess-head { border-bottom-color: rgba(255,255,255,.06); }
body.theme-dark .row.req-row, body.theme-dark .row.rec-row, body.theme-dark .row.daily-row {
  background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.09);
}
/* 内嵌行文字略降一档，避免与外层卡片同权重 */
.row.req-row .lbl, .row.rec-row .lbl, .row.daily-row .lbl { font-weight: 500; font-size: 13.5px; }
.row.req-row .sub, .row.rec-row .sub, .row.daily-row .sub { font-size: 11.5px; }

/* 超管区块折叠头：标题整行可点，箭头靠右 */
.section-title[data-sess-toggle] { cursor: pointer; margin-bottom: 0; -webkit-user-select: none; user-select: none; }
.section-title[data-sess-toggle] .sess-arr { margin-left: auto; font-size: 12px; opacity: .55; }
.fold-body { padding-top: 10px; }

/* ============ 层级修正：一级卡片保持白色浮起，二级（展开区内的记录行）变暗半透明 ============ */
.sess-block { background: rgba(255,255,255,.55); border-color: rgba(20,32,64,.09); }
.sess-head { border-bottom-color: rgba(20,32,64,.06); }
.row.req-row, .row.rec-row, .row.daily-row {
  background: rgba(20,32,64,.075); border: 1px solid rgba(20,32,64,.055); box-shadow: none;
}
.row.req-row:hover, .row.rec-row:hover, .row.daily-row:hover { transform: none; box-shadow: none; background: rgba(20,32,64,.09); }
.row.req-row .lbl, .row.rec-row .lbl, .row.daily-row .lbl { color: #3F4B66; font-weight: 600; }
.row.req-row .sub, .row.rec-row .sub { color: #6B7690; }
body.theme-dark .sess-block { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); }
body.theme-dark .row.req-row, body.theme-dark .row.rec-row, body.theme-dark .row.daily-row {
  background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.07);
}
body.theme-dark .row.req-row .lbl, body.theme-dark .row.rec-row .lbl, body.theme-dark .row.daily-row .lbl { color: rgba(229,231,235,.82); }


/* ================= 三级层级体系（统一收口 · 以此段为准） ================= */
/* L1 一级：当前场次 / 统计格 / 手环明细  → .row 默认白卡 + 阴影，不动 */
/* L2 二级：场次列表项、我的申请、按天明细、使用记录 → 半透明白 + 细边，无阴影 */
.row.lvl2,
.sess-block {
  background: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(20,32,64,.09) !important;
  box-shadow: none !important;
}
.row.lvl2:hover { background: rgba(255,255,255,.72) !important; transform: none !important; box-shadow: none !important; }
.sess-block .sess-head { border-bottom: 1px solid rgba(20,32,64,.07); }

/* L3 三级：记录行（申请记录 / 使用记录 / 按天明细单条） → 灰底半透明 + 左侧色条 */
.row.lvl3,
.row.req-row,
.row.rec-row,
.row.daily-row {
  background: rgba(20,32,64,.055) !important;
  border: 1px solid rgba(20,32,64,.06) !important;
  border-left: 3px solid #4C6FFF !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  transform: none !important;
}
.row.lvl3:hover,
.row.req-row:hover,
.row.rec-row:hover,
.row.daily-row:hover { background: rgba(20,32,64,.09) !important; transform: none !important; box-shadow: none !important; }
.row.lvl3 .lbl,
.row.req-row .lbl,
.row.rec-row .lbl,
.row.daily-row .lbl { color: #3F4B66; font-weight: 600; }
.row.lvl3 .sub,
.row.req-row .sub,
.row.rec-row .sub,
.row.daily-row .sub { color: #6B7690; }

/* 暗色主题 */
body.theme-dark .row.lvl2,
body.theme-dark .sess-block {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.09) !important;
  box-shadow: none !important;
}
body.theme-dark .row.lvl2:hover { background: rgba(255,255,255,.085) !important; }
body.theme-dark .row.lvl3,
body.theme-dark .row.req-row,
body.theme-dark .row.rec-row,
body.theme-dark .row.daily-row {
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.07) !important;
  border-left-color: #6B8BFF !important;
}
body.theme-dark .row.lvl3 .lbl,
body.theme-dark .row.req-row .lbl,
body.theme-dark .row.rec-row .lbl,
body.theme-dark .row.daily-row .lbl { color: rgba(229,231,235,.82); }

/* 折叠按钮更明显（超管端所有区块） */
.section-title[data-sess-toggle] .sess-arr {
  margin-left: auto; font-size: 13px; opacity: 1;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(20,32,64,.07); color: #4C6FFF; font-weight: 700; flex: none;
  transition: background .15s, transform .15s;
}
body.theme-dark .section-title[data-sess-toggle] .sess-arr { background: rgba(255,255,255,.1); color:#9FB0FF; }
.fold-badge {
  margin-left: 8px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
  background: rgba(76,111,255,.13); color: #4C6FFF; flex: none;
}
.section-title[data-sess-toggle] { display: flex; align-items: center; gap: 0; }
.section-title[data-sess-toggle]:active .sess-arr { transform: scale(.92); background: rgba(76,111,255,.16); }

/* 修正：管理端「已结束场次」这类 .section-title.sess-head 标题，文字必须紧贴左侧竖条 */
.section-title.sess-head { justify-content: flex-start; }
.section-title .sess-arr { margin-left: auto; }

/* 修正：.sess-head 自带 13px 左右内边距会把标题整体右移，导致竖条与其它标题错位 */
.section-title.sess-head { padding-left: 0; padding-right: 0; }

/* 二级小标题（可申请） */
.sub-h { font-weight: 700; font-size: 13px; color: var(--ink-soft); margin: 12px 0 6px; }
