/* 強制確保內容區塊初始狀態為隱藏 */
.category .content {
    display: none !important;
}

/* 讓標題看起來可以點擊 */
.category h2 {
    cursor: pointer;
    color: #007BFF;
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.category h2 i {
    margin-right: 10px;
}

/* 其他樣式保持不變 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(135deg, #007BFF, #00BFFF);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: bold;
}

header p {
    margin: 10px 0 0;
    font-size: 1.5rem;
    font-weight: 300;
}

main {
    padding: 40px 0;
}

.category {
    background: #fff;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.category h3 {
    color: #333;
    font-size: 1.8rem;
    margin-top: 0;
}

.category p, .category ul {
    font-size: 1.2rem;
    color: #555;
}

.category ul {
    list-style-type: disc;
    padding-left: 20px;
}

.category table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.category table th, .category table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.category table th {
    background: #f4f4f4;
    font-weight: bold;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

footer p {
    margin: 0;
    font-size: 1.1rem;
}

/* 動畫效果 */
.animate__animated {
    animation-duration: 1s;
}

/* 響應式設計 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.2rem;
    }

    .category h2 {
        font-size: 2rem;
    }

    .category h3 {
        font-size: 1.5rem;
    }

    .category p, .category ul {
        font-size: 1rem;
    }

    .category table th, .category table td {
        padding: 10px;
    }
}