/* 内容卡片样式 */
.content-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ebeef5;
    max-width: 100%;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #ebeef5;
    font-size: 16px;
    font-weight: 500;
    color: #303133;
    margin: -15px -15px 15px -15px;
}

.card-body {
    padding: 0;
}

/* 统计卡片样式 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #ebeef5;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-icon.blue {
    background: #ecf5ff;
    color: #409eff;
}

.stat-icon.green {
    background: #f0f9ff;
    color: #67c23a;
}

.stat-icon.orange {
    background: #fef0f0;
    color: #e6a23c;
}

.stat-icon.red {
    background: #fef0f0;
    color: #f56c6c;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #909399;
}

.stat-badge {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

/* 通用表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: #fafafa;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    color: #909399;
    font-weight: 500;
    border-bottom: 1px solid #ebeef5;
}

.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #606266;
    border-bottom: 1px solid #f5f7fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #409eff;
    border-color: #409eff;
    color: white;
}

.btn-primary:hover {
    background: #66b1ff;
    border-color: #66b1ff;
}

.btn-success {
    background: #67c23a;
    border-color: #67c23a;
    color: white;
}

.btn-success:hover {
    background: #85ce61;
    border-color: #85ce61;
}

.btn-warning {
    background: #e6a23c;
    border-color: #e6a23c;
    color: white;
}

.btn-warning:hover {
    background: #ebb563;
    border-color: #ebb563;
}

.btn-danger {
    background: #f56c6c;
    border-color: #f56c6c;
    color: white;
}

.btn-danger:hover {
    background: #f78989;
    border-color: #f78989;
}

.btn-info {
    background: #909399;
    border-color: #909399;
    color: white;
}

.btn-info:hover {
    background: #a6a9ad;
    border-color: #a6a9ad;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

/* 筛选标签 */
.filter-tabs {
    display: inline-flex;
    gap: 2px;
    background: #f5f7fa;
    padding: 4px;
    border-radius: 6px;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: #606266;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.filter-tab:hover {
    color: #409eff;
    border-color: #409eff;
}

.filter-tab.active {
    background: #409eff;
    border-color: #409eff;
    color: white;
}

/* 徽章样式 */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-primary {
    background: #ecf5ff;
    color: #409eff;
}

.badge-success {
    background: #f0f9ff;
    color: #67c23a;
}

.badge-warning {
    background: #fdf6ec;
    color: #e6a23c;
}

.badge-danger {
    background: #fef0f0;
    color: #f56c6c;
}

.badge-info {
    background: #ecf5ff;
    color: #409eff;
}

.badge-secondary {
    background: #f4f4f5;
    color: #909399;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #606266;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    height: 35px;
    padding: 0 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    background: #fff;
    transition: border-color 0.2s cubic-bezier(.645,.045,.355,1);
}

.form-control:focus {
    outline: none;
    border-color: #409eff;
}

.form-control::placeholder {
    color: #c0c4cc;
}

textarea.form-control {
    height: auto;
    padding: 10px 15px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-bar .form-control {
    flex: 1;
    min-width: 200px;
}

/* 筛选标签 */
.filter-tabs {
    display: inline-flex;
    gap: 2px;
    background: #f5f7fa;
    padding: 4px;
    border-radius: 6px;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: #606266;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.filter-tab:hover {
    color: #409eff;
    border-color: #409eff;
}

.filter-tab.active {
    background: #409eff;
    border-color: #409eff;
    color: white;
}

/* 分页样式 */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    color: #606266;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    color: #409eff;
    border-color: #409eff;
}

.pagination .active {
    background: #409eff;
    border-color: #409eff;
    color: white;
}

/* 警告框 */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.alert-success {
    background: #ecf5ff;
    border: 1px solid #d9ecff;
    color: #409eff;
}

.alert-success i {
    color: #409eff;
}

.alert-danger {
    background: #fef0f0;
    border: 1px solid #fde2e2;
    color: #c03639;
}

.alert-danger i {
    color: #f56c6c;
}

.alert-warning {
    background: #fdf6ec;
    border: 1px solid #faecd8;
    color: #856404;
}

.alert-warning i {
    color: #e6a23c;
}

.alert-info {
    background: #ecf5ff;
    border: 1px solid #d9ecff;
    color: #0c5460;
}

.alert-info i {
    color: #409eff;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #909399;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #c0c4cc;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #909399;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: #303133;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 8px;
}

/* 设置页面样式 */
body {
    background: #f5f5f5 !important;
}

.settings-container {
    display: flex;
    gap: 0;
    min-height: auto;
    background: #f5f5f5;
}

.settings-sidebar {
    width: 160px;
    background: #f5f5f5 !important;
    height: fit-content;
    border-right: 1px solid #e6e6e6;
    min-height: 400px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: none;
}

.settings-sidebar .sidebar-menu a {
    display: block;
    padding: 16px 20px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    border-radius: 0;
}

.settings-sidebar .sidebar-menu a:hover {
    background: #e8f4fd;
    color: #1890ff;
}

.settings-sidebar a.active {
    background: #e8f4fd;
    color: #1890ff;
    border-left-color: #1890ff;
    font-weight: normal;
}

.sidebar-menu a i {
    margin-right: 10px;
    width: 16px;
    font-size: 14px;
}

.settings-content {
    flex: 1;
    background: white;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-left: 0;
}

.content-section {
    display: none;
    padding: 24px;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 18px;
    color: #303133;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-text {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-6 {
    flex: 0 0 50%;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e6e6e6;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 16px;
    }
    
    .sidebar-menu li {
        border-bottom: none;
        border-right: none;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .settings-sidebar .sidebar-menu a {
        padding: 12px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .settings-sidebar a.active {
        border-left: none;
        border-bottom-color: #1890ff;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
    }
}

/* 登录页面样式 */
.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
    border: 1px solid #ebeef5;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    width: 64px;
    height: 64px;
    background: #409eff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.logo-icon {
    font-size: 28px;
}

.login-title {
    font-size: 24px;
    font-weight: 500;
    color: #303133;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #909399;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    background: #fff;
    transition: border-color 0.2s cubic-bezier(.645,.045,.355,1);
}

.form-input:focus {
    outline: none;
    border-color: #409eff;
}

.form-input::placeholder {
    color: #c0c4cc;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #ebeef5;
}

.login-tip {
    font-size: 13px;
    color: #909399;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-tip i {
    color: #409eff;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
}

/* 首页样式 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    font-size: 12px;
    color: #909399;
    margin-bottom: 4px;
}

.info-value {
    font-size: 13px;
    font-weight: 500;
    color: #303133;
}

.info-status-success {
    color: #67c23a;
    font-size: 12px;
}

.info-status-warning {
    color: #e6a23c;
    font-size: 12px;
}

.info-error {
    margin-top: 16px;
    padding: 12px;
    background: #fef0f0;
    border: 1px solid #fde2e2;
    border-radius: 4px;
    color: #f56c6c;
    font-size: 13px;
}

.info-center {
    text-align: center;
    padding: 20px;
    color: #909399;
}

.info-center i {
    font-size: 24px;
    margin-bottom: 8px;
}

.info-center a {
    color: #409eff;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.quick-action-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f5f7fa;
    border-radius: 4px;
    text-decoration: none;
    color: #303133;
    transition: all 0.3s;
}

.quick-action-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.quick-action-icon.blue {
    background: #409eff;
}

.quick-action-icon.green {
    background: #67c23a;
}

.quick-action-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.quick-action-desc {
    font-size: 12px;
    color: #909399;
}


/* ==================== TDesign 弹窗样式 ==================== */
.t-dialog__header {
    padding: 10px 20px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.t-dialog__header-content {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.t-dialog__close {
    cursor: pointer;
    color: #909399;
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 4px;
}

.t-dialog__close:hover {
    color: #303133;
    background: #f5f7fa;
}

.t-dialog__body {
    padding: 24px;
    font-size: 14px;
    color: #606266;
    line-height: 1.6;
}

.t-dialog__footer {
    padding: 12px 24px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.t-button {
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-weight: 400;
}

.t-dialog__cancel {
    background: white;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.t-dialog__cancel:hover {
    color: #0052d9;
    border-color: #0052d9;
    background: white;
}

.t-dialog__confirm {
    background: #0052d9;
    color: white;
}

.t-dialog__confirm:hover {
    background: #409eff;
}

.t-dialog__confirm:active {
    background: #3a8ee6;
}
