﻿/* 研状元·星枢 全局样式 */
:root {
    --xs-primary: #4f46e5;
    --xs-sidebar-bg: #1e1b4b;
    --xs-sidebar-hover: #312e81;
    --xs-body-bg: #f4f6fb;
}

body { background: var(--xs-body-bg); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }

/* 顶栏 */
.xs-topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.xs-brand { font-weight: 700; color: var(--xs-primary); text-decoration: none; font-size: 1.15rem; }

/* 侧边栏 */
.xs-sidebar {
    width: 230px;
    min-height: calc(100vh - 56px);
    background: var(--xs-sidebar-bg);
    position: sticky;
    top: 56px;
    flex-shrink: 0;
}
.xs-sidebar .nav-link {
    color: rgba(255,255,255,.72);
    padding: .55rem 1rem;
    border-radius: 8px;
    margin: 2px 8px;
    font-size: .92rem;
}
.xs-sidebar .nav-link:hover { background: var(--xs-sidebar-hover); color: #fff; }
.xs-sidebar .nav-link.active { background: var(--xs-primary); color: #fff; }
.xs-sidebar .nav-link i { width: 1.4rem; text-align: center; margin-right: .35rem; }

.xs-content { flex: 1; padding: 1.25rem; min-width: 0; }

/* 卡片 */
.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-radius: 12px; }
.card-header { background: #fff; border-bottom: 1px solid #f0f0f5; font-weight: 600; }

/* 表格 */
.table > :not(caption) > * > * { padding: .65rem .75rem; }
.table thead th { background: #f8f9ff; color: #475569; font-weight: 600; white-space: nowrap; }

/* 徽章圆角 */
.badge { border-radius: 6px; font-weight: 500; }

/* 首页门户 */
.xs-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
    color: #fff;
    border-radius: 16px;
    padding: 3.5rem 2rem;
}
.xs-hero h1 { font-weight: 800; }

/* 统计数字块 */
.xs-stat { text-align: center; padding: 1rem .5rem; }
.xs-stat .num { font-size: 1.6rem; font-weight: 700; color: var(--xs-primary); }
.xs-stat .label { color: #64748b; font-size: .85rem; }

/* 二维码图片 */
.xs-qrcode { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px; background: #fff; }

/* ===== 直播：学员直播间 ===== */
.live-stage {
    position: relative;
    background: #0b1020;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.live-stage video { width: 100%; height: 100%; object-fit: contain; background: #0b1020; }
.live-topbar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: .5rem;
    pointer-events: none;
}
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: .78rem;
    backdrop-filter: blur(4px);
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); }
    70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.live-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: 1.5rem;
    text-align: center;
    color: #e2e8f0;
    background: radial-gradient(circle at center, rgba(49, 46, 129, .82), rgba(8, 10, 25, .96));
}
.live-overlay.hidden { display: none; }
.live-overlay .spinner-border { width: 2.4rem; height: 2.4rem; }
.live-countdown {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fca5a5;
    font-variant-numeric: tabular-nums;
}
.live-lesson-item {
    display: block;
    padding: .5rem .6rem;
    border: 1px solid #eef0f6;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    margin-bottom: .35rem;
}
.live-lesson-item:hover { background: #f7f8ff; }
.live-lesson-item.active { background: #eef2ff; border-color: #c7d2fe; }
.live-lesson-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin: .45rem .5rem 0 0;
    flex-shrink: 0;
}
.live-launch {
    background: linear-gradient(135deg, #111827 0%, #1e1b4b 100%);
    color: #fff;
}

/* ===== 直播：机构推流控制台 ===== */
.live-steps { padding-left: 1.2rem; }
.live-steps li { margin-bottom: .55rem; font-size: .92rem; line-height: 1.7; }
.live-url-row { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; }
.live-url-label { flex-shrink: 0; color: #64748b; font-size: .78rem; }
.live-url {
    flex: 1;
    min-width: 0;
    font-size: .76rem;
    padding: .15rem .35rem;
    background: #f6f7fb;
    border-radius: 6px;
    word-break: break-all;
    color: #334155;
}

/* 学习计划星级配色（全局统一）：一星蓝、三星紫、五星红，其余保持黄色
   注意：Bootstrap 的 .table>:not(caption)>*>* 会以更高优先级给单元格上色，
   含 tbody 的表格会覆盖这里的颜色，故使用 !important 保证星级配色稳定生效 */
.star-1 { color: #0d6efd !important; }
.star-3 { color: #6f42c1 !important; }
.star-5 { color: #dc3545 !important; }

/* ===== 全局自动分页（auto-pager.js） ===== */
.auto-pager .page-link { color: #2b5cff; border-color: #e6ebf5; }
.auto-pager .page-item.active .page-link { background: #2b5cff; border-color: #2b5cff; color: #fff; }
.auto-pager .page-item.disabled .page-link { color: #b6bfd1; }
.auto-pager .page-link:hover { background: #eef2ff; }
.auto-pager .page-item.active .page-link:hover { background: #2b5cff; }

/* 密码显隐切换 */
.pwd-wrap { position: relative; }
.pwd-wrap .form-control { padding-right: 42px; }
.pwd-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: none; background: transparent; color: #a2a9c2; padding: 4px; cursor: pointer; line-height: 1; }
.pwd-eye:hover { color: #2f6bff; }


