/* 模板库样式 */

.templates-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: calc(100vh - 60px);
}

.templates-header {
    text-align: center;
    margin-bottom: 48px;
}

.templates-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.templates-header h1 i {
    color: var(--primary-color);
}

.templates-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* 模板分类 */
.template-categories {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.template-section {
    background: var(--panel-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.template-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.template-section h2 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* 模板网格 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

/* 模板卡片 */
.template-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.template-preview {
    width: 100%;
    aspect-ratio: 100/140;
    background: #f5f5f5;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-preview svg {
    width: 100%;
    height: 100%;
}

.template-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.template-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .templates-header h1 {
        font-size: 1.75rem;
    }
    
    .template-section {
        padding: 20px;
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .template-card {
        padding: 16px;
    }
}

/* 导航栏激活状态 */
.nav-item.active {
    background: rgba(255,255,255,0.2);
    color: white;
}
