/* 酷酷 后台 风格管理后台样式 */

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

/* 酷酷 后台 风格背景 */
.win7-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 50%, #1e5f99 51%, #2989d8 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    overflow-x: hidden;
}

/* 酷酷 后台 经典窗口样式 */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* 标题栏样式 */
.window-header {
    background: linear-gradient(to bottom, #f0f8ff 0%, #d6ebff 50%, #bdd8f0 51%, #a8c8e8 100%);
    border-bottom: 1px solid #8db2e3;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.window-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
}

.window-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.control-btn {
    width: 17px;
    height: 17px;
    border: 1px solid #8db2e3;
    border-radius: 2px;
    background: linear-gradient(to bottom, #f0f8ff 0%, #d6ebff 50%, #bdd8f0 51%, #a8c8e8 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #1e3a5f;
}

.control-btn:hover {
    background: linear-gradient(to bottom, #fff 0%, #e6f3ff 50%, #cce7ff 51%, #b3d9ff 100%);
}

.control-btn.close:hover {
    background: linear-gradient(to bottom, #ff6b6b 0%, #ff5252 50%, #f44336 51%, #e53935 100%);
    color: white;
}

/* 内容区域 */
.window-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
}

/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1e3a5f;
    font-size: 13px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #a8c8e8;
    border-radius: 3px;
    background: linear-gradient(to bottom, #fff 0%, #f8fbff 100%);
    font-size: 13px;
    color: #333;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: 1px solid #8db2e3;
    border-radius: 3px;
    background: linear-gradient(to bottom, #f0f8ff 0%, #d6ebff 50%, #bdd8f0 51%, #a8c8e8 100%);
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn:hover {
    background: linear-gradient(to bottom, #fff 0%, #e6f3ff 50%, #cce7ff 51%, #b3d9ff 100%);
    border-color: #4a90e2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn.primary {
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 50%, #1e5f99 51%, #1a5490 100%);
    color: white;
    border-color: #1a5490;
}

.btn.primary:hover {
    background: linear-gradient(to bottom, #5ba0f2 0%, #4690cd 50%, #2e6fa9 51%, #2564a0 100%);
}

.btn.success {
    background: linear-gradient(to bottom, #5cb85c 0%, #449d44 50%, #357a35 51%, #2e6b2e 100%);
    color: white;
    border-color: #2e6b2e;
}

.btn.danger {
    background: linear-gradient(to bottom, #d9534f 0%, #c9302c 50%, #ac2925 51%, #9d2520 100%);
    color: white;
    border-color: #9d2520;
}

/* 区块样式 */
.section {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #d6ebff;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section h3 {
    background: linear-gradient(to bottom, #f0f8ff 0%, #d6ebff 50%, #bdd8f0 51%, #a8c8e8 100%);
    border-bottom: 1px solid #8db2e3;
    padding: 12px 15px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section .content {
    padding: 15px;
}

/* 选项卡样式 */
.tab-nav {
    display: flex;
    background: linear-gradient(to bottom, #f0f8ff 0%, #d6ebff 100%);
    border-bottom: 1px solid #8db2e3;
    margin: 0;
    padding: 0;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-right: 1px solid #bdd8f0;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid #4a90e2;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
}

.tab-content {
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
}

.tab-content.active {
    display: block;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d6ebff;
    border-radius: 6px;
    overflow: hidden;
}

.data-table th {
    background: linear-gradient(to bottom, #f0f8ff 0%, #d6ebff 50%, #bdd8f0 51%, #a8c8e8 100%);
    border-bottom: 1px solid #8db2e3;
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6f3ff;
    font-size: 13px;
    color: #333;
}

.data-table tr:hover {
    background: rgba(74, 144, 226, 0.1);
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.online {
    background: #5cb85c;
    box-shadow: 0 0 4px rgba(92, 184, 92, 0.5);
}

.status-indicator.offline {
    background: #d9534f;
    box-shadow: 0 0 4px rgba(217, 83, 79, 0.5);
}

.status-indicator.warning {
    background: #f0ad4e;
    box-shadow: 0 0 4px rgba(240, 173, 78, 0.5);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, #e6e6e6 0%, #f0f0f0 50%, #e6e6e6 100%);
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to bottom, #5cb85c 0%, #449d44 50%, #357a35 100%);
    border-radius: 9px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 9px 9px 0 0;
}

/* 通知样式 */
.notification {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.notification.success {
    background: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);
    border-color: #d6e9c6;
    color: #3c763d;
}

.notification.error {
    background: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);
    border-color: #ebccd1;
    color: #a94442;
}

.notification.warning {
    background: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);
    border-color: #faebcc;
    color: #8a6d3b;
}

.notification.info {
    background: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);
    border-color: #bce8f1;
    color: #31708f;
}

/* 工具栏 */
.toolbar {
    background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%);
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-container {
        margin: 10px;
        border-radius: 6px;
    }
    
    .window-header {
        padding: 6px 10px;
    }
    
    .window-content {
        padding: 15px;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%);
    border: 1px solid #d0d0d0;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c8c8c8 0%, #a8a8a8 50%, #888 51%, #808080 100%);
    border: 1px solid #666;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #d8d8d8 0%, #b8b8b8 50%, #999 51%, #909090 100%);
}

::-webkit-scrollbar-corner {
    background: #f0f0f0;
}

/* 动画效果 */
@keyframes windowFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.admin-container {
    animation: windowFadeIn 0.3s ease-out;
}

/* 玻璃效果增强 */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 特殊效果 */
.glow {
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.emboss {
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.1);
}

/* 图标样式 */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}