/* ========================================
   三亩地 - 编程思维页面样式
   复古港风风格：墨黑 + 米黄 + 暗红
   ======================================== */

/* Hero 区域 */
.thinking-hero {
    background: linear-gradient(135deg, #0d1117 0%, #1a1a1a 100%);
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}

.thinking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(139, 46, 46, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 46, 46, 0.08) 0%, transparent 40%);
}

.thinking-hero .hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(139, 46, 46, 0.2);
    color: #8b2e2e;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(139, 46, 46, 0.3);
}

.thinking-hero h1 {
    font-size: 48px;
    color: #f5f0e6;
    margin-bottom: 20px;
    line-height: 1.3;
}

.thinking-hero h1 .highlight {
    background: linear-gradient(135deg, #8b2e2e, #c41e3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thinking-hero p {
    font-size: 17px;
    color: #cccccc;
    line-height: 1.8;
}

.hero-graphic {
    display: none;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-graphic {
        display: block;
    }
}

.brain-diagram {
    width: 320px;
    height: 320px;
    position: relative;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brain-part {
    position: absolute;
    background: rgba(139, 46, 46, 0.8);
    color: #f5f0e6;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: counter-rotate 30s linear infinite;
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.part-1 { top: 0; left: 50%; transform: translateX(-50%); }
.part-2 { right: 0; top: 50%; transform: translateY(-50%); }
.part-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.part-4 { left: 0; top: 50%; transform: translateY(-50%); }

/* Core Thinking Section */
.core-thinking {
    background: #f5f0e6;
    padding: 80px 0;
}

.core-thinking .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    background: rgba(139, 46, 46, 0.1);
    color: #8b2e2e;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.core-thinking h2 {
    font-size: 36px;
    color: #1a1a1a;
}

.thinking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.thinking-card {
    background: #faf6ed;
    border: 1px solid #d4c9b5;
    border-radius: 12px;
    padding: 35px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.thinking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8b2e2e, #c41e3a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.thinking-card:hover::before {
    transform: scaleX(1);
}

.thinking-card.primary {
    background: linear-gradient(135deg, rgba(139, 46, 46, 0.05), rgba(139, 46, 46, 0.1));
    border-color: #8b2e2e;
}

.thinking-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 46, 46, 0.15);
}

.thinking-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.thinking-card h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.thinking-desc {
    color: #666666;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.thinking-details {
    background: rgba(139, 46, 46, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #8b2e2e;
}

.thinking-details h4 {
    color: #8b2e2e;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.thinking-details ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.thinking-details li {
    color: #666666;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.7;
}

.thinking-details li::before {
    content: '▸';
    color: #8b2e2e;
    margin-right: 8px;
}

.thinking-details p {
    color: #1a1a1a;
    font-size: 13px;
    line-height: 1.7;
}

/* Logic Training Section */
.logic-training {
    background: #1a1a1a;
    padding: 80px 0;
}

.logic-training .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.logic-training h2 {
    color: #f5f0e6;
}

.training-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.training-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #2d2d2d;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #3d3d3d;
    transition: all 0.3s ease;
}

.training-item:hover {
    border-color: #8b2e2e;
    transform: translateX(10px);
}

.training-number {
    font-size: 40px;
    font-weight: bold;
    color: rgba(139, 46, 46, 0.4);
    line-height: 1;
    flex-shrink: 0;
}

.training-content h3 {
    color: #f5f0e6;
    font-size: 20px;
    margin-bottom: 10px;
}

.training-content p {
    color: #999999;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.training-tips {
    background: rgba(139, 46, 46, 0.15);
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13px;
    color: #cccccc;
}

.training-tips strong {
    color: #8b2e2e;
}

/* Problem Solving Section */
.problem-solving {
    background: #f5f0e6;
    padding: 80px 0;
}

.problem-solving .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.problem-solving h2 {
    color: #1a1a1a;
}

.framework-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.framework-step {
    background: #faf6ed;
    border: 1px solid #d4c9b5;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.framework-step:hover {
    border-color: #8b2e2e;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 46, 46, 0.12);
}

.step-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    background: linear-gradient(135deg, #8b2e2e, #c41e3a);
    color: #f5f0e6;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.framework-step h3 {
    color: #1a1a1a;
    font-size: 20px;
    margin: 15px 0 12px;
}

.framework-step > p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.step-example {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    font-size: 13px;
    color: #cccccc;
    line-height: 1.8;
}

.step-example strong {
    color: #f5f0e6;
}

.step-example pre {
    background: #0d1117;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
    overflow-x: auto;
}

.step-example code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #e6e6e6;
}

/* Resources Section */
.resources-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
}

.resources-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.resources-section h2 {
    color: #f5f0e6;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
}

.resource-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #8b2e2e;
    transform: translateY(-5px);
}

.resource-type {
    display: inline-block;
    background: rgba(139, 46, 46, 0.2);
    color: #8b2e2e;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 15px;
}

.resource-card h3 {
    color: #f5f0e6;
    font-size: 18px;
    margin-bottom: 10px;
}

.resource-card p {
    color: #999999;
    font-size: 14px;
    line-height: 1.7;
}

/* 响应式 */
@media (max-width: 992px) {
    .thinking-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .thinking-hero .hero-content {
        max-width: 100%;
    }
    
    .hero-graphic {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .thinking-hero {
        padding: 100px 20px 60px;
    }
    
    .thinking-hero h1 {
        font-size: 32px;
    }
    
    .brain-diagram {
        width: 260px;
        height: 260px;
    }
    
    .brain-part {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .thinking-grid,
    .framework-showcase,
    .resources-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .training-list {
        padding: 0 20px;
    }
    
    .training-item {
        flex-direction: column;
        gap: 15px;
    }
}
