* {
    box-sizing: border-box;
}

/* 滚动条整体部分，必须要设置 */
::-webkit-scrollbar {
    width: 6px;
    height: 10px;
    overflow-y: overlay;
}

/* 滚动条里面轨道，能向上向下移动 */
::-webkit-scrollbar-track {
    background-color: transparent;
}

/* 滚动条里面轨道，能向上向下移动 */
::-webkit-scrollbar-track-piece {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    display: none;
    border-radius: 3px;
}

/* 滚动条里面的小方块，能向上向下移动 */
*:hover::-webkit-scrollbar-thumb {
    display: flex;
    background-color: #ddd;
    border-radius: 3px;
}

*:hover::-webkit-scrollbar-track-piece {
    background-color: #e9ecef;
}

/* 滚动条里面的小方块，能向上向下移动 */
*:hover::-webkit-scrollbar-thumb {
    display: flex;
    /* background-color: #ccc; */
    background-color: #55555538;
    border-radius: 3px;
}

*:hover::-webkit-scrollbar-track-piece {
    background-color: #6b7280;
}

body {
    font-family: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* background-color: #f4f4f9; */
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    margin: 0;
    /* font-size: 13px; */
    /* -webkit-font-feature-settings: "ss01";
    font-feature-settings: "ss01"; */
    overflow-x: hidden;
    background: #fff;
    color: #0d0c22;
    flex-direction: column;
}

body {
    background-image: url("/desktop.jpg");
    background-image: url(https://api.paugram.com/wallpaper/?source=sina);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    background-color: #f1f1f2;
}

.container-width {
    width: 80%;
    max-width: 1200px;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
}

.m-auto {
    margin: auto;
}

.card-container {
    display: inline-flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

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

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    width: 48%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card h2 {
    margin-top: 0;
}

.card p {
    margin-bottom: 10px;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    color: white;
    font-size: 12px;
}

.status-badge.ok {
    background-color: green;
}

.status-badge.error {
    background-color: red;
}

.link-icon {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    vertical-align: middle;
}

.link-text {
    white-space: normal;
    word-wrap: break-word;
}

img.link-qrcode {
    width: 100%;
    vertical-align: middle;
}

.left-container {
    justify-content: center;
    align-items: center;
    height: 100%;
    display: inline-flex;
    flex: 1;
}

.right-container {
    flex: 2;
    display: inline-flex;
    flex-wrap: wrap;
    /* overflow: hidden; */
    text-align: left;
    padding-left: 1rem;
}

.w-100 {
    width: 100%;
}

h3 {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.button {
    min-width: 108px;
    font-size: 16px;
    letter-spacing: 2px;
    border-radius: 36px;
    text-align: center;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    white-space: nowrap;
    line-height: 1.2;
    padding: 6px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition:
        color 0.2s linear,
        background-color 0.2s linear,
        border 0.2s linear,
        box-shadow 0.2s linear;
}

.button:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12); /* 更明显的3D阴影 */
    transform: scale(1.05); /* 轻微放大 */
    color: #555; /* 稍微加深文字颜色 */
    background-color: #e9ecef; /* 稍微加深背景颜色 */
    border-color: #ccc; /* 稍微加深边框颜色 */
}

.button-primary {
    font-weight: 700;
    color: #fff;
    background-color: #0773fc;
    border-color: #0773fc;
}

.button-primary:hover {
    color: #fff; /* 稍微加深文字颜色 */
    background-color: #0772fc; /* 稍微加深背景颜色 */
    border-color: #076cfc; /* 稍微加深边框颜色 */
}

.button-light {
    font-weight: 400; /* 字体权重调低 */
    letter-spacing: 1px; /* 函数字间距调小 */
    border-radius: 36px;
    color: #333; /* 文字颜色变深 */
    background-color: #f8f9fa; /* 浅灰色背景 */
    border-color: #ddd; /* 边框颜色 */
    border: 1px solid #ddd; /* 明确边框样式 */
}

.py-3,
.pt-3 {
    padding-top: 1rem;
}

.py-3,
.pb-3 {
    padding-bottom: 1rem;
}

.my-3,
.mb-3 {
    margin-bottom: 1rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.pt-1 {
    padding-top: 0.25rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.mb-0 {
    margin-bottom: 0;
}

.content-container {
    overflow-y: auto; /* 启用垂直滚动 */
    overflow-x: hidden;
}

.card-container {
    max-height: 80vh; /* 设置最大高度 */
}

/* Chrome, Edge 和 Safari */
/* .card-container::-webkit-scrollbar {
    width: 6px;
    height: 16px;
}

.card-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.card-container::-webkit-scrollbar-thumb {
    background-color: #88888891;
    border-radius: 4px;
} */

.card-container::-webkit-scrollbar-thumb:hover {
    background-color: #55555538;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.075);
}

.modal-header,
.modal-footer {
    text-align: center;
}

.modal-header h2,
.modal-body p {
    margin: 0;
}

.modal-content .modal-body {
    display: flex;
    height: auto;
    min-height: 120px;
    max-height: 68%;
    overflow: hidden;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.modal-footer button {
    margin: 5px;
    padding: 10px 20px;
    cursor: pointer;
}

.hidden {
    display: none;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    text-align: center;
    padding: 20px 0;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
}
.footer a {
    color: #007bff;
    text-decoration: none;
    margin-left: 10px;
}
.footer a:hover {
    text-decoration: underline;
}

/* 针对小型屏幕的媒体查询 */
@media only screen and (max-width: 768px) {
    .body,
    body {
        width: 100%; /* 设置为全宽 */
        padding-left: 0;
        padding-right: 0;
        background-image: url("/mobile.webp");
    }
    .card-container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .container-header {
        display: block;
    }
    .container {
        width: 100%;
        max-width: 100%;
    }
    .card {
        width: 100%;
    }
}
