/* ========================================
   三亩地 - 调试经验页面样式
   复古港风风格：墨黑 + 米黄 + 暗红
   ======================================== */

/* Hero 区域 - 终端风格 */
.debug-hero {
    background: linear-gradient(135deg, #0d1117 0%, #1a1a1a 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 46, 46, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 46, 46, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.debug-hero .hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 2;
}

.terminal-window {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid #333;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.terminal-title {
    margin-left: 15px;
    color: #999;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 25px;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.code-line {
    margin-bottom: 10px;
    line-height: 1.6;
}

.prompt {
    color: #27ca40;
    margin-right: 10px;
}

.cmd {
    color: #569cd6;
}

.output {
    color: #cccccc;
    padding-left: 20px;
}

.success {
    color: #27ca40;
    padding-left: 20px;
}

.debug-hero .hero-title {
    font-size: 48px;
    color: #f5f0e6;
    margin-bottom: 15px;
}

.debug-hero .hero-title .highlight {
    color: #8b2e2e;
}

.debug-hero .hero-desc {
    font-size: 18px;
    color: #999999;
    max-width: 600px;
    margin: 0 auto;
}

/* Methods Section */
.debug-methods {
    background: #f5f0e6;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    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;
}

.section-header h2 {
    font-size: 36px;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #8b2e2e;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.method-card {
    background: #faf6ed;
    border: 1px solid #d4c9b5;
    border-radius: 10px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 46, 46, 0.15);
    border-color: #8b2e2e;
}

.method-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.method-card h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.method-card > p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.method-card ul {
    text-align: left;
    padding-left: 20px;
}

.method-card li {
    color: #666666;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.method-card li::before {
    content: '▸';
    color: #8b2e2e;
    margin-right: 8px;
}

/* Tools Section */
.tools-section {
    background: #1a1a1a;
    padding: 80px 0;
}

.tools-section .section-header h2 {
    color: #f5f0e6;
}

.tools-section .section-subtitle {
    color: #999999;
}

.tools-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.tool-item {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 30px;
    border: 1px solid #3d3d3d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8b2e2e, #c41e3a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-item:hover::before {
    transform: scaleX(1);
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #8b2e2e;
}

.tool-badge {
    display: inline-block;
    background: #8b2e2e;
    color: #f5f0e6;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.tool-item h3 {
    color: #f5f0e6;
    font-size: 20px;
    margin-bottom: 10px;
}

.tool-item > p {
    color: #999999;
    font-size: 14px;
    margin-bottom: 20px;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-features span {
    background: #3d3d3d;
    color: #cccccc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* Cases Section */
.cases-section {
    background: #f5f0e6;
    padding: 80px 0;
}

.cases-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.case-card {
    background: #faf6ed;
    border: 1px solid #d4c9b5;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #8b2e2e;
}

.case-header {
    background: #1a1a1a;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.case-level {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #f5f0e6;
}

.case-level.difficult { background: #c41e3a; }
.case-level.medium { background: #f5a623; }
.case-level.easy { background: #27ae60; }

.case-header h3 {
    color: #f5f0e6;
    font-size: 18px;
}

.case-body {
    padding: 25px;
}

.case-body p {
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.case-body strong {
    color: #1a1a1a;
}

.case-body ol {
    padding-left: 20px;
    margin: 15px 0;
}

.case-body li {
    color: #666666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Tips Section */
.tips-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
}

.tips-section .section-header h2 {
    color: #f5f0e6;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #8b2e2e;
    transform: translateY(-5px);
}

.tip-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    font-weight: bold;
    color: rgba(139, 46, 46, 0.3);
    line-height: 1;
}

.tip-card h4 {
    color: #f5f0e6;
    font-size: 18px;
    margin-bottom: 12px;
    padding-right: 50px;
}

.tip-card p {
    color: #999999;
    font-size: 14px;
    line-height: 1.7;
}

/* 响应式 */
@media (max-width: 768px) {
    .debug-hero {
        padding: 100px 20px 60px;
    }
    
    .debug-hero .hero-title {
        font-size: 32px;
    }
    
    .terminal-window {
        margin: 0 0 30px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .methods-grid,
    .tools-showcase,
    .cases-list,
    .tips-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
