/* Fluent 深色（由预览样式生成，仅后台页引用） */
html:root[data-theme="dark"] html:root, html:root[data-theme="dark"] body{background: #333333 !important;}
html:root[data-theme="dark"] body{color: #f2f2f2 !important; font-weight: 400 !important;}
html:root[data-theme="dark"] header, html:root[data-theme="dark"] .topbar, html:root[data-theme="dark"] .admin-top, html:root[data-theme="dark"] .app-header{background: #2b2b2b !important;
  border-bottom: 1px solid #3f3f3f !important;
  box-shadow: none !important;}
html:root[data-theme="dark"] .admin-nav, html:root[data-theme="dark"] .side-nav, html:root[data-theme="dark"] .nav{background: #2f2f2f !important;
  border: 1px solid #424242 !important;
  border-radius: 12px !important;
  padding: 10px !important;}
html:root[data-theme="dark"] .admin-nav a, html:root[data-theme="dark"] .admin-nav button, html:root[data-theme="dark"] .side-nav a{border-radius: 8px !important;
  font-weight: 600 !important;
  color: #c9c9c9 !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
  border: 0 !important;}
html:root[data-theme="dark"] .admin-nav a.on, html:root[data-theme="dark"] .admin-nav .on, html:root[data-theme="dark"] .side-nav a.on{background: #3d3350 !important;
  color: #ffffff !important;
  box-shadow: none !important;}
html:root[data-theme="dark"] .admin-nav a:hover, html:root[data-theme="dark"] .side-nav a:hover{background: #3a3a3a !important;}
html:root[data-theme="dark"] .dash-kpi, html:root[data-theme="dark"] .dash-chart-card, html:root[data-theme="dark"] .cs-col, html:root[data-theme="dark"] .cs-card, html:root[data-theme="dark"] .panel, html:root[data-theme="dark"] .card, html:root[data-theme="dark"] .stat, html:root[data-theme="dark"] .dp-card, html:root[data-theme="dark"] .dp-list .row{background: #3d3d3d !important;
  border: 1px solid #4a4a4a !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.28) !important;}
html:root[data-theme="dark"] .dash-kpi, html:root[data-theme="dark"] .dash-chart-card{padding: 20px 22px !important;}
html:root[data-theme="dark"] .dash-kpi.k1, html:root[data-theme="dark"] .dash-kpi.k2, html:root[data-theme="dark"] .dash-kpi.k4{background: #3d3d3d !important;
  border-color: #4a4a4a !important;}
html:root[data-theme="dark"] .dash-kpi.k3{background: linear-gradient(180deg, #43232f, #3a2029) !important;
  border-color: #5e3546 !important;}
html:root[data-theme="dark"] .dash-kpi .k{font-size: 12px !important; font-weight: 600 !important; color: #a8a8a8 !important; letter-spacing: .02em;}
html:root[data-theme="dark"] .dash-kpi .v{font-size: 24px !important; font-weight: 600 !important; color: #f2f2f2 !important;}
html:root[data-theme="dark"] .dash-kpi.k3 .v{color: #ffb3c8 !important;}
html:root[data-theme="dark"] .dash-kpi .delta{font-size: 12px !important; font-weight: 600 !important;}
html:root[data-theme="dark"] .dash-chart-card{background: #3a3a3a !important;}
html:root[data-theme="dark"] .dash-chart-card h3, html:root[data-theme="dark"] .dash-chart-card .t{font-weight: 600 !important;}
html:root[data-theme="dark"] input, html:root[data-theme="dark"] textarea, html:root[data-theme="dark"] select{background: #383838 !important;
  border: 1px solid #4d4d4d !important;
  border-radius: 8px !important;
  color: #f2f2f2 !important;
  box-shadow: none !important;
  padding: 10px 12px !important;}
html:root[data-theme="dark"] input:focus, html:root[data-theme="dark"] textarea:focus, html:root[data-theme="dark"] select:focus{border-color: #7c4dff !important;}
html:root[data-theme="dark"] .btn, html:root[data-theme="dark"] button{border-radius: 8px !important;
  border: 1px solid #4f4f4f !important;
  background: #3d3d3d !important;
  color: #f2f2f2 !important;
  box-shadow: none !important;
  font-weight: 600 !important;}
html:root[data-theme="dark"] .btn-primary, html:root[data-theme="dark"] .btn.p, html:root[data-theme="dark"] .btn-lime, html:root[data-theme="dark"] button.primary{background: #7c4dff !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(124,77,255,.28) !important;}
html:root[data-theme="dark"] .btn:hover, html:root[data-theme="dark"] button:hover{background: #464646 !important;}
html:root[data-theme="dark"] .btn-primary:hover, html:root[data-theme="dark"] .btn.p:hover{background: #8a5cff !important;}
html:root[data-theme="dark"] table{border-collapse: separate !important; border-spacing: 0 !important;}
html:root[data-theme="dark"] th{background: transparent !important;
  border-bottom: 1px solid #4a4a4a !important;
  font-weight: 600 !important;
  color: #a8a8a8 !important;
  padding: 12px 14px !important;}
html:root[data-theme="dark"] td{border-bottom: 1px solid #424242 !important; padding: 12px 14px !important;}
html:root[data-theme="dark"] tr:hover td{background: #3a3a3a !important;}
html:root[data-theme="dark"] .cs-col > header{background: transparent !important; border-bottom: 1px solid #4a4a4a !important; font-weight: 600 !important;}
html:root[data-theme="dark"] .cs-stat{background: #3d3d3d !important; border: 1px solid #4a4a4a !important; border-radius: 12px !important; box-shadow: none !important;}
html:root[data-theme="dark"] .cs-stat.alert{background: linear-gradient(180deg,#43232f,#3a2029) !important; border-color: #5e3546 !important;}
html:root[data-theme="dark"] .cs-card{border-radius: 10px !important;}
html:root[data-theme="dark"] h1, html:root[data-theme="dark"] .page-title, html:root[data-theme="dark"] h2{font-weight: 600 !important; letter-spacing: -.2px !important;}
html:root[data-theme="dark"] h3, html:root[data-theme="dark"] h4{font-weight: 600 !important;}
html:root[data-theme="dark"] p, html:root[data-theme="dark"] span, html:root[data-theme="dark"] div{font-weight: 400;}
html:root[data-theme="dark"] b, html:root[data-theme="dark"] strong{font-weight: 600 !important;}
@media (prefers-color-scheme: dark){html:root:not([data-theme="light"]) html:root, html:root:not([data-theme="light"]) body{background: #333333 !important;}
html:root:not([data-theme="light"]) body{color: #f2f2f2 !important; font-weight: 400 !important;}
html:root:not([data-theme="light"]) header, html:root:not([data-theme="light"]) .topbar, html:root:not([data-theme="light"]) .admin-top, html:root:not([data-theme="light"]) .app-header{background: #2b2b2b !important;
  border-bottom: 1px solid #3f3f3f !important;
  box-shadow: none !important;}
html:root:not([data-theme="light"]) .admin-nav, html:root:not([data-theme="light"]) .side-nav, html:root:not([data-theme="light"]) .nav{background: #2f2f2f !important;
  border: 1px solid #424242 !important;
  border-radius: 12px !important;
  padding: 10px !important;}
html:root:not([data-theme="light"]) .admin-nav a, html:root:not([data-theme="light"]) .admin-nav button, html:root:not([data-theme="light"]) .side-nav a{border-radius: 8px !important;
  font-weight: 600 !important;
  color: #c9c9c9 !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
  border: 0 !important;}
html:root:not([data-theme="light"]) .admin-nav a.on, html:root:not([data-theme="light"]) .admin-nav .on, html:root:not([data-theme="light"]) .side-nav a.on{background: #3d3350 !important;
  color: #ffffff !important;
  box-shadow: none !important;}
html:root:not([data-theme="light"]) .admin-nav a:hover, html:root:not([data-theme="light"]) .side-nav a:hover{background: #3a3a3a !important;}
html:root:not([data-theme="light"]) .dash-kpi, html:root:not([data-theme="light"]) .dash-chart-card, html:root:not([data-theme="light"]) .cs-col, html:root:not([data-theme="light"]) .cs-card, html:root:not([data-theme="light"]) .panel, html:root:not([data-theme="light"]) .card, html:root:not([data-theme="light"]) .stat, html:root:not([data-theme="light"]) .dp-card, html:root:not([data-theme="light"]) .dp-list .row{background: #3d3d3d !important;
  border: 1px solid #4a4a4a !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.28) !important;}
html:root:not([data-theme="light"]) .dash-kpi, html:root:not([data-theme="light"]) .dash-chart-card{padding: 20px 22px !important;}
html:root:not([data-theme="light"]) .dash-kpi.k1, html:root:not([data-theme="light"]) .dash-kpi.k2, html:root:not([data-theme="light"]) .dash-kpi.k4{background: #3d3d3d !important;
  border-color: #4a4a4a !important;}
html:root:not([data-theme="light"]) .dash-kpi.k3{background: linear-gradient(180deg, #43232f, #3a2029) !important;
  border-color: #5e3546 !important;}
html:root:not([data-theme="light"]) .dash-kpi .k{font-size: 12px !important; font-weight: 600 !important; color: #a8a8a8 !important; letter-spacing: .02em;}
html:root:not([data-theme="light"]) .dash-kpi .v{font-size: 24px !important; font-weight: 600 !important; color: #f2f2f2 !important;}
html:root:not([data-theme="light"]) .dash-kpi.k3 .v{color: #ffb3c8 !important;}
html:root:not([data-theme="light"]) .dash-kpi .delta{font-size: 12px !important; font-weight: 600 !important;}
html:root:not([data-theme="light"]) .dash-chart-card{background: #3a3a3a !important;}
html:root:not([data-theme="light"]) .dash-chart-card h3, html:root:not([data-theme="light"]) .dash-chart-card .t{font-weight: 600 !important;}
html:root:not([data-theme="light"]) input, html:root:not([data-theme="light"]) textarea, html:root:not([data-theme="light"]) select{background: #383838 !important;
  border: 1px solid #4d4d4d !important;
  border-radius: 8px !important;
  color: #f2f2f2 !important;
  box-shadow: none !important;
  padding: 10px 12px !important;}
html:root:not([data-theme="light"]) input:focus, html:root:not([data-theme="light"]) textarea:focus, html:root:not([data-theme="light"]) select:focus{border-color: #7c4dff !important;}
html:root:not([data-theme="light"]) .btn, html:root:not([data-theme="light"]) button{border-radius: 8px !important;
  border: 1px solid #4f4f4f !important;
  background: #3d3d3d !important;
  color: #f2f2f2 !important;
  box-shadow: none !important;
  font-weight: 600 !important;}
html:root:not([data-theme="light"]) .btn-primary, html:root:not([data-theme="light"]) .btn.p, html:root:not([data-theme="light"]) .btn-lime, html:root:not([data-theme="light"]) button.primary{background: #7c4dff !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(124,77,255,.28) !important;}
html:root:not([data-theme="light"]) .btn:hover, html:root:not([data-theme="light"]) button:hover{background: #464646 !important;}
html:root:not([data-theme="light"]) .btn-primary:hover, html:root:not([data-theme="light"]) .btn.p:hover{background: #8a5cff !important;}
html:root:not([data-theme="light"]) table{border-collapse: separate !important; border-spacing: 0 !important;}
html:root:not([data-theme="light"]) th{background: transparent !important;
  border-bottom: 1px solid #4a4a4a !important;
  font-weight: 600 !important;
  color: #a8a8a8 !important;
  padding: 12px 14px !important;}
html:root:not([data-theme="light"]) td{border-bottom: 1px solid #424242 !important; padding: 12px 14px !important;}
html:root:not([data-theme="light"]) tr:hover td{background: #3a3a3a !important;}
html:root:not([data-theme="light"]) .cs-col > header{background: transparent !important; border-bottom: 1px solid #4a4a4a !important; font-weight: 600 !important;}
html:root:not([data-theme="light"]) .cs-stat{background: #3d3d3d !important; border: 1px solid #4a4a4a !important; border-radius: 12px !important; box-shadow: none !important;}
html:root:not([data-theme="light"]) .cs-stat.alert{background: linear-gradient(180deg,#43232f,#3a2029) !important; border-color: #5e3546 !important;}
html:root:not([data-theme="light"]) .cs-card{border-radius: 10px !important;}
html:root:not([data-theme="light"]) h1, html:root:not([data-theme="light"]) .page-title, html:root:not([data-theme="light"]) h2{font-weight: 600 !important; letter-spacing: -.2px !important;}
html:root:not([data-theme="light"]) h3, html:root:not([data-theme="light"]) h4{font-weight: 600 !important;}
html:root:not([data-theme="light"]) p, html:root:not([data-theme="light"]) span, html:root:not([data-theme="light"]) div{font-weight: 400;}
html:root:not([data-theme="light"]) b, html:root:not([data-theme="light"]) strong{font-weight: 600 !important;}}

/* 打手端 / 前台 / 全局组件 */
html:root[data-theme="dark"] /* ===== 打手端 / 前台 / 全局组件 ===== */
.stat, html:root[data-theme="dark"] .pstat, html:root[data-theme="dark"] .wallet-hero, html:root[data-theme="dark"] .team-bar, html:root[data-theme="dark"] .rank-row, html:root[data-theme="dark"] .order-card, html:root[data-theme="dark"] .goods-card, html:root[data-theme="dark"] .cat-card, html:root[data-theme="dark"] .hero-card, html:root[data-theme="dark"] .mcard, html:root[data-theme="dark"] .panel-card, html:root[data-theme="dark"] .list-card, html:root[data-theme="dark"] .section-card, html:root[data-theme="dark"] .profile-card{background: #3d3d3d !important; border: 1px solid #4a4a4a !important; border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.28) !important;}
html:root[data-theme="dark"] .stat.stat-lime, html:root[data-theme="dark"] .wallet-hero{background: linear-gradient(180deg,#43232f,#3a2029) !important; border-color: #5e3546 !important;}
html:root[data-theme="dark"] .stat.stat-lime .v, html:root[data-theme="dark"] .wallet-hero .amount{color: #ffb3c8 !important;}
html:root[data-theme="dark"] .team-bar{background: #3a3a3a !important; box-shadow: none !important;}
html:root[data-theme="dark"] .mbar, html:root[data-theme="dark"] .music-bar{background: #2b2b2b !important; border-top: 1px solid #3f3f3f !important;}
html:root[data-theme="dark"] .mbar-bind, html:root[data-theme="dark"] .mbar-liked{background: #3d3d3d !important; border: 1px solid #4f4f4f !important; color: #e8e8e8 !important; box-shadow: none !important;}
html:root[data-theme="dark"] .topbar, html:root[data-theme="dark"] header, html:root[data-theme="dark"] .site-head, html:root[data-theme="dark"] footer, html:root[data-theme="dark"] .site-foot{background: #2b2b2b !important; border-color: #3f3f3f !important; box-shadow: none !important;}
html:root[data-theme="dark"] .tag, html:root[data-theme="dark"] .chip, html:root[data-theme="dark"] .badge, html:root[data-theme="dark"] .pill{background: #3a3a3a !important; color: #e8e8e8 !important; border: 1px solid #4a4a4a !important; box-shadow: none !important;}
html:root[data-theme="dark"] .modal-box, html:root[data-theme="dark"] .dialog, html:root[data-theme="dark"] .sheet, html:root[data-theme="dark"] .popover{background: #3d3d3d !important; border: 1px solid #4a4a4a !important; border-radius: 14px !important; box-shadow: 0 24px 60px rgba(0,0,0,.5) !important;}
html:root[data-theme="dark"] .hero, html:root[data-theme="dark"] .banner{border-radius: 14px !important;}
html:root[data-theme="dark"] .price, html:root[data-theme="dark"] .amount, html:root[data-theme="dark"] .num{font-weight: 600 !important;}
html:root[data-theme="dark"] .player-nav a, html:root[data-theme="dark"] .side-nav a, html:root[data-theme="dark"] .admin-nav a{transition: background .15s ease, color .15s ease !important;}
@media (prefers-color-scheme: dark){
html:root:not([data-theme="light"]) /* ===== 打手端 / 前台 / 全局组件 ===== */
.stat, html:root:not([data-theme="light"]) .pstat, html:root:not([data-theme="light"]) .wallet-hero, html:root:not([data-theme="light"]) .team-bar, html:root:not([data-theme="light"]) .rank-row, html:root:not([data-theme="light"]) .order-card, html:root:not([data-theme="light"]) .goods-card, html:root:not([data-theme="light"]) .cat-card, html:root:not([data-theme="light"]) .hero-card, html:root:not([data-theme="light"]) .mcard, html:root:not([data-theme="light"]) .panel-card, html:root:not([data-theme="light"]) .list-card, html:root:not([data-theme="light"]) .section-card, html:root:not([data-theme="light"]) .profile-card{background: #3d3d3d !important; border: 1px solid #4a4a4a !important; border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.28) !important;}
html:root:not([data-theme="light"]) .stat.stat-lime, html:root:not([data-theme="light"]) .wallet-hero{background: linear-gradient(180deg,#43232f,#3a2029) !important; border-color: #5e3546 !important;}
html:root:not([data-theme="light"]) .stat.stat-lime .v, html:root:not([data-theme="light"]) .wallet-hero .amount{color: #ffb3c8 !important;}
html:root:not([data-theme="light"]) .team-bar{background: #3a3a3a !important; box-shadow: none !important;}
html:root:not([data-theme="light"]) .mbar, html:root:not([data-theme="light"]) .music-bar{background: #2b2b2b !important; border-top: 1px solid #3f3f3f !important;}
html:root:not([data-theme="light"]) .mbar-bind, html:root:not([data-theme="light"]) .mbar-liked{background: #3d3d3d !important; border: 1px solid #4f4f4f !important; color: #e8e8e8 !important; box-shadow: none !important;}
html:root:not([data-theme="light"]) .topbar, html:root:not([data-theme="light"]) header, html:root:not([data-theme="light"]) .site-head, html:root:not([data-theme="light"]) footer, html:root:not([data-theme="light"]) .site-foot{background: #2b2b2b !important; border-color: #3f3f3f !important; box-shadow: none !important;}
html:root:not([data-theme="light"]) .tag, html:root:not([data-theme="light"]) .chip, html:root:not([data-theme="light"]) .badge, html:root:not([data-theme="light"]) .pill{background: #3a3a3a !important; color: #e8e8e8 !important; border: 1px solid #4a4a4a !important; box-shadow: none !important;}
html:root:not([data-theme="light"]) .modal-box, html:root:not([data-theme="light"]) .dialog, html:root:not([data-theme="light"]) .sheet, html:root:not([data-theme="light"]) .popover{background: #3d3d3d !important; border: 1px solid #4a4a4a !important; border-radius: 14px !important; box-shadow: 0 24px 60px rgba(0,0,0,.5) !important;}
html:root:not([data-theme="light"]) .hero, html:root:not([data-theme="light"]) .banner{border-radius: 14px !important;}
html:root:not([data-theme="light"]) .price, html:root:not([data-theme="light"]) .amount, html:root:not([data-theme="light"]) .num{font-weight: 600 !important;}
html:root:not([data-theme="light"]) .player-nav a, html:root:not([data-theme="light"]) .side-nav a, html:root:not([data-theme="light"]) .admin-nav a{transition: background .15s ease, color .15s ease !important;}
}

/* 打手端榜单 */
html:root[data-theme="dark"] .rkcard{background:#3d3d3d !important; border:1px solid #4a4a4a !important; border-radius:12px !important; box-shadow:0 8px 24px rgba(0,0,0,.28) !important;}
html:root[data-theme="dark"] .rkcard-h{background:#454545 !important; color:#e8e8e8 !important; border-bottom:1px solid #4f4f4f !important; font-weight:600 !important;}
html:root[data-theme="dark"] .rkcard-h .rk-mine{color:#ffb3c8 !important;}
html:root[data-theme="dark"] .rkrow, html:root[data-theme="dark"] .rk-item, html:root[data-theme="dark"] .rkcard .row{border-bottom:1px solid #444 !important; color:#e8e8e8 !important;}
html:root[data-theme="dark"] .mbar{color:#e8e8e8 !important;}
html:root[data-theme="dark"] .mbar .mbar-btn{color:#dcdcdc !important;}
@media (prefers-color-scheme: dark){
html:root:not([data-theme="light"]) .rkcard{background:#3d3d3d !important; border:1px solid #4a4a4a !important; border-radius:12px !important; box-shadow:0 8px 24px rgba(0,0,0,.28) !important;}
html:root:not([data-theme="light"]) .rkcard-h{background:#454545 !important; color:#e8e8e8 !important; border-bottom:1px solid #4f4f4f !important; font-weight:600 !important;}
html:root:not([data-theme="light"]) .rkcard-h .rk-mine{color:#ffb3c8 !important;}
html:root:not([data-theme="light"]) .rkrow, html:root:not([data-theme="light"]) .rk-item, html:root:not([data-theme="light"]) .rkcard .row{border-bottom:1px solid #444 !important; color:#e8e8e8 !important;}
html:root:not([data-theme="light"]) .mbar{color:#e8e8e8 !important;}
html:root:not([data-theme="light"]) .mbar .mbar-btn{color:#dcdcdc !important;}
}

/* active 与 on 同款高亮 */
html:root[data-theme="dark"] .admin-nav a.active, html:root[data-theme="dark"] .admin-nav .active, html:root[data-theme="dark"] .side-nav a.active{background: #3d3350 !important;
  color: #ffffff !important;
  box-shadow: none !important;}
html:root:not([data-theme="light"]) .admin-nav a.active, html:root:not([data-theme="light"]) .admin-nav .active, html:root:not([data-theme="light"]) .side-nav a.active{background: #3d3350 !important;
  color: #ffffff !important;
  box-shadow: none !important;}
