/* ===== 首页样式 ===== */

.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
}

.welcome-text h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.welcome-text p {
    font-size: 14px;
    opacity: 0.9;
}

.welcome-text .highlight {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

.quick-actions .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.quick-actions .btn-primary:hover {
    background: var(--gray-100);
}

.quick-actions .btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.quick-actions .btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== 模板卡片 ===== */
.template-section {
    margin-bottom: 28px;
}

.template-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.template-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.template-card .card-icon {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.template-card.safety .card-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.template-card.env .card-icon {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.template-card .card-content {
    padding: 20px;
    flex: 1;
}

.template-card .card-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.template-card .card-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.template-card .card-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.template-card .card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.template-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.template-card .card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    border-top: 1px solid var(--gray-200);
    transition: var(--transition);
}

.template-card .card-action:hover {
    background: var(--primary-bg);
}

/* ===== 项目文件快览 ===== */
.project-files-section {
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .template-cards {
        grid-template-columns: 1fr;
    }
}
