/* ==========================================================================
   CSS 去重优化版本
   按功能模块组织，移除重复代码，提高可维护性
   ========================================================================== */

/* ==========================================================================
   1. 基础布局容器
   ========================================================================== */
.container,
#container {
  position: relative;
  padding: 0;
  float: left;
  width: 800px !important;
  height: 600px;
}

.container .zb-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
}

.container .zb-mask .show {
  position: relative;
  width: 100%;
  height: 100%;
}

.zb-mask .show .text {
  color: #fff;
  position: absolute;
  right: 0px;
  font-size: 18px;
  white-space: nowrap;
}

.videoWarp .inner {
  position: relative;
}

.hidden {
  display: none;
}

/* ==========================================================================
   2. 聊天交互区域
   ========================================================================== */
.bot {
  padding: 20px;
  background: #375172;
  width: 1200px;
  margin: 0 auto;
}

.bot ul {
  display: inline-block;
  vertical-align: middle;
}

.bot ul li {
  display: inline-block;
  margin-right: 20px;
}

.bot .askBtn {
  display: inline-block;
  vertical-align: middle;
}

.bot .askBtn input {
  width: 560px;
  height: 40px;
}

.bot .askBtn button {
  margin-left: 15px;
  height: 40px;
  background: #00a0ea;
  color: #fff;
}

.bot .askBtn .btn {
  display: inline-block;
  padding: 0 15px;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  color: #fff;
  border-radius: 5px;
  border: 0px;
}

/* ==========================================================================
   3. 按钮和控件
   ========================================================================== */
.zb-btn-list {
  margin-top: 5px;
  text-align: center;
}

.zb-btn-list .item {
  display: inline-block;
  width: 19%;
  height: 37px;
  line-height: 37px;
  font-size: 16px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.zb-btn-list .item a {
  display: block;
  color: #323232;
}

.zb-btn-list .item:nth-child(3n + 0) {
  width: 39%;
}

.kemu-btn {
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: #375172;
}

.button2 {
  height: 30px;
  background-color: transparent;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  border: inset;
  border-width: 1px;
  border-color: transparent;
  border-bottom-color: #e5e5ce;
}

/* ==========================================================================
   4. 分页组件
   ========================================================================== */
.zb-page {
  margin-left: 0.8%;
  width: 98.5% !important;
  border: 1px solid #eee;
}

.zb-page li {
  padding: 0 !important;
  width: auto !important;
}

.zb-page .pagination {
  float: initial !important;
  margin: 0 auto;
  width: auto !important;
  font-size: 14px !important;
}

.zb-page .pagination > li > a,
.pagination > li > span {
  padding: 6px 12px !important;
  left: 0 !important;
  top: 0 !important;
  width: auto !important;
  height: auto !important;
}

.zb-page .pagination > li.active > a {
  color: #fff !important;
}

/* ==========================================================================
   5. 弹出菜单和导航
   ========================================================================== */
.section .moreOl,
.section .moreOl1 {
  position: absolute;
  padding: 0;
  margin: 0;
  display: none;
  opacity: 0;
  top: auto !important;
  bottom: 0;
  left: 50%;
  margin-left: -408px;
  background: #9fc5fd;
  color: #fff;
  font-size: 15px;
  z-index: 100;
  box-shadow: 0px -2px 10px #9fc5fd;
}

.section .moreOl {
  width: 816px;
}

.section .moreOl1 {
  width: 856px;
}

.section .moreOl > li,
.section .moreOl1 > li {
  float: left;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  width: 136px !important;
  text-align: center;
  padding: 5px 0;
}

.section .moreOl > li a,
.section .moreOl1 > li a {
  display: block;
  border: 1px solid #eee;
  padding: 10px 0;
  width: 90%;
  position: relative;
  left: 5%;
  top: 5%;
  cursor: pointer;
  height: 90%;
}

.section .moreOl > li > a,
.section .moreOl1 > li > a {
  color: #444;
}

.section .moreOl > li > a:hover,
.section .moreOl1 > li > a:hover {
  background: #00a0ea;
  color: #fff !important;
  box-shadow: 2px 2px 10px #6ec0f0;
}

.section .moreOl > li .hover,
.section .moreOl1 > li .hover {
  background: #00a0ea;
  color: #fff !important;
  box-shadow: 2px 2px 10px #6ec0f0;
}

.section .moreOl > li ol,
.section .moreOl1 > li ol {
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-top: 2px solid #00a0ea;
  background: #d3dff0;
  box-shadow: 0px 2px 10px #d3dff0;
}

.section .moreOl > li ol a,
.section .moreOl1 > li ol a {
  color: #333;
  font-size: 14px;
}

.section .moreOl > li ol a:hover,
.section .moreOl1 > li ol a:hover {
  background: #6ec0f0;
  color: #fff !important;
  box-shadow: 2px 2px 10px #6ec0f0;
}

.section .moreOl > li ol li,
.section .moreOl1 > li ol li {
  width: 272px;
  float: left;
  padding: 5px 0;
}

.section .moreOl .last,
.section .moreOl1 .last {
  width: 272px !important;
}

.section .moreOl .last a,
.section .moreOl1 .last a {
  width: 95%;
  position: relative;
  left: 2.5%;
  top: 5%;
  cursor: pointer;
  height: 90%;
}

.section .moreOl .last.hover > a,
.section .moreOl1 .last.hover > a {
  background: #00a0ea;
  color: #fff !important;
  box-shadow: 2px 2px 10px #6ec0f0;
}

.section .moreOl .last.hover ol,
.section .moreOl1 .last.hover ol {
  display: block;
}

.section .moreOl > li.zb-page,
.section .moreOl1 > li.zb-page {
  margin-left: 1%;
  width: 98% !important;
  border: 1px solid #eee;
}

.zb-li {
  padding: 0;
}

.zb-li > li.item {
  width: 272px !important;
}

.zb-li > li.item a {
  width: 95%;
  left: 2.5%;
}

.zb-li > li {
  margin-left: 5px;
  float: left;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  width: 135px;
  text-align: center;
  padding: 5px 0;
}

.zb-li > li a {
  display: block;
  border: 1px solid #eee;
  padding: 10px 0;
  position: relative;
  cursor: pointer;
}

/* ==========================================================================
   6. 视频播放器和直播
   ========================================================================== */
.tab {
  width: 100%;
  height: 100%;
  background-color: #464646;
}

#mainTab {
  background-position: center center;
  background-attachment: fixed;
  background-size: 100% 100%;
}

.video-js .vjs-custom-control-spacer {
  display: inline-block;
  float: right;
}

.fwb video {
  width: 100%;
  height: 100%;
}

#videoMeetingZone {
  width: 100%;
  margin: 0px auto 0px auto;
  background-color: #464646;
}

.noLiveVideo {
  width: 100%;
  height: 100%;
}

.videoToolBar {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  width: 100%;
  height: 30px;
  line-height: 30px;
}

.videoToolBarIcon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-top: 6px;
  background-position: center center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  cursor: pointer;
}

#fwb-ifr img {
  max-height: 560px;
}

/* ==========================================================================
   7. 登录和用户界面
   ========================================================================== */
.loginInfo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.userId {
  color: white;
  text-align: center;
  font-size: 16px;
}

.backButton {
  padding: 20px 0px 0px 0px;
  text-align: center;
  font-size: 20px;
  width: 200px;
  height: 50px;
  background-color: black;
  color: white;
  cursor: pointer;
}

.contentcontent {
  background-color: #67cf22;
}

.topic {
  border-radius: 20px;
  margin: 30px auto 30px auto;
  padding: 20px 0px 0px 0px;
  text-align: center;
  font-size: 20px;
  color: white;
  width: 400px;
  height: 50px;
  background-color: #3dc25a;
  cursor: pointer;
}

.logintopic {
  margin: 5px auto 5px auto;
  padding: 0px 0px 0px 0px;
  text-align: center;
  font-size: 20px;
  color: white;
  width: 50px;
  height: 30px;
  background-color: #b22222;
  cursor: pointer;
}

.right {
  float: right;
  width: 100%;
  height: 100%;
}

.title2 {
  padding: 20px 0px 0px 0px;
  text-align: center;
  font-size: 20px;
  width: 100%;
  height: 50px;
  background-color: #464646;
  color: #ffffff;
}

/* ==========================================================================
   8. 消息和聊天界面
   ========================================================================== */
.messageButton {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 100px;
  height: 100px;
  margin: auto;
  z-index: 1;
  background-color: red;
}

.msgBubble {
  text-align: left;
  word-wrap: break-word;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  padding: 5px;
  margin: 5px auto 5px auto;
}

.circle {
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  text-align: center;
  font-size: 20px;
}

/* ==========================================================================
   9. 开关组件
   ========================================================================== */
.tm {
  float: right;
  height: 50px;
}

.tm span {
  display: inline-block;
  float: left;
  line-height: 50px;
}

.chooseBtn {
  display: none;
}

.choose-label {
  box-shadow: #ccc 0px 0px 0px 1px;
  width: 40px;
  height: 20px;
  display: inline-block;
  border-radius: 20px;
  position: relative;
  background-color: #bdbdbd;
  overflow: hidden;
  margin-bottom: 0px;
  margin-top: 14px;
  margin-right: 15px;
  margin-left: 10px;
}

.choose-label:before {
  content: "";
  position: absolute;
  left: 0px;
  width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 20px;
  background-color: #fff;
  z-index: 20;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.chooseBtn:checked + label.choose-label:before {
  left: 20px;
}

.chooseBtn:checked + label.choose-label {
  background-color: #00a0ea;
}

/* ==========================================================================
   10. 用户信息面板
   ========================================================================== */
#teacherinfo {
  z-index: 1;
  position: absolute;
  height: auto;
  width: 100%;
  float: right;
  background-color: #ffffff;
  display: none;
}

.user_intro {
  margin: 20px 20px 20px 20px;
  float: right;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  width: 75%;
  white-space: normal;
  word-break: break-all;
}

.user_pic {
  margin: 20px 20px 20px 20px;
  float: left;
}

.frs {
  float: right;
  padding: 0 20px 0 0;
}

.frs img {
  display: inline-flex;
  width: 24px;
  height: 24px;
  float: right;
  left: 10px;
  border-radius: 50%;
  position: relative;
}

.frs input {
  display: block;
  float: right;
  margin-left: 10px;
}

/* ==========================================================================
   11. 首页播放器布局
   ========================================================================== */
.box {
  display: flex;
  position: relative;
  margin: 0 auto;
  height: 600px;
  width: 1200px;
  background-color: #fff;
}

.main {
  width: 800px !important;
  height: 600px !important;
  background: #fff;
  overflow-y: scroll;
  font-size: 14px;
    overflow: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */

}

.box_left {
  width: 200px;
  background: #f8f8f8;
}

.box_right {
  width: 200px;
  background: #f8f8f8;
}

.box_left ul li,
.box_right ul li {
  height: 100px;
  border-bottom: 1px #ddd dashed;
  padding-top: 30px;
}

.box_left ul li a,
.box_right ul li a {
  display: block;
  width: 140px;
  margin: 0 auto 0 auto;
  line-height: 40px;
  background: #375172;
  color: #fff;
  font-size: 16px;
  border-radius: 10px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.box_left ul li a:hover,
.box_right ul li a:hover {
  background: #00a0ea;
  color: #fff;
}

/* ==========================================================================
   11. 详情播放器布局
   ========================================================================== */
.bofang {
  display: flex;
  margin: 0 auto;
  width: 1200px;
  height: 600px;
  background-color: #fff;
}



/* hidde scrollbar */
.main::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Opera */
}

.bf_left {
  width: 200px;
  background: #f8f8f8;
}

.bf_right {
  width: 200px;
  background: #f8f8f8;
}

.bf_left ul li,
.bf_right ul li {
  border-bottom: 1px #ddd dashed;
  padding-top: 30px;
  padding-bottom: 30px;
}

.bf_left ul li a,
.bf_right ul li a {
  display: block;
  width: 140px;
  margin: 0 auto 0 auto;
  line-height: 40px;
  background: #375172;
  color: #fff;
  font-size: 16px;
  border-radius: 10px;
  text-align: center;
}

.bf_left ul li a:hover,
.bf_right ul li a:hover {
  background: #00a0ea;
  color: #fff;
}

.bf_left ul li a:active,
.bf_right ul li a:active {
  background: #eae600;
  color: #fff;
  transform: scale(0.98);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 钱包链接特殊样式 */
.box_left ul li a.wallet-link {
  background: #28a745;
  font-weight: bold;
}

.box_left ul li a.wallet-link:hover {
  background: #218838;
}

/* 页面载入容器样式 */
.main .page-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main .page-content.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #666;
}

.box .main .page-content.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #00a0ea;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.main .page-content.error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #dc3545;
  font-size: 16px;
  text-align: center;
  padding: 20px;
}

.main .page-content.error .retry-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background: #00a0ea;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.main .page-content.error .retry-btn:hover {
  background: #0086c3;
}

