/* ============================================ */
/* 文件名：画板.css                              */
/* 作用：麦冬黑客教学平台 - 完整样式表           */
/* 包含：全局样式、侧边栏、安全管理布局、响应式等  */
/* ============================================ */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 代码雨背景层 */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 赛博扫描线 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 255, 0, 0.03) 0px, rgba(0, 255, 0, 0.03) 2px, transparent 2px, transparent 6px);
    pointer-events: none;
    z-index: 998;
}

/* 故障闪烁 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 997;
    animation: glitchFlicker 12s infinite;
}

@keyframes glitchFlicker {
    0%, 100% {
        background: transparent;
    }

    2% {
        background: rgba(0, 255, 0, 0.05);
    }

    4% {
        background: rgba(255, 0, 102, 0.05);
    }

    96% {
        background: transparent;
    }
}

/* 主容器 - 左侧菜单 + 右侧内容 */
.app {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* ========== 左侧菜单 ========== */
/* ========== 赛博霓虹侧边栏 ========== */
.sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: linear-gradient(180deg, rgba(6,6,22,0.98) 0%, rgba(10,10,30,0.96) 50%, rgba(6,6,22,0.98) 100%);
    border-right: 1px solid rgba(0, 255, 200, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

    /* 左侧装饰光条 */
    .sidebar::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10%;
        width: 2px;
        height: 80%;
        background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 200, 0.5) 20%, rgba(179, 71, 234, 0.5) 50%, rgba(0, 255, 200, 0.5) 80%, transparent 100%);
        border-radius: 1px;
    }

/* 头部 LOGO */
.sidebar-header {
    padding: 24px 20px 18px;
    text-align: center;
    position: relative;
}

.logo {
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    font-size: 16px; /* 改小一点 */
    font-weight: bold;
    letter-spacing: 2px; /* 间距也缩小 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.logo-bracket {
    color: rgba(0, 255, 200, 0.4);
    font-size: 26px;
}

.logo-text {
    background: linear-gradient(135deg, #00ffc8 0%, #b347ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #00ffc8; /* 降级，消除编辑器警告 */
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    /* 降级方案：不支持 background-clip 时显示纯色 */
    color: #00ffc8;
}

.logo-sub {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: rgba(0, 255, 200, 0.3);
    letter-spacing: 4px;
    margin-top: 4px;
}

/* 分隔线 */
.sidebar-divider {
    padding: 8px 20px 4px;
    position: relative;
}

.divider-label {
    font-family: 'Courier New', monospace;
    font-size: 8px;
    color: rgba(179, 71, 234, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 菜单区域 */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid transparent;
    background: transparent;
}

    .menu-item:hover {
        background: rgba(0, 255, 200, 0.04);
        border-color: rgba(0, 255, 200, 0.15);
        color: rgba(0, 255, 200, 0.8);
    }

    .menu-item.active {
        background: rgba(0, 255, 200, 0.06);
        border: 1px solid rgba(0, 255, 200, 0.25);
        color: #00ffc8;
        box-shadow: 0 0 15px rgba(0, 255, 200, 0.1), inset 0 0 15px rgba(0, 255, 200, 0.03);
    }

        /* 激活态左侧光点 */
        .menu-item.active::before {
            content: '';
            position: absolute;
            left: -6px;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: #00ffc8;
            box-shadow: 0 0 8px #00ffc8, 0 0 16px #00ffc8;
        }

.menu-icon {
    font-size: 15px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
    letter-spacing: 0.5px;
}

.menu-badge {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(0, 255, 200, 0.1);
    border: 1px solid rgba(0, 255, 200, 0.3);
    color: #00ffc8;
    letter-spacing: 1px;
    animation: pulseGlow 2s ease-in-out infinite;
}

/* 底部状态 */
.sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 255, 200, 0.08);
    text-align: center;
}

.footer-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffc8;
    box-shadow: 0 0 6px #00ffc8;
    animation: blink 2s infinite;
}

.status-text {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: rgba(0, 255, 200, 0.5);
    letter-spacing: 2px;
}

.footer-version {
    font-family: 'Courier New', monospace;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 1px;
}

/* 滚动条美化 */
.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 200, 0.15);
    border-radius: 2px;
}

/* ========== 右侧内容区 ========== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px 30px;
    min-width: 0; /* 允许内容在 flex 中收缩 */
    overflow-x: hidden; /* 隐藏横向溢出，防止出现滚动条 */
    box-sizing: border-box;
}

/* 页面容器 */
.page {
    display: none;
}

    .page.active {
        display: block;
    }

/* 页面头部 - 标题 + 紧凑信息条 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    flex-wrap: wrap;
    gap: 15px;
}

    .page-header h1 {
        font-size: 24px;
        text-shadow: 0 0 10px #00ff00;
    }

/* 紧凑信息条 */
.compact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 15px;
    border-radius: 30px;
    border: 1px solid #00ff00;
}

.oas-badge {
    font-size: 12px;
    font-weight: bold;
    padding-right: 12px;
    border-right: 1px solid rgba(0, 255, 0, 0.3);
}

.data-mini {
    display: flex;
    gap: 15px;
    font-size: 11px;
}

    .data-mini span {
        margin-left: 5px;
        color: #00ff00;
        font-weight: bold;
    }

/* ========== 安全管理页面布局 ========== */

/* 第一行：地球容器 + 安全终端 */
.row-earth-terminal {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

/* 地球容器 - 仅删除绿色边框，保留球体和投影 */
#earth-container {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    /* border 已删除，原为 border: 1px solid #00ff00; */
    overflow: hidden;
    cursor: grab;
    filter: drop-shadow(0 0 15px currentColor);
    transition: filter 0.5s ease;
}

    #earth-container:hover {
        filter: drop-shadow(0 0 25px currentColor);
    }

    #earth-container:active {
        cursor: grabbing;
    }

/* 安全终端 - 自适应宽度 */
.security-terminal {
    flex: 1;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #00ff00;
    border-radius: 12px;
    overflow: hidden;
}

.terminal-header-bar {
    background: #111;
    padding: 10px 18px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #00ff00;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

    .terminal-dot:nth-child(2) {
        background: #ffbd2e;
    }

    .terminal-dot:nth-child(3) {
        background: #27c93f;
    }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
}

.terminal-body {
    padding: 20px;
    height: 180px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
}

    .terminal-body .line {
        margin: 5px 0;
        white-space: pre-wrap;
    }

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

    .terminal-input-line input {
        flex: 1;
        background: transparent;
        border: none;
        color: #00ff00;
        outline: none;
        font-family: monospace;
    }

/* 第二行：会员等级展示 */
.row-member-rank {
    margin-bottom: 20px;
}

.member-rank-table {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ff00;
    border-radius: 12px;
    padding: 15px;
    overflow-x: auto;
}

    .member-rank-table h3 {
        margin-bottom: 12px;
        font-size: 14px;
        color: #00ffcc;
    }

/* 第三行：IP追踪器 */
.row-ip {
    margin-bottom: 20px;
}

.ip-tracker {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 12px;
    padding: 15px;
}

    .ip-tracker input, .ip-tracker button {
        width: 100%;
        margin-top: 8px;
        background: #000;
        border: 1px solid #00ff00;
        color: #00ff00;
        padding: 8px;
        border-radius: 6px;
    }

    .ip-tracker button {
        cursor: pointer;
        font-weight: bold;
    }

        .ip-tracker button:hover {
            background: #00ff00;
            color: #000;
        }

/* 表格通用样式 */
.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .rank-table th, .rank-table td {
        padding: 8px 6px;
        text-align: left;
        border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    }

    .rank-table th {
        color: #88ff88;
    }

/* 等级徽章 */
.rank-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
}

.rank-1 {
    background: rgba(100,100,100,0.3);
    color: #ccc;
    border: 1px solid #ccc;
}

.rank-2 {
    background: rgba(255,215,0,0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.rank-3 {
    background: rgba(192,192,192,0.2);
    color: #c0c0c0;
    border: 1px solid #c0c0c0;
}

.rank-4 {
    background: rgba(0,255,255,0.2);
    color: #0ff;
    border: 1px solid #0ff;
}

.rank-5 {
    background: rgba(255,0,0,0.3);
    color: #f66;
    border: 1px solid #f66;
}

.online {
    color: #0f0;
}

.offline {
    color: #888;
}

/* 第四行：会员权限系统 + 入侵检测系统 并排 */
.row-bottom {
    display: flex;
    gap: 20px;
}

    .row-bottom > * {
        flex: 1;
    }

.permission-system {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ff00;
    border-radius: 12px;
    padding: 15px;
}

    .permission-system h3 {
        margin-bottom: 12px;
        font-size: 14px;
        color: #00ffcc;
    }

/* 入侵检测系统 */
.intrusion-panel {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid #00ff00;
    border-radius: 16px;
    padding: 15px;
}

.intrusion-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding-bottom: 8px;
    border-bottom: 1px solid #00ff00;
    margin-bottom: 10px;
}

.intrusion-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    flex: 1;
}

.stat-label {
    font-size: 9px;
    color: #8f8;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #0f0;
}

.threat-bar-bg {
    background: #333;
    border-radius: 10px;
    height: 6px;
    margin: 8px 0;
}

.threat-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0f0, #ff0, #f66);
    border-radius: 10px;
}

.attack-list-header {
    font-size: 10px;
    margin: 8px 0;
    color: #0f0;
}

.attack-list {
    max-height: 150px;
    overflow-y: auto;
    font-size: 10px;
}

.attack-row {
    background: rgba(0, 0, 0, 0.4);
    padding: 6px;
    margin-bottom: 5px;
    border-radius: 8px;
    border-left: 2px solid #f66;
}

/* 响应式 */
@media (max-width: 1000px) {
    .row-earth-terminal {
        flex-direction: column;
        align-items: center;
    }

    .security-terminal {
        width: 100%;
    }

    .row-bottom {
        flex-direction: column;
    }

    .main-content {
        padding: 15px;
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-header .logo, .menu-item span:last-child {
        display: none;
    }

    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
    }

    .app {
        flex-direction: column;
    }
}
/* CD旋转动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.mini-disc.playing {
    animation: spin 6s linear infinite;
}

/* 闪烁动画 */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

/* 播放列表悬停 */
.playlist-item:hover {
    background: rgba(0, 255, 200, 0.05) !important;
}
/* 音乐面板动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.mini-disc.playing {
    animation: spin 6s linear infinite;
}

@keyframes blink {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

/* 动态主题 - 紫霓呼吸 */
.theme-pulse {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%,100% {
        box-shadow: 0 0 25px rgba(179,71,234,0.15), inset 0 0 30px rgba(179,71,234,0.03);
    }

    50% {
        box-shadow: 0 0 45px rgba(179,71,234,0.35), inset 0 0 40px rgba(179,71,234,0.08);
    }
}

/* 动态主题 - 琥珀金扫描 */
.theme-scan {
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(255,180,0,0.03) 2px, rgba(255,180,0,0.03) 4px) !important;
    background-size: 100% 200% !important;
    animation: scanBg 4s linear infinite;
}

@keyframes scanBg {
    0% {
        background-position: 0 -100%;
    }

    100% {
        background-position: 0 200%;
    }
}
.page#page-music {
    width: 100%;
}

.music-main-layout {
    width: 100%;
}
/* ========== 音乐页面宽度修复 ========== */
#page-music {
    width: 100% !important;
    max-width: none !important;
}

.music-main-layout {
    width: 100% !important;
    flex-wrap: nowrap !important;
}
/* ========== 模板样式 ========== */
.visual-panel {
    position: relative;
}

.info-panel {
    position: relative;
}

.neon-border {
    position: relative;
    background: rgba(8,8,20,0.95);
    border: 1px solid rgba(0,255,200,0.15);
    box-shadow: 0 0 20px rgba(0,255,200,0.05);
}

    .neon-border::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background: linear-gradient(0deg, transparent 0%, rgba(0,255,200,0.06) 50%, transparent 100%);
        background-size: 100% 200%;
        animation: scanLine 3s linear infinite;
    }

@keyframes scanLine {
    0% {
        background-position: 0 -100%;
    }

    100% {
        background-position: 0 200%;
    }
}

/* 主题按钮样式 */
.gtheme-btn.active, .theme-btn.active {
    box-shadow: 0 0 10px rgba(0,255,200,0.3) !important;
}

/* 播放列表项 */
.playlist-item:hover {
    background: rgba(0,255,200,0.05) !important;
}

/* CD动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.mini-disc.playing {
    animation: spin 6s linear infinite;
}

/* 动态主题 */
.theme-pulse {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%,100% {
        box-shadow: 0 0 25px rgba(179,71,234,0.15), inset 0 0 30px rgba(179,71,234,0.03);
    }

    50% {
        box-shadow: 0 0 45px rgba(179,71,234,0.35), inset 0 0 40px rgba(179,71,234,0.08);
    }
}

.theme-scan {
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(255,180,0,0.03) 2px, rgba(255,180,0,0.03) 4px) !important;
    background-size: 100% 200% !important;
    animation: scanBg 4s linear infinite;
}

@keyframes scanBg {
    0% {
        background-position: 0 -100%;
    }

    100% {
        background-position: 0 200%;
    }
}

@keyframes blink {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}
/* ========== 仪表盘样式 ========== */
/* ============================================================ */
/* 仪表盘样式 - 白底不透明版                                    */
/* 修改位置：画板.css 末尾                                     */
/* 说明：纯白背景，与左侧深色侧边栏形成明显色差                 */
/* 所有数据节点均在 HTML 中预留 id / data-field，JS 可直接绑定   */
/* ============================================================ */

/* --- 全宽行（会员排行 / 系统通知用） --- */
.dash-row-full {
    margin-bottom: 16px;
}

/* --- 整个仪表盘外框 --- */
.dashboard-outer {
    background: #f8f8f8;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* --- 顶部 4 卡片容器 --- */
.dash-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* --- 单张卡片（用户总数/今日新增/代理总数/待审核评论） --- */
.dash-card {
    background: #f8f8f8; /* 白底不透明 */
    border: 1px solid #e2e2e2; /* 浅灰细边框 */
    border-radius: 10px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* 微弱阴影 */
    transition: all 0.3s ease;
}

    .dash-card:hover {
        border-color: #bbb;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }

/* 卡片图标 */
.dash-card-icon {
    font-size: 26px;
    flex-shrink: 0;
}

/* 卡片文字区 */
.dash-card-info {
    flex: 1;
}

/* 卡片标签（"用户总数"等） */
.dash-card-label {
    font-size: 10px;
    color: #999;
    margin-bottom: 3px;
}

/* 卡片数值（12,847 等） */
.dash-card-value {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    font-family: 'Courier New', monospace;
}

/* 卡片副文字（+3.2% 等） */
.dash-card-sub {
    font-size: 9px;
    color: #aaa;
    margin-top: 2px;
}

    .dash-card-sub.up {
        color: #22aa55;
    }
    /* 上涨绿色 */
    .dash-card-sub.warn {
        color: #ee7700;
    }
/* 警告橙色 */

/* --- 双栏布局容器（表格+晶格 / 日志+通知 等并排用） --- */
.dash-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
/* --- 折线图面板（高度自适应） --- */
.dash-chart-panel {
    /* max-height 已移除 */
}

    .dash-chart-panel .chart-svg {
        max-height: 200px;
    }

/* --- 晶格条面板（高度自适应） --- */
.dash-row-two > .dash-panel:last-child {
    /* max-height 已移除 */
}
/* --- 通用面板（表格/晶格条/日志/通知/折线图共用） --- */
.dash-panel {
    background: #f8f8f8; /* 白底不透明 */
    border: 1px solid #e2e2e2; /* 浅灰细边框 */
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); /* 微弱阴影 */
}

/* 面板头部 */
.dash-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee; /* 底部分隔线 */
}

/* 面板标题 */
.dash-panel-title {
    color: #333;
    font-weight: bold;
    font-size: 12px;
}

/* 面板右上角小字 */
.dash-panel-more {
    color: #bbb;
    font-size: 10px;
    cursor: pointer;
}

    .dash-panel-more:hover {
        color: #888;
    }

/* --- 折线图容器 --- */
.chart-container {
    width: 100%;
}

/* 折线图 SVG */
.chart-svg {
    width: 100%;
    height: auto;
}

/* 折线图数据点 */
.chart-dot {
    cursor: pointer;

}

.chart-dot-today {
    fill: #333;
}
/* 悬停放大 */

.chart-dot-today {
    fill: #333;  
}
/* 今日数据点加深 */

/* 折线图 X 轴日期标签 */
.chart-x-labels {
    display: flex;
    justify-content: space-between;
    padding: 4px 30px 0 38px;
    font-size: 8px;
    color: #bbb;
    font-family: 'Courier New', monospace;
}

/* --- 晶格条分区小标题（"👑 会员等级" / "🌐 代理占比"） --- */
.rank-section-label {
    font-size: 10px;
    color: #888;
    margin: 8px 0 6px;
    padding-left: 2px;
}

    .rank-section-label:first-of-type {
        margin-top: 0;
    }

/* --- 晶格条容器（每行一个等级/代理类型） --- */
/* gap: 行间距；margin-bottom: 与下方分区标题的距离 */
.rank-bars {
    display: flex;
    flex-direction: column;
    gap: 5px; /* 晶格条之间的间距，调大更松，调小更紧凑 */
    margin-bottom: 2px; /* 晶格组底部留白 */
}

/* --- 单条晶格行 --- */
.rank-bar-row {
    display: flex;
    align-items: center;
    gap: 5px; /* 标签-轨道-数字 三者间距 */
}

/* --- 晶格条左侧标签（"普通""黄金""国内"等） --- */
.rank-bar-label {
    width: 50px; /* 标签宽度，文字过长可调大 */
    font-size: 10px; /* 标签字号 */
    color: #666;
    text-align: right;
}

/* --- 晶格条轨道背景槽 --- */
.rank-bar-track {
    flex: 1; /* 自动填满剩余宽度 */
    height: 8px; /* 轨道高度，越大越粗 */
    background: #eee; /* 轨道底色 */
    border-radius: 8px;
    overflow: hidden;
}

/* --- 晶格条填充（宽度在 HTML 内联 style 控制） --- */
.rank-bar-fill {
    height: 100%;
    border-radius: 4px;
}

/* --- 晶格条右侧数字（"68% · 3,420"） --- */
.rank-bar-num {
    width: 80px; /* 数字列宽度 */
    font-size: 10px; /* 数字字号 */
    color: #aaa;
    font-family: 'Courier New', monospace;
}

/* --- 分区小标题（"👑 会员等级" / "🌐 代理占比"） --- */
.rank-section-label {
    font-size: 10px;
    color: #888;
    margin: 4px 0 3px; /* 上 左右 下 的外边距，调这里控制分区标题间距 */
    padding-left: 2px;
}

    .rank-section-label:first-of-type {
        margin-top: 0; /* 第一个分区标题不加上边距 */
    }

/* --- 通用表格 --- */
.dash-table {
    /* --- 新增会员表格（单独控制） --- */
    #newMemberTableBody {
        font-size: 12px;
    }

        #newMemberTableBody td {
            padding: 8px 6px;
            font-size: 12px;
        }

        #newMemberTableBody th {
            font-size: 10px;
        }
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

    /* 表头 */
    .dash-table th {
        text-align: left;
        padding: 6px 4px;
        color: #aaa;
        font-size: 9px;
        border-bottom: 1px solid #eee;
    }

    /* 单元格 */
    .dash-table td {
        padding: 6px 4px;
        color: #555;
        border-bottom: 1px solid #f5f5f5;
    }

/* 全宽排行表（会员等级排行）稍大字号 */
.rank-full-table th,
.rank-full-table td {
    padding: 25px 8px;
    font-size: 11px;
}

/* --- 状态标签（已激活/待验证） --- */
.dash-status {
    font-size: 8px;
    padding: 2px 8px;
    border-radius: 10px;
}

    .dash-status.online {
        color: #22aa55;
        background: #e8f8ee;
    }

    .dash-status.pending {
        color: #ee7700;
        background: #fff6ed;
    }

/* --- 会员等级标签（普通/黄金/铂金/钻石/舰长） --- */
.rank-tag {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.rank-1 {
    color: #888;
    background: #f0f0f0;
    border: 1px solid #ddd;
}
/* 普通会员 */
.rank-2 {
    color: #b8960c;
    background: #fffbe6;
    border: 1px solid #ffe58f;
}
/* 黄金会员 */
.rank-3 {
    color: #3a8a7a;
    background: #e6f7f4;
    border: 1px solid #a0d8cc;
}
/* 铂金会员 */
.rank-4 {
    color: #6b3fb8;
    background: #f3edff;
    border: 1px solid #c9b0f0;
}
/* 钻石会员 */
.rank-5 {
    color: #c0392b;
    background: #fdecea;
    border: 1px solid #f5a3a0;
}
/* 舰长会员 */

/* --- 在线/离线状态点 --- */
.dot-live, .dot-off {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 2px;
    vertical-align: middle;
}

.dot-live {
    background: #22cc55;
}
/* 在线绿点 */
.dot-off {
    background: #ccc;
}
/* 离线灰点 */

/* --- 登录日志列表 --- */
.dash-log-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 每条日志 */
.dash-log-item {
    display: flex;
    gap: 8px;
    padding: 7px 8px;
    font-size: 12px;
    border-left: 2px solid transparent;
    border-radius: 3px;
}

    .dash-log-item:hover {
        background: #f9f9f9;
        border-left-color: #ddd;
    }

    .dash-log-item.warn {
        border-left-color: #ff8888;
    }
/* 登录失败红色左边条 */

/* 日志各列 */
.dash-log-time {
    color: #ccc;
    width: 35px;
    flex-shrink: 0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.dash-log-ip {
    color: #555;
    width: 100px;
    flex-shrink: 0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.dash-log-user {
    flex: 1;
    color: #444;
    font-size: 12px;
}

.dash-log-action {
    color: #aaa;
    flex-shrink: 0;
    font-size: 11px;
}

/* --- 系统通知列表 --- */
.dash-notice-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 每条通知 */
.dash-notice-item {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid #eee;
}

    .dash-notice-item.read {
        opacity: 0.5;
    }
/* 已读通知半透明 */

/* 通知左侧圆点 */
.dash-notice-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #333;
    margin-top: 3px;
    flex-shrink: 0;
}

.dash-notice-item.read .dash-notice-dot {
    background: #ccc;
}

/* 通知内容区 */
.dash-notice-info {
    flex: 1;
}

.dash-notice-title {
    font-size: 11px;
    color: #333;
    margin-bottom: 2px;
}

.dash-notice-desc {
    font-size: 9px;
    color: #999;
    margin-bottom: 1px;
}

.dash-notice-time {
    font-size: 8px;
    color: #ccc;
    font-family: 'Courier New', monospace;
}
/* --- 折线图配色：橙金折线 + 红色今日点 --- */
#chartLine {
    stroke: #f39c12; /* 折线颜色：橙金 */
}

.chart-dot {
    fill: #f39c12; /* 数据点颜色：橙金 */
}

.chart-dot-today {
    fill: #d63031; /* 今日数据点：红色强调 */
}
/* --- 仪表盘撑满 --- */
#page-dashboard {
    margin: -20px -30px;
    padding: 30px;
    min-height: calc(100vh + 20px);
    background: #f8f8f8;
    width: calc(100% + 60px);
    position: relative;
    z-index: 5;
}

    #page-dashboard .dashboard-outer {
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
/* ============================================================ */
/* 用户管理页面样式 - 淡粉底                                    */
/* ============================================================ */
/* --- 用户管理页面背景 --- */
/* ============================================================ */
/* 用户管理页面样式 - 淡粉底                                    */
/* ============================================================ */

/* --- 用户管理页面背景 --- */
#page-users {
    margin: -20px -30px;
    padding: 30px;
    min-height: calc(100vh + 20px);
    background: #fdf6f6;
    width: calc(100% + 60px);
    position: relative;
    z-index: 5;
}

    #page-users .dashboard-outer {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }
/* --- 搜索栏 --- */
.users-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.users-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #e8d5d5;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    color: #555;
    outline: none;
    font-family: 'Courier New', monospace;
    transition: border-color 0.2s;
}

    .users-search-input:focus {
        border-color: #d4a0a0;
    }

.users-select {
    padding: 10px 12px;
    border: 1px solid #e8d5d5;
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
    color: #666;
    outline: none;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

/* --- 按钮 --- */
.users-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid #e8d5d5;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.users-btn-search {
    background: #f8e8e8;
    color: #a05050;
    border-color: #e8c8c8;
}

    .users-btn-search:hover {
        background: #f0d8d8;
    }

.users-btn-reset {
    background: #fff;
    color: #888;
}

    .users-btn-reset:hover {
        background: #f5f5f5;
    }

.users-btn-add {
    background: #d4a0a0;
    color: #fff;
    border-color: #c08080;
    font-weight: bold;
}

    .users-btn-add:hover {
        background: #c08080;
    }

/* --- 表格容器 --- */
.users-table {
    min-width: 900px;
    font-size: 12px; /* 原来继承10px或11px */
}

    .users-table th {
        font-size: 11px; /* 表头 */
        padding: 8px 6px; /* 原来6px 4px */
    }

    .users-table td {
        padding: 8px 6px; /* 单元格间距 */
        font-size: 12px; /* 单元格字号 */
    }

/* --- IP 归属地文字 --- */
.ip-location {
    color: #888;
    font-size: 10px;
    font-style: italic;
}

/* --- 操作按钮 --- */
.users-action-btn {
    background: #fff;
    border: 1px solid #e8d5d5;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 4px;
    transition: all 0.2s;
}

.users-edit-btn:hover {
    background: #e8f0ff;
    border-color: #a0c0e0;
}

.users-delete-btn:hover {
    background: #ffe8e8;
    border-color: #d0a0a0;
}

.users-freeze-btn:hover {
    background: #e8f0ff;
    border-color: #a0c0d0;
}

/* --- 分页 --- */
.users-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0e0e0;
}

.users-page-btn {
    background: #fff;
    border: 1px solid #e8d5d5;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 10px;
    color: #a05050;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

    .users-page-btn:hover {
        background: #f8e8e8;
    }

.users-page-num {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    color: #888;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

    .users-page-num:hover {
        background: #f0e0e0;
    }

    .users-page-num.active {
        background: #d4a0a0;
        color: #fff;
        font-weight: bold;
    }

.users-page-dots {
    color: #ccc;
    font-size: 10px;
    padding: 0 4px;
}
/* ============================================================ */
/* 会员管理页面样式 - 淡杏底                                    */
/* ============================================================ */

#page-members {
    margin: -20px -30px;
    padding: 30px;
    min-height: calc(100vh + 20px);
    background: #fdf8f0;
    width: calc(100% + 60px);
    position: relative;
    z-index: 5;
}

    #page-members .dashboard-outer {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

/* --- 授权分配面板 --- */
.perm-table-wrap {
    overflow-x: auto;
    margin-bottom: 12px;
}

.perm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    min-width: 650px;
}

    .perm-table th {
        background: #faf5ed;
        padding: 10px 8px;
        text-align: center;
        color: #8b7355;
        border-bottom: 2px solid #e8dcc8;
        font-size: 10px;
        white-space: nowrap;
    }

        .perm-table th:first-child {
            text-align: left;
            padding-left: 14px;
        }

    .perm-table td {
        padding: 10px 8px;
        text-align: center;
        border-bottom: 1px solid #f0e8d8;
        color: #666;
    }

        .perm-table td:first-child {
            text-align: left;
            padding-left: 14px;
            color: #555;
            font-weight: bold;
        }

    .perm-table input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #d4a050;
    }

    .perm-table tbody tr:hover {
        background: #fdf5e8;
    }

.perm-actions {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0e8d8;
}

/* --- 授权按钮区 --- */
.perm-actions {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0e8d8;
}
/* ============================================================ */
/* 评论审核页面样式 - 淡绿底                                    */
/* ============================================================ */

#page-comments {
    margin: -20px -30px;
    padding: 30px;
    min-height: calc(100vh + 20px);
    background: #f6fdf8;
    width: calc(100% + 60px);
    position: relative;
    z-index: 5;
}

    #page-comments .dashboard-outer {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

/* 评论内容列：超出省略 */
.comment-content-cell {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 全选复选框 */
#commentsSelectAll {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #5ab4a0;
}

/* 每条评论的复选框 */
.comments-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #5ab4a0;
}
/* ============================================================ */
/* 访问日志页面样式 - 淡紫底                                    */
/* ============================================================ */

/* --- 访问日志页面背景 --- */
#page-logs {
    margin: -20px -30px;
    padding: 30px;
    min-height: calc(100vh + 20px);
    background: #f8f6fd;
    width: calc(100% + 60px);
    position: relative;
    z-index: 5;
}

    #page-logs .dashboard-outer {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

/* --- 页面URL列 --- */
.logs-page-cell {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #6b5ce7;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- 来源URL列 --- */
.logs-ref-cell {
    font-size: 10px;
    color: #888;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- 副文字下降绿色 --- */
.dash-card-sub.down {
    color: #22aa55;
}
/* --- 异常行为标签 --- */
.abnormal-tag {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: bold;
}

.tag-sql {
    color: #c0392b;
    background: #fde8e8;
    border: 1px solid #f5a3a0;
}

.tag-brute {
    color: #e67e22;
    background: #fef3e8;
    border: 1px solid #f5c6a0;
}

.tag-crawl {
    color: #b8960c;
    background: #fffbe6;
    border: 1px solid #ffe58f;
}

/* --- 风险等级 --- */
.abnormal-level {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.level-high {
    color: #c0392b;
    background: #fde8e8;
}

.level-mid {
    color: #e67e22;
    background: #fef3e8;
}

.level-low {
    color: #b8960c;
    background: #fffbe6;
}
/* ============================================================ */
/* 操作记录页面样式 - 淡黄底                                    */
/* ============================================================ */

#page-operations {
    margin: -20px -30px;
    padding: 30px;
    min-height: calc(100vh + 20px);
    background: #fdfdf6;
    width: calc(100% + 60px);
    position: relative;
    z-index: 5;
}

    #page-operations .dashboard-outer {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

/* --- 操作类型标签 --- */
.op-tag {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: bold;
}

/* 封禁IP：红色 */
.tag-ban {
    color: #c0392b;
    background: #fde8e8;
    border: 1px solid #f5a3a0;
}

/* 封禁设备机器码：深红 */
.tag-device {
    color: #e04060;
    background: #fde8ec;
    border: 1px solid #f5a0b0;
}

/* 系统备份：灰色 */
.tag-system {
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

/* 日志清理：棕色 */
.tag-clear {
    color: #8b7355;
    background: #fdf5e8;
    border: 1px solid #e8d8c0;
}

/* 配置变更：蓝色 */
.tag-config {
    color: #5b9bd5;
    background: #e8f2fc;
    border: 1px solid #b8d8f0;
}
/* ============================================================ */
/* 黑名单页面样式 - 淡灰底                                      */
/* ============================================================ */

#page-blacklist {
    margin: -20px -30px;
    padding: 30px;
    min-height: calc(100vh + 20px);
    background: #fafafa;
    width: calc(100% + 60px);
    position: relative;
    z-index: 5;
}

    #page-blacklist .dashboard-outer {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

/* 黑名单复选框 */
#blSelectAll {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e04060;
}

.bl-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e04060;
}

/* 低危等级 */
.level-low {
    color: #22aa55;
    background: #e8f8ee;
}
/* ============================================================ */
/* 回收站页面样式 - 淡蓝灰底                                    */
/* ============================================================ */

#page-recycle {
    margin: -20px -30px;
    padding: 30px;
    min-height: calc(100vh + 20px);
    background: #f5f7fa;
    width: calc(100% + 60px);
    position: relative;
    z-index: 5;
}

    #page-recycle .dashboard-outer {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

/* 回收站复选框 */
#rcSelectAll {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #5b9bd5;
}

.rc-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #5b9bd5;
}

/* 数据类型标签 */
.rc-type-tag {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: bold;
}

.tag-comment {
    color: #5ab4a0;
    background: #e8f6f2;
    border: 1px solid #a0d8c8;
}

.tag-user {
    color: #5b9bd5;
    background: #e8f2fc;
    border: 1px solid #b8d8f0;
}

.tag-blacklist {
    color: #e04060;
    background: #fde8ec;
    border: 1px solid #f5a0b0;
}

.tag-operation {
    color: #8b7355;
    background: #fdf5e8;
    border: 1px solid #e8d8c0;
}

/* 数据摘要列 */
.rc-summary-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ============================================================ */
/* 定时任务页面样式 - 淡蓝底                                    */
/* ============================================================ */

#page-tasks {
    margin: -20px -30px;
    padding: 30px;
    min-height: calc(100vh + 20px);
    background: #f4f8fc;
    width: calc(100% + 60px);
    position: relative;
    z-index: 5;
}

    #page-tasks .dashboard-outer {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

/* 定时任务复选框 */
#taskSelectAll {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #5b9bd5;
}

.task-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #5b9bd5;
}

/* 任务类型标签 */
.task-type-tag {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: bold;
}

.tag-backup {
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.tag-clean {
    color: #8b7355;
    background: #fdf5e8;
    border: 1px solid #e8d8c0;
}

.tag-recycle {
    color: #5b9bd5;
    background: #e8f2fc;
    border: 1px solid #b8d8f0;
}

.tag-stats {
    color: #8b5cf6;
    background: #f3edff;
    border: 1px solid #d0c0f0;
}

/* 单个启用/暂停开关按钮 */
.task-toggle-btn {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.2s;
}

.task-toggle-on:hover {
    background: #d0f0d0 !important;
}

.task-toggle-off:hover {
    background: #fef0e0 !important;
}
/* ============================================================ */
/* 系统设置页面样式 - 淡蓝灰底                                  */
/* ============================================================ */

#page-settings {
    margin: -20px -30px;
    padding: 30px;
    min-height: calc(100vh + 20px);
    background: #f5f7fa;
    width: calc(100% + 60px);
    position: relative;
    z-index: 5;
}

    #page-settings .dashboard-outer {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

/* 设置列表容器 */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 每行设置项 */
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* 设置标签 */
.settings-label {
    font-size: 11px;
    color: #666;
    flex-shrink: 0;
    min-width: 120px;
}

/* 设置输入框 */
.settings-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 11px;
    color: #333;
    outline: none;
    font-family: 'Courier New', monospace;
    transition: border-color 0.2s;
}

    .settings-input:focus {
        border-color: #5b9bd5;
    }

/* 设置下拉框 */
.settings-select {
    cursor: pointer;
    background: #fff;
}

/* 滑动开关容器 */
.settings-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

    /* 隐藏原生checkbox */
    .settings-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* 滑动开关滑块 */
.settings-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

    .settings-switch-slider::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: #fff;
        border-radius: 50%;
        transition: 0.3s;
    }

/* 选中状态 */
.settings-switch input:checked + .settings-switch-slider {
    background-color: #22aa55;
}

    .settings-switch input:checked + .settings-switch-slider::before {
        transform: translateX(20px);
    }
/* --- 响应式 --- */
@media (max-width: 1000px) {
    .dash-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-row-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dash-cards-row {
        grid-template-columns: 1fr;
    }
}
/* ========== 卡密管理模块样式（作用域 #page-card，背景加深版） ========== */
#page-card .card-generate-panel {
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

#page-card .panel-label {
    font-size: 12px;
    color: rgba(0, 255, 200, 0.8);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#page-card .form-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#page-card .input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

    #page-card .input-group label {
        font-size: 11px;
        color: rgba(0, 255, 200, 0.7);
    }

#page-card .cyber-input {
    width: 80px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 255, 200, 0.5);
    border-radius: 6px;
    color: #00ffc8;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
}

    #page-card .cyber-input:focus {
        border-color: #00ffc8;
        box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
    }

    #page-card .cyber-input.long {
        width: 220px;
    }

#page-card .cyber-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.2), rgba(179, 71, 234, 0.2));
    border: 1px solid rgba(0, 255, 200, 0.6);
    border-radius: 6px;
    color: #00ffc8;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

    #page-card .cyber-btn:hover {
        background: linear-gradient(135deg, rgba(0, 255, 200, 0.35), rgba(179, 71, 234, 0.3));
        border-color: #00ffc8;
        box-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
        transform: translateY(-1px);
    }

    #page-card .cyber-btn.renew {
        border-color: rgba(179, 71, 234, 0.6);
        color: #b347ea;
    }

#page-card .code-list-panel {
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
}

#page-card .list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: rgba(0, 255, 200, 0.08);
    border-bottom: 1px solid rgba(0, 255, 200, 0.2);
    flex-shrink: 0;
}

#page-card .list-title {
    font-size: 11px;
    color: #00ffc8;
    letter-spacing: 2px;
}

#page-card .list-count {
    font-size: 11px;
    color: #ffcc00;
    font-weight: bold;
}

#page-card .table-scroll {
    flex: 1;
    overflow-y: auto;
}

    #page-card .table-scroll::-webkit-scrollbar {
        width: 4px;
    }

    #page-card .table-scroll::-webkit-scrollbar-track {
        background: #020510;
    }

    #page-card .table-scroll::-webkit-scrollbar-thumb {
        background: #00ffc8;
        border-radius: 2px;
    }

#page-card .code-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: fixed;
}

    #page-card .code-table th {
        text-align: left;
        padding: 8px 6px;
        background: rgba(0, 255, 200, 0.06);
        color: #00ffc8;
        font-weight: normal;
        border-bottom: 1px solid rgba(0, 255, 200, 0.2);
        position: sticky;
        top: 0;
    }

    #page-card .code-table td {
        padding: 8px 6px;
        border-bottom: 1px solid rgba(0, 255, 200, 0.1);
        color: #e0e0e0;
        word-break: break-all;
    }

        #page-card .code-table th:nth-child(1), #page-card .code-table td:nth-child(1) {
            width: 22%;
        }

        #page-card .code-table th:nth-child(2), #page-card .code-table td:nth-child(2) {
            width: 10%;
        }

        #page-card .code-table th:nth-child(3), #page-card .code-table td:nth-child(3) {
            width: 12%;
        }

        #page-card .code-table th:nth-child(4), #page-card .code-table td:nth-child(4) {
            width: 10%;
        }

        #page-card .code-table th:nth-child(5), #page-card .code-table td:nth-child(5) {
            width: 12%;
        }

        #page-card .code-table th:nth-child(6), #page-card .code-table td:nth-child(6) {
            width: 14%;
        }

        #page-card .code-table th:nth-child(7), #page-card .code-table td:nth-child(7) {
            width: 20%;
        }

#page-card .new-highlight {
    background: rgba(0, 255, 200, 0.12);
    border-left: 3px solid #00ffc8;
}

#page-card .new-badge {
    display: inline-block;
    background: #00ffc8;
    color: #020510;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
}

#page-card .status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}

#page-card .status-unused {
    color: #44dd44;
    border: 1px solid #44dd44;
    background: rgba(68, 221, 68, 0.15);
}

#page-card .status-used {
    color: #ff6680;
    border: 1px solid #ff6680;
    background: rgba(255, 68, 102, 0.15);
}

#page-card .status-expired {
    color: #ffb400;
    border: 1px solid #ffb400;
    background: rgba(255, 180, 0, 0.15);
}

#page-card .action-btn {
    background: transparent;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    transition: all 0.2s;
    margin-right: 4px;
}

#page-card .copy-btn {
    border: 1px solid #00ffc8;
    color: #00ffc8;
}

    #page-card .copy-btn:hover {
        background: rgba(0, 255, 200, 0.2);
        box-shadow: 0 0 10px rgba(0, 255, 200, 0.4);
    }

#page-card .delete-btn {
    border: 1px solid #ff6680;
    color: #ff6680;
}

    #page-card .delete-btn:hover {
        background: rgba(255, 102, 128, 0.2);
        box-shadow: 0 0 10px rgba(255, 102, 128, 0.4);
    }

#page-card .clear-btn {
    background: transparent;
    border: 1px solid #ffb400;
    color: #ffb400;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    margin-left: 8px;
    transition: all 0.2s;
}

    #page-card .clear-btn:hover {
        background: rgba(255, 180, 0, 0.2);
        box-shadow: 0 0 10px rgba(255, 180, 0, 0.4);
    }

#page-card .empty-state {
    text-align: center;
    padding: 30px;
    color: rgba(0, 255, 200, 0.5);
}

#page-card .toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(8, 12, 26, 0.98);
    border: 1px solid #00ffc8;
    border-radius: 12px;
    padding: 20px 40px;
    z-index: 10000;
    box-shadow: 0 0 40px rgba(0, 255, 200, 0.4), inset 0 0 10px rgba(0, 255, 200, 0.1);
    animation: toastFade 2s ease forwards;
    text-align: center;
}

#page-card .toast-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

#page-card .toast-text {
    color: #00ffc8;
    font-weight: bold;
    font-size: 14px;
}

@keyframes toastFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    90% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

#page-card .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#page-card .modal-box {
    background: rgba(8, 12, 26, 0.98);
    border: 1px solid #00ffc8;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 0 80px rgba(0, 255, 200, 0.3);
    max-width: 420px;
    width: 90%;
}

    #page-card .modal-box.warning {
        border-color: #ff6680;
        box-shadow: 0 0 80px rgba(255, 102, 128, 0.3);
    }

#page-card .modal-title {
    font-size: 20px;
    color: #00ffc8;
    font-weight: bold;
    margin-bottom: 15px;
}

#page-card .modal-msg {
    font-size: 13px;
    color: #bbccdd;
    margin-bottom: 30px;
    line-height: 1.6;
}

#page-card .modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

#page-card .modal-btn {
    padding: 10px 30px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

#page-card .modal-cancel {
    background: transparent;
    border: 1px solid #7788aa;
    color: #bbccdd;
}

    #page-card .modal-cancel:hover {
        border-color: #00ffc8;
        color: #00ffc8;
    }

#page-card .modal-danger {
    background: #ff4466;
    color: #fff;
    border: none;
}

    #page-card .modal-danger:hover {
        background: #ff6680;
        box-shadow: 0 0 20px rgba(255, 102, 128, 0.6);
    }

#page-card .modal-safe {
    background: #00ffc8;
    color: #020510;
    border: none;
}

    #page-card .modal-safe:hover {
        background: #33ffd5;
        box-shadow: 0 0 20px rgba(0, 255, 200, 0.6);
    }

#page-card .ip-location {
    color: #6b9bd5;
    font-size: 10px;
}