/* 3C模板管理系统自定义样式 */

/* 全局样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* 登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

/* 卡片样式 */
.card {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.card-header {
    font-weight: bold;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
}

.table th {
    background-color: #f8f9fa;
}

/* 预览图样式 */
.template-preview {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.preview-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* 详情页样式 */
.detail-label {
    font-weight: bold;
}

/* 按钮样式 */
.btn-action {
    margin-right: 5px;
}

/* 搜索框样式 */
.search-box {
    margin-bottom: 20px;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
}

/* 文件上传样式 */
.file-upload-container {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.file-upload-container:hover {
    border-color: #aaa;
}
.layui-form-label{
    width: 180px !important;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .preview-thumbnail {
        width: 80px;
        height: 80px;
    }
}

/* 模态框样式 */
.modal-preview-image {
    max-width: 100%;
    max-height: 80vh;
}

/* 表单样式 */
.required-field::after {
    content: " *";
    color: red;
}

/* 网版样式标识 */
.template-style {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.template-style-feiyu {
    background-color: #e3f2fd;
    color: #0d6efd;
}

.template-style-shuxin {
    background-color: #f8d7da;
    color: #dc3545;
}

/* 提示信息样式 */
.tooltip-inner {
    max-width: 300px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}