/* 通用樣式設定 */
body {
    font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    border-radius: 8px 8px 0 0;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.2em;
    margin: 0;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.8em;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 40px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.8;
}

.key-points {
    counter-reset: point-counter;
}

.point {
    position: relative;
    margin-bottom: 20px;
    padding: 15px 20px 15px 50px;
    background-color: #f1f8ff;
    border-left: 4px solid #3498db;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.point:hover {
    background-color: #e3f2fd;
    transform: translateX(5px);
}

.point::before {
    counter-increment: point-counter;
    content: counter(point-counter);
    position: absolute;
    left: 15px;
    top: 15px;
    background-color: #3498db;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 關鍵字強調樣式 */
.keyword {
    font-weight: bold;
    color: #e74c3c;
}

.definition {
    font-weight: bold;
    color: #2980b9;
}

.principle {
    font-weight: bold;
    color: #27ae60;
}

.process {
    font-weight: bold;
    color: #8e44ad;
}

.risk {
    font-weight: bold;
    color: #d35400;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .point {
        padding: 12px 15px 12px 45px;
    }
}

/* 頂部導航 */
.nav {
    display: flex;
    justify-content: center;
    background-color: #2c3e50;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: #3498db;
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5em;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.back-to-top:hover {
    opacity: 1;
}

/* 打印樣式 */
@media print {
    .nav, .back-to-top {
        display: none;
    }
    
    body {
        background-color: white;
    }
    
    .container {
        box-shadow: none;
        max-width: 100%;
    }
    
    .point:hover {
        transform: none;
    }
}
