/* 自定义样式 */
body, html {
    height: 100%;
    margin: 0;
    background-color: black;
    background-repeat: no-repeat; /* 不重复 */
    background-position: center center; /* 上下左右居中 */
    background-size: auto;

}

.main-content {
    display: flex;
    height: 100%;
    position: relative; /* 添加相对定位 */
}

.info-box {
    color: #D3B889;
    position: absolute;
    top: 20px;
    width: 100%;
    height: auto;
    text-align: center;
    z-index: 999;
    background-color: rgba(0,0,0,0.1);
    border-radius: 8px;
    /*display: none;*/
}

.btn-close{
  position: absolute;
  top: 3px;
  right: 3px;
  transform: translate(30%, -30%);   /* 让 × 稍稍超出角落，更美观 */
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #D3B889;
  color: black;
  opacity: 1;
  font-weight: bolder;
  font-size: 30px;
  cursor: pointer;
}

.info-box-text{
    font-size: 22px;
}

.iframe-container {
    flex-grow: 1;
    height: 100%;
    position: relative; /* 添加相对定位 */
    z-index: 1; /* 确保 iframe 容器在侧边栏下方 */
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}


.info {
    /*width: 600px;*/
    border-radius: 10px;
    line-height: 50px;
    font-size: 26px;
    font-weight: bolder;
    margin: auto;
    color: #000;
    border: #D3B889 solid 1px;
    background-color: #D3B889;
}

.ob-btn {
    /*width: 180px;*/
    /*height: 50px;*/
    /*border-radius: 10px;*/
    /*line-height: 50px;*/
    /*font-size: 22px;*/
    /*padding: 0;*/
    /*margin: auto;*/
    color: #000;
    border: #D3B889 solid 1px;
    background-color: #D3B889;


}

.ob-btn-vertical {
    width: 50px;
    height: 138px;
    border-radius: 10px;
    line-height: 50px;
    font-size: 22px;
    padding: 0;
    margin: auto;
    color: #000;
    border: #D3B889 solid 1px;
    background-color: #D3B889;
    text-decoration: none;
    writing-mode: vertical-lr;
    text-align: center;
}

.ob-btn-bottom {
    width: 440px;
    height: 50px;
    border-radius: 10px;
    line-height: 50px;
    font-size: 18px;
    padding: 0;
    margin: auto;
    color: #000;
    border: #D3B889 solid 1px;
    background-color: #D3B889;
    text-decoration: none;
}

.bottom-box {
    width: auto;
    height: auto;
    background-color: #80808026;
    z-index: 1000;
}

.ob-btn:hover, .ob-btn-vertical:hover, .ob-btn-bottom:hover {
    background-color: black;
    color: #D3B889;
    border: #D3B889 solid 1px;
}
.sidebar {
    width: 180px;
    height: 100%;
    top: 0;
    right: 0; /* 靠右 */
    z-index: 1000;
    background-color: #000;
    /*background-color: #80808026;*/
    /*background-color: white;*/
    overflow: hidden;
    position: fixed; /* 使用绝对定位 */
    text-align: center;
    border-radius: 8px;
    border-left: 1px solid #D3B889;
}

.sidebar.open{
  transform:translateX(0);
}

.sidebar.close{
   transform:translateX(100%);
}

.sidebar-toggle{
    position: fixed; /* 使用绝对定位 */
    width: 50px;
    height: auto;
    top: 50px;
    right: 180px; /* 靠右 */
    z-index: 1000;
    background-color: #D3B889;
    border-radius: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
}


.sidebar-toggle.open{
    transform:translateX(0);
}
.sidebar-toggle.close{
    transform:translateX(180px);
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px #D3B889
    }

    50% {
        box-shadow: 0 0 38px #cd7f32
    }

    100% {
        box-shadow: 0 0 5px #D3B889
    }
}

.sidebar-box{
    font-size: 1.5em;
    color: #D3B889;
    background-color: #000;
    width: 160px;
    height: 160px;
    /*border: 2px solid #D3B889;*/
    border-radius: 8px;
    justify-self: center;
    animation: glow 2s infinite alternate;
    align-content: center;
}
.sidebar-box strong{
    font-weight: bolder;
    text-shadow: 0 0 18px tan;
}

.sidebar .ob-btn{
    width: 160px;
}

.message-box {
    color: #D3B889;
    background-color: #000;
    border-radius: 8px  ;
    border: 1px solid #D3B889;
    position: fixed;
    width: 320px;
    height: auto;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px;
    display: none;
}

.message-box .btn-close{
  position: fixed;
  top: 3px;
  right: 3px;
  transform: translate(30%, -30%);   /* 让 × 稍稍超出角落，更美观 */
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #D3B889;
  color: black;
  opacity: 1;
  font-weight: bolder;
  font-size: 30px;
  cursor: pointer;
}





