/* 模板库页面样式 */

/* 模板库头部 */
.templates-hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0f1419 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.templates-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 20%, rgba(0, 234, 255, 0.1) 0%, transparent 70%);
}

.templates-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #e8f4fd;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: #b0c4de;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00eaff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0c4de;
}

/* 模板展示 */
.template-showcase {
    position: relative;
    height: 400px;
}

.template-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.template-stack .template-card {
    position: absolute;
    width: 280px;
    background: #1a1f2e;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 234, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.8;
}

.template-stack .template-card:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 234, 255, 0.2);
    opacity: 1;
    z-index: 10;
}

.template-stack .template-card.active {
    transform: translateY(-20px) rotate(0deg) scale(1.1);
    box-shadow: 0 25px 50px rgba(0, 234, 255, 0.3);
    opacity: 1;
    z-index: 20;
}

.template-1 {
    top: 0;
    left: 0;
    transform: rotate(-5deg);
    z-index: 3;
}

.template-2 {
    top: 40px;
    left: 40px;
    transform: rotate(3deg);
    z-index: 2;
}

.template-3 {
    top: 80px;
    left: 80px;
    transform: rotate(-2deg);
    z-index: 1;
}

.template-stack .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.1);
}

.template-stack .card-header i {
    font-size: 20px;
    color: #00eaff;
}

.template-stack .card-header span {
    font-size: 14px;
    font-weight: 600;
    color: #e8f4fd;
}

.template-stack .card-preview {
    background: #0f1419;
    border-radius: 8px;
    padding: 16px;
}

.template-stack .preview-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e8f4fd;
    margin-bottom: 8px;
}

.template-stack .preview-content p {
    font-size: 12px;
    color: #b0c4de;
    margin-bottom: 4px;
}

/* 模板分类 */
.template-categories {
    padding: 80px 0;
    background: #0f1419;
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(0, 234, 255, 0.3);
    color: #b0c4de;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(0, 234, 255, 0.1);
    border-color: #00eaff;
    color: #00eaff;
}

/* 模板列表 */
.template-list {
    padding: 80px 0;
    background: #0a0e1a;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.template-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.template-item.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    display: none;
}

.template-list .template-card {
    background: #1a1f2e;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 234, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.template-list .template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 234, 255, 0.1);
    border-color: rgba(0, 234, 255, 0.3);
}

.template-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.template-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00eaff, #0099cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.template-icon i {
    font-size: 20px;
    color: #0a0e1a;
}

.template-info {
    flex: 1;
}

.template-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e8f4fd;
    margin-bottom: 8px;
}

.template-info p {
    font-size: 14px;
    color: #b0c4de;
    line-height: 1.4;
}

.template-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.template-preview {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex: 1;
}

.preview-image {
    width: 80px;
    height: 100px;
    background: #0f1419;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 234, 255, 0.1);
    flex-shrink: 0;
}

.preview-image i {
    font-size: 24px;
    color: #00eaff;
}

.preview-details {
    flex: 1;
}

.preview-details span {
    font-size: 12px;
    color: #b0c4de;
    margin-bottom: 8px;
    display: block;
}

.preview-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preview-details li {
    font-size: 12px;
    color: #b0c4de;
    margin-bottom: 4px;
    position: relative;
    padding-left: 12px;
}

.preview-details li::before {
    content: '•';
    color: #00eaff;
    position: absolute;
    left: 0;
}

.template-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.template-stats {
    display: flex;
    gap: 16px;
}

.template-stats span {
    font-size: 12px;
    color: #b0c4de;
    display: flex;
    align-items: center;
    gap: 4px;
}

.template-stats i {
    color: #00eaff;
}

.btn-use-template {
    padding: 8px 16px;
    background: linear-gradient(135deg, #00eaff, #0099cc);
    border: none;
    color: #0a0e1a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-use-template:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 234, 255, 0.3);
}

/* 模板特色 */
.template-features {
    padding: 80px 0;
    background: #0f1419;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #1a1f2e;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 234, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 234, 255, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00eaff, #0099cc);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 24px;
    color: #0a0e1a;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e8f4fd;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: #b0c4de;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .templates-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .template-showcase {
        height: 300px;
    }
    
    .template-stack .template-card {
        width: 240px;
    }
    
    .template-1 { left: 0; }
    .template-2 { left: 20px; }
    .template-3 { left: 40px; }
    
    .categories-tabs {
        gap: 8px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .template-showcase {
        height: 250px;
    }
    
    .template-stack .template-card {
        width: 200px;
        padding: 16px;
    }
    
    .template-grid {
        gap: 16px;
    }
    
    .template-list .template-card {
        padding: 20px;
    }
} 