/* ================================
   projects.html 专属样式 - 项目展示布局
================================ */

/* Hero 区域 */
.projects-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b1b 100%);
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, rgba(196, 77, 77, 0.05) 0px, rgba(196, 77, 77, 0.05) 1px, transparent 1px, transparent 50px),
        repeating-linear-gradient(0deg, rgba(196, 77, 77, 0.05) 0px, rgba(196, 77, 77, 0.05) 1px, transparent 1px, transparent 50px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-label {
    display: block;
    font-size: 13px;
    letter-spacing: 5px;
    color: #c44d4d;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 56px;
    color: #f5f0e8;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 18px;
    color: #b8a898;
    max-width: 600px;
    margin: 0 auto 40px;
}

.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item {
    padding: 8px 20px;
    background: rgba(196, 77, 77, 0.15);
    border: 1px solid rgba(196, 77, 77, 0.3);
    color: #d4b499;
    font-size: 13px;
    border-radius: 20px;
}

.hero-decoration {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.code-block {
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #c44d4d;
}

.code-block pre {
    margin: 0;
    color: #888;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.code-block code {
    color: #d4b499;
}

/* 统计区域 */
.stats-section {
    background: #f5f0e8;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: bold;
    color: #c44d4d;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* 项目展示区 */
.projects-showcase {
    padding: 100px 0;
    background: #faf8f5;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 16px;
    color: #888;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(196, 77, 77, 0.15);
}

.project-card.project-large {
    grid-column: span 2;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    padding: 12px 30px;
    background: #c44d4d;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.view-project:hover {
    background: #a33d3d;
}

.project-info {
    padding: 25px;
}

.project-category {
    display: inline-block;
    font-size: 12px;
    color: #c44d4d;
    margin-bottom: 10px;
    padding: 4px 12px;
    background: rgba(196, 77, 77, 0.1);
    border-radius: 15px;
}

.project-title {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: #c44d4d;
}

.project-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 12px;
    background: #f5f0e8;
    color: #666;
    font-size: 12px;
    border-radius: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.project-level {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.project-level.beginner {
    background: #d4edda;
    color: #155724;
}

.project-level.intermediate {
    background: #fff3cd;
    color: #856404;
}

.project-level.advanced {
    background: #f8d7da;
    color: #721c24;
}

/* 流程区域 */
.process-section {
    padding: 100px 0;
    background: #1a1a1a;
}

.process-section .section-title,
.process-section .section-desc {
    color: #f5f0e8;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(196, 77, 77, 0.2);
    transition: all 0.3s ease;
}

.process-step:hover {
    background: rgba(196, 77, 77, 0.1);
    border-color: #c44d4d;
}

.step-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #c44d4d;
    margin-bottom: 15px;
}

.process-step h4 {
    font-size: 16px;
    color: #f5f0e8;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card.project-large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-decoration {
        display: none;
    }
}
