/* 🎮 奇迹农场数据接口服务器 - 优化移动端性能 */
/* 版本: 2026-01-15-v32 - 移动端性能优化 */

/* ========== 移动端性能优化 - 禁用耗性能效果 ========== */
@media (max-width: 768px) {
    /* 禁用所有backdrop-filter模糊效果 */
    *, *::before, *::after {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* 禁用所有无限循环动画 */
    .floating,
    .refresh-indicator,
    .server-time,
    .server-time-small,
    .time-display,
    .time-display-small,
    .refresh-status,
    .refresh-status-corner,
    .data-item::before,
    .card::before,
    .card-header::after,
    .btn::before {
        animation: none !important;
    }
    
    /* 简化阴影效果 */
    .card, .data-item, .btn, .server-time, .server-time-small {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* 禁用hover变换效果 */
    .data-item:hover,
    .card:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* 简化渐变背景 */
    body {
        background: #1a2332 !important;
        background-attachment: scroll !important;
    }
    
    /* 简化伪元素动画 */
    .server-time::before,
    .server-time-small::before,
    .data-content::before {
        display: none !important;
    }
}
/* ========== 移动端性能优化结束 ========== */

/* 默认深色样式 - 兼容不支持prefers-color-scheme的浏览器(如微信) */
body {
    background: linear-gradient(135deg, #0f1419, #1a2332);
    color: #ffffff;
}

/* 主页内容显示框 - 默认无边框 */
.data-content {
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
}

.data-content span {
    color: #ffffff !important;
}

/* 保留高亮颜色 - 让内联样式的颜色生效 */
.data-content span[style*="color"] {
    color: revert !important;
}

.data-content.empty {
    background: transparent !important;
    color: #888888 !important;
    box-shadow: none !important;
    border: none !important;
}

/* 管理员管理卡片 - 默认深色(兼容微信黑夜模式) */
.admin-manager-card {
    background: linear-gradient(135deg, #3d2626, #2d1f1f) !important;
    border: 3px solid #f44336 !important;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5), 0 0 40px rgba(244, 67, 54, 0.3) !important;
}

/* 电脑端强制显示红色边框 */
@media (min-width: 769px) {
    .dashboard-card.admin-manager-card {
        border: 3px solid #f44336 !important;
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.5), 0 0 40px rgba(244, 67, 54, 0.3) !important;
    }
    
    .dashboard-card.admin-manager-card:hover {
        border: 3px solid #f44336 !important;
        box-shadow: 0 0 30px rgba(244, 67, 54, 0.7), 0 0 60px rgba(244, 67, 54, 0.4) !important;
    }
}

/* 白天模式 - 管理员管理卡片浅色 */
@media (prefers-color-scheme: light) {
    .admin-manager-card {
        background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
        border: 3px solid #f44336 !important;
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.4), 0 0 40px rgba(244, 67, 54, 0.2) !important;
    }
    
    /* 电脑端白天模式 */
    @media (min-width: 769px) {
        .dashboard-card.admin-manager-card {
            border: 3px solid #f44336 !important;
            box-shadow: 0 0 20px rgba(244, 67, 54, 0.4), 0 0 40px rgba(244, 67, 54, 0.2) !important;
        }
        
        .dashboard-card.admin-manager-card:hover {
            border: 3px solid #f44336 !important;
            box-shadow: 0 0 30px rgba(244, 67, 54, 0.6), 0 0 60px rgba(244, 67, 54, 0.3) !important;
        }
    }
}

/* 全局黑夜模式 - 蓝色主题 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0f1419, #1a2332) !important;
        color: #ffffff !important;
    }
    
    /* 导航卡片 */
    .admin-nav {
        background: linear-gradient(135deg, #1e3a5f, #152a45) !important;
        border-color: rgba(100, 150, 200, 0.3) !important;
    }
    
    .nav-title {
        color: #ffffff !important;
    }
    
    .nav-btn {
        background: rgba(30, 58, 95, 0.5) !important;
        border-color: rgba(100, 150, 200, 0.3) !important;
        color: #ffffff !important;
    }
    
    .nav-btn:hover {
        background: rgba(30, 58, 95, 0.8) !important;
        color: #ffffff !important;
    }
    
    /* 卡片 */
    .card {
        background: linear-gradient(135deg, #1e3a5f, #152a45) !important;
        border-color: rgba(100, 150, 200, 0.3) !important;
        color: #ffffff !important;
    }
    
    .card-header {
        background: linear-gradient(135deg, #2c5282, #1e3a5f) !important;
        border-color: rgba(100, 150, 200, 0.3) !important;
        color: #ffffff !important;
    }
    
    .card-body {
        background: transparent !important;
        color: #ffffff !important;
    }
    
    .card-title, .card-text, h1, h2, h3, h4, h5, h6, p, span, label, small {
        color: #ffffff !important;
    }
    
    /* 表单元素 - 黑夜模式蓝色风格 */
    .form-control, .form-select, select, input, textarea, input[type="date"], input[type="datetime-local"], input[type="time"], input[type="text"], input[type="password"] {
        background: linear-gradient(135deg, #1e3a5f, #152a45) !important;
        border-color: rgba(100, 150, 200, 0.5) !important;
        color: #ffffff !important;
    }
    
    .form-control:focus, .form-select:focus, select:focus, input:focus, textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
        background: linear-gradient(135deg, #2c5282, #1e3a5f) !important;
        border-color: rgba(100, 150, 200, 0.8) !important;
        color: #ffffff !important;
        box-shadow: 0 0 0 0.2rem rgba(100, 150, 200, 0.25) !important;
    }
    
    .form-control::placeholder, input::placeholder, textarea::placeholder, input[type="text"]::placeholder, input[type="password"]::placeholder {
        color: #b0c4de !important;
    }
    
    .form-label {
        color: #ffffff !important;
    }
    
    /* 按钮 */
    .btn {
        border-color: rgba(100, 150, 200, 0.3) !important;
        color: #ffffff !important;
    }
    
    .btn-light, .btn-secondary {
        background: rgba(30, 58, 95, 0.5) !important;
        color: #ffffff !important;
    }
    
    .btn-light:hover, .btn-secondary:hover {
        background: rgba(30, 58, 95, 0.8) !important;
        color: #ffffff !important;
    }
    
    /* 文字颜色 */
    .text-muted {
        color: #b0c4de !important;
    }
    
    .text-dark {
        color: #ffffff !important;
    }
    
    /* 提示框 */
    .alert {
        background: rgba(30, 58, 95, 0.8) !important;
        border-color: rgba(100, 150, 200, 0.3) !important;
        color: #ffffff !important;
    }
    
    /* 表格 */
    .table {
        color: #ffffff !important;
    }
    
    .table thead th {
        background: rgba(30, 58, 95, 0.5) !important;
        border-color: rgba(100, 150, 200, 0.3) !important;
        color: #ffffff !important;
    }
    
    .table tbody td {
        border-color: rgba(100, 150, 200, 0.3) !important;
        color: #ffffff !important;
    }
    
    /* 统计卡片 */
    .stat-card {
        background: linear-gradient(135deg, #1e3a5f, #152a45) !important;
        color: #ffffff !important;
    }
    
    .stat-number, .stat-label {
        color: #ffffff !important;
    }
    
    /* 管理员统计信息 */
    .admin-stat-item, .detail-item {
        background: linear-gradient(135deg, #1e3a5f, #152a45) !important;
        border-color: rgba(100, 150, 200, 0.3) !important;
        color: #ffffff !important;
    }
    
    /* 选项卡 */
    option {
        background: #1e3a5f !important;
        color: #ffffff !important;
    }
    
    /* 徽章 */
    .badge {
        color: #ffffff !important;
    }
    
    /* 主页内容显示框 */
    .data-content {
        background: transparent !important;
        color: #ffffff !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .data-content span {
        color: #ffffff !important;
    }
    
    /* 保留高亮颜色 - 让内联样式的颜色生效 */
    .data-content span[style*="color"] {
        color: revert !important;
    }
    
    .data-content.empty {
        background: transparent !important;
        color: #888888 !important;
        box-shadow: none !important;
        border: none !important;
    }
}

/* 白天模式 - 完整样式定义 */
@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(135deg, #f5f7fa, #c3cfe2) !important;
        color: #2c3e50 !important;
    }
    
    /* 导航卡片 */
    .admin-nav {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    .nav-title {
        color: #2c3e50 !important;
    }
    
    .nav-btn {
        background: rgba(108, 117, 125, 0.1) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    .nav-btn:hover {
        background: rgba(108, 117, 125, 0.2) !important;
        color: #2c3e50 !important;
    }
    
    /* 卡片 */
    .card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    .card-header {
        background: linear-gradient(135deg, rgba(108, 117, 125, 0.9), rgba(108, 117, 125, 0.8)) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #ffffff !important;
    }
    
    .card-body {
        background: transparent !important;
        color: #2c3e50 !important;
    }
    
    .card-title, h1, h2, h3, h4, h5, h6, p, span, label, small {
        color: #2c3e50 !important;
    }
    
    .card-text {
        color: #2c3e50 !important;
    }
    
    /* 表单元素 */
    .form-control, .form-select, select, input, textarea, input[type="date"], input[type="datetime-local"], input[type="time"], input[type="text"], input[type="password"] {
        background: rgba(255, 255, 255, 0.95) !important;
        border-color: rgba(0, 0, 0, 0.2) !important;
        color: #000000 !important;
    }
    
    .form-control:focus, .form-select:focus, select:focus, input:focus, textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
        background: #ffffff !important;
        border-color: rgba(0, 0, 0, 0.3) !important;
        color: #000000 !important;
        box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1) !important;
    }
    
    .form-control::placeholder, input::placeholder, textarea::placeholder, input[type="text"]::placeholder, input[type="password"]::placeholder {
        color: #6c757d !important;
    }
    
    .form-label {
        color: #2c3e50 !important;
    }
    
    /* 按钮 */
    .btn {
        border-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    .btn-light, .btn-secondary {
        background: rgba(108, 117, 125, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    .btn-light:hover, .btn-secondary:hover {
        background: rgba(108, 117, 125, 0.2) !important;
        color: #2c3e50 !important;
    }
    
    /* 文字颜色 */
    .text-muted {
        color: #6c757d !important;
    }
    
    .text-dark {
        color: #2c3e50 !important;
    }
    
    /* 提示框 */
    .alert {
        background: rgba(255, 255, 255, 0.95) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    /* 表格 */
    .table {
        color: #2c3e50 !important;
    }
    
    .table thead th {
        background: rgba(108, 117, 125, 0.1) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    .table tbody td {
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    /* 统计卡片 */
    .stat-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
        color: #2c3e50 !important;
    }
    
    .stat-number, .stat-label {
        color: #2c3e50 !important;
    }
    
    /* 管理员统计信息 */
    .admin-stat-item, .detail-item {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    /* 选项卡 */
    option {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    /* 徽章 */
    .badge {
        color: #ffffff !important;
    }
    
    /* 主页内容显示框 */
    .data-content {
        background: transparent !important;
        color: #2c3e50 !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .data-content span {
        color: #2c3e50 !important;
    }
    
    /* 保留高亮颜色 - 让内联样式的颜色生效 */
    .data-content span[style*="color"] {
        color: revert !important;
    }
    
    .data-content.empty {
        background: transparent !important;
        color: #6c757d !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* 数据项卡片 */
    .data-item {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    .data-item h5, .data-title {
        color: #2c3e50 !important;
    }
    
    .update-time {
        color: #6c757d !important;
    }
    
    /* 服务器时间 */
    .server-time, .server-time-small {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    .server-time h3, .server-time h4, .server-time-small h4 {
        color: #2c3e50 !important;
    }
    
    .time-display, .time-display-small {
        color: #2c3e50 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* 刷新状态 */
    .refresh-status, .refresh-status-corner {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    .refresh-countdown {
        background: rgba(108, 117, 125, 0.2) !important;
        color: #2c3e50 !important;
    }
}

/* 全局样式重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 彻底移除所有下划线 */
*, *::before, *::after {
    text-decoration: none !important;
}

a, button, .btn, .nav-btn {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

a:hover, a:focus, a:active, a:visited,
button:hover, button:focus, button:active,
.btn:hover, .btn:focus, .btn:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

/* 柔和深色背景 - 护眼色调 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #ecf0f1;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 移动端简化背景 */
@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
        background-attachment: scroll;
    }
}

/* 容器和布局 */
.container {
    padding: 25px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

main {
    padding: 30px 0;
    min-height: calc(100vh - 120px);
}

/* 🕐 服务器时间 - 优化版本 */
.server-time {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-align: center;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    /* 移除黑色阴影 */
    position: relative;
}

/* 🕐 服务器时间 - 小尺寸版本 */
.server-time-small {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    text-align: center;
    padding: 18px;
    border-radius: 15px;
    margin-bottom: 20px;
    /* 移除黑色阴影 */
}

.server-time-small h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.time-display-small {
    font-size: 1.6rem;
    font-weight: 300;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .server-time-small {
        backdrop-filter: blur(5px);
        padding: 15px;
    }
    
    .time-display-small {
        font-size: 1.4rem;
    }
}

/* 实时刷新状态显示 - 简化版 */
.refresh-status {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.refresh-indicator {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.refresh-countdown {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
    font-size: 0.75rem;
}

/* 🕐 服务器时间 - 缩小版 */
.server-time-small {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 50px rgba(255, 255, 255, 0.2); }
}

.server-time::before, .server-time-small::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.server-time h3 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.server-time-small h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.time-display {
    font-size: 3rem;
    font-weight: 100;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    color: white;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    animation: timeGlow 2s ease-in-out infinite alternate;
}

.time-display-small {
    font-size: 1.8rem;
    font-weight: 100;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    color: white;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    animation: timeGlow 2s ease-in-out infinite alternate;
}

@keyframes timeGlow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3); }
    to { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 4px 20px rgba(0, 0, 0, 0.4); }
}

/* 🔄 实时刷新状态 */
.refresh-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    z-index: 1000;
    animation: refreshPulse 2s ease-in-out infinite;
}

@keyframes refreshPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.refresh-indicator {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.refresh-countdown {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

/* 🎮 数据展示卡片 - App风格设计 */
.data-section {
    margin-bottom: 35px;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.data-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* 移除黑色阴影，只保留内部高光 */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

@keyframes topGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.data-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.data-item:hover {
    transform: translateY(-8px) scale(1.02);
    /* 移除悬停时的黑色阴影 */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%);
}

.data-item:hover::after {
    opacity: 1;
}

.data-item h5 {
    color: white;
    margin: 0 0 18px 0;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    text-align: center;
}

/* 数据标题专用样式 - 确保居中，删除竖杠 */
.data-title {
    color: white !important;
    margin: 0 0 18px 0 !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    width: 100% !important;
}

/* 删除竖杠样式 */
.data-item h5::before {
    display: none !important; /* 隐藏竖杠 */
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 0.6; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.data-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    min-height: 80px; /* 桌面端固定最小高度 */
    border: none;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #2c3e50;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important; /* 强制文本居中 */
    display: flex !important; /* 强制flex布局 */
    align-items: center !important; /* 强制垂直居中 */
    justify-content: center !important; /* 强制水平居中 */
}

/* 支持多行显示的内容样式 */
.data-content-multiline {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.6;
    padding: 20px 24px;
    /* 移除 display: block，让它继承 data-content 的 flex 布局 */
    /* 或者如果需要block，也要保持居中 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: auto !important; /* 自适应高度 */
}

.data-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.data-item:hover .data-content::before {
    left: 100%;
}

.data-content.empty {
    color: #6c757d;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    animation: emptyPulse 4s ease-in-out infinite;
}

@keyframes emptyPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.update-time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    text-align: center;
    width: 100%;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .data-item {
        backdrop-filter: blur(15px);
        padding: 22px;
        transition: transform 0.3s ease;
    }
    
    .data-item:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    /* 强制移动端样式 - 使用更高优先级 */
    .data-item .data-content,
    .data-content {
        padding: 0 12px !important; /* 只保留左右padding，上下为0 */
        min-height: auto !important; /* 自适应高度 */
        font-size: 1rem !important; /* 移动端字体大小 */
        max-width: none !important; /* 移动端全宽 */
        text-align: center !important; /* 强制文本居中 */
        display: flex !important; /* 强制flex布局 */
        align-items: center !important; /* 强制垂直居中 */
        justify-content: center !important; /* 强制水平居中 */
        width: 100% !important; /* 确保全宽 */
        line-height: 1.8 !important; /* 增加行高，让文字有呼吸空间 */
    }
    
    /* 多行内容也要应用相同样式 */
    .data-item .data-content-multiline,
    .data-content-multiline {
        padding: 0 12px !important; /* 只保留左右padding，上下为0 */
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important; /* 确保全宽 */
        white-space: normal !important; /* 正常显示空格 */
        word-wrap: break-word !important;
        line-height: 1.8 !important; /* 增加行高 */
    }
}

/* 🎨 卡片样式 - App风格设计 */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: white;
    padding: 25px;
    border: none;
    font-weight: 500;
    font-size: 1.15rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0 !important; /* 顶部圆角 */
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%);
    animation: headerGlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.card-body {
    padding: 25px;
    position: relative;
}

/* 🚀 按钮样式 - App风格设计 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 25px; /* 椭圆形设计 */
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 54px;
    gap: 10px;
    flex: 1;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover::after {
    width: 200px;
    height: 200px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 25px rgba(255, 255, 255, 0.15);
    border-radius: 25px; /* 保持椭圆形 */
}

.btn:focus, .btn:active {
    outline: none;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    border-radius: 25px; /* 保持椭圆形 */
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
    border-radius: 25px; /* 保持椭圆形 */
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px; /* 椭圆形设计 */
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    color: white;
    border-radius: 25px; /* 保持椭圆形 */
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px; /* 椭圆形设计 */
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    color: white;
    border-radius: 25px; /* 保持椭圆形 */
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px; /* 椭圆形设计 */
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
    color: white;
    border-radius: 25px; /* 保持椭圆形 */
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: none;
    border-radius: 25px; /* 椭圆形设计 */
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border-radius: 25px; /* 保持椭圆形 */
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px; /* 椭圆形设计 */
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    color: white;
    border-radius: 25px; /* 保持椭圆形 */
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px; /* 椭圆形设计 */
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #566573 100%);
    color: white;
    border-radius: 25px; /* 保持椭圆形 */
}

.btn-outline-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: rgba(108, 117, 125, 0.9);
    border: 2px solid rgba(108, 117, 125, 0.5);
    border-radius: 25px; /* 椭圆形设计 */
}

.btn-outline-secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    color: rgba(108, 117, 125, 1);
    border-color: rgba(108, 117, 125, 0.8);
    border-radius: 25px; /* 保持椭圆形 */
}

.btn-sm {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: 44px;
    border-radius: 22px; /* 小按钮椭圆形 */
}

.btn-sm:hover {
    border-radius: 22px; /* 保持椭圆形 */
}

.btn-lg {
    padding: 18px 32px;
    font-size: 1.1rem;
    min-height: 58px;
    border-radius: 29px; /* 大按钮椭圆形 */
}

.btn-lg:hover {
    border-radius: 29px; /* 保持椭圆形 */
}

.w-100 {
    width: 100%;
}

/* 操作按钮区域 - App风格布局 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .card {
        backdrop-filter: blur(15px);
        margin-bottom: 25px;
    }
    
    .btn {
        backdrop-filter: blur(10px);
        transition: transform 0.3s ease;
        padding: 14px 24px;
        min-height: 50px;
        border-radius: 25px; /* 移动端椭圆形 */
    }
    
    .btn:hover {
        transform: translateY(-2px) scale(1.02);
        border-radius: 25px; /* 保持椭圆形 */
    }
    
    .btn-sm {
        border-radius: 22px; /* 小按钮椭圆形 */
    }
    
    .btn-sm:hover {
        border-radius: 22px; /* 保持椭圆形 */
    }
    
    .btn-lg {
        border-radius: 29px; /* 大按钮椭圆形 */
    }
    
    .btn-lg:hover {
        border-radius: 29px; /* 保持椭圆形 */
    }
    
    .card:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

/* 📝 表单样式 - 豪华设计 */
.form-control {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.5s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(30px);
    color: #2c3e50;
    box-shadow: 
        0 5px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.2),
        0 8px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: white;
    transform: translateY(-3px);
}

.form-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 400;
    color: white;
    font-size: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

/* ⚠️ 警告框 - 豪华设计 */
.alert {
    padding: 25px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: none;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 8px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 300;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.2) 0%, rgba(23, 162, 184, 0.1) 100%);
    color: #0c5460;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.alert-info::before {
    background: linear-gradient(180deg, rgba(23, 162, 184, 0.8), rgba(23, 162, 184, 0.4));
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.alert-warning::before {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.8), rgba(255, 193, 7, 0.4));
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.1) 100%);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-success::before {
    background: linear-gradient(180deg, rgba(40, 167, 69, 0.8), rgba(40, 167, 69, 0.4));
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.1) 100%);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-danger::before {
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.8), rgba(220, 53, 69, 0.4));
}

/* 🎛️ 管理后台导航条 - App风格设计 */
.admin-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px);
    color: white;
    padding: 25px 30px;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.admin-nav::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: navShimmer 6s linear infinite;
    pointer-events: none;
}

@keyframes navShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.admin-nav .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.admin-nav .nav-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.admin-nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-nav .nav-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px; /* 椭圆形设计 - 增加圆角 */
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    min-height: 44px; /* 确保足够的高度 */
    cursor: pointer;
}

.admin-nav .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.admin-nav .nav-btn:hover::before {
    left: 100%;
}

.admin-nav .nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    color: white;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-radius: 25px; /* 保持椭圆形 */
}

.admin-nav .nav-btn:focus,
.admin-nav .nav-btn:active {
    outline: none;
    text-decoration: none !important;
    border-radius: 25px; /* 保持椭圆形 */
}

.admin-nav .nav-btn.primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px; /* 椭圆形设计 */
}

.admin-nav .nav-btn.primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    color: white;
    border-radius: 25px; /* 保持椭圆形 */
}

/* 移动端优化 */
@media (max-width: 768px) {
    .admin-nav {
        backdrop-filter: blur(15px);
        padding: 20px 25px;
    }
    
    .admin-nav .nav-btn {
        backdrop-filter: blur(10px);
        padding: 10px 20px;
        border-radius: 22px; /* 移动端椭圆形 */
        min-height: 40px;
    }
    
    .admin-nav .nav-btn:hover {
        transform: translateY(-2px) scale(1.02);
        border-radius: 22px; /* 保持椭圆形 */
    }
}

/* 📱 响应式设计 */
@media (min-width: 576px) {
    .container {
        padding: 30px;
    }
    
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .data-item-full {
        grid-column: 1 / -1;
    }
    
    .action-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .action-buttons .btn:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    main {
        padding: 40px 0;
    }
    
    .server-time {
        padding: 40px;
        margin-bottom: 40px;
    }
    
    .server-time h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .time-display {
        font-size: 3.5rem;
    }
    
    .data-item {
        padding: 35px;
    }
    
    .data-content {
        padding: 30px;
        min-height: 90px;
        text-align: center !important; /* 强制文本居中 */
        display: flex !important; /* 强制flex布局 */
        align-items: center !important; /* 强制垂直居中 */
        justify-content: center !important; /* 强制水平居中 */
    }
    
    .card-header {
        padding: 35px;
    }
    
    .card-body {
        padding: 35px;
    }
    
    .action-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .action-buttons .btn:last-child {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    .server-time {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .server-time h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .time-display {
        font-size: 2.2rem;
    }
    
    .data-item {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .data-item h5 {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }
    
    .data-content {
        padding: 22px;
        min-height: auto !important; /* 自适应高度 */
        font-size: 0.95rem;
        text-align: center !important; /* 强制文本居中 */
        display: flex !important; /* 强制flex布局 */
        align-items: center !important; /* 强制垂直居中 */
        justify-content: center !important; /* 强制水平居中 */
    }
    
    .update-time {
        font-size: 0.85rem;
    }
    
    .card-header {
        padding: 25px;
    }
    
    .card-body {
        padding: 25px;
    }
    
    .btn {
        padding: 15px 22px;
        font-size: 0.95rem;
        min-height: 50px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .admin-nav {
        padding: 25px 30px;
        margin-bottom: 30px;
    }
    
    .admin-nav .nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .admin-nav .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .admin-nav .nav-btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
    
    .admin-nav .nav-title {
        font-size: 1.3rem;
    }
}

/* 🌟 页脚 - 豪华设计 */
footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(30px);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding: 30px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 300;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: footerGlow 4s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* 🛠️ 工具类 */
.text-center { text-align: center !important; }
.text-muted { color: rgba(255, 255, 255, 0.7) !important; }
.text-primary { color: #007bff !important; }
.text-success { color: #28a745 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #17a2b8 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
    filter: blur(1px);
}

/* 隐藏类 */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }

/* 🏷️ 徽章样式 */
.badge {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 300;
    font-size: 0.9em;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 5px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
}

/* 📜 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
}

/* ✨ 动画效果 - App风格 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* 移动端优化动画 */
@media (max-width: 768px) {
    .floating {
        animation-duration: 4s;
    }
    
    .fade-in-up, .slide-in-left, .slide-in-right {
        animation-duration: 0.5s;
    }
    
    @keyframes floating {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-4px); }
    }
}

/* 🔗 链接样式统一 - 彻底移除下划线 */
a, a:link, a:visited, a:hover, a:active, a:focus {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

button, .btn, .nav-btn {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

button:hover, button:focus, button:active,
.btn:hover, .btn:focus, .btn:active,
.nav-btn:hover, .nav-btn:focus, .nav-btn:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

/* 全局下划线移除 */
* {
    text-decoration: none !important;
}

*:hover, *:focus, *:active {
    text-decoration: none !important;
}

/* 🎯 特殊效果 - App风格 */
.glass-effect {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* 移除黑色阴影，只保留内部高光 */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.neon-glow {
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 255, 255, 0.1);
}

/* 移动端简化特效 */
@media (max-width: 768px) {
    .glass-effect {
        backdrop-filter: blur(15px);
        /* 移除移动端黑色阴影 */
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
    
    .neon-glow {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    }
}

/* 📝 表单样式 - App风格 */
.form-control {
    width: 100%;
    max-width: 400px; /* 限制最大宽度 */
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(15px);
    color: #2c3e50;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: white;
    transform: translateY(-2px) scale(1.02);
}

/* 特殊宽度的输入框 */
.form-control.short {
    max-width: 200px; /* 短输入框 */
}

.form-control.medium {
    max-width: 300px; /* 中等输入框 */
}

.form-control.full-width {
    max-width: none; /* 全宽输入框 */
}

/* 移动端输入框优化 */
@media (max-width: 768px) {
    .form-control {
        max-width: none; /* 移动端全宽 */
        padding: 14px 18px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .form-control.short {
        max-width: 150px;
    }
    
    .form-control.medium {
        max-width: 250px;
    }
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: white;
    font-size: 0.95rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

/* ⚠️ 警告框 - App风格 */
.alert {
    padding: 20px 25px;
    border-radius: 18px;
    margin-bottom: 25px;
    border: none;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    animation: alertPulse 3s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.alert-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(41, 128, 185, 0.1) 100%);
    color: #2c3e50;
    border: 1px solid rgba(52, 152, 219, 0.25);
}

.alert-info::before {
    background: linear-gradient(180deg, rgba(52, 152, 219, 0.6), rgba(41, 128, 185, 0.3));
}

.alert-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15) 0%, rgba(230, 126, 34, 0.1) 100%);
    color: #2c3e50;
    border: 1px solid rgba(243, 156, 18, 0.25);
}

.alert-warning::before {
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.6), rgba(230, 126, 34, 0.3));
}

.alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(34, 153, 84, 0.1) 100%);
    color: #2c3e50;
    border: 1px solid rgba(39, 174, 96, 0.25);
}

.alert-success::before {
    background: linear-gradient(180deg, rgba(39, 174, 96, 0.6), rgba(34, 153, 84, 0.3));
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15) 0%, rgba(192, 57, 43, 0.1) 100%);
    color: #2c3e50;
    border: 1px solid rgba(231, 76, 60, 0.25);
}

.alert-danger::before {
    background: linear-gradient(180deg, rgba(231, 76, 60, 0.6), rgba(192, 57, 43, 0.3));
}
/* 右下角刷新状态样式 */
.refresh-status-corner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 120px;
}

.refresh-status-corner:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.refresh-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.refresh-indicator {
    animation: spin 2s linear infinite;
}

.refresh-countdown {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .refresh-status-corner {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .refresh-content {
        gap: 6px;
    }
}

/* 白天模式修复 - 全面确保在所有背景下都能看清内容 */
@media (prefers-color-scheme: light) {
    /* 基础背景和文字 */
    body {
        background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%) !important;
        color: #2c3e50 !important;
    }
    
    /* 玻璃效果元素 */
    .glass-effect {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #2c3e50 !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    /* 卡片样式 */
    .card {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #2c3e50 !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .card-header {
        background: rgba(108, 117, 125, 0.9) !important;
        color: white !important;
    }
    
    .card-body {
        color: #2c3e50 !important;
    }
    
    /* 数据内容 */
    .data-content {
        color: #2c3e50 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .data-content.empty {
        color: #6c757d !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .update-time {
        color: #6c757d !important;
    }
    
    /* 数据项标题 */
    .data-item h5 {
        color: #2c3e50 !important;
        text-shadow: none !important;
    }
    
    /* 服务器时间 */
    .server-time-small {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #2c3e50 !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .server-time-small h4 {
        color: #495057 !important;
        text-shadow: none !important;
    }
    
    .time-display-small {
        color: #495057 !important;
        text-shadow: none !important;
    }
    
    /* 刷新状态 */
    .refresh-status-corner {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #2c3e50 !important;
        border: 1px solid rgba(0, 0, 0, 0.2) !important;
    }
    
    .refresh-countdown {
        background: rgba(108, 117, 125, 0.2) !important;
        color: #495057 !important;
    }
    
    /* 管理后台导航 */
    .admin-nav {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #2c3e50 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .nav-title {
        color: #2c3e50 !important;
        text-shadow: none !important;
    }
    
    .nav-btn {
        background: rgba(108, 117, 125, 0.1) !important;
        color: #495057 !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .nav-btn:hover {
        background: rgba(108, 117, 125, 0.2) !important;
        color: #2c3e50 !important;
    }
    
    .nav-btn.primary {
        background: linear-gradient(135deg, #3498db, #2980b9) !important;
        color: white !important;
    }
    
    /* 按钮样式 */
    .btn {
        color: white !important;
        text-shadow: none !important;
    }
    
    .btn-success {
        background: linear-gradient(135deg, #27ae60, #229954) !important;
        color: white !important;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #3498db, #2980b9) !important;
        color: white !important;
    }
    
    .btn-info {
        background: linear-gradient(135deg, #17a2b8, #138496) !important;
        color: white !important;
    }
    
    .btn-warning {
        background: linear-gradient(135deg, #f39c12, #e67e22) !important;
        color: white !important;
    }
    
    .btn-danger {
        background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
        color: white !important;
    }
    
    .btn-secondary {
        background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
        color: white !important;
    }
    
    .btn-outline-secondary {
        background: rgba(108, 117, 125, 0.1) !important;
        color: #6c757d !important;
        border: 1px solid #6c757d !important;
    }
    
    /* 表单元素 */
    .form-control {
        background: rgba(255, 255, 255, 0.9) !important;
        color: #495057 !important;
        border: 1px solid rgba(0, 0, 0, 0.2) !important;
    }
    
    .form-label {
        color: #495057 !important;
    }
    
    .form-text {
        color: #6c757d !important;
    }
    
    /* 警告框 */
    .alert {
        color: #2c3e50 !important;
    }
    
    .alert-success {
        background: rgba(212, 237, 218, 0.9) !important;
        color: #155724 !important;
        border: 1px solid #c3e6cb !important;
    }
    
    .alert-danger {
        background: rgba(248, 215, 218, 0.9) !important;
        color: #721c24 !important;
        border: 1px solid #f5c6cb !important;
    }
    
    .alert-warning {
        background: rgba(255, 243, 205, 0.9) !important;
        color: #856404 !important;
        border: 1px solid #ffeaa7 !important;
    }
    
    .alert-info {
        background: rgba(209, 236, 241, 0.9) !important;
        color: #0c5460 !important;
        border: 1px solid #b8daff !important;
    }
    
    /* 模态框 */
    .modal-content {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #2c3e50 !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .modal-header {
        background: rgba(108, 117, 125, 0.9) !important;
        color: white !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .modal-title {
        color: white !important;
    }
    
    .modal-body {
        color: #2c3e50 !important;
    }
    
    /* 表格 */
    .table {
        color: #2c3e50 !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    .table th,
    .table td {
        color: #2c3e50 !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    .table-striped > tbody > tr:nth-of-type(odd) > td {
        background: rgba(248, 249, 250, 0.5) !important;
    }
    
    /* 徽章 */
    .badge {
        color: white !important;
    }
    
    /* 链接 */
    a {
        color: #007bff !important;
    }
    
    a:hover {
        color: #0056b3 !important;
    }
    
    /* 页脚 */
    footer {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #6c757d !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    /* 动作按钮区域 */
    .action-buttons {
        background: transparent !important;
    }
    
    /* 特殊文本 */
    .text-muted {
        color: #6c757d !important;
    }
    
    .text-center {
        color: inherit !important;
    }
    
    /* 列表 */
    ul, ol, li {
        color: #2c3e50 !important;
    }
    
    /* 强调文本 */
    strong, b {
        color: #2c3e50 !important;
    }
    
    /* 小文本 */
    small {
        color: #6c757d !important;
    }
}

/* 强制白天模式样式 - 当系统检测不到时的备用方案 */
.light-mode {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%) !important;
    color: #2c3e50 !important;
}

.light-mode .glass-effect {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .card {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .card-header {
    background: rgba(108, 117, 125, 0.9) !important;
    color: white !important;
}

.light-mode .card-body {
    color: #2c3e50 !important;
}

.light-mode .data-content {
    color: #2c3e50 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.light-mode .data-content.empty {
    color: #6c757d !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.light-mode .update-time {
    color: #6c757d !important;
}

.light-mode .data-item h5 {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

.light-mode .server-time-small {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .server-time-small h4 {
    color: #495057 !important;
    text-shadow: none !important;
}

.light-mode .time-display-small {
    color: #495057 !important;
    text-shadow: none !important;
}

.light-mode .refresh-status-corner {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.light-mode .refresh-countdown {
    background: rgba(108, 117, 125, 0.2) !important;
    color: #495057 !important;
}

.light-mode .admin-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .nav-title {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

.light-mode .nav-btn {
    background: rgba(108, 117, 125, 0.1) !important;
    color: #495057 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .nav-btn:hover {
    background: rgba(108, 117, 125, 0.2) !important;
    color: #2c3e50 !important;
}

.light-mode .nav-btn.primary {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
}

.light-mode .btn-success {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
    color: white !important;
}

.light-mode .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
}

.light-mode .btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white !important;
}

.light-mode .btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white !important;
}

.light-mode .btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
}

.light-mode .btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    color: white !important;
}

.light-mode .form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #495057 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.light-mode .form-label {
    color: #495057 !important;
}

.light-mode .form-text {
    color: #6c757d !important;
}

.light-mode .alert {
    color: #2c3e50 !important;
}

.light-mode .modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .modal-header {
    background: rgba(108, 117, 125, 0.9) !important;
    color: white !important;
}

.light-mode .modal-body {
    color: #2c3e50 !important;
}

.light-mode .table {
    color: #2c3e50 !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

.light-mode .table th,
.light-mode .table td {
    color: #2c3e50 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode footer {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #6c757d !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode a {
    color: #007bff !important;
}

.light-mode a:hover {
    color: #0056b3 !important;
}

.light-mode .text-muted {
    color: #6c757d !important;
}

.light-mode ul,
.light-mode ol,
.light-mode li {
    color: #2c3e50 !important;
}

.light-mode strong,
.light-mode b {
    color: #2c3e50 !important;
}

.light-mode small {
    color: #6c757d !important;
}

/* API帮助页面代码块的白天模式样式 */
@media (prefers-color-scheme: light) {
    .code-container {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .code-block {
        background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%) !important;
        color: #495057 !important;
        border: 1px solid rgba(0, 0, 0, 0.2) !important;
    }
    
    .code-block.success {
        background: linear-gradient(135deg, rgba(212, 237, 218, 0.9) 0%, rgba(195, 230, 203, 0.9) 100%) !important;
        color: #155724 !important;
        border-color: rgba(40, 167, 69, 0.3) !important;
    }
    
    .code-block.error {
        background: linear-gradient(135deg, rgba(248, 215, 218, 0.9) 0%, rgba(245, 198, 203, 0.9) 100%) !important;
        color: #721c24 !important;
        border-color: rgba(220, 53, 69, 0.3) !important;
    }
    
    .copy-btn {
        background: linear-gradient(135deg, rgba(108, 117, 125, 0.8) 0%, rgba(73, 80, 87, 0.9) 100%) !important;
        color: white !important;
        border: 1px solid rgba(108, 117, 125, 0.5) !important;
    }
    
    .copy-btn:hover {
        background: linear-gradient(135deg, rgba(73, 80, 87, 0.9) 0%, rgba(52, 58, 64, 0.95) 100%) !important;
    }
}

.light-mode .code-container {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .code-block {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%) !important;
    color: #495057 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.light-mode .code-block.success {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.9) 0%, rgba(195, 230, 203, 0.9) 100%) !important;
    color: #155724 !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
}

.light-mode .code-block.error {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.9) 0%, rgba(245, 198, 203, 0.9) 100%) !important;
    color: #721c24 !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.light-mode .copy-btn {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.8) 0%, rgba(73, 80, 87, 0.9) 100%) !important;
    color: white !important;
    border: 1px solid rgba(108, 117, 125, 0.5) !important;
}

.light-mode .copy-btn:hover {
    background: linear-gradient(135deg, rgba(73, 80, 87, 0.9) 0%, rgba(52, 58, 64, 0.95) 100%) !important;
}

/* 🔥 手机端专用优化样式 - 喵提醒管理界面 */
@media (max-width: 768px) {
    /* 移动端友好的卡片头部 */
    .mobile-friendly-header {
        padding: 20px !important;
        text-align: center !important;
    }
    
    .mobile-friendly-header h5 {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }
    
    /* 移动端友好的卡片内容 */
    .mobile-friendly-body {
        padding: 20px !important;
    }
    
    /* 移动端输入组 */
    .mobile-input-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .mobile-input {
        width: 100% !important;
        padding: 14px 18px !important;
        font-size: 16px !important; /* 防止iOS缩放 */
        border-radius: 12px !important;
    }
    
    .mobile-btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        min-height: 48px !important; /* 触摸友好 */
    }
    
    /* 移动端表单网格 */
    .mobile-form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .mobile-form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* 移动端帮助文本 */
    .mobile-help-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-top: 8px !important;
        padding: 8px 12px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    /* 移动端列表 */
    .mobile-list {
        max-height: 400px !important;
        overflow-y: auto !important;
    }
    
    /* 移动端列表项 */
    .mobile-item {
        padding: 16px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    /* 移动端项目头部 */
    .mobile-header {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    /* 移动端详情 */
    .mobile-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        padding-top: 12px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    /* 移动端删除按钮 */
    .mobile-delete-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        min-height: 44px !important;
    }
    
    /* 移动端空状态 */
    .mobile-empty {
        padding: 30px 20px !important;
        text-align: center !important;
    }
    
    .mobile-empty .empty-icon {
        font-size: 2.5rem !important;
        margin-bottom: 12px !important;
    }
    
    .mobile-empty p {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .mobile-empty small {
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        line-height: 1.4 !important;
    }
    
    /* 关键词项目移动端优化 */
    .keyword-item.mobile-item {
        background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
        border: 1px solid #ffeaa7 !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 16px !important;
    }
    
    .keyword-item.mobile-item .keyword-text {
        font-weight: 600 !important;
        color: #856404 !important;
        font-size: 16px !important;
    }
    
    /* 关键词删除按钮 - 手机端加大 */
    .keyword-item.mobile-item .mobile-delete-btn,
    .keyword-item .mobile-delete-btn {
        width: 44px !important;
        height: 32px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 0 !important;
        margin-left: 8px !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
        border: none !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        touch-action: manipulation !important; /* 防止双击缩放 */
    }
    
    /* 桌面端关键词删除按钮保持小尺寸 */
    @media (min-width: 769px) {
        .keyword-item .mobile-delete-btn {
            width: 32px !important;
            height: 20px !important;
            min-width: 32px !important;
            max-width: 32px !important;
            min-height: 20px !important;
            max-height: 20px !important;
            font-size: 10px !important;
        }
    }
    
    /* 🔥 手机端添加新喵码界面优化 - 修复重叠问题 */
    @media (max-width: 768px) {
        .add-miao-code-container {
            display: flex !important;
            flex-direction: column !important;
            gap: 12px !important;
        }
        
        .add-miao-code-container .row {
            margin: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 12px !important;
        }
        
        .add-miao-code-container .row > div {
            padding: 0 !important;
            width: 100% !important;
            max-width: none !important;
        }
        
        .add-miao-btn {
            margin-top: 8px !important;
            margin-bottom: 12px !important;
        }
        
        .add-miao-help {
            margin-top: 8px !important;
            padding: 8px 12px !important;
            background: rgba(255, 255, 255, 0.1) !important;
            border-radius: 8px !important;
            display: block !important;
            line-height: 1.4 !important;
        }
    }
    
    /* 🔥 全面的移动端管理界面优化 */
    
    /* 管理后台导航移动端优化 */
    .admin-nav {
        padding: 15px 20px !important;
        margin-bottom: 20px !important;
    }
    
    .admin-nav .nav-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .admin-nav .nav-title {
        font-size: 1.2rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .admin-nav .nav-actions {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    .admin-nav .nav-btn {
        flex: 1 !important;
        min-width: 120px !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        text-align: center !important;
        border-radius: 20px !important;
    }
    
    /* 卡片移动端优化 */
    .card {
        margin-bottom: 20px !important;
        border-radius: 16px !important;
    }
    
    .card-header {
        padding: 16px 20px !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    .card-body {
        padding: 20px !important;
    }
    
    /* 表单元素移动端优化 */
    .form-control, .form-select, select.form-control {
        padding: 14px 16px !important;
        font-size: 16px !important; /* 防止iOS缩放 */
        border-radius: 12px !important;
        min-height: 48px !important; /* 触摸友好 */
    }
    
    .form-label {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    /* 按钮移动端优化 */
    .btn {
        padding: 12px 20px !important;
        font-size: 16px !important;
        border-radius: 20px !important;
        min-height: 48px !important;
        touch-action: manipulation !important; /* 防止双击缩放 */
    }
    
    .btn-sm {
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 40px !important;
        border-radius: 18px !important;
    }
    
    .btn-lg {
        padding: 16px 24px !important;
        font-size: 18px !important;
        min-height: 52px !important;
        border-radius: 24px !important;
    }
    
    /* 模态框移动端优化 */
    .modal-content, .modern-modal .modal-content {
        width: 95% !important;
        max-width: none !important;
        margin: 10px !important;
        border-radius: 16px !important;
    }
    
    .modal-header {
        padding: 16px 20px !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    .modal-body {
        padding: 20px !important;
    }
    
    .modal-footer {
        padding: 16px 20px !important;
        border-radius: 0 0 16px 16px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .modal-footer .btn {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* 搜索容器移动端优化 */
    .search-container {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .search-container .form-control {
        width: 100% !important;
    }
    
    .search-container .btn {
        width: 100% !important;
    }
    
    /* 网格布局移动端优化 */
    .row.g-3 > * {
        margin-bottom: 15px !important;
    }
    
    .col-md-4, .col-md-6, .col-md-8, .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 统计卡片移动端优化 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .stat-card, .stat-card-small {
        padding: 12px 10px !important;
        min-height: 80px !important;
        border-radius: 12px !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
    
    /* 密钥管理移动端优化 */
    .key-item {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    
    .key-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .key-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .key-details {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* 日志界面移动端优化 */
    .log-entry {
        padding: 16px !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .log-timestamp {
        font-size: 0.8rem !important;
    }
    
    .log-message {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .log-details {
        font-size: 0.8rem !important;
        padding: 12px !important;
        border-radius: 8px !important;
    }
    
    /* 内容优化界面移动端优化 */
    .topic-tabs {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .topic-tab {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
    }
    
    .rule-input-group {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .rule-arrow {
        display: none !important;
    }
    
    .rule-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    
    .rule-mapping {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .rule-from, .rule-to {
        width: 100% !important;
        text-align: center !important;
        padding: 8px 12px !important;
    }
    
    .test-section {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .test-input-group {
        gap: 12px !important;
    }
    
    .test-textarea {
        min-height: 100px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }
    
    /* 警告框移动端优化 */
    .alert {
        padding: 16px 20px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
    }
    
    /* 徽章移动端优化 */
    .badge {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 12px !important;
    }
    
    /* 列表组移动端优化 */
    .list-group-item {
        padding: 16px !important;
        border-radius: 12px !important;
        margin-bottom: 8px !important;
    }
    
    /* 进度条移动端优化 */
    .progress {
        height: 8px !important;
        border-radius: 8px !important;
    }
    
    /* 导航标签移动端优化 */
    .nav-tabs .nav-link {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .nav-pills .nav-link {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 16px !important;
    }
    
    /* 分页移动端优化 */
    .page-link {
        padding: 10px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        margin: 0 2px !important;
    }
    
    /* 输入组移动端优化 */
    .input-group {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .input-group .form-control,
    .input-group .btn {
        width: 100% !important;
        border-radius: 12px !important;
    }
    
    /* 表格移动端优化 */
    .table-responsive {
        border-radius: 12px !important;
    }
    
    .table th,
    .table td {
        padding: 12px 8px !important;
        font-size: 14px !important;
    }
    
    /* 工具提示移动端优化 */
    .tooltip {
        font-size: 12px !important;
    }
    
    /* 下拉菜单移动端优化 */
    .dropdown-menu {
        border-radius: 12px !important;
        padding: 8px !important;
    }
    
    .dropdown-item {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
    
    /* 手风琴移动端优化 */
    .accordion-button {
        padding: 16px 20px !important;
        font-size: 16px !important;
    }
    
    .accordion-body {
        padding: 20px !important;
    }
    
    /* 轮播图移动端优化 */
    .carousel-control-prev,
    .carousel-control-next {
        width: 48px !important;
    }
    
    .carousel-indicators button {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
    }
    
    /* 面包屑移动端优化 */
    .breadcrumb {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
    }
    
    /* 标签页移动端优化 */
    .tab-content {
        padding: 20px !important;
    }
    
    /* 侧边栏移动端优化 */
    .sidebar {
        width: 100% !important;
        position: relative !important;
        transform: none !important;
    }
    
    /* 固定定位元素移动端优化 */
    .fixed-top, .fixed-bottom {
        position: relative !important;
    }
    
    /* 粘性定位元素移动端优化 */
    .sticky-top {
        position: relative !important;
    }
    
    /* 文本截断移动端优化 */
    .text-truncate {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    /* 显示/隐藏类移动端优化 */
    .d-md-block {
        display: block !important;
    }
    
    .d-md-none {
        display: none !important;
    }
    
    /* 间距类移动端优化 */
    .mb-md-0 {
        margin-bottom: 0 !important;
    }
    
    .mt-md-0 {
        margin-top: 0 !important;
    }
    
    .px-md-0 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .py-md-0 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* 🔥 统一控件样式 - 解决手机端高度宽度不统一问题 */
    
    /* 统一输入框样式 */
    .unified-input {
        height: 48px !important;
        min-height: 48px !important;
        padding: 12px 16px !important;
        font-size: 16px !important; /* 防止iOS缩放 */
        border-radius: 12px !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%) !important;
        color: #2c3e50 !important;
        box-sizing: border-box !important;
        touch-action: manipulation !important;
    }
    
    /* 专门针对select元素的统一样式 */
    select.unified-input {
        height: 48px !important;
        min-height: 48px !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%) !important;
        color: #2c3e50 !important;
        box-sizing: border-box !important;
        touch-action: manipulation !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 16px !important;
        padding-right: 40px !important;
    }
    
    .unified-input:focus {
        outline: none !important;
        border-color: rgba(102, 126, 234, 0.8) !important;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2) !important;
    }
    
    /* 黑夜模式 - 统一输入框 */
    @media (prefers-color-scheme: dark) {
        .unified-input {
            background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(35, 35, 35, 0.8) 100%) !important;
            color: #ffffff !important;
            border-color: rgba(255, 255, 255, 0.2) !important;
        }
        
        select.unified-input {
            background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(35, 35, 35, 0.8) 100%) !important;
            color: #ffffff !important;
            border-color: rgba(255, 255, 255, 0.2) !important;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
            background-repeat: no-repeat !important;
            background-position: right 12px center !important;
            background-size: 16px !important;
            padding-right: 40px !important;
        }
        
        .unified-input:focus {
            border-color: rgba(102, 126, 234, 1) !important;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3) !important;
        }
        
        select.unified-input:focus {
            border-color: rgba(102, 126, 234, 1) !important;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3) !important;
            outline: none !important;
        }
    }
    
    /* 统一按钮样式 */
    .unified-btn {
        height: 48px !important;
        min-height: 48px !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        border: none !important;
        font-weight: 500 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .unified-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* 统一统计卡片样式 */
    .unified-stat-card {
        min-height: 120px !important;
        max-height: 120px !important;
        padding: 16px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 16px !important;
        gap: 8px !important;
    }
    
    .unified-stat-card .stat-number {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        margin: 0 !important;
    }
    
    .unified-stat-card .stat-label {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        opacity: 0.9 !important;
    }
    
    /* 管理员搜索容器样式 */
    .admin-search-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .admin-search-buttons {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .search-action-btn {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* 搜索容器移动端优化 */
    .search-container {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .search-container .form-control {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .search-container .btn {
        width: 100% !important;
        min-width: auto !important;
        min-height: 48px !important;
    }
}

/* 🔥 超小屏幕优化 (480px以下) */
@media (max-width: 480px) {
    /* 容器优化 */
    .container {
        padding: 15px !important;
    }
    
    /* 管理后台导航超小屏优化 */
    .admin-nav {
        padding: 12px 15px !important;
        margin-bottom: 15px !important;
    }
    
    /* 统一控件超小屏优化 */
    .unified-input {
        height: 44px !important;
        min-height: 44px !important;
        padding: 10px 14px !important;
        font-size: 16px !important;
    }
    
    /* 超小屏幕select元素优化 */
    select.unified-input {
        height: 44px !important;
        min-height: 44px !important;
        padding: 10px 14px !important;
        font-size: 16px !important;
        padding-right: 36px !important;
        background-size: 14px !important;
        background-position: right 10px center !important;
    }
    
    .unified-btn {
        height: 44px !important;
        min-height: 44px !important;
        padding: 10px 16px !important;
        font-size: 15px !important;
    }
    
    .unified-stat-card {
        min-height: 100px !important;
        max-height: 100px !important;
        padding: 12px 8px !important;
    }
    
    .unified-stat-card .stat-number {
        font-size: 1.5rem !important;
    }
    
    .unified-stat-card .stat-label {
        font-size: 0.8rem !important;
    }
}
    }
    
    .admin-nav .nav-title {
        font-size: 1.1rem !important;
    }
    
    .admin-nav .nav-btn {
        padding: 10px 12px !important;
        font-size: 13px !important;
        min-width: 100px !important;
    }
    
    /* 卡片超小屏优化 */
    .card-header {
        padding: 12px 16px !important;
    }
    
    .card-body {
        padding: 16px !important;
    }
    
    /* 表单元素超小屏优化 */
    .form-control, .form-select {
        padding: 12px 14px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    
    .form-label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    
    /* 按钮超小屏优化 */
    .btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    
    .btn-sm {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: 36px !important;
    }
    
    /* 模态框超小屏优化 */
    .modal-content, .modern-modal .modal-content {
        width: 98% !important;
        margin: 5px !important;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 12px 16px !important;
    }
    
    /* 统计卡片超小屏优化 */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .stat-card, .stat-card-small {
        padding: 10px 8px !important;
        min-height: 70px !important;
    }
    
    .stat-number {
        font-size: 1.3rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
    }
    
    /* 密钥管理超小屏优化 */
    .key-item {
        padding: 12px !important;
    }
    
    .key-text {
        font-size: 0.9rem !important;
        padding: 6px 10px !important;
    }
    
    .key-actions .btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    /* 日志界面超小屏优化 */
    .log-entry {
        padding: 12px !important;
    }
    
    .log-timestamp {
        font-size: 0.75rem !important;
    }
    
    .log-message {
        font-size: 0.85rem !important;
    }
    
    .log-details {
        font-size: 0.75rem !important;
        padding: 10px !important;
    }
    
    /* 内容优化界面超小屏优化 */
    .topic-tab {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    .rule-item {
        padding: 12px !important;
    }
    
    .rule-from, .rule-to {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }
    
    .test-textarea {
        min-height: 80px !important;
        font-size: 14px !important;
    }
    
    /* 警告框超小屏优化 */
    .alert {
        padding: 12px 16px !important;
    }
    
    /* 徽章超小屏优化 */
    .badge {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }
    
    /* 关键词删除按钮超小屏优化 */
    .keyword-item .mobile-delete-btn {
        width: 28px !important;
        height: 18px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        min-height: 18px !important;
        max-height: 18px !important;
        font-size: 8px !important;
    }
    
    /* 搜索容器超小屏优化 */
    .search-container {
        gap: 8px !important;
    }
    
    /* 空状态超小屏优化 */
    .empty-state {
        padding: 20px 15px !important;
    }
    
    .empty-state i {
        font-size: 2.5rem !important;
    }
    
    .empty-state h4 {
        font-size: 1.2rem !important;
    }
    
    .empty-state p {
        font-size: 0.9rem !important;
    }
}
    
    /* 喵码项目移动端优化 */
    .miao-code-item.mobile-item {
        background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important;
        border: 1px solid #bbdefb !important;
    }
    
    .miao-code-item.mobile-item.expired {
        background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
        border-color: #ffcdd2 !important;
        opacity: 0.8 !important;
    }
    
    .miao-code-item.mobile-item.active {
        background: linear-gradient(135deg, #e8f5e8, #c8e6c9) !important;
        border-color: #c8e6c9 !important;
    }
    
    .code-text {
        font-family: 'Courier New', monospace !important;
        font-weight: bold !important;
        font-size: 16px !important;
        color: #1976d2 !important;
        word-break: break-all !important;
    }
    
    .code-remark {
        font-size: 14px !important;
        color: #666 !important;
        font-style: italic !important;
        margin-top: 4px !important;
    }
    
    .code-status {
        align-self: flex-start !important;
    }
    
    .detail-item {
        display: flex !important;
        flex-direction: column !important;
        font-size: 13px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
    }
    
    .detail-label {
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 500 !important;
        margin-bottom: 2px !important;
    }
    
    .detail-value {
        color: #333 !important;
        font-family: 'Courier New', monospace !important;
        font-size: 12px !important;
    }
    
    /* 统计信息移动端优化 */
    .stat-box {
        padding: 16px !important;
        margin-bottom: 15px !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem !important;
    }
    
    /* 测试功能移动端优化 */
    .card .row {
        margin: 0 !important;
    }
    
    .card .row > [class*="col-"] {
        padding: 0 !important;
        margin-bottom: 15px !important;
    }
    
    .card .row > [class*="col-"]:last-child {
        margin-bottom: 0 !important;
    }
    
    /* 功能设置移动端优化 */
    .form-check {
        margin-bottom: 15px !important;
    }
    
    .form-check-label {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
    
    /* 按钮组移动端优化 */
    .btn-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .btn-group .btn {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* 喵提醒管理界面特殊优化 */
    .keyword-item,
    .miao-code-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .code-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .code-details {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .detail-actions {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* 🎯 数据标题居中优化 - 确保在所有设备上都居中显示 */
.data-title {
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* 白天模式下的数据标题 */
@media (prefers-color-scheme: light) {
    .data-title {
        color: #2c3e50 !important;
        text-shadow: none !important;
    }
}

.light-mode .data-title {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

/* 🔧 管理后台导航移动端优化 */
@media (max-width: 768px) {
    .admin-nav .nav-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .admin-nav .nav-title {
        font-size: 1.2rem !important;
        text-align: center !important;
    }
    
    .admin-nav .nav-actions {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .admin-nav .nav-btn {
        min-width: 120px !important;
        text-align: center !important;
    }
}
/* 🎛️ 管理后台主页手机端优化 */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px; /* 圆角设计 */
    /* 移除黑色阴影，只保留内部高光，统一边框粗细 */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* 移除顶部强调效果 */
.dashboard-card::before {
    display: none;
}

@keyframes topGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    /* 移除悬停时的黑色阴影，只保留内部高光 */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-radius: 24px; /* 保持圆角 */
}

.dashboard-card h5 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.dashboard-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.debug-info {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    min-height: 16px;
}

.admin-manager-card {
    background: linear-gradient(135deg, #3d2626, #2d1f1f) !important;
    border: 3px solid #f44336 !important;
    border-radius: 24px !important;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5), 0 0 40px rgba(244, 67, 54, 0.3) !important;
}

.admin-manager-card:hover {
    border: 3px solid #f44336 !important;
    border-radius: 24px !important;
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.7), 0 0 60px rgba(244, 67, 54, 0.4) !important;
}

/* 电脑端强制显示 */
@media (min-width: 769px) {
    .dashboard-card.admin-manager-card {
        border: 3px solid #f44336 !important;
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.5), 0 0 40px rgba(244, 67, 54, 0.3) !important;
    }
    
    .dashboard-card.admin-manager-card:hover {
        border: 3px solid #f44336 !important;
        box-shadow: 0 0 30px rgba(244, 67, 54, 0.7), 0 0 60px rgba(244, 67, 54, 0.4) !important;
    }
}

.admin-badge {
    margin-top: 8px;
}

/* 手机端管理后台优化 */
@media (max-width: 768px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-top: 20px !important;
    }
    
    .dashboard-card {
        backdrop-filter: blur(15px);
        padding: 20px 15px !important;
        margin-bottom: 0 !important;
        border-radius: 20px !important; /* 移动端圆角 */
        transition: transform 0.3s ease;
    }
    
    .dashboard-card:hover {
        transform: translateY(-4px) scale(1.01);
        border-radius: 20px !important; /* 保持圆角 */
    }
    
    .dashboard-card h5 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    
    .dashboard-card .text-muted {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }
    
    .dashboard-card .btn {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        min-height: 44px !important;
    }
    
    .debug-info {
        font-size: 11px !important;
        margin-top: 8px !important;
    }
    
    .admin-badge {
        margin-top: 6px !important;
    }
    
    .admin-badge small {
        font-size: 12px !important;
    }
    
    /* 数据管理弹窗手机端优化 */
    #dataManagerContainer {
        width: 95% !important;
        margin: 10px !important;
        max-height: calc(100vh - 20px) !important;
    }
    
    #dataManagerContainer > div:first-child {
        padding: 15px !important;
    }
    
    #dataManagerContainer > div:first-child h3 {
        font-size: 1.3rem !important;
    }
    
    #dataManagerContainer > div:last-child {
        padding: 20px 15px !important;
    }
    
    #dataManagerContainer select,
    #dataManagerContainer textarea {
        font-size: 16px !important; /* 防止iOS缩放 */
    }
    
    #dataManagerContainer textarea {
        height: 100px !important;
    }
    
    #dataManagerContainer .alert {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    #dataManagerContainer button {
        padding: 12px 16px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        margin-bottom: 8px !important;
    }
    
    #dataManagerContainer > div:last-child > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .dashboard-card {
        padding: 15px 12px !important;
        border-radius: 18px !important; /* 超小屏幕圆角 */
    }
    
    .dashboard-card:hover {
        border-radius: 18px !important; /* 保持圆角 */
    }
    
    .dashboard-card h5 {
        font-size: 1rem !important;
    }
    
    .dashboard-card .text-muted {
        font-size: 0.8rem !important;
    }
    
    .dashboard-card .btn {
        font-size: 14px !important;
        padding: 10px 16px !important;
    }
}
/* 🎨 现代化管理界面样式 - 统一API文档风格 */

/* 现代化卡片头部 */
.modern-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 20px 25px !important;
    border-radius: 15px 15px 0 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    animation: headerGlow 3s ease-in-out infinite;
}

.modern-header h4,
.modern-header h5 {
    color: white !important;
    margin: 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
}

/* 特定头部颜色 */
.upload-key-header {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.8) 0%, rgba(30, 126, 52, 0.9) 100%) !important;
}

.access-key-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8) 0%, rgba(0, 86, 179, 0.9) 100%) !important;
}

.stats-header {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.8) 0%, rgba(84, 91, 98, 0.9) 100%) !important;
}

/* 现代化按钮 */
.modern-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.modern-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    color: white !important;
}

.modern-btn-sm {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
}

/* 上传密钥显示 */
.upload-key-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.key-value-display {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 86, 179, 0.3) 100%);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 123, 255, 0.3);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.key-description {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 8px;
    display: block;
    font-size: 0.9rem;
}

/* 现代化密钥项目 */
.modern-key-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    backdrop-filter: blur(15px) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
}

@media (prefers-color-scheme: dark) {
    .modern-key-item {
        background: linear-gradient(135deg, #1e3a5f, #152a45) !important;
        border: 1px solid rgba(100, 150, 200, 0.3) !important;
    }
    
    .modern-key-item.active {
        background: linear-gradient(135deg, #1e3a5f, #152a45) !important;
        border-left: 4px solid #28a745 !important;
    }
    
    .modern-key-item.expired {
        background: linear-gradient(135deg, #1e3a5f, #152a45) !important;
        border-left: 4px solid #dc3545 !important;
    }
}

/* 密钥主信息区域 */
.key-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 密钥第一行：密钥值 + 状态徽章 */
.key-first-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 密钥第二行：备注 + 剩余时间 */
.key-second-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.9rem;
}

/* 内联备注样式 */
.key-remark-inline {
    color: #666;
    font-style: italic;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 0.85rem;
}

@media (prefers-color-scheme: dark) {
    .key-remark-inline {
        color: #ffffff;
    }
}

/* 状态徽章样式 */
.key-status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    white-space: nowrap;
}

.key-status-badge.active {
    background: #28a745;
    color: white;
    border: none;
}

.key-status-badge.expired {
    background: #dc3545;
    color: white;
    border: none;
}

/* 剩余时间样式 */
.key-remaining-time {
    color: #28a745;
    font-weight: 600;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 0.85rem;
}

@media (prefers-color-scheme: dark) {
    .key-remaining-time {
        color: #ffd700;
    }
}

/* 密钥操作按钮区域 */
.key-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.key-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.modern-key-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.modern-key-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
}

.modern-key-item.active::before {
    background: linear-gradient(180deg, rgba(40, 167, 69, 0.8), rgba(30, 126, 52, 0.6));
}

.modern-key-item.expired::before {
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.8), rgba(200, 35, 51, 0.6));
}

.modern-key-item .key-text {
    background: transparent !important;
    color: #007bff !important;
    border: none !important;
    text-shadow: none !important;
    padding: 0 !important;
    font-family: 'Courier New', monospace !important;
    font-weight: bold !important;
}

@media (prefers-color-scheme: dark) {
    .modern-key-item .key-text {
        color: #ffffff !important;
    }
}

.modern-key-item .key-status.active {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(30, 126, 52, 0.3) 100%) !important;
    color: white !important;
    border: 1px solid rgba(40, 167, 69, 0.3) !important;
}

.modern-key-item .key-status.expired {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(200, 35, 51, 0.3) 100%) !important;
    color: white !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.modern-key-item .detail-label {
    color: rgba(255, 255, 255, 0.8) !important;
}

.modern-key-item .detail-value {
    color: white !important;
    font-weight: 600 !important;
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 15px 15px 0 0;
    animation: statGlow 4s ease-in-out infinite;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.upload-stat {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.15) 100%);
}

.upload-stat::before {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.6));
}

.total-stat {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(30, 126, 52, 0.15) 100%);
}

.total-stat::before {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.8), rgba(30, 126, 52, 0.6));
}

.active-stat {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(224, 168, 0, 0.15) 100%);
}

.active-stat::before {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.8), rgba(224, 168, 0, 0.6));
}

.expired-stat {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(200, 35, 51, 0.15) 100%);
}

.expired-stat::before {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.8), rgba(200, 35, 51, 0.6));
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 现代化模态框 */
.modern-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
}

.modern-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 400px;
    max-width: 90vw;
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.modern-modal .modal-header {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.8) 0%, rgba(84, 91, 98, 0.9) 100%);
    color: white;
    padding: 20px 25px;
    border: none;
}

.modern-modal .modal-body {
    padding: 25px;
}

.modern-modal .form-group {
    margin-bottom: 20px;
}

.modern-modal .form-label {
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.modern-select {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 12px 15px !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
}

.modern-select option {
    background: #2c3e50;
    color: white;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.empty-state h5 {
    color: white;
    margin-bottom: 10px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes statGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 手机端优化 */
@media (max-width: 768px) {
    .modern-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .upload-key-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* 手机端密钥列表布局 */
    .key-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .key-main-info {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .key-second-line {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .key-remark-inline {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .key-remaining-time {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    .key-actions {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }
    
    .key-value-display {
        font-size: 1.1rem;
        word-break: break-all;
    }
    
    .modern-key-item .key-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* 移动端密钥信息布局优化 */
    .key-main-info {
        width: 100%;
    }
    
    .key-first-line {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    
    .key-second-line {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .key-text {
        font-size: 1rem !important;
        word-break: break-all;
    }
    
    .modern-key-item .key-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .modern-modal .modal-content {
        min-width: 90vw;
        margin: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions .modern-btn {
        width: 100%;
    }
}

/* 🚀 API文档专用样式 */

/* 现代化头部样式 */
.modern-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    color: white !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.modern-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    animation: headerGlow 3s ease-in-out infinite;
}

.upload-header::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(40, 167, 69, 0.8) 50%, 
        transparent 100%);
}

.access-header::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(23, 162, 184, 0.8) 50%, 
        transparent 100%);
}

.demo-header::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 193, 7, 0.8) 50%, 
        transparent 100%);
}

.error-header::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 53, 69, 0.8) 50%, 
        transparent 100%);
}

.guide-header::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(108, 117, 125, 0.8) 50%, 
        transparent 100%);
}

.contact-header::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 16, 242, 0.8) 50%, 
        transparent 100%);
}

/* 现代化警告框 */
.modern-alert {
    border-radius: 16px !important;
    border: none !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.modern-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(23, 162, 184, 0.8), 
        rgba(23, 162, 184, 0.4));
    animation: alertPulse 2s ease-in-out infinite;
}

/* 现代化表格 */
.modern-table {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.modern-table th,
.modern-table td {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 12px 16px !important;
}

.modern-table thead th {
    background: rgba(255, 255, 255, 0.1) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
}

/* API示例容器 */
.api-example {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.api-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 123, 255, 0.6) 0%, 
        rgba(102, 16, 242, 0.6) 50%, 
        rgba(220, 53, 69, 0.6) 100%);
    animation: rainbowGlow 4s linear infinite;
}

@keyframes rainbowGlow {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.api-example h6 {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-example h6::before {
    content: '▶';
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* 代码容器增强样式 */
.code-container {
    position: relative;
    margin: 15px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-block {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
    color: #00ff88;
    padding: 25px;
    margin: 0;
    border-radius: 16px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    border: none;
    backdrop-filter: blur(10px);
    position: relative;
    overflow-x: auto;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.code-block.large {
    padding: 30px;
    font-size: 0.85rem;
}

.code-block.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(30, 126, 52, 0.3) 100%);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
    text-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.code-block.error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(200, 35, 51, 0.3) 100%);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
}

/* 复制按钮增强样式 */
.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    z-index: 10;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.copy-btn:active {
    transform: translateY(0) scale(1.02);
}

/* 演示区域样式 */
.demo-section {
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    margin: 20px 0;
}

.data-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.data-preview:hover {
    transform: translateY(-3px);
    /* 移除黑色阴影 */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.data-preview h6 {
    color: white;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-preview .data-content {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 15px;
    border-radius: 10px;
    min-height: 50px;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.update-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-top: 8px;
    font-style: italic;
}

/* 现代化按钮样式 */
.modern-btn {
    padding: 14px 28px !important;
    border-radius: 25px !important; /* 椭圆形设计 */
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    border-radius: 25px !important; /* 保持椭圆形 */
}

.modern-btn:active {
    transform: translateY(-1px) scale(1.02) !important;
    border-radius: 25px !important; /* 保持椭圆形 */
}

.modern-btn-sm {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    border-radius: 22px !important; /* 小按钮椭圆形 */
}

.modern-btn-sm:hover {
    border-radius: 22px !important; /* 保持椭圆形 */
}

/* 支持项目样式 */
.support-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.support-item h6 {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .api-example {
        padding: 15px;
        margin: 20px 0;
    }
    
    .code-block {
        padding: 20px;
        font-size: 0.85rem;
    }
    
    .copy-btn {
        position: static;
        display: block;
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
    
    .demo-section {
        padding: 20px;
    }
    
    .data-preview {
        padding: 15px;
    }
    
    .modern-btn {
        width: 100% !important;
        margin-bottom: 10px !important;
        border-radius: 25px !important; /* 移动端椭圆形 */
    }
    
    .modern-btn:hover {
        border-radius: 25px !important; /* 保持椭圆形 */
    }
    
    .modern-btn-sm {
        border-radius: 22px !important; /* 小按钮椭圆形 */
    }
    
    .modern-btn-sm:hover {
        border-radius: 22px !important; /* 保持椭圆形 */
    }
    
    .support-item {
        padding: 15px;
    }
    
    .modern-table {
        font-size: 0.85rem;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 8px 12px !important;
    }
}

/* 白天模式适配 */
@media (prefers-color-scheme: light) {
    .modern-header {
        background: #3498db !important;
        color: white !important;
        backdrop-filter: none !important;
    }
    
    .api-example {
        background: rgba(248, 249, 250, 0.9) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .api-example h6 {
        color: #495057 !important;
    }
    
    .demo-section {
        background: rgba(248, 249, 250, 0.9) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .data-preview {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .data-preview h6 {
        color: #495057 !important;
    }
    
    .support-item {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .support-item h6 {
        color: #495057 !important;
    }
    
    .update-time {
        color: #6c757d !important;
    }
}

.light-mode .modern-header {
    background: #3498db !important;
    color: white !important;
    backdrop-filter: none !important;
}

.light-mode .api-example {
    background: rgba(248, 249, 250, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .api-example h6 {
    color: #495057 !important;
}

.light-mode .demo-section {
    background: rgba(248, 249, 250, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .data-preview {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .data-preview h6 {
    color: #495057 !important;
}

.light-mode .support-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .support-item h6 {
    color: #495057 !important;
}

.light-mode .update-time {
    color: #6c757d !important;
}
/* 白天模式 - 管理后台卡片样式 */
@media (prefers-color-scheme: light) {
    .dashboard-card {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #2c3e50 !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 24px !important;
    }
    
    .dashboard-card:hover {
        background: rgba(255, 255, 255, 1) !important;
        border-radius: 24px !important;
    }
    
    .dashboard-card h5 {
        color: #2c3e50 !important;
        text-shadow: none !important;
    }
    
    .dashboard-card .text-muted {
        color: #6c757d !important;
        text-shadow: none !important;
    }
    
    .admin-manager-card {
        background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
        border: 3px solid #f44336 !important;
        border-radius: 24px !important;
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.4), 0 0 40px rgba(244, 67, 54, 0.2) !important;
    }
    
    .admin-manager-card:hover {
        border: 3px solid #f44336 !important;
        border-radius: 24px !important;
        box-shadow: 0 0 30px rgba(244, 67, 54, 0.6), 0 0 60px rgba(244, 67, 54, 0.3) !important;
    }
    
    /* 电脑端白天模式强制显示 */
    @media (min-width: 769px) {
        .dashboard-card.admin-manager-card {
            border: 3px solid #f44336 !important;
            box-shadow: 0 0 20px rgba(244, 67, 54, 0.4), 0 0 40px rgba(244, 67, 54, 0.2) !important;
        }
        
        .dashboard-card.admin-manager-card:hover {
            border: 3px solid #f44336 !important;
            box-shadow: 0 0 30px rgba(244, 67, 54, 0.6), 0 0 60px rgba(244, 67, 54, 0.3) !important;
        }
    }
}

.light-mode .dashboard-card {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 24px !important;
}

.light-mode .dashboard-card:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-radius: 24px !important;
}

.light-mode .dashboard-card h5 {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

.light-mode .dashboard-card .text-muted {
    color: #6c757d !important;
    text-shadow: none !important;
}

.light-mode .admin-manager-card {
    background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
    border: 3px solid #f44336 !important;
    border-radius: 24px !important;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.4), 0 0 40px rgba(244, 67, 54, 0.2) !important;
}

.light-mode .admin-manager-card:hover {
    border: 3px solid #f44336 !important;
    border-radius: 24px !important;
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.6), 0 0 60px rgba(244, 67, 54, 0.3) !important;
}

/* 电脑端light-mode强制显示 */
@media (min-width: 769px) {
    .light-mode .dashboard-card.admin-manager-card {
        border: 3px solid #f44336 !important;
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.4), 0 0 40px rgba(244, 67, 54, 0.2) !important;
    }
    
    .light-mode .dashboard-card.admin-manager-card:hover {
        border: 3px solid #f44336 !important;
        box-shadow: 0 0 30px rgba(244, 67, 54, 0.6), 0 0 60px rgba(244, 67, 54, 0.3) !important;
    }
}

.light-mode .admin-manager-card:hover {
    border-radius: 24px !important;
}
/* 时间选择框特殊样式 */
select[name="expire_days"], select[name="duration"] {
    max-width: 180px; /* 时间选择框固定宽度 */
}

/* 移动端时间选择框优化 */
@media (max-width: 768px) {
    select[name="expire_days"], select[name="duration"] {
        max-width: 140px; /* 移动端更小的宽度 */
        font-size: 14px; /* 更小的字体 */
        padding: 12px 16px; /* 更小的内边距 */
    }
    
    /* 喵码添加表单移动端优化 */
    .mobile-form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .mobile-form-row .form-control,
    .mobile-form-row select {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* API密钥生成表单移动端优化 */
    .modal-body .row {
        margin: 0 !important;
    }
    
    .modal-body .col-md-6 {
        padding: 0 !important;
        margin-bottom: 15px !important;
    }
}

/* 超小屏幕时间选择框 */
@media (max-width: 480px) {
    select[name="expire_days"], select[name="duration"] {
        max-width: 120px;
        font-size: 13px;
        padding: 10px 14px;
    }
}
/* 下拉选择框样式优化 */
.form-select, select.form-control {
    max-width: 300px; /* 限制下拉框宽度 */
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(15px);
    color: #2c3e50;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-select:focus, select.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: white;
    transform: translateY(-2px) scale(1.02);
}

/* 移动端下拉框优化 */
@media (max-width: 768px) {
    .form-select, select.form-control {
        max-width: none; /* 移动端全宽 */
        padding: 14px 18px;
        font-size: 16px; /* 防止iOS缩放 */
    }
}
/* 文本域样式优化 */
textarea.form-control {
    max-width: 600px; /* 文本域适中宽度 */
    min-height: 120px;
    resize: vertical; /* 只允许垂直调整大小 */
}

/* 移动端文本域优化 */
@media (max-width: 768px) {
    textarea.form-control {
        max-width: none; /* 移动端全宽 */
        min-height: 100px;
    }
}
/* 输入组样式优化 */
.input-group {
    max-width: 500px; /* 限制输入组宽度 */
}

.input-group .form-control {
    max-width: none; /* 输入组内的控件不限制宽度 */
}

/* 移动端输入组优化 */
@media (max-width: 768px) {
    .input-group {
        max-width: none; /* 移动端全宽 */
        flex-direction: column; /* 移动端垂直排列 */
        gap: 10px;
    }
    
    .input-group .btn {
        width: 100%; /* 移动端按钮全宽 */
    }
}
/* 白天模式表单样式优化 */
@media (prefers-color-scheme: light) {
    .data-content {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #2c3e50 !important;
        font-size: 1.05rem !important;
        max-width: 600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .data-content.empty {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .form-control, .form-select, select.form-control {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #495057 !important;
        border: 1px solid rgba(0, 0, 0, 0.2) !important;
    }
    
    textarea.form-control {
        max-width: 600px !important;
    }
}

.light-mode .data-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #2c3e50 !important;
    font-size: 1.05rem !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.light-mode .form-control, 
.light-mode .form-select, 
.light-mode select.form-control {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #495057 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.light-mode textarea.form-control {
    max-width: 600px !important;
}
/* 🔥 统计卡片现代化样式 - 缩小版本 */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px !important; /* 更小的圆角 */
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    padding: 15px 12px !important; /* 更小的内边距 */
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 90px !important; /* 更小的高度 */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    cursor: pointer !important;
}

@keyframes statGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02) !important; /* 更小的悬停效果 */
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
    border-radius: 16px !important;
}

.stat-card i {
    font-size: 1.8rem !important; /* 更小的图标 */
    margin-bottom: 8px !important;
    opacity: 0.9 !important;
    transition: all 0.3s ease !important;
}

.stat-card:hover i {
    transform: scale(1.05) !important; /* 更小的缩放 */
    opacity: 1 !important;
}

.stat-card h6 {
    color: white !important;
    margin: 6px 0 8px 0 !important; /* 更小的间距 */
    font-size: 0.85rem !important; /* 更小的字体 */
    font-weight: 600 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.3px !important;
}

.stat-card .badge {
    font-size: 0.9rem !important; /* 更小的徽章 */
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 移动端统计卡片优化 */
@media (max-width: 768px) {
    .stat-card {
        min-height: 80px !important; /* 移动端更小 */
        padding: 12px 10px !important;
        border-radius: 14px !important;
    }
    
    .stat-card:hover {
        transform: translateY(-2px) scale(1.01) !important;
        border-radius: 14px !important;
    }
    
    .stat-card i {
        font-size: 1.6rem !important;
    }
    
    .stat-card h6 {
        font-size: 0.8rem !important;
        margin: 4px 0 6px 0 !important;
    }
    
    .stat-card .badge {
        font-size: 0.8rem !important;
        padding: 4px 8px !important;
    }
}

/* 超小屏幕统计卡片 */
@media (max-width: 480px) {
    .stat-card {
        min-height: 70px !important;
        padding: 10px 8px !important;
        border-radius: 12px !important;
    }
    
    .stat-card:hover {
        border-radius: 12px !important;
    }
    
    .stat-card i {
        font-size: 1.4rem !important;
    }
    
    .stat-card h6 {
        font-size: 0.75rem !important;
        margin: 3px 0 5px 0 !important;
    }
}
/* 🔥 通用模态框现代化样式 */
.modal-content, .simple-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important; /* 现代化圆角 */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    color: #2c3e50 !important;
}

.modal-header, .simple-modal-header {
    border-radius: 24px 24px 0 0 !important; /* 顶部圆角 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.modal-footer, .simple-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 0 24px 24px !important; /* 底部圆角 */
}

/* 白天模式模态框 */
@media (prefers-color-scheme: light) {
    .modal-content, .simple-modal-content {
        background: rgba(255, 255, 255, 0.98) !important;
        color: #2c3e50 !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 24px !important;
    }
    
    .modal-header, .simple-modal-header {
        border-radius: 24px 24px 0 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .modal-footer, .simple-modal-footer {
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 0 0 24px 24px !important;
    }
}

.light-mode .modal-content, 
.light-mode .simple-modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 24px !important;
}

.light-mode .modal-header, 
.light-mode .simple-modal-header {
    border-radius: 24px 24px 0 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .modal-footer, 
.light-mode .simple-modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 0 24px 24px !important;
}
/* 🔥 特殊背景色的卡片头部圆角修复 */
.card-header[style*="background"] {
    border-radius: 24px 24px 0 0 !important;
}

.card-header.bg-info,
.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-warning,
.card-header.bg-danger,
.card-header.bg-secondary {
    border-radius: 24px 24px 0 0 !important;
}

/* 移动端卡片头部圆角 */
@media (max-width: 768px) {
    .card-header,
    .card-header[style*="background"],
    .card-header.bg-info,
    .card-header.bg-primary,
    .card-header.bg-success,
    .card-header.bg-warning,
    .card-header.bg-danger,
    .card-header.bg-secondary {
        border-radius: 20px 20px 0 0 !important;
    }
}

/* 超小屏幕卡片头部圆角 */
@media (max-width: 480px) {
    .card-header,
    .card-header[style*="background"],
    .card-header.bg-info,
    .card-header.bg-primary,
    .card-header.bg-success,
    .card-header.bg-warning,
    .card-header.bg-danger,
    .card-header.bg-secondary {
        border-radius: 18px 18px 0 0 !important;
    }
}
/* 白天模式统计卡片样式 */
@media (prefers-color-scheme: light) {
    .stat-card {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #2c3e50 !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 20px !important;
    }
    
    .stat-card:hover {
        background: rgba(255, 255, 255, 1) !important;
        border-radius: 20px !important;
    }
    
    .stat-card h6 {
        color: #2c3e50 !important;
        text-shadow: none !important;
    }
}

.light-mode .stat-card {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
}

.light-mode .stat-card:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-radius: 20px !important;
}

.light-mode .stat-card h6 {
    color: #2c3e50 !important;
    text-shadow: none !important;
}
/* 🔥 全局圆角修复 - 确保所有元素都是现代化圆角 */

/* 修复任何遗漏的border rounded类 */
.border.rounded,
.rounded {
    border-radius: 20px !important;
}

/* 修复表格圆角 */
.table {
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* 修复徽章圆角 */
.badge {
    border-radius: 15px !important;
}

/* 修复进度条圆角 */
.progress {
    border-radius: 15px !important;
}

.progress-bar {
    border-radius: 15px !important;
}

/* 修复导航标签圆角 */
.nav-tabs .nav-link {
    border-radius: 15px 15px 0 0 !important;
}

.nav-pills .nav-link {
    border-radius: 20px !important;
}

/* 修复分页圆角 */
.page-link {
    border-radius: 12px !important;
    margin: 0 2px !important;
}

/* 修复列表组圆角 */
.list-group {
    border-radius: 16px !important;
}

.list-group-item:first-child {
    border-radius: 16px 16px 0 0 !important;
}

.list-group-item:last-child {
    border-radius: 0 0 16px 16px !important;
}

/* 修复输入组圆角 */
.input-group .form-control:first-child {
    border-radius: 16px 0 0 16px !important;
}

.input-group .form-control:last-child {
    border-radius: 0 16px 16px 0 !important;
}

.input-group .btn:first-child {
    border-radius: 16px 0 0 16px !important;
}

.input-group .btn:last-child {
    border-radius: 0 16px 16px 0 !important;
}

/* 移动端圆角调整 */
@media (max-width: 768px) {
    .border.rounded,
    .rounded {
        border-radius: 16px !important;
    }
    
    .table {
        border-radius: 12px !important;
    }
    
    .nav-tabs .nav-link {
        border-radius: 12px 12px 0 0 !important;
    }
    
    .nav-pills .nav-link {
        border-radius: 16px !important;
    }
    
    .list-group {
        border-radius: 12px !important;
    }
    
    .list-group-item:first-child {
        border-radius: 12px 12px 0 0 !important;
    }
    
    .list-group-item:last-child {
        border-radius: 0 0 12px 12px !important;
    }
}
/* 日志界面表单元素大小统一 */
.form-select, select.form-control, input[type="date"].form-control {
    height: 54px !important; /* 统一高度 */
    padding: 16px 20px !important; /* 统一内边距 */
    font-size: 1rem !important; /* 统一字体大小 */
    line-height: 1.5 !important;
}

/* 移动端表单元素大小统一 */
@media (max-width: 768px) {
    .form-select, select.form-control, input[type="date"].form-control {
        height: 50px !important;
        padding: 14px 18px !important;
        font-size: 16px !important; /* 防止iOS缩放 */
    }
}

/* 日期输入框特殊样式 */
input[type="date"].form-control {
    max-width: 200px; /* 日期输入框固定宽度 */
}

/* 移动端日期输入框优化 */
@media (max-width: 768px) {
    input[type="date"].form-control {
        max-width: 160px; /* 移动端更小的宽度 */
    }
    
    /* 日志界面移动端优化 */
    .col-md-4 {
        margin-bottom: 15px;
    }
    
    .row.g-3 {
        gap: 10px;
    }
}

/* 超小屏幕日期输入框 */
@media (max-width: 480px) {
    input[type="date"].form-control {
        max-width: 140px;
    }
    
    .form-select, select.form-control, input[type="date"].form-control {
        height: 46px !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* 📊 日志统计小卡片样式 */
.stat-card-small {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* 统一高度 */
    height: 100px;
    min-height: 100px;
    max-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.stat-card-small:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.12) 100%);
}

.stat-card-small i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.stat-number {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 28px;
    display: inline-block;
    text-align: center;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .stat-card-small {
        padding: 10px;
        min-height: 75px;
        gap: 4px;
    }
    
    .stat-card-small i {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
    
    .stat-number {
        font-size: 0.75rem;
        padding: 2px 5px;
        min-width: 24px;
    }
}

/* 📤 上传内容显示样式 */
.upload-content {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 8px 0;
    position: relative;
    overflow: hidden;
}

.upload-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(40, 167, 69, 0.8), rgba(40, 167, 69, 0.4));
    border-radius: 12px 0 0 12px;
}

.upload-content strong {
    color: #155724;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* 🐱 喵提醒内容显示样式 */
.miao-content {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(233, 30, 99, 0.05) 100%);
    border: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 8px 0;
    position: relative;
    overflow: hidden;
}

.miao-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(233, 30, 99, 0.8), rgba(233, 30, 99, 0.4));
    border-radius: 12px 0 0 12px;
}

.miao-content strong {
    color: #ad1457;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* 📝 内容预览样式 */
.content-preview {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #495057;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 120px;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* 移动端内容显示优化 */
@media (max-width: 768px) {
    .upload-content,
    .miao-content {
        padding: 10px 12px;
        margin: 6px 0;
    }
    
    .upload-content strong,
    .miao-content strong {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .content-preview {
        padding: 8px 10px;
        font-size: 0.8rem;
        max-height: 100px;
    }
}

/* 🎨 现代化头部样式 */
.modern-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 24px 24px 0 0 !important;
    position: relative;
    overflow: hidden;
}

.modern-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: headerGlow 3s ease-in-out infinite;
}

/* 📊 日志条目现代化样式增强 */
.log-entry {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    /* 移除黑色阴影 */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.log-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #007bff;
    transition: all 0.3s ease;
    border-radius: 16px 0 0 16px;
}

.log-entry.status-success::before {
    background: linear-gradient(180deg, #28a745, #20c997);
}

.log-entry.status-warning::before {
    background: linear-gradient(180deg, #ffc107, #fd7e14);
}

.log-entry.status-error::before {
    background: linear-gradient(180deg, #dc3545, #c82333);
}

.log-entry:hover {
    transform: translateX(3px);
    /* 移除黑色阴影 */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
}

.log-timestamp {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.log-message {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.log-details {
    font-size: 0.8rem;
    color: #6c757d;
    background: rgba(248, 249, 250, 0.8);
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.5;
}

/* 🚫 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    color: #adb5bd;
}

.empty-state h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #495057;
    font-weight: 300;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 0;
    color: #6c757d;
    line-height: 1.5;
}

/* 移动端日志界面优化 */
@media (max-width: 768px) {
    .log-entry {
        padding: 14px;
        margin-bottom: 10px;
        border-radius: 12px;
    }
    
    .log-entry:hover {
        transform: translateX(2px);
    }
    
    .log-timestamp {
        font-size: 0.8rem;
    }
    
    .log-message {
        font-size: 0.9rem;
    }
    
    .log-details {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .empty-state h4 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
}

/* 白天模式适配 - 日志界面 */
@media (prefers-color-scheme: light) {
    .stat-card-small {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    .stat-label {
        color: #495057 !important;
        text-shadow: none !important;
    }
    
    .upload-content {
        background: rgba(212, 237, 218, 0.8) !important;
        border-color: rgba(40, 167, 69, 0.3) !important;
    }
    
    .upload-content strong {
        color: #155724 !important;
    }
    
    .miao-content {
        background: rgba(248, 215, 218, 0.8) !important;
        border-color: rgba(233, 30, 99, 0.3) !important;
    }
    
    .miao-content strong {
        color: #ad1457 !important;
    }
    
    .content-preview {
        background: rgba(255, 255, 255, 0.9) !important;
        color: #495057 !important;
        border-color: rgba(0, 0, 0, 0.15) !important;
    }
    
    .log-entry {
        background: #ffffff !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #2c3e50 !important;
    }
    
    .log-timestamp {
        color: #6c757d !important;
    }
    
    .log-message {
        color: #495057 !important;
    }
    
    .log-details {
        background: rgba(248, 249, 250, 0.9) !important;
        color: #6c757d !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    .empty-state {
        color: #6c757d !important;
    }
    
    .empty-state i {
        color: #adb5bd !important;
    }
    
    .empty-state h4 {
        color: #495057 !important;
    }
    
    .empty-state p {
        color: #6c757d !important;
    }
}

.light-mode .stat-card-small {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #2c3e50 !important;
}

.light-mode .stat-label {
    color: #495057 !important;
    text-shadow: none !important;
}

.light-mode .upload-content {
    background: rgba(212, 237, 218, 0.8) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
}

.light-mode .upload-content strong {
    color: #155724 !important;
}

.light-mode .miao-content {
    background: rgba(248, 215, 218, 0.8) !important;
    border-color: rgba(233, 30, 99, 0.3) !important;
}

.light-mode .miao-content strong {
    color: #ad1457 !important;
}

.light-mode .content-preview {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #495057 !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.light-mode .log-entry {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #2c3e50 !important;
}

.light-mode .log-timestamp {
    color: #6c757d !important;
}

.light-mode .log-message {
    color: #495057 !important;
}

.light-mode .log-details {
    background: rgba(248, 249, 250, 0.9) !important;
    color: #6c757d !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .empty-state {
    color: #6c757d !important;
}

.light-mode .empty-state i {
    color: #adb5bd !important;
}

.light-mode .empty-state h4 {
    color: #495057 !important;
}

.light-mode .empty-state p {
    color: #6c757d !important;
}
/* 🌞 浅色模式下的喵提醒界面修复 */
@media (prefers-color-scheme: light) {
    .detail-label {
        color: #495057 !important;
    }
    
    .detail-value {
        color: #2c3e50 !important;
    }
    
    .keyword-item.mobile-item .keyword-text {
        color: #856404 !important;
    }
    
    .miao-code-item .detail-label {
        color: #495057 !important;
    }
    
    .miao-code-item .detail-value {
        color: #2c3e50 !important;
    }
}

.light-mode .detail-label {
    color: #495057 !important;
}

.light-mode .detail-value {
    color: #2c3e50 !important;
}

.light-mode .keyword-item.mobile-item .keyword-text {
    color: #856404 !important;
}

.light-mode .miao-code-item .detail-label {
    color: #495057 !important;
}

.light-mode .miao-code-item .detail-value {
    color: #2c3e50 !important;
}
/* 🌞 测试上传页面浅色模式修复 */
@media (prefers-color-scheme: light) {
    .btn-outline-primary {
        color: #007bff !important;
        border-color: #007bff !important;
    }
    
    .btn-outline-primary:hover {
        background-color: #007bff !important;
        color: white !important;
    }
    
    .btn-outline-success {
        color: #28a745 !important;
        border-color: #28a745 !important;
    }
    
    .btn-outline-success:hover {
        background-color: #28a745 !important;
        color: white !important;
    }
    
    .btn-outline-info {
        color: #17a2b8 !important;
        border-color: #17a2b8 !important;
    }
    
    .btn-outline-info:hover {
        background-color: #17a2b8 !important;
        color: white !important;
    }
    
    .btn-outline-secondary {
        color: #6c757d !important;
        border-color: #6c757d !important;
    }
    
    .btn-outline-secondary:hover {
        background-color: #6c757d !important;
        color: white !important;
    }
}

.light-mode .btn-outline-primary {
    color: #007bff !important;
    border-color: #007bff !important;
}

.light-mode .btn-outline-primary:hover {
    background-color: #007bff !important;
    color: white !important;
}

.light-mode .btn-outline-success {
    color: #28a745 !important;
    border-color: #28a745 !important;
}

.light-mode .btn-outline-success:hover {
    background-color: #28a745 !important;
    color: white !important;
}

.light-mode .btn-outline-info {
    color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

.light-mode .btn-outline-info:hover {
    background-color: #17a2b8 !important;
    color: white !important;
}

.light-mode .btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.light-mode .btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: white !important;
}
/* 🔑 密钥管理界面增强样式 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-search {
    flex: 1;
    padding-right: 45px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(15px);
}

.modern-search:focus {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(108, 117, 125, 0.1);
}

/* 手机端搜索容器修复 - 专门针对密钥管理界面 */
@media (max-width: 768px) {
    /* 密钥管理界面特定修复 */
    .card-body .search-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        position: static !important;
    }
    
    .card-body .modern-search {
        padding-right: 16px !important; /* 移除右侧padding */
        width: 100% !important;
        position: static !important;
    }
    
    .card-body .search-btn {
        position: static !important; /* 取消绝对定位 */
        right: auto !important;
        width: 100% !important;
        min-height: 48px !important;
        background: linear-gradient(135deg, #6c757d, #5a6268) !important;
        color: white !important;
        border-radius: 12px !important;
        padding: 12px 20px !important;
        font-weight: 500 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .card-body .search-btn:hover {
        background: linear-gradient(135deg, #5a6268, #495057) !important;
        transform: translateY(-2px) !important;
    }
    
    /* 确保通用搜索容器样式也生效 */
    .search-container {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .search-container .form-control {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .search-container .btn {
        width: 100% !important;
        min-width: auto !important;
        min-height: 48px !important;
    }
}

.key-remark {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 4px;
}

.upload-key-display .key-action {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modern-input {
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(15px);
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.modern-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
    outline: none;
    background: white;
}

/* 浅色模式适配 */
@media (prefers-color-scheme: light) {
    .modern-search {
        background: rgba(255, 255, 255, 0.95) !important;
        border-color: rgba(0, 0, 0, 0.2) !important;
        color: #495057 !important;
    }
    
    .modern-search:focus {
        border-color: #007bff !important;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
    }
    
    .key-remark {
        color: #6c757d !important;
    }
    
    .modern-input {
        background: rgba(255, 255, 255, 0.95) !important;
        border-color: rgba(0, 0, 0, 0.2) !important;
        color: #495057 !important;
    }
    
    .modern-input:focus {
        border-color: #007bff !important;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
        background: white !important;
    }
}

.light-mode .modern-search {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #495057 !important;
}

.light-mode .modern-search:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
}

.light-mode .key-remark {
    color: #6c757d !important;
}

.light-mode .modern-input {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #495057 !important;
}

.light-mode .modern-input:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
    background: white !important;
}

/* 🔥 额外移动端优化样式 - 完善所有界面的手机端访问体验 */
@media (max-width: 768px) {
    /* 移动端友好的卡片 */
    .mobile-friendly-card {
        margin-bottom: 20px !important;
        border-radius: 16px !important;
    }
    
    /* 移动端表格优化 */
    .table-responsive {
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    
    .table {
        margin-bottom: 0 !important;
        font-size: 14px !important;
    }
    
    .table td {
        padding: 8px 12px !important;
        vertical-align: middle !important;
    }
    
    /* 移动端开关优化 */
    .form-check {
        padding: 12px 16px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .form-check-input {
        margin-top: 0 !important;
        margin-right: 12px !important;
    }
    
    .form-check-label {
        font-size: 16px !important;
        line-height: 1.4 !important;
        cursor: pointer !important;
    }
    
    /* 移动端textarea优化 */
    textarea.unified-input,
    textarea.mobile-input {
        min-height: 80px !important;
        resize: vertical !important;
        font-family: inherit !important;
    }
    
    /* 移动端按钮组优化 */
    .btn-group-mobile {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .btn-group-mobile .btn {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }
    
    /* 移动端导航优化 */
    .admin-nav .nav-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }
    
    .admin-nav .nav-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    .admin-nav .nav-btn {
        flex: 1 !important;
        min-width: 120px !important;
        text-align: center !important;
    }
    
    /* 移动端卡片间距优化 */
    .card + .card {
        margin-top: 16px !important;
    }
    
    /* 移动端容器优化 */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* 移动端标题优化 */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    /* 移动端警告框优化 */
    .alert {
        padding: 16px 20px !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    
    /* 移动端模态框优化 */
    .modal-dialog {
        margin: 16px !important;
        max-width: calc(100vw - 32px) !important;
    }
    
    .modal-content {
        border-radius: 16px !important;
    }
    
    .modal-header {
        padding: 16px 20px !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    .modal-body {
        padding: 20px !important;
    }
    
    .modal-footer {
        padding: 16px 20px !important;
        border-radius: 0 0 16px 16px !important;
    }
    
    /* 移动端页脚优化 */
    footer {
        padding: 20px 0 !important;
        margin-top: 40px !important;
        font-size: 14px !important;
    }
    
    /* 移动端数据网格优化 */
    .data-grid {
        gap: 16px !important;
    }
    
    .data-item {
        padding: 20px !important;
        border-radius: 16px !important;
    }
    
    .data-content {
        padding: 0 12px !important; /* ✅ 修复：上下0，左右12px */
        min-height: auto !important; /* 自适应高度 */
        font-size: 15px !important;
        border-radius: 12px !important;
    }
    
    /* 移动端服务器时间优化 */
    .server-time-small {
        padding: 16px !important;
        border-radius: 16px !important;
        margin-bottom: 20px !important;
    }
    
    .time-display-small {
        font-size: 1.6rem !important;
    }
    
    /* 移动端刷新状态优化 */
    .refresh-status-corner {
        bottom: 16px !important;
        right: 16px !important;
        padding: 10px 14px !important;
        border-radius: 20px !important;
        font-size: 13px !important;
    }
    
    /* 移动端输入焦点优化 */
    .unified-input:focus,
    .mobile-input:focus {
        transform: none !important; /* 移动端不使用变换效果 */
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2) !important;
    }
    
    /* 移动端按钮悬停优化 */
    .unified-btn:hover,
    .mobile-btn:hover {
        transform: none !important; /* 移动端不使用悬停变换 */
    }
    
    /* 移动端触摸优化 */
    .unified-btn:active,
    .mobile-btn:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* 移动端表单文本优化 */
    .form-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-top: 6px !important;
    }
    
    /* 移动端小文本优化 */
    small, .small {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    
    /* 移动端图标优化 */
    .bi, .fas, .far, .fab {
        font-size: 1.1em !important;
    }
    
    /* 移动端链接优化 */
    a {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        text-decoration: none !important;
    }
    
    /* 移动端列表优化 */
    ul, ol {
        padding-left: 20px !important;
    }
    
    li {
        margin-bottom: 8px !important;
        line-height: 1.5 !important;
    }
    
    /* 移动端代码块优化 */
    code, pre {
        font-size: 14px !important;
        line-height: 1.4 !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
    }
    
    /* 移动端徽章优化 */
    .badge {
        padding: 6px 12px !important;
        font-size: 13px !important;
        border-radius: 16px !important;
    }
    
    /* 移动端进度条优化 */
    .progress {
        height: 8px !important;
        border-radius: 4px !important;
    }
    
    /* 移动端分页优化 */
    .pagination {
        justify-content: center !important;
    }
    
    .page-link {
        padding: 8px 12px !important;
        font-size: 14px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* 移动端面包屑优化 */
    .breadcrumb {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
    }
    
    /* 移动端工具提示优化 */
    .tooltip {
        font-size: 13px !important;
    }
    
    /* 移动端下拉菜单优化 */
    .dropdown-menu {
        border-radius: 12px !important;
        padding: 8px !important;
        min-width: 200px !important;
    }
    
    .dropdown-item {
        padding: 12px 16px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        margin-bottom: 4px !important;
    }
    
    /* 移动端标签页优化 */
    .nav-tabs {
        border-bottom: none !important;
        gap: 4px !important;
    }
    
    .nav-tabs .nav-link {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 12px 12px 0 0 !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* 移动端手风琴优化 */
    .accordion-button {
        padding: 16px 20px !important;
        font-size: 15px !important;
        min-height: 56px !important;
    }
    
    .accordion-body {
        padding: 20px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    /* 移动端卡片组优化 */
    .card-group .card {
        margin-bottom: 16px !important;
    }
    
    /* 移动端列表组优化 */
    .list-group-item {
        padding: 16px 20px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        margin-bottom: 8px !important;
    }
    
    /* 移动端输入组优化 */
    .input-group {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .input-group .form-control,
    .input-group .btn {
        border-radius: 12px !important;
    }
    
    /* 移动端浮动标签优化 */
    .form-floating {
        margin-bottom: 16px !important;
    }
    
    .form-floating > .form-control {
        height: 56px !important;
        padding: 16px 12px 8px !important;
    }
    
    .form-floating > label {
        padding: 16px 12px !important;
        font-size: 14px !important;
    }
    
    /* 移动端范围输入优化 */
    .form-range {
        height: 8px !important;
        margin: 16px 0 !important;
    }
    
    /* 移动端颜色选择器优化 */
    .form-control[type="color"] {
        width: 60px !important;
        height: 48px !important;
        padding: 4px !important;
        border-radius: 12px !important;
    }
    
    /* 移动端文件输入优化 */
    .form-control[type="file"] {
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    /* 移动端搜索输入优化 */
    .form-control[type="search"] {
        -webkit-appearance: none !important;
        border-radius: 20px !important;
    }
    
    /* 移动端日期时间输入优化 */
    .form-control[type="date"],
    .form-control[type="time"],
    .form-control[type="datetime-local"] {
        padding: 12px 16px !important;
        font-size: 16px !important;
    }
}

/* 🔥 超小屏幕额外优化 (480px以下) */
@media (max-width: 480px) {
    /* 超小屏幕容器优化 */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* 超小屏幕卡片优化 */
    .card {
        border-radius: 12px !important;
    }
    
    .card-header {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    .card-body {
        padding: 16px !important;
    }
    
    /* 超小屏幕按钮优化 */
    .btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    
    /* 超小屏幕表单优化 */
    .form-control {
        padding: 10px 14px !important;
        font-size: 16px !important;
        min-height: 44px !important;
    }
    
    .form-label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    
    /* 超小屏幕导航优化 */
    .admin-nav {
        padding: 10px 12px !important;
        margin-bottom: 12px !important;
    }
    
    .admin-nav .nav-title {
        font-size: 1rem !important;
    }
    
    .admin-nav .nav-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-width: 80px !important;
    }
    
    /* 超小屏幕数据项优化 */
    .data-item {
        padding: 16px !important;
    }
    
    .data-content {
        padding: 0 12px !important; /* ✅ 修复：上下0，左右12px */
        min-height: auto !important; /* 自适应高度 */
        font-size: 14px !important;
    }
    
    /* 超小屏幕服务器时间优化 */
    .server-time-small {
        padding: 12px !important;
    }
    
    .time-display-small {
        font-size: 1.4rem !important;
    }
    
    /* 超小屏幕刷新状态优化 */
    .refresh-status-corner {
        bottom: 12px !important;
        right: 12px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    /* 超小屏幕模态框优化 */
    .modal-dialog {
        margin: 8px !important;
        max-width: calc(100vw - 16px) !important;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 12px 16px !important;
    }
    
    /* 超小屏幕警告框优化 */
    .alert {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    /* 超小屏幕表格优化 */
    .table {
        font-size: 12px !important;
    }
    
    .table td {
        padding: 6px 8px !important;
    }
    
    /* 超小屏幕页脚优化 */
    footer {
        padding: 16px 0 !important;
        font-size: 12px !important;
    }
}

/* 🔥 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    /* 横屏模式容器优化 */
    .container {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    
    /* 横屏模式导航优化 */
    .admin-nav {
        padding: 12px 20px !important;
        margin-bottom: 16px !important;
    }
    
    .admin-nav .nav-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .admin-nav .nav-actions {
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    /* 横屏模式卡片优化 */
    .card {
        margin-bottom: 16px !important;
    }
    
    .card-header {
        padding: 12px 20px !important;
    }
    
    .card-body {
        padding: 16px 20px !important;
    }
    
    /* 横屏模式表单优化 */
    .mobile-form-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    
    .mobile-form-grid > div:last-child {
        grid-column: 1 / -1 !important;
    }
    
    /* 横屏模式按钮优化 */
    .mobile-btn {
        min-height: 40px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    /* 横屏模式输入框优化 */
    .mobile-input {
        min-height: 40px !important;
        padding: 10px 14px !important;
        font-size: 15px !important;
    }
    
    /* 横屏模式数据项优化 */
    .data-item {
        padding: 16px 20px !important;
    }
    
    .data-content {
        padding: 0 12px !important; /* ✅ 修复：上下0，左右12px */
        min-height: auto !important; /* 自适应高度 */
    }
    
    /* 横屏模式服务器时间优化 */
    .server-time-small {
        padding: 12px 16px !important;
    }
    
    .time-display-small {
        font-size: 1.5rem !important;
    }
}
/* 🔥 日志界面专用样式 */

/* 现代化统计卡片 */
.stat-card-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 80px;
}

.stat-card-modern:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card-modern.selected {
    border-color: rgba(52, 152, 219, 0.6);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.1) 100%);
}

.stat-card-modern .stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-card-modern .stat-info {
    flex: 1;
}

.stat-card-modern .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-modern .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* 统计网格布局 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* 图表容器 */
.stats-chart-container {
    height: 200px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

/* 日志条目样式 */
.log-entry {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.log-entry:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.log-entry.status-success {
    border-left: 4px solid #28a745;
}

.log-entry.status-info {
    border-left: 4px solid #17a2b8;
}

.log-entry.status-error {
    border-left: 4px solid #dc3545;
}

/* 日志头部 */
.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.log-timestamp {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.log-badge {
    flex-shrink: 0;
}

/* 日志消息 */
.log-message {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 日志详情 */
.log-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.detail-item {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: white;
    font-weight: 600;
}

/* 内容预览 */
.content-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid rgba(52, 152, 219, 0.6);
}

/* 数据变更显示 */
.data-changes {
    margin-top: 8px;
}

.data-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
}

.data-item:last-child {
    margin-bottom: 0;
}

/* 发送统计 */
.send-stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.stat-item {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.stat-item.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.stat-item.danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.stat-item.info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

/* 服务器详情 */
.server-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    margin-top: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* 修改内容显示 */
.changes-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    margin-top: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* 日志文件网格 */
.log-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.log-file-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.log-file-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.file-info {
    flex: 1;
}

.file-name {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

.file-actions {
    flex-shrink: 0;
    margin-left: 16px;
}

/* 日志说明优化 */
.log-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.log-description ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.log-description li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 移动端统计网格 */
    .mobile-stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    
    .stat-card-modern {
        padding: 16px !important;
        min-height: 70px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }
    
    .stat-card-modern .stat-icon {
        font-size: 1.5rem !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .stat-card-modern .stat-number {
        font-size: 1.4rem !important;
    }
    
    .stat-card-modern .stat-label {
        font-size: 0.8rem !important;
    }
    
    /* 移动端图表 */
    .stats-chart-container {
        height: 150px !important;
        padding: 12px !important;
    }
    
    /* 移动端日志条目 */
    .log-entry {
        padding: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .log-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .log-message {
        font-size: 0.95rem !important;
    }
    
    .log-details {
        padding: 12px !important;
    }
    
    /* 移动端发送统计 */
    .send-stats {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .stat-item {
        display: block !important;
        text-align: center !important;
        padding: 8px 12px !important;
    }
    
    /* 移动端日志文件 */
    .log-files-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .log-file-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    
    .file-actions {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .file-actions .btn {
        width: 100% !important;
    }
    
    /* 移动端日志说明 */
    .log-description {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .mobile-stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-card-modern {
        flex-direction: row !important;
        text-align: left !important;
        min-height: 60px !important;
    }
    
    .stat-card-modern .stat-icon {
        font-size: 1.2rem !important;
        width: 35px !important;
        height: 35px !important;
    }
    
    .stat-card-modern .stat-number {
        font-size: 1.2rem !important;
    }
    
    .stats-chart-container {
        height: 120px !important;
    }
}


/* ========================================
   白天模式补充样式 - 确保所有文本可见
   ======================================== */

/* 白天模式 - 介绍页面补充样式 */
.light-mode .intro-subtitle {
    color: #495057 !important;
}

.light-mode .intro-text {
    color: #2c3e50 !important;
}

.light-mode .highlight {
    color: #e91e63 !important;
    background: rgba(233, 30, 99, 0.1) !important;
}

.light-mode .link-highlight {
    color: #007bff !important;
    border-bottom-color: #007bff !important;
}

.light-mode .link-highlight:hover {
    color: #0056b3 !important;
    border-bottom-color: #0056b3 !important;
}

.light-mode .feature-item,
.light-mode .preview-card,
.light-mode .weather-type-card,
.light-mode .faq-item {
    background: rgba(248, 249, 250, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .feature-item:hover,
.light-mode .preview-card:hover,
.light-mode .weather-type-card:hover,
.light-mode .faq-item:hover {
    background: rgba(233, 236, 239, 0.9) !important;
}

.light-mode .feature-item h5,
.light-mode .feature-item p,
.light-mode .preview-card h5,
.light-mode .preview-card p,
.light-mode .weather-type-card h5,
.light-mode .weather-type-card p {
    color: #2c3e50 !important;
}

.light-mode .step-content h5,
.light-mode .step-content p {
    color: #2c3e50 !important;
}

.light-mode .step-tip {
    background: rgba(23, 162, 184, 0.1) !important;
    border-left-color: #17a2b8 !important;
    color: #2c3e50 !important;
}

.light-mode .faq-question {
    color: #2c3e50 !important;
}

.light-mode .faq-answer {
    color: #495057 !important;
}

.light-mode .faq-item {
    border-left-color: #e91e63 !important;
}

.light-mode .placeholder-content h4,
.light-mode .placeholder-content p {
    color: #2c3e50 !important;
}

.light-mode .placeholder-content .text-muted {
    color: #6c757d !important;
}

.light-mode .xingbao-description .intro-text {
    color: #2c3e50 !important;
}

/* 白天模式 - 日志页面补充样式 */
.light-mode .log-entry {
    background: rgba(248, 249, 250, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .log-message {
    color: #2c3e50 !important;
}

.light-mode .log-timestamp {
    color: #6c757d !important;
}

.light-mode .detail-item strong {
    color: #495057 !important;
}

.light-mode .detail-item {
    color: #2c3e50 !important;
}

.light-mode .content-preview,
.light-mode .changes-content,
.light-mode .data-changes,
.light-mode .server-details {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #2c3e50 !important;
}

.light-mode .send-stats .stat-item {
    color: #2c3e50 !important;
}

.light-mode .log-file-card {
    background: rgba(248, 249, 250, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .file-name {
    color: #2c3e50 !important;
}

.light-mode .file-details {
    color: #6c757d !important;
}

.light-mode .empty-state {
    color: #6c757d !important;
}

.light-mode .stat-card-modern {
    background: rgba(248, 249, 250, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .stat-number {
    color: #2c3e50 !important;
}

.light-mode .stat-label {
    color: #6c757d !important;
}

.light-mode .log-description ul li {
    color: #2c3e50 !important;
}

.light-mode .log-description strong {
    color: #495057 !important;
}

/* 白天模式 - 卡片头部样式修复 */
.light-mode .card-header.modern-header,
.light-mode .card-header.mobile-friendly-header {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
}

.light-mode .card-header h4,
.light-mode .card-header h5 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.light-mode .card-header p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 白天模式 - 访问日志详情修复 */
.light-mode .log-badge .badge {
    color: white !important;
}

.light-mode .log-header {
    color: #2c3e50 !important;
}

/* 白天模式 - 确保所有日志元素可见 */
.light-mode .alert {
    background: rgba(248, 249, 250, 0.95) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.light-mode .alert strong {
    color: #495057 !important;
}

.light-mode .badge {
    color: white !important;
}

.light-mode .form-label {
    color: #495057 !important;
}

.light-mode .form-select,
.light-mode .form-control {
    background: white !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

/* 白天模式 - 日志筛选卡片 */
.light-mode .card-body {
    color: #2c3e50 !important;
}

.light-mode .empty-state {
    color: #6c757d !important;
}

.light-mode .empty-state .empty-icon {
    opacity: 0.5;
}

/* 白天模式 - 确保所有文本可见 */
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h5,
.light-mode h6 {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

.light-mode p {
    color: #495057 !important;
}

/* 白天模式 - 按钮文字确保可见 */
.light-mode .btn {
    color: white !important;
}

.light-mode .nav-btn.primary {
    color: white !important;
}

/* 白天模式 - 表单元素 */
.light-mode .form-check-label {
    color: #495057 !important;
}

.light-mode .form-select {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #495057 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* 白天模式 - Badge */
.light-mode .badge {
    color: white !important;
}

/* 白天模式 - 数据内容区域 */
.light-mode .data-content-multiline {
    color: #2c3e50 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 白天模式 - 确保所有卡片内的文本可见 */
.light-mode .card-body p,
.light-mode .card-body li,
.light-mode .card-body span {
    color: #495057 !important;
}

.light-mode .card-body strong {
    color: #2c3e50 !important;
}

/* 白天模式 - Alert组件 */
.light-mode .alert-info {
    background: rgba(209, 236, 241, 0.9) !important;
    color: #0c5460 !important;
    border-color: rgba(190, 229, 235, 0.9) !important;
}

.light-mode .alert-info strong {
    color: #0c5460 !important;
}

/* 白天模式 - 移动端空状态 */
.light-mode .mobile-empty {
    color: #6c757d !important;
}

.light-mode .empty-icon {
    opacity: 0.5;
}

/* 白天模式 - 数据项标题 */
.light-mode .data-title {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

/* 白天模式 - 刷新状态文字 */
.light-mode .refresh-text {
    color: #495057 !important;
}

/* 白天模式 - 动作按钮区域 */
.light-mode .action-buttons a {
    color: white !important;
}

/* 主页外观设置 - 颜色选择器样式 */
.color-picker-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input {
    width: 60px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.color-input:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.color-text-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.preset-colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-color-btn {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.preset-color-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.preset-color-btn:active {
    transform: scale(0.95);
}

/* 移动端颜色选择器优化 */
@media (max-width: 768px) {
    .color-picker-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .color-input {
        width: 100%;
        height: 60px;
    }
    
    .preset-colors {
        justify-content: center;
    }
    
    .preset-color-btn {
        width: 45px;
        height: 45px;
    }
}


/* ========================================
   🖥️ 桌面端专用样式优化 (仅针对电脑访问)
   ======================================== */

/* 桌面端 - 最小宽度769px以上 */
@media (min-width: 769px) {
    
    /* 管理后台卡片 - 黑夜模式深色背景 */
    @media (prefers-color-scheme: dark) {
        .dashboard-card {
            background: linear-gradient(135deg, rgba(30, 58, 95, 0.6), rgba(21, 42, 69, 0.6)) !important;
            border-color: rgba(100, 150, 200, 0.3) !important;
        }
    }
    
    /* 1. 所有界面输入框颜色统一 */
    /* 黑夜模式 - 输入框 */
    @media (prefers-color-scheme: dark) {
        .form-control, .form-select, select, input, textarea,
        input[type="date"], input[type="datetime-local"], 
        input[type="time"], input[type="text"], input[type="password"],
        input[type="number"], .unified-input {
            background: transparent !important;
            border-color: rgba(100, 150, 200, 0.3) !important;
            color: #ffffff !important;
            box-shadow: none !important;
        }
        
        .form-control:focus, .form-select:focus, select:focus, 
        input:focus, textarea:focus, .unified-input:focus {
            background: transparent !important;
            border-color: rgba(100, 150, 200, 0.6) !important;
            color: #ffffff !important;
            box-shadow: 0 0 0 0.2rem rgba(100, 150, 200, 0.25) !important;
        }
    }
    
    /* 白天模式 - 输入框 */
    @media (prefers-color-scheme: light) {
        .form-control, .form-select, select, input, textarea,
        input[type="date"], input[type="datetime-local"], 
        input[type="time"], input[type="text"], input[type="password"],
        input[type="number"], .unified-input {
            background: transparent !important;
            border-color: rgba(0, 0, 0, 0.2) !important;
            color: #2c3e50 !important;
            box-shadow: none !important;
        }
        
        .form-control:focus, .form-select:focus, select:focus, 
        input:focus, textarea:focus, .unified-input:focus {
            background: transparent !important;
            border-color: rgba(0, 0, 0, 0.4) !important;
            color: #2c3e50 !important;
            box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1) !important;
        }
    }
    
    /* 2. 喵提醒界面 - 统计信息背景和字体颜色统一 */
    /* 黑夜模式 - 统计卡片 */
    @media (prefers-color-scheme: dark) {
        .stat-box, .unified-stat-card {
            background: transparent !important;
            border-color: rgba(100, 150, 200, 0.3) !important;
            box-shadow: none !important;
        }
        
        .stat-number {
            color: #ffffff !important;
        }
        
        .stat-label {
            color: #b0c4de !important;
        }
    }
    
    /* 白天模式 - 统计卡片 */
    @media (prefers-color-scheme: light) {
        .stat-box, .unified-stat-card {
            background: transparent !important;
            border-color: rgba(0, 0, 0, 0.1) !important;
            box-shadow: none !important;
        }
        
        .stat-number {
            color: #2c3e50 !important;
        }
        
        .stat-label {
            color: #6c757d !important;
        }
    }
    
    /* 3. 喵提醒 - 测试功能布局调整(按钮和选择框平行) */
    .card-body .row {
        display: flex;
        align-items: flex-end;
    }
    
    .card-body .row .col-md-8 {
        display: flex;
        flex-direction: column;
    }
    
    .card-body .row .col-md-4 {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    
    /* 测试功能按钮容器 */
    .card-body .row .col-md-4 > div {
        display: flex;
        gap: 10px;
        margin-bottom: 0;
    }
    
    /* 4. 喵提醒 - 关键词删除按钮调整(放大并放在右边) */
    .keyword-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 15px !important;
    }
    
    .keyword-item .mobile-delete-btn {
        width: auto !important;
        height: auto !important;
        min-width: 60px !important;
        max-width: none !important;
        min-height: 36px !important;
        max-height: none !important;
        padding: 8px 16px !important;
        margin-left: 15px !important;
        border-radius: 6px !important;
        font-size: 0.9rem !important;
        flex-shrink: 0 !important;
    }
    
    .keyword-text {
        flex: 1;
        font-size: 1rem !important;
    }
}


/* ========================================
   主页标题和系统信息界面优化
   ======================================== */

/* 主页标题 - 白天模式也使用蓝色背景 */
@media (prefers-color-scheme: light) {
    #main-title-header {
        background: linear-gradient(135deg, #2c5282, #1e3a5f) !important;
        color: #ffffff !important;
    }
    
    #main-title-header h3 {
        color: #ffffff !important;
    }
}

/* 主页标题 - 默认蓝色背景(兼容微信) */
#main-title-header {
    background: linear-gradient(135deg, #2c5282, #1e3a5f) !important;
    color: #ffffff !important;
}

#main-title-header h3 {
    color: #ffffff !important;
}


/* ========================================
   历史数据展开面板样式
   ======================================== */

/* 可点击卡片样式 */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 100%;
}

.clickable-card:hover {
    transform: translateY(-3px);
}

.clickable-card.expanded {
    border-color: rgba(100, 150, 200, 0.6);
    overflow: hidden;
    max-width: 100%;
}

/* 历史面板容器 */
.history-panel {
    display: none;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* 历史面板标题 */
.history-header {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 0.8em;
    font-weight: 500;
}

/* 历史内容区域 */
.history-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5em;
}

/* 历史列表 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

/* 历史记录项 */
.history-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.8em 1em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* 历史记录时间 */
.history-item-time {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.4em;
}

/* 历史记录内容 - 单行省略 */
.history-item-content {
    font-size: 0.95em;
    color: #ffffff;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* 加载中和空状态 */
.history-loading,
.history-empty {
    text-align: center;
    padding: 1.5em;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

/* 滚动条样式 */
.history-content::-webkit-scrollbar {
    width: 6px;
}

.history-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.history-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.history-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 白天模式样式 */
@media (prefers-color-scheme: light) {
    .history-panel {
        border-top-color: rgba(0, 0, 0, 0.1);
    }
    
    .history-header {
        color: rgba(0, 0, 0, 0.7);
    }
    
    .history-item {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .history-item:hover {
        background: rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.15);
    }
    
    .history-item-time {
        color: rgba(0, 0, 0, 0.6);
    }
    
    .history-item-content {
        color: #2c3e50;
    }
    
    .history-loading,
    .history-empty {
        color: rgba(0, 0, 0, 0.5);
    }
    
    .history-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .history-content::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .history-content::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .clickable-card.expanded {
        border-color: rgba(0, 0, 0, 0.2);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .history-panel {
        margin-top: 0.8em;
        padding-top: 0.8em;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .history-header {
        font-size: 0.85em;
    }
    
    .history-content {
        max-height: 250px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .history-item {
        padding: 0.6em 0.8em;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .history-item-time {
        font-size: 0.8em;
    }
    
    .history-item-content {
        font-size: 0.9em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        max-width: 100%;
        width: 100%;
    }
    
    .history-list {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .clickable-card {
        /* 移动端点击反馈 */
        -webkit-tap-highlight-color: rgba(100, 150, 200, 0.2);
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }
    
    .clickable-card.expanded {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .clickable-card:active {
        transform: scale(0.98);
    }
    
    .data-item {
        max-width: 100% !important;
        overflow: hidden !important;
        word-wrap: break-word;
        word-break: break-all;
    }
}

/* 点击提示样式 - 使用 ::before 避免与 data-item::after 冲突 */
/* 桌面端悬停提示（隐藏，改用内联提示） */
.clickable-card::before {
    display: none;
}

/* 更新时间行布局 - 时间居中，提示靠右 */
.update-time {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
}

.update-time .time-text {
  text-align: center;
}

/* 历史记录展开提示 - 靠右 */
.history-toggle-hint {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    white-space: nowrap;
    position: absolute;
    right: 0;
}

.history-toggle-hint:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 白天模式 */
@media (prefers-color-scheme: light) {
    .history-toggle-hint {
        color: rgba(0, 0, 0, 0.4);
    }
    
    .history-toggle-hint:hover {
        color: rgba(0, 0, 0, 0.7);
    }
}

/* 移动端样式 */
@media (max-width: 768px) {
    .history-toggle-hint {
        font-size: 0.75em;
        position: absolute !important;
        right: 10px !important;
    }
    
    .update-time {
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .update-time .time-text {
        text-align: center !important;
    }
}

/* ========================================
   历史日志管理 - 白天/黑夜模式适配
   ======================================== */

/* 历史日志项 - 默认深色模式 */
.history-item {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 4px solid #4CAF50;
    transition: background 0.2s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.history-content {
    color: #fff !important;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

/* 白天模式 - 历史日志管理 */
@media (prefers-color-scheme: light) {
    .history-item {
        background: rgba(0, 0, 0, 0.04) !important;
        border-left-color: #4CAF50;
    }
    
    .history-item:hover {
        background: rgba(0, 0, 0, 0.08) !important;
    }
    
    .history-content {
        color: #333 !important;
    }
    
    /* 历史日志容器内的时间文字 */
    #historyListContainer div[style*="color: #888"],
    #historyListContainer div[style*="color: rgba(255,255,255,0.5)"] {
        color: #666 !important;
    }
    
    /* 历史日志容器内的内容文字 */
    #historyListContainer div[style*="color: #fff"],
    #historyListContainer div[style*="color: #333"] {
        color: #333 !important;
    }
    
    /* 小程序配置页面的表单标签 */
    .admin-miniprogram .form-label,
    [class*="admin"] .form-label {
        color: #333 !important;
    }
    
    /* 统计盒子在白天模式下的文字颜色 */
    .stat-box .stat-label {
        color: #666 !important;
    }
}

/* 深色模式 - 历史日志管理 */
@media (prefers-color-scheme: dark) {
    .history-item {
        background: rgba(255, 255, 255, 0.08) !important;
    }
    
    .history-item:hover {
        background: rgba(255, 255, 255, 0.12) !important;
    }
    
    .history-content {
        color: #fff !important;
    }
    
    /* 历史日志容器内的时间文字 */
    #historyListContainer div[style*="color: #888"] {
        color: rgba(255, 255, 255, 0.6) !important;
    }
    
    /* 历史日志容器内的内容文字 */
    #historyListContainer div[style*="color: #333"] {
        color: #fff !important;
    }
}
