/* favicon样式 */
.nav-icon {
    width: 32px;
    height: 32px;
}

/* 在小屏幕上使用较小的图标 */
@media (max-width: 600px) {
    .nav-icon {
        width: 16px;
        height: 16px;
    }
}

/* 在大屏幕上使用较大的图标 */
@media (min-width: 1200px) {
    .nav-icon {
        width: 64px;
        height: 64px;
    }
}
/* 背景图片 */
.beijing {
      position: fixed; /* 固定背景图片 */
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: url('https://api.mmp.cc/api/pcwallpaper?category=cartoon&type=jpg'); /* 替换为你的背景图片路径 */
      background-size: cover; /* 调整图片大小以覆盖整个背景 */
      background-position: center; /* 居中对齐背景图片 */
      background-attachment: fixed; /* 固定背景图片 */
      z-index: -1; /* 确保背景图片在其他内容的后面 */
         }
/* 美化弹窗的CSS样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-content p {
    margin: 15px 0;
    color: #666;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: inline-block;
}

.btn-confirm {
    background-color: #4CAF50;
    color: white;
}

.btn-confirm:hover {
    background-color: #45a049;
}

/* 垂直滑动容器样式 */
.scroll-container {
    width: 100%;
    height: 40%;
    overflow-y: auto; /* 启用垂直滚动 */
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    background-color: white;
}

.content {
    padding: 10px;
}

.content-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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


/* 美化 iframe 的样式 */
iframe {
    width: 100%; /* 设置 iframe 的宽度为父容器的100% */
    height: 720px; /* 设置 iframe 的高度 */
    border: none; /* 去掉 iframe 的边框 */
    background-color: white; /* 设置背景颜色 */
    overflow: hidden; /* 隐藏超出 iframe 的内容 */
}

/* 鼠标悬停时的样式 */
iframe:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0); /* 鼠标悬停时增加阴影效果 */
    transform: scale(1.0); /* 鼠标悬停时轻微放大 */
}
/* 全局样式 */
    body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
    }

    /* 导航栏样式 */
    .nav {
      position: fixed;
      top: 0;
      right: 0;
      background-color: rgba(0, 0, 0, 0); /* 透明度为50% */
      padding: 2px 2px; /* 缩小高度和宽度 */
      z-index: 1000;
      display: flex;
      align-items: center;
      border-radius: 0 0 0 5px; /* 圆角效果 */
      box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2); /* 阴影效果 */
    }

    .toggle-button {
      background-color: #007bff; /* 区别于其他按钮的颜色 */
      color: white;
      border: none;
      padding: 3px 6px; /* 按钮的尺寸比导航栏小一点 */
      cursor: pointer;
      font-size: 21px; /* 字体大小 */
      border-radius: 3px; /* 圆角按钮 */
      transition: background-color 0.3s ease; /* 鼠标悬停效果 */
    }

    .toggle-button:hover {
      background-color: #0056b3; /* 鼠标悬停时的背景颜色 */
    }

    .dropdown-menu {
      display: none; /* 默认不显示 */
      position: absolute;
      top: 100%;
      right: 0;
      background-color: #fff;
      border: 1px solid #ccc;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      width: 150px; /* 稍微增加宽度 */
      z-index: 1001;
      border-radius: 5px; /* 圆角效果 */
      margin-top: 5px; /* 与按钮的间距 */
    }

    .dropdown-menu a {
      display: block;
      padding: 16px 20px; /* 菜单项的尺寸 */
      color: #333;
      text-decoration: none;
      border-bottom: 1px solid #eee;
      font-size: 12px; /* 字体大小 */
      transition: background-color 0.3s ease; /* 鼠标悬停效果 */
    }

    .dropdown-menu a:last-child {
      border-bottom: none;
    }

    .dropdown-menu a:hover {
      background-color: #f0f0f0; /* 鼠标悬停时的背景颜色 */
    }
       .jiewei {
            color: black; /* 字体颜色为白色 */
            text-shadow: 
                -1px -1px 0 #ffffff, /* 左上 */
                 1px -1px 0 #ffffff, /* 右上 */
                -1px 1px 0 #ffffff,  /* 左下 */
                 1px 1px 0 #ffffff;  /* 右下 */
            font-size: 10px; /* 大小 */
            font-weight: bold; /* 加粗 */
            background-color: white; /* 背景白色 */
            padding: 10px; /* 内边距 */
        }
        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
        }
        
        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
        }
        
        /* 侧边栏按钮样式 */
        .sidebar-button {
            position: fixed;
            left: -30px;
            top: 30%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background-color: #3498db;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            z-index: 5001;
        }
        
        .sidebar-button img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .sidebar-button:hover {
            left: 0;
        }
        
        /* 弹窗样式 */
        .popup {
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 5000;
        }
        
        .popup-content {
            width: 350px;
            max-width: 350px;
            height: 500px;
            max-height: 500px;
            background-color: #04004c;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }
        
        .popup-content iframe {
            width: 100%;
            height: 95%;
            border: none;
        }
        
        .close-button {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 30px;
            height: 30px;
            background-color: #333;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
        }