/* 國家運輸安全調查委員會網站樣式 - 基於真實 TTSB 網站設計 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 教學警告橫幅 */
.educational-banner {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 0.9em;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.banner-content small {
    font-size: 0.8em;
    opacity: 0.9;
}

/* 網站頁首 */
.site-header {
    background-color: white;
    border-bottom: 3px solid #0066cc;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ttsb-logo {
    width: 80px;
    height: 80px;
}

.site-title h1 {
    font-size: 1.8em;
    color: #003366;
    font-weight: bold;
    margin-bottom: 5px;
}

.english-subtitle {
    font-size: 1em;
    color: #666;
    font-style: italic;
}

/* 導航路徑 */
.breadcrumb-nav {
    background-color: #f1f3f4;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 0.9em;
}

.breadcrumb-link {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.current-page {
    color: #333;
    font-weight: bold;
}

/* 主要內容 */
.main-content {
    background-color: white;
    min-height: 100vh;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 案件標題 */
.case-title {
    font-size: 1.4em;
    color: #003366;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0066cc;
}

/* 案件基本資訊表格 */
.case-info-section {
    margin-bottom: 40px;
}

.case-info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.case-info-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.info-label {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #003366;
    width: 150px;
    white-space: nowrap;
}

.info-content {
    color: #333;
}

/* 內容區塊 */
.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.3em;
    color: #003366;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0066cc;
}

.section-content {
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* 調查階段 */
.investigation-stages {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stage {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 20px;
    font-weight: bold;
    color: #666;
    background-color: #f8f9fa;
    font-size: 0.9em;
}

.stage.completed {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.stage.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #333;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 調查發現區塊 */
.findings-section {
    margin-bottom: 30px;
}

.subsection-title {
    font-size: 1.1em;
    color: #003366;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 25px;
}

.finding-category {
    font-size: 1em;
    color: #0066cc;
    font-weight: bold;
    margin: 15px 0 10px 0;
}

.finding-list {
    margin-bottom: 20px;
}

.finding-item {
    margin-bottom: 8px;
    padding-left: 0;
    line-height: 1.7;
    color: #333;
}

/* 改善建議區塊 */
.recommendations-section {
    margin-top: 20px;
}

.rec-target {
    font-size: 1.1em;
    color: #0066cc;
    font-weight: bold;
    margin: 25px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #0066cc;
}

.recommendation-list {
    margin-bottom: 20px;
}

.rec-item {
    margin-bottom: 8px;
}

.rec-link {
    color: #0066cc;
    text-decoration: none;
    line-height: 1.7;
}

.rec-link:hover {
    text-decoration: underline;
}

/* 檔案下載區塊 */
.download-section {
    margin-top: 20px;
}

.download-category {
    font-size: 1.1em;
    color: #003366;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.download-item {
    margin-bottom: 10px;
}

.download-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.download-link:hover {
    text-decoration: underline;
}

.download-link::before {
    content: "📄 ";
    margin-right: 5px;
}

/* 特別調查資訊區 */
.special-investigation {
    margin-top: 40px;
    border-top: 2px solid #0066cc;
    padding-top: 30px;
}

.investigation-alert {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.investigation-alert:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.investigation-alert h3 {
    color: #1565c0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.investigation-alert p {
    color: #333;
    margin-bottom: 10px;
}

.alert-note {
    font-style: italic;
    color: #666;
}

/* 隱藏線索區域 */
.hidden-clue {
    display: none;
    background: #2d3748;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
}

.clue-container {
    position: relative;
}

.clue-text {
    color: #a0aec0;
    margin-bottom: 15px;
    font-family: 'Microsoft JhengHei', sans-serif;
}

.git-commit {
    display: block;
    background: #1a202c;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #4a5568;
    font-size: 0.9em;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    color: #e2e8f0;
}

.clue-hint {
    margin-top: 15px;
    color: #fbd38d;
    font-style: italic;
    font-family: 'Microsoft JhengHei', sans-serif;
}

/* 頁尾 */
.site-footer {
    background-color: #003366;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    color: #e0e0e0;
}

.disclaimer {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-top: 15px;
}

.educational-notice {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

.educational-notice small {
    color: #ffd700;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .content-container {
        padding: 20px 15px;
    }
    
    .case-title {
        font-size: 1.2em;
    }
    
    .section-title {
        font-size: 1.2em;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .site-title h1 {
        font-size: 1.5em;
    }
    
    .investigation-stages {
        flex-direction: column;
        gap: 5px;
    }
    
    .stage {
        text-align: center;
    }
    
    .case-info-table {
        font-size: 0.9em;
    }
    
    .info-label {
        width: 120px;
        font-size: 0.85em;
    }
    
    .hidden-clue {
        padding: 15px;
        font-size: 0.85em;
    }
    
    .git-commit {
        font-size: 0.8em;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .educational-banner {
        font-size: 0.8em;
        padding: 6px;
    }
    
    .header-container,
    .nav-container,
    .content-container,
    .footer-container {
        padding: 0 10px;
    }
    
    .case-title {
        font-size: 1.1em;
        line-height: 1.3;
    }
    
    .ttsb-logo {
        width: 60px;
        height: 60px;
    }
    
    .site-title h1 {
        font-size: 1.3em;
    }
    
    .english-subtitle {
        font-size: 0.9em;
    }
}

/* 特殊效果 */
.rec-link:hover::before {
    content: "→ ";
    color: #0066cc;
}

.download-link:hover::before {
    content: "📥 ";
}

/* 可訪問性改善 */
.stage:focus,
.investigation-alert:focus,
.rec-link:focus,
.download-link:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* 列印樣式 */
@media print {
    .educational-banner,
    .hidden-clue,
    .site-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .case-title,
    .section-title {
        color: black;
    }
    
    .investigation-alert {
        background: #f0f0f0;
        border: 1px solid #ccc;
    }
}
