﻿/* 自定义样式 */
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;
}



.sidebar .ob-btn{
    width: 160px;
}

/* 蝙蝠客服框 */
.sidebar-kf {
    font-size: 23px;
    color: #D3B889;
    background-color: #000;
    width: 160px;
    min-height: 220px;   /* 高度可调 */
    border-radius: 8px;
    padding: 10px;
    justify-self: center;
    animation: glow 2s infinite alternate;
}

/* 蝙蝠客服框标题 */
.sidebar-kf strong {
    font-weight: bolder;
    text-shadow: 0 0 12px tan;
    display: block;
    margin-top: 6px;
}
    /* 香港电话单独样式 */
    .hk-phone {
        font-size: 15px;      /* 调整这里控制大小 */
        font-weight: bold;
        color: #D3B889;
    }

.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;
}

