/**
 * CMS视频管理系统 - 自定义样式
 */

/* 侧边栏导航激活状态 */
.layui-nav-tree .layui-this > a {
    background-color: #1e9fff !important;
}

.layui-nav-tree .layui-nav-item a:hover {
    background-color: rgba(255,255,255,0.05) !important;
}

/* 卡片样式 */
.admin-card {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.admin-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* 统计卡片 */
.stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.stat-card.pending .stat-number { color: #ffb800; }
.stat-card.processing .stat-number { color: #1e9fff; }
.stat-card.done .stat-number { color: #16b777; }
.stat-card.failed .stat-number { color: #ff5722; }

/* 表格搜索栏 */
.table-toolbar {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 页面标题 */
.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.page-title i {
    margin-right: 8px;
    color: #1e9fff;
}

/* 登录页 */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    width: 400px;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-box .login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.login-box .login-title i {
    display: block;
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

/* 配置表单 */
.config-group {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
}

.config-group .group-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #1e9fff;
}

/* 配置页Tab美化 */
.config-tab-wrap {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.config-tab-wrap .layui-tab-title {
    background: #fafafa;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 10px;
}

.config-tab-wrap .layui-tab-title li {
    font-size: 14px;
    color: #666;
    padding: 0 20px;
    height: 46px;
    line-height: 46px;
    transition: all 0.2s;
}

.config-tab-wrap .layui-tab-title li:hover {
    color: #1e9fff;
}

.config-tab-wrap .layui-tab-title li.layui-this {
    color: #1e9fff;
    font-weight: 600;
    background: #fff;
    border-bottom: 2px solid #1e9fff;
    margin-bottom: -2px;
}

.config-tab-wrap .layui-tab-brief > .layui-tab-title .layui-this:after {
    display: none;
}

.config-tab-wrap .layui-tab-content {
    padding: 20px 25px;
}

.config-tab-form {
    max-width: 800px;
}

.config-tab-form .layui-form-item {
    margin-bottom: 18px;
}

.config-tab-form .layui-form-label {
    width: 110px;
    font-weight: 500;
    color: #444;
}

.config-tab-form .layui-input-block {
    margin-left: 140px;
}

.config-tab-form .layui-input,
.config-tab-form .layui-textarea {
    border-radius: 4px;
    border-color: #e0e0e0;
    transition: border-color 0.2s;
}

.config-tab-form .layui-input:focus,
.config-tab-form .layui-textarea:focus {
    border-color: #1e9fff;
    box-shadow: 0 0 0 2px rgba(30,159,255,0.1);
}

/* 分类管理Tab增强 */
.cat-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.cat-tab-header .cat-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.cat-tab-header .cat-title i {
    color: #1e9fff;
    margin-right: 6px;
}

/* 进度条 */
.progress-bar {
    display: inline-block;
    width: 60px;
    height: 16px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    vertical-align: middle;
}

.progress-bar .progress-inner {
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s;
    background: linear-gradient(90deg, #1e9fff, #16b777);
}

/* 状态标签增强 */
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* 表单增强 */
.layui-form-label {
    width: 100px;
}

.layui-input-block {
    margin-left: 130px;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .layui-form-label {
        width: 80px;
    }
    .layui-input-block {
        margin-left: 110px;
    }
    .login-box {
        width: 90%;
        padding: 25px;
    }
}
