/* 模板页面专用样式 - 简单大气设计 */

/* 页面标题 */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: #6b7280;
}

/* 分类标签 */
.category-tabs {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 72px;
    z-index: 99;
    padding: 1.5rem 0;
}

.tabs-wrapper {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tabs-wrapper::-webkit-scrollbar {
    height: 4px;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f9fafb;
    color: #1f2937;
    border-color: #10b981;
}

.tab-btn.active {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* 模板区域 */
.templates-section {
    padding: 4rem 0 6rem;
    background: #ffffff;
}

.templates-section .container {
    max-width: 100%;
    padding: 0 2rem;
}

.category-group {
    margin-bottom: 5rem;
}

.category-group.hidden {
    display: none;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #10b981;
}

.category-title .icon {
    width: 36px;
    height: 36px;
    color: #10b981;
}

/* 模板网格 - 简洁大气布局 */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* 模板卡片 - 简洁设计 */
.template-card {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.template-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.template-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.template-badge {
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.875rem;
    border-radius: 20px;
    font-weight: 600;
}

.template-badge:nth-child(2) {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.template-desc {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 场景列表 - 简洁紧凑 */
.template-scenarios {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.template-scenarios::-webkit-scrollbar {
    width: 6px;
}

.template-scenarios::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.template-scenarios::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.template-scenarios::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.template-scenarios h4 {
    display: none;
}

.template-scenarios ol {
    margin: 0;
    padding-left: 0;
    list-style-position: inside;
    color: #4b5563;
}

.template-scenarios li {
    margin: 0.625rem 0;
    line-height: 1.6;
    text-align: left;
    font-size: 0.9375rem;
}

.template-scenarios strong {
    color: #1f2937;
    font-weight: 600;
}

.template-scenarios li:first-child {
    margin-top: 0;
}

.template-scenarios li:last-child {
    margin-bottom: 0;
}

/* 复制按钮 */
.copy-template-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background: #10b981;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-template-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .templates-section .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .category-tabs {
        top: 72px;
        padding: 1rem 0;
    }
    
    .tabs-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 1rem;
    }
    
    .tab-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .templates-section .container {
        padding: 0 1rem;
    }
    
    .category-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .template-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .template-header h3 {
        font-size: 1.5rem;
    }
    
    .template-scenarios {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .template-card {
        padding: 1.25rem;
    }
    
    .template-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}
