/* ===========================
   關於我們/常見問題頁面樣式
   =========================== */

/* === 主要佈局 === */
.about-section {
    background: #f8f9fa;
    min-height: 100vh;
}

.about-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* === 頁面標題區域 === */
.about-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    margin-bottom: 0;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.about-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* === 內容區域 === */
.about-content {
    padding: 2rem 1.5rem;
}

/* === 手風琴樣式 === */
.about-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.about-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
}

.about-toggle {
    color: #333;
    background: none;
    border: none;
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0;
}

.about-toggle:hover {
    background: #e3f2fd;
    color: #007bff;
    text-decoration: none;
}

.about-toggle:focus {
    box-shadow: none;
    outline: none;
}

.about-toggle[aria-expanded="true"] {
    background: #007bff;
    color: white;
}

.about-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* === 圖標動畫 === */
.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

/* === 內容區域 === */
.about-content-body {
    padding: 1.5rem;
    background: #fafbfc;
}

.about-text {
    line-height: 1.8;
    color: #495057;
}

.about-text h1, .about-text h2, .about-text h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.about-text h1 {
    font-size: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.about-text h2 {
    font-size: 1.3rem;
    color: #007bff;
}

.about-text h3 {
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text ul, .about-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-text a {
    color: #007bff;
    text-decoration: none;
}

.about-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.about-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* === 特殊樣式類別 === */
.img_qa_size {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
}

/* === 載入和錯誤狀態 === */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

#errorState img {
    opacity: 0.6;
    max-width: 200px;
}

/* === 響應式設計 === */
@media (max-width: 768px) {
    .about-title {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .about-content {
        padding: 1.5rem 1rem;
    }
    
    .about-toggle {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .about-content-body {
        padding: 1rem;
    }
    
    .about-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .about-header {
        padding: 2rem 1rem;
    }
    
    .about-title {
        font-size: 1.75rem;
    }
    
    .about-toggle {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .toggle-icon {
        font-size: 0.8rem;
    }
}

/* === 動畫效果 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card {
    animation: fadeInUp 0.6s ease forwards;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }
.about-card:nth-child(4) { animation-delay: 0.4s; }
.about-card:nth-child(5) { animation-delay: 0.5s; }

/* === 顏色變數覆寫 === */
.about-card .card-header {
    background-color: #f8f9fa;
}

.about-toggle {
    color: #333;
}

.about-toggle:hover {
    color: #007bff;
}

/* === 無障礙改善 === */
.about-toggle:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* === 印刷樣式 === */
@media print {
    .about-section {
        background: white;
    }
    
    .about-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .about-toggle[aria-expanded="false"] + .collapse {
        display: block !important;
    }
} 