/* Start custom CSS for html, class: .elementor-element-e98dcb2 */:root {
    --primary: #0056b3;
    --bg-color: #f4f7f6;
    --container-bg: #ffffff;
    --text-color: #333333;
    --text-light: #555555;
    --table-border: #e0e0e0;
    --row-even: #f9f9f9;
    --row-hover: #f1f5f9;
    --notice-bg: #f8f9fa;
    --notice-border: #0056b3;
}

.container {
    max-width: 1000px;
    width: 100%;            /* 新增：強制佔滿父層，避免跑版 */
    box-sizing: border-box; /* 新增：確保 padding 計算在寬度內 */
    margin: 0 auto;
    background: var(--container-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.page-title {
    text-align: center;
    color: var(--text-color);
    font-size: 2.2rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 24px;
}

.notice-box {
    background-color: var(--notice-bg);
    color: var(--text-light);
    padding: 16px 24px;
    font-size: 0.95rem;
    margin: 0 auto 32px auto;
    border-radius: 0 6px 6px 0;
}

.notice-box p {
    margin: 0;
}

.table-responsive {
    width: 100%;             /* 新增：確保容器寬度正確 */
    max-width: 100%;         /* 新增：防止被內部 table 撐破版面 */
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    border: 1px solid var(--table-border);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
    -webkit-overflow-scrolling: touch; /* 新增：讓 iOS 滑動更滑順 */
}

.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    margin: 0;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--table-border);
}

th {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

tr {
    transition: background-color 0.2s ease;
}

tr:nth-child(even) {
    background-color: var(--row-even);
}

tr:hover {
    background-color: var(--row-hover);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
    font-style: italic;
}

/* =========================================
   手機版響應式設計 (小於 768px 適用)
   ========================================= */
@media (max-width: 768px) {
    /* 已移除 body 的 padding，避免破壞 Elementor 全域版面 */
    
    .container {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .page-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .notice-box {
        padding: 12px 15px;
        font-size: 0.85rem;
        margin-bottom: 24px;
        border-left-width: 3px;
    }

    th, td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    td:first-child, th:first-child {
        position: sticky;
        left: 0;
        background-color: var(--container-bg);
        box-shadow: 2px 0 5px -2px rgba(0,0,0,0.15); 
    }

    th:first-child {
        background-color: var(--primary);
        z-index: 3;
        box-shadow: 2px 2px 5px -2px rgba(0,0,0,0.3);
    }
    
    tr:nth-child(even) td:first-child {
        background-color: var(--row-even);
    }
    tr:hover td:first-child {
        background-color: var(--row-hover);
    }
}

/* =========================================
   連結特殊標記樣式
   ========================================= */
td a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

td a::after {
    content: "↗";
    font-size: 0.85em;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

td a:hover {
    color: #003d82;
    text-decoration: underline;
}

td a:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}/* End custom CSS */