/* 通用樣式 */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0074D9, #00D49D);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
}

/* 全局加載動畫 */
#loading {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
/* 全局加載動畫 end*/

#loading img {
    width: 100px;
    height: 100px;
}

/* 用戶在線統計列表 */
.online-users {
    background: #fff;
}

.online-users .header {
    border-top: 1px solid #E6E7E1;
    text-align: left;
    /* 將標題靠左對齊 */
}

.online-users .online-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem 0rem;
    border-top: 1px solid #E6E7E1;
}

.headactions {
    padding-left: 6px;
    color: #666;
    line-height: 35px;
}

.online-users .user {
    width: 6.2rem;
    flex: 0 1 auto;
    /* 自動調整寬度 */
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ddd;
    margin: 5px;
    border-radius: 4px;
    text-align: left;
    /* 左對齊 */
}

.online-users .user.self {
    background-color: #ffffcc;
    font-weight: bold;
}

.online-users .ip {
    text-align: left;
    color: #555;
    font-size: 0.7rem;
}

/* 用戶在線統計列表 end */

.user-welcome {
    width: 100%;
    background-color: beige;
}

.welcome-text {
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.user-desc {
    display: flex;
    flex-direction: column;
}

.user-d-c {
    color: #ccccd8;
    font-size: 12px;
}

.placeholder-top,
.placeholder-bottom {
    display: block;
    height: 73px;
}

.placeholder {
    background-color: #f3f3f3;
    border-radius: 0 0 7px 7px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* 功能菜單 樣式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    width: 100%;
    /* 使 navbar 填滿水平空間 */
    box-sizing: border-box;
    /* 讓 padding 與 width 合併計算 */
}

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-item {
    margin-right: 10px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #ccc;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown button {
    border: none;
    background-color: transparent;
    /* 刪除 SVG 圖標的背景色 */
}

.dropdown-content {
    position: absolute;
    background-color: #f9f9f9;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    right: 0;
    /* 將彈出框固定在右側 */
    opacity: 0;
    /* 初始透明度為 0 */
    max-height: 0;
    /* 初始高度為 0 */
    overflow: hidden;
    /* 隱藏溢出內容 */
    transition: max-height 0.3s ease, opacity 0.3s ease;
    /* 添加過渡效果 */
}

.dropdown:hover .dropdown-content {
    max-height: 200px;
    /* 鼠標懸停時設置最大高度，通過過渡效果逐漸增加到實際內容的高度，從而實現了下拉菜單展開的動畫效果。 */
    opacity: 1;
    /* 設置透明度為 1 */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.payvip-btn {
    background: linear-gradient(300deg, #4c4d51, #2a2a31 15%, #85858a 40%, #393a3c 60%, #393838 80%, #5e5f62 100%);
    text-shadow: none;
    font-weight: 400;
    position: relative;
    border: none;
    overflow: hidden;
    cursor: pointer;
}

/* 功能菜單 樣式 end */

/* 麵包屑導航 */
.breadcrumb {
    display: inline-block;
    width: 100%;
    position: relative;
    /* 讓偽元素相對於 .breadcrumb 定位 */
}

.breadcrumb::before {
    content: '';
    /* 設置偽元素的內容為空 */
    position: absolute;
    /* 絕對定位偽元素 */
    top: 0;
    /* 與容器頂部對齊 */
    left: 0;
    /* 與容器左邊對齊 */
    width: 100%;
    /* 使偽元素寬度與容器相同 */
    height: 1px;
    /* 邊框高度 */
    border-bottom: 1px dashed #ccc;
    /* 使用虛線作为邊框 */
}

.breadcrumb-inner {
    margin: 0.4rem 1rem 0.4rem 1rem;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb .separator {
    margin: 0 5px;
    color: #666;
}

.breadcrumb .current-page {
    color: #333;
    font-weight: bold;
}

/* 麵包屑導航 end */

/* 列表內容 */
.container {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    /* padding: 30px; */
    text-align: center;
    max-width: 93%;
    margin: 22px 0;
}

.user-info {
    display: flex;
    align-items: center;
    /* 文字與頭像水平對齊 */
}

.user-avatar {
    width: 40px;
    /* 調整頭像大小 */
    height: 40px;
    /* 調整頭像大小 */
    border-radius: 50%;
    /* 圓形效果 */
    margin-right: 10px;
    /* 調整頭像與文字間距 */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    /* 添加灰影 */
    border: 2px solid white;
}

h1 {
    color: #333;
    font-size: 28px;
}

h2 {
    margin: 8px 0px;
}

h5 {
    margin: 0px;
}

p {
    color: #555;
    font-size: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

.error {
    color: #ff0000;
    margin-bottom: 10px;
    text-align: center;
}

.holiday-table {
    border-collapse: collapse;
    width: 100%;
}

.holiday-table th,
.holiday-table td {
    padding: 8px;
}

.holiday-table th {
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.holiday-table td {
    border-bottom: 1px solid black;
}

.holiday-table tbody tr:nth-child(odd) {
    background-color: #f2f2f2;
    /* 設置奇數行的背景顏色 */
}

.holiday-table tbody tr:nth-child(even) {
    background-color: #ffffff;
    /* 設置偶數行的背景顏色 */
}

.type-icon-lb {
    display: flex;
    align-items: center;
    align-content: center;
    flex-direction: row;
    height: 24px;
}

.text-left {
    text-align: left;
}

.flag-icon {
    display: inline-block;
    /* 使圖標與文字水平排列 */
    vertical-align: middle;
    /* 垂直居中對齊 */
    margin-right: 5px;
    /* 可根據需要調整圖標與文字之間的間距 */
}

.flag-icon img {
    width: 20px;
    /* 圖標的寬度 */
    height: auto;
    /* 高度自適應，保持比例 */
}

.image_resized {
    max-width: 330px;
}

.time-display-lb {
    display: flex;
    flex-direction: column;
}

/* 列表內容 end */

.download-link {
    display: inline-block;
    margin: 20px 0;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0074D9, #00D49D);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.download-link:hover {
    background: linear-gradient(135deg, #0056A7, #00A682);
    transform: scale(1.05);
}

/* 警告提示樣式 */
.warning {
    background-color: #ff9800;
    /* 橙色背景 */
    color: #fff;
    /* 白色文字 */
    padding: 10px;
    border-radius: 0 0 15px 15px;
    text-align: center;
}

.warning p {
    margin: 0;
    font-size: 18px;
}

.ascii-container {
    display: flex;
    justify-content: center;
}

.ascii-container pre {
    text-align: left;
    white-space: pre-wrap;
    /* 允許文本自動換行 */
}

.store-url {
    color: #000;
}

/* FAQ內的OS切換說明 */
.container>ol {
    width: calc(100% - 16%);
}

.switch-class {
    display: flex;
    justify-content: center;
}

.switch-label {
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-left: 10px;
    display: inline-block;
}

.switch-label.active {
    background-color: #4CAF50;
    color: white;
}

.switch-content {
    display: none;
}

.switch-content.active {
    display: block;
}

/* FAQ內的OS切換說明 */

/* 用戶資訊 IP */
.usercontainer {
    background-color: #fff;
    width: 100%;
    margin: auto;
}

.panel-heading {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
}

.panel-body {
    padding: 5px;
}

.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.list-group-item:last-child {
    border-bottom: none;
}

.encabezado {
    font-weight: bold;
    color: #333;
}

.texto_1 {
    color: #555;
    text-align: right;
}

.icono {
    margin-right: 10px;
}

.btn-info {
    background-color: #17a2b8;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-info:hover {
    background-color: #138496;
}

/* 用戶資訊 IP - end */

footer {
    background-color: #f3f3f3;
    color: #666;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

footer p {
    font-size: 14px;
}

/* 手機端適配 */
@media screen and (max-width: 600px) {
    /* .container {
        padding: 20px 26px;
    } */

    h1 {
        font-size: 24px;
    }

    p {
        font-size: 18px;
    }

    .switch-label {
        margin-left: 3px;
    }

    .download-link {
        padding: 10px 20px;
    }
}

/* 用戶主題模式不應用夜晚效果 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0074D9, #00D49D);
        color: #000;
    }

    .navbar {
        color: #333;
    }

    .container {
        background-color: #fff;
    }

    h1,
    .download-link {
        color: #fff;
    }

    .warning {
        background-color: #ff9800;
        color: #fff;
    }

    .vpnlist-night {
        color: black;
    }

    /* 覆蓋夜晚效果 */
    @media screen and (max-width: 600px) {
        .container {
            background-color: #444;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            border-radius: 15px;
        }

        h1 {
            color: #fff;
        }

        p {
            color: #fff;
        }

        ol {
            color: #fff;
        }

        .container h2 {
            color: #fff;
        }

        .holiday-table th {
            color: #fff;
        }

        .vpnlist-night h2 {
            color: #000;
        }

        .welcome-text {
            color: #000;
        }

        .holiday-table th {
            border-top: 2px solid #ffffff;
            border-bottom: 2px solid #ffffff;
        }

        .holiday-table td {
            border-bottom: 1px solid #ffffff;
        }

        .download-link {
            background: linear-gradient(135deg, #0074D9, #00D49D);
            color: #fff;
            box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
        }

        .holiday-table tbody tr:nth-child(odd) {
            background-color: none;
            /* 設置奇數行的背景顏色 */
        }

        .holiday-table tbody tr:nth-child(even) {
            background-color: none;
            /* 設置偶數行的背景顏色 */
        }

        label {
            color: #fff;
        }

        .vpnlist-night {
            color: #000;
        }

        .ascii-container {
            color: #fff;
        }

        .store-url {
            color: #fff;
        }

        footer p {
            color: #666;
        }
    }
}