/* ================================
   methods.html 专属样式 - 学习方法布局
================================ */

/* Hero 区域 */
.methods-hero {
    position: relative;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #c44d4d;
    top: -100px;
    right: -50px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #1a1a1a;
    bottom: 50px;
    left: -80px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #d4b499;
    top: 40%;
    left: 10%;
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-text-block {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: #c44d4d;
    margin-bottom: 20px;
    padding: 6px 15px;
    border: 1px solid rgba(196, 77, 77, 0.3);
    border-radius: 20px;
}

.hero-text-block h1 {
    font-size: 52px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
}

.learning-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-icon {
    font-size: 32px;
}

.step-label {
    font-size: 14px;
    color: #666;
}

.path-step.active .step-icon {
    transform: scale(1.2);
}

.path-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #c44d4d, #d4b499);
}

/* 方法网格区 */
.methods-grid-section {
    padding: 100px 0;
    background: #faf8f5;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 25px;
}

.method-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(196, 77, 77, 0.15);
}

.method-card-large {
    grid-column: span 2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-number {
    font-size: 36px;
    font-weight: bold;
    color: rgba(196, 77, 77, 0.2);
}

.card-category {
    font-size: 12px;
    color: #c44d4d;
    padding: 4px 12px;
    background: rgba(196, 77, 77, 0.1);
    border-radius: 15px;
}

.card-body h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.card-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.method-steps {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.method-steps li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: #555;
}

.method-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c44d4d;
    font-weight: bold;
}

.project-learning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.project-learning-tags span {
    padding: 6px 15px;
    background: #f5f0e8;
    color: #666;
    font-size: 12px;
    border-radius: 20px;
}

.card-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.read-btn {
    color: #c44d4d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s ease;
    display: inline-block;
}

.read-btn:hover {
    transform: translateX(5px);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.method-card h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.method-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-link {
    color: #c44d4d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* 路线图区域 */
.roadmap-section {
    padding: 100px 0;
    background: #1a1a1a;
}

.section-title-block {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-block h2 {
    font-size: 36px;
    color: #f5f0e8;
    margin-bottom: 15px;
}

.section-title-block p {
    font-size: 16px;
    color: #888;
}

.roadmap-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.roadmap-timeline:before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #c44d4d, #d4b499);
}

.roadmap-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.roadmap-marker {
    width: 60px;
    height: 60px;
    background: #2d2d2d;
    border: 3px solid #c44d4d;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 2;
}

.roadmap-content {
    flex: 1;
    padding-top: 10px;
}

.roadmap-content h4 {
    font-size: 18px;
    color: #f5f0e8;
    margin-bottom: 10px;
}

.roadmap-content p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 10px;
}

.time-estimate {
    font-size: 12px;
    color: #c44d4d;
    padding: 4px 12px;
    background: rgba(196, 77, 77, 0.1);
    border-radius: 15px;
    display: inline-block;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .method-card-large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero-text-block h1 {
        font-size: 36px;
    }
    
    .learning-path {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .path-line {
        display: none;
    }
    
    .roadmap-timeline:before {
        left: 20px;
    }
    
    .roadmap-marker {
        width: 40px;
        height: 40px;
    }
}
