/* ========================================
   三亩地 - 实战教程页面样式
   复古港风风格：墨黑 + 米黄 + 暗红
   ======================================== */

/* Hero 区域 */
.tutorials-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}

.tutorials-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 46, 46, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 46, 46, 0.1) 0%, transparent 40%);
}

.tutorials-hero .hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    background: linear-gradient(135deg, #8b2e2e, #c41e3a);
    color: #f5f0e6;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tutorials-hero h1 {
    font-size: 48px;
    color: #f5f0e6;
    margin-bottom: 20px;
    line-height: 1.3;
}

.tutorials-hero h1 .highlight {
    color: #8b2e2e;
    position: relative;
}

.tutorials-hero p {
    font-size: 17px;
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #8b2e2e;
    color: #f5f0e6;
    padding: 14px 35px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #6b2222;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 46, 46, 0.4);
}

.btn-outline {
    background: transparent;
    color: #f5f0e6;
    border: 2px solid #8b2e2e;
    padding: 12px 33px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: #8b2e2e;
    color: #f5f0e6;
}

.hero-illustration {
    display: none;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-illustration {
        display: block;
    }
}

.code-block {
    background: #0d1117;
    border-radius: 10px;
    padding: 30px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: rotate(3deg);
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-block code {
    color: #e6e6e6;
}

.code-block .keyword { color: #ff7b72; }
.code-block .function { color: #d2a8ff; }
.code-block .variable { color: #79c0ff; }
.code-block .string { color: #a5d6ff; }

/* Filter Section */
.filter-section {
    background: #f5f0e6;
    padding: 40px 0;
    border-bottom: 1px solid #d4c9b5;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #d4c9b5;
    color: #666666;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #8b2e2e;
    color: #8b2e2e;
}

.filter-btn.active {
    background: #8b2e2e;
    border-color: #8b2e2e;
    color: #f5f0e6;
}

/* Projects Grid */
.tutorials-main {
    background: #f5f0e6;
    padding: 60px 0 80px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.project-card {
    background: #faf6ed;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d4c9b5;
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 46, 46, 0.15);
    border-color: #8b2e2e;
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #f5f0e6;
    z-index: 1;
}

.project-badge.beginner { background: #27ae60; }
.project-badge.intermediate { background: #f5a623; }
.project-badge.advanced { background: #c41e3a; }

.project-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-content {
    padding: 25px;
}

.project-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tech-tag {
    background: rgba(139, 46, 46, 0.1);
    color: #8b2e2e;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.project-content h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.project-content p {
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666666;
}

.project-stats strong {
    color: #1a1a1a;
}

.project-link {
    color: #8b2e2e;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 10px;
}

/* Guide Section */
.guide-section {
    background: #1a1a1a;
    padding: 80px 0;
}

.guide-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.guide-section .section-label {
    display: inline-block;
    background: rgba(139, 46, 46, 0.2);
    color: #8b2e2e;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.guide-section h2 {
    font-size: 36px;
    color: #f5f0e6;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b2e2e, #c41e3a);
    color: #f5f0e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(139, 46, 46, 0.4);
}

.step-content h4 {
    color: #f5f0e6;
    font-size: 18px;
    margin-bottom: 10px;
}

.step-content p {
    color: #999999;
    font-size: 14px;
    line-height: 1.7;
}

/* 响应式 */
@media (max-width: 992px) {
    .tutorials-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .tutorials-hero .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-illustration {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .tutorials-hero {
        padding: 100px 20px 60px;
    }
    
    .tutorials-hero h1 {
        font-size: 32px;
    }
    
    .tutorials-hero p {
        font-size: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .filter-section {
        top: 60px;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}
