/* ===== 2025 United Section 樣式 ===== */

/* ===== 桌面版樣式 (Desktop Styles) ===== */

/* United Section 基礎設定 */
.united {
    position: relative;
    overflow: hidden;
    background: url('../../img/2025/intro_background.jpg');
}

.united>* {
    z-index: 2;
}

.united_logo {
    width: 450px;
}

/* United 標籤樣式 */
.united_tag {
    width: 70%;
    margin: 20px auto;
    padding: 0 50px 30px 50px;
    background: #9196FF;
    border: 4px solid #ffffff;
    border-radius: 70px;
    color: #000000;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.united_tag::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -30px;
    right: 20px;
    bottom: 10px;
    background: #F0FF96;
    border-radius: 70px;
    z-index: -1;
}

/* United Airlines 飛機航班表格樣式 */
#united_table_1 {
    width: 100%;
    border-collapse: collapse;
    font-family: "Noto Sans TC", Arial;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#united_table_1 thead {
    background-color: #343579;
    color: white;
}

#united_table_1 thead th {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

#united_table_1 thead th:last-child {
    border-right: none;
}

#united_table_1 tbody tr {
    background-color: white;
}

#united_table_1 tbody tr:nth-child(even) {
    background-color: #8381B6;
    color: white;
}

#united_table_1 tbody tr:nth-child(odd) {
    background-color: white;
    color: #333;
}

#united_table_1 tbody td {
    padding: 12px 15px;
    text-align: center;
    font-size: 18px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    font-family: "Noto Sans TC", Arial;
}

#united_table_1 tbody tr:nth-child(even) td {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

#united_table_1 tbody td:last-child {
    border-right: none;
}

/* 航班號碼特殊樣式 */
#united_table_1 tbody td:first-child {
    font-weight: bold;
    font-size: 18px;
}

/* 時間格式樣式 */
#united_table_1 tbody td:nth-child(2),
#united_table_1 tbody td:nth-child(3) {
    /*font-family: monospace;*/
    font-family: "Noto Sans TC", Arial;
}

/* 日期標示樣式 */
#united_table_1 .date-tag {
    vertical-align: top;
    font-size: 11px;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-block;
}

/* 底部註解樣式 */
.table-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: left;
}

/* United 左上角半圓形裝飾 */
.united-shape-semicircle-left {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: #8B7FD7;
    border-radius: 50%;
    top: 10%;
    left: -100px;
    z-index: 1;
}

/* United 右下角裝飾元素 */
/* 黃色半圓 */
.united-shape-circle-yellow-right {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #E7EC97;
    border-radius: 50%;
    bottom: calc(60px + 50px + 60px);
    right: -30px;
    z-index: 3;
}

/* 橙色半圓 */
.united-shape-semicircle-orange-right {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: #FF8F60;
    border-radius: 50%;
    bottom: -60px;
    right: -60px;
    z-index: 2;
}

/* ===== 平板版樣式 (Tablet Styles) ===== */
@media (max-width: 768px) {

    /* 表格響應式 */
    #united_table_1 {
        font-size: 12px;
    }

    #united_table_1 thead th,
    #united_table_1 tbody td {
        padding: 8px 10px;
    }

    #united_table_1 tbody td:first-child {
        font-size: 13px;
    }

    /* 左上角半圓 - 平板版 */
    .united-shape-semicircle-left {
        width: 150px;
        height: 150px;
        top: -75px;
        left: -75px;
    }

    /* 右下角裝飾 - 平板版 */
    .united-shape-circle-yellow-right {
        width: 50px;
        height: 50px;
        bottom: calc(-50px + 40px + 50px);
        right: -25px;
    }

    .united-shape-semicircle-orange-right {
        width: 100px;
        height: 100px;
        bottom: -50px;
        right: -50px;
    }
}

/* ===== 手機版樣式 (Mobile Styles) ===== */
@media (max-width: 480px) {
    .united {
        background: url('../../img/2025/intro_background.jpg');
    }

    .united .container .col-md-10 {
        padding: 0;
    }

    /* 表格響應式 - 手機版 */
    #united_table_1 {
        font-size: 11px;
    }

    #united_table_1 thead th,
    #united_table_1 tbody td {
        padding: 6px 8px;
    }

    #united_table_1 .date-tag {
        font-size: 10px;
        padding: 1px 4px;
    }

    .united_logo {
        width: 250px;
    }

    .united::after {
        width: 90px;
        height: 107px;
        background-size: 120px, 107px;
        top: -2px;
        right: 0;
    }

    /* United 標籤樣式 */
    .united_tag {
        width: 91%;
        margin: 0 0 0 35px;
        padding: 0 35px 20px 0px;
        background: #9196FF;
        border: 3px solid #ffffff;
        border-radius: 70px;
        color: #000000;
        text-align: center;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 2;
        font-size: 14px;
    }

    .united_tag::before {
        content: '';
        position: absolute;
        top: -20px;
        left: -34px;
        right: 7px;
        bottom: 10px;
        background: #F0FF96;
        border-radius: 70px;
        z-index: -1;
    }

    .united_magnifier {
        margin: 20px;
    }

    /* 左上角半圓 - 手機版 */
    .united-shape-semicircle-left {
        width: 80px;
        height: 80px;
        top: 15px;
        left: -26px;
    }

    /* 右下角裝飾 - 手機版 */
    .united-shape-circle-yellow-right {
        width: 30px;
        height: 30px;
        bottom: calc(20px + 40px);
        right: 7px;
    }

    .united-shape-semicircle-orange-right {
        width: 60px;
        height: 60px;
        bottom: -19px;
        right: 22px;
    }
}