/* ==================== 三道防火牆頁面樣式 ==================== */

/* Hero區域 */
.firewall-hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.firewall-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.firewall-hero-content p {
    font-size: 18px;
    opacity: 0.95;
}

/* 引入區域 */
.firewall-intro {
    padding: 60px 0;
    background: white;
}

.intro-box {
    background: rgba(37, 99, 235, 0.05);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.intro-box p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.intro-box p.highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

/* 詳細說明區域 */
.firewall-details {
    padding: 80px 0;
    background: #f9fafb;
}

.firewall-section {
    background: white;
    padding: 60px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.firewall-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.firewall-number-large {
    font-size: 72px;
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 100px;
}

.firewall-header-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.firewall-question {
    font-size: 16px;
    color: var(--text-light);
}

/* 核心問題 */
.core-question {
    background: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.core-question h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.core-question p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.core-question p.warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 15px;
    border-radius: 4px;
    color: #7f1d1d;
    font-weight: 600;
}

/* 對比網格 */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.comparison-item {
    padding: 30px;
    border-radius: 12px;
}

.comparison-item.problem {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid var(--danger-color);
}

.comparison-item.solution {
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--success-color);
}

.comparison-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.comparison-item ul {
    list-style: none;
}

.comparison-item li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.comparison-item.problem li:before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-weight: 700;
}

.comparison-item.solution li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* 判斷標準 */
.judgment-standard {
    background: rgba(37, 99, 235, 0.1);
    padding: 20px;
    border-radius: 8px;
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 600;
    border-left: 4px solid var(--secondary-color);
}

/* 模型部分 */
.model-section {
    background: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.model-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.model-formula {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 20px;
}

.model-formula p {
    font-size: 16px;
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.model-section p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 邏輯總結區域 */
.firewall-logic {
    padding: 80px 0;
    background: white;
}

.firewall-logic h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text);
}

.logic-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.logic-item {
    background: linear-gradient(135deg, var(--secondary-color), #1d4ed8);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 250px;
}

.logic-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.logic-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.logic-item p {
    font-size: 14px;
    opacity: 0.9;
}

.logic-arrow {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: 700;
}

.logic-conclusion {
    text-align: center;
    font-size: 18px;
    color: var(--text);
    padding: 30px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

/* CTA區域 */
.firewall-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.firewall-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .firewall-hero-content h1 {
        font-size: 32px;
    }

    .firewall-section {
        padding: 40px;
    }

    .firewall-header {
        flex-direction: column;
        gap: 15px;
    }

    .firewall-number-large {
        font-size: 48px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .logic-grid {
        flex-direction: column;
    }

    .logic-item {
        max-width: 100%;
    }

    .logic-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .firewall-hero {
        padding: 60px 0;
    }

    .firewall-hero-content h1 {
        font-size: 24px;
    }

    .firewall-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .firewall-header-text h2 {
        font-size: 22px;
    }

    .firewall-details {
        padding: 40px 0;
    }

    .firewall-logic h2 {
        font-size: 24px;
    }

    .firewall-cta h2 {
        font-size: 24px;
    }
}
