body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #242a2c;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #333;
    width: 100%;
    padding: 15px 0;
    color: #fff;
    text-align: center;
    position: fixed;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
    font-size:small
}

nav ul li a:hover {
    color: #f39c12;
    border-bottom: 2px solid #f39c12;
}

main {
    display: flex;
    margin-top: 150px;
    width: 90%;
    max-width: 1200px;
    justify-content: center;
    align-items: flex-start;
}

.left-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 30px;
    margin-right: 20px;
    width: 200px;
}

.service-uptime, .announcement {
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-uptime h3, .announcement h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #f39c12;
    font-size: 1rem;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.announcement p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

#uptime-counter {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
}

.uptime-value {
    color: #f39c12;
    font-weight: bold;
    font-size: 1.1rem;
}

.main-image-container {
    position: relative;
    width: 75%;
    max-width: 900px;
    display: flex;
    justify-content: center;
}

/* 新增样式 */
.tablet-frame {
    position: relative;
    width: 830px; /* 调整宽度以匹配你的背景图片 */
    height: 500px; /* 调整高度以匹配你的背景图片 */
    background-image: url('images/tablet-frame.png'); /* 平板电脑外观的背景图片 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image {
    width: 76%; /* 调整这个值以适应平板框架的内部区域 */
    height: 80%; /* 同上 */
    margin-top: -45px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例 */
    /* border-radius: 10px; 根据需要调整 */
    transition: transform 0.5s ease;
}

/* 播放图标样式 */
.play-icon {
    position: absolute;
    top: 48%;
    left: 49%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    opacity: 0.9;
    transition: color 0.3s, opacity 0.3s, transform 0.3s;
    z-index: 2;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.7);  /* 圆环 */
    border-radius: 50%; /* 圆形边框 */
    background-color: rgba(0, 0, 0, 0.5); /* 背景色，增加对比 */
    color: white; /* 默认颜色 */
}

.play-icon:hover {
    color: #f39c12; /* 改变伪元素的颜色 */
    opacity: 1;
}

/* 伪元素显示播放符号 */
.play-icon::before {
    content: '\25B6'; /* Unicode 三角形符号 */
    font-size: 4rem;
    display: block;
    transform: translate(12%, 5%); /* 微调以居中 */
    transition: inherit; /* 继承父元素的过渡效果 */
}


.nav-button {
    background-color: transparent;
    border: none;
    font-size: 2rem;
    color: #5a5a5a;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: color 0.3s, background-color 0.3s;
}

.nav-button:hover {
    color: #f39c12;
    background-color: #242a2c;
}

.left {
    left: 10px;
}

.right {
    right: 10px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    /* margin-left: 0px; */
    width: auto;
}

.sidebar button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 15px 20px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s;
    width: 150px;
}

.sidebar button:hover {
    color: #f39c12;
    background-color: #444;
}

.bottom-thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-left: 0px;
    width: 90%;
    max-width: 900px;
}

.bottom-thumbnails img {
    width: 100px;
    height: 40px;
    margin: 0 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.bottom-thumbnails img:hover {
    transform: scale(1.1);
}

footer {
    background-color: #333;
    width: 100%;
    padding: 15px 0;
    color: #fff;
    text-align: center;
    position: fixed;
    bottom: 0;
    z-index: 1000;
}

footer p {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: small;
}

/* .tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
    transition: opacity 0.3s;
} */

.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 0.9rem; /* 减小字体大小 */
    /* max-width: 200px; 限制最大宽度以防止文字过长 */
    word-wrap: break-word; /* 允许长单词换行 */
    z-index: 1000; /* 确保提示在其他元素上方 */
}

.tooltip2 {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #f1f500;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    z-index: 1000;
    pointer-events: none; /* 确保提示框不会捕获鼠标事件 */
}

.notice-button {
    position: relative; /* 设置为相对定位以便放置小角标 */
    display: inline-block; /* 使元素为内联块，以便按钮和角标相对定位 */
  }
  
  .notice-button .new-badge {
    position: absolute; /* 绝对定位 */
    top: 5px; /* 根据需要调整位置 */
    right: -10px; /* 根据需要调整位置 */
    background-color: red; /* 设置背景色 */
    color: white; /* 字体颜色 */
    padding: 2px 6px; /* 内边距 */
    border-radius: 10px; /* 设置圆角 */
    font-size: 11px; /* 字体大小 */
    /* font-weight: bold; 字体加粗 */
  }