/* Template1 模板通用样式 */

/* 通用布局 */
.main-container {
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    background: #f7f8fa;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 页面标题 */
.page-title {
    background: linear-gradient(135deg, #2563ff 0%, #1e40af 100%);
    color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%), 
                linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
}

.page-title h1 {
    font-size: 32px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-title p {
    font-size: 16px;
    color: #e2e8f0;
    margin: 8px 0 0 0;
    position: relative;
    z-index: 1;
}

/* 内容区域 */
.content-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 40px;
    margin-bottom: 40px;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37,99,255,0.1);
    border-color: #2563ff;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #2563ff;
    color: #fff;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,255,0.2);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* 标签样式 */
.tag {
    display: inline-block;
    background: rgba(37,99,255,0.1);
    color: #2563ff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px 4px 2px 0;
    border: 1px solid rgba(37,99,255,0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2563ff;
    color: #fff;
    transform: translateY(-1px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-link:hover {
    background: #2563ff;
    color: #fff;
    border-color: #2563ff;
    transform: translateY(-1px);
}

.page-link.active {
    background: #2563ff;
    color: #fff;
    border-color: #2563ff;
}

/* 空状态 */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
}

.no-content::before {
    content: '📄';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #2563ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    .content-wrapper {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .page-title {
        padding: 24px 0;
    }
    .page-title h1 {
        font-size: 24px;
    }
    .content-wrapper {
        padding: 16px;
        margin-bottom: 20px;
    }
    .pagination-controls {
        flex-wrap: wrap;
        gap: 4px;
    }
    .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 20px;
    }
    .page-title p {
        font-size: 14px;
    }
    .content-wrapper {
        padding: 12px;
    }
} 