﻿/* 自定义样式 */
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: 6px;
    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: 400px;
    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;
}

/* 遮罩层：全屏覆盖 + 居中 */
.promo-popup {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* 半透明黑色背景 */
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* 弹窗主体 */
.promo-box {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh; /* 限制高度，超出时滚动 */
    overflow-y: auto;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}
/* 遮罩层 */
.promo-popup {
    display: none;               /* 默认隐藏 */
    position: fixed;             /* 固定在页面 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;

    display: flex;               /* 居中弹窗 */
    justify-content: center;
    align-items: center;
    overflow-y: auto;            /* 超高内容可滚动 */
    padding: 20px;
}

/* 弹窗盒子 */
.promo-box {
    position: relative;          /* 关闭按钮绝对定位基准 */
    width: 100%;
    max-width: 1080px;
    background-color: #1a1a1a;
    padding: 20px 30px;
    box-sizing: border-box;
    border-radius: 10px;
    color: #f5d382;
    font-family: 'Segoe UI', 'PingFang SC', sans-serif;
}

/* 关闭按钮 */
.promo-box .close-btn {
    position: absolute;          /* 相对于 promo-box */
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #ffc107;
    cursor: pointer;
    z-index: 100;
}

.promo-box .close-btn:hover {
    color: #ffdf7e;
}

/* 表格与文字样式保持原有 */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; background-color: #fff; color: #000; }
table th, table td { border: 1px solid #999; padding: 8px 10px; text-align: center; font-size: 15px; }
.promo-notes { margin-top: 15px; padding-left: 20px; font-size: 14px; }
.promo-notes li { margin-bottom: 8px; }

/* 统一 message-box 样式 */
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;  /* 弹窗整体最大高度 */
    overflow: hidden;  /* 防止内容溢出 */
}

/* 内容区域可滚动 */
.message-box .message-wrapper {
    padding: 15px;
    max-height: calc(80vh - 60px); /* 减去logo和关闭按钮等高度 */
    overflow-y: auto;  /* 竖向滚动条 */
    text-align: left;
}

/* 关闭按钮固定右上角 */
.message-box .btn-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;   /* 这里就是背景颜色，可以改成其它颜色 */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
}
.message-box .btn-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;   /* 修改这里就能改颜色 */
}
/* 电脑版 */
@media (min-width: 768px) {
  .message-box {
    width: 700px;
    max-width: 90%;
  }
}

/* 手机版 */
@media (max-width: 700px) {
  .message-box {
    width: 90%;
    max-width: none;
  }
}
.line-section {
  margin: 20px 0;
}

.line-title {
  color: #a39054;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.line-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.line-btn {
  background: #f5d382;
  border: none;
  color: #000;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.line-btn:hover {
  background: #dcbf5e;
  color: #fff;
}
body { 
        margin:0; 
        padding:0; 
        font-family:'PingFang SC', sans-serif; 
    }

    /* iframe 容器 */
    .iframe-container { 
        position:fixed; 
        top:0; 
        left:0; 
        right:0; 
        height:calc(100% - 56px); /* 关键：减去底部导航高度 */
        width:100%; 
    }

    /* PC 端没有底部导航，iframe 占满全屏 */
    @media(min-width:768px){
        .iframe-container { 
            height:100%; 
        }
    }

    /* 底部导航 */
    .bottom-nav { 
        position:fixed; 
        bottom:0; 
        left:0; 
        right:0; 
        height:56px; 
        background:#333; 
        display:none; 
        box-shadow:0 -2px 5px rgba(0,0,0,0.3); 
        z-index:100; 
    }

    .nav-item { 
        flex:1; 
        display:flex; 
        flex-direction:column; 
        align-items:center; 
        justify-content:center; 
        color:#f5d382; 
        text-decoration:none; 
        font-size:12px; 
    }

    .nav-item i { 
        font-size:20px; 
        margin-bottom:2px; 
    }

    .register-btn { 
        animation:blink 1.5s infinite; 
        color:#e93069; 
    }

    @keyframes blink { 
        0%,100%{opacity:1;} 
        50%{opacity:0.6;} 
    }

    .sidebar,#sidebar-toggle { 
        display:block; 
    }

    @media(max-width:767px){
        .sidebar,#sidebar-toggle{ display:none !important; }
        .bottom-nav{ display:flex; }
    }

    /* FAQ 样式 */
    .faq-section { text-align:left; margin-top:15px; }
    .faq-item { border-bottom:1px solid #ccc; padding:10px 0; }
    .faq-question { cursor:pointer; display:flex; justify-content:space-between; align-items:center; font-weight:500; }
    .faq-answer { max-height:0; overflow:hidden; transition: all 0.3s ease; margin-top:5px; }
    .faq-item.active .faq-answer { max-height:none; }
    .faq-item.active .faq-question i { transform: rotate(180deg); }

    /* 游戏网址弹窗按钮样式 */
    #game-entry-box .ob-btn {
        background: linear-gradient(to bottom, #f5d382, #e6b800);
        color: #333;
        font-weight: 500;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
    }
    #game-entry-box .ob-btn:hover {
        background: linear-gradient(to bottom, #e6b800, #f5d382);
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(0,0,0,0.25);
    }
	/* 线路整体容器 */
.line-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* 每个分组 */
.line-group {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 美化标题 */
.line-title {
    font-size: 18px;
    font-weight: 700;
    color: #f5d382;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

/* 按钮容器 */
.btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    max-width: 100%;
}

/* PC端按钮宽度：每行最多4个，不占满全行 */
@media(min-width:768px){
    .btn-container .btn {
        flex: 1 1 calc(22% - 10px); /* 保留左右间距，让按钮不要太宽 */
        text-align: center;
        white-space: nowrap;
    }
    .line-box { flex-direction: row; }
}

/* 手机端按钮全宽，自适应 */
@media(max-width:767px){
    .line-box { flex-direction: column; }
    .line-group { width: 100%; }
    .btn-container .btn {
        flex: 1 1 100%;
        margin: 5px 0;
    }
}