@charset "utf-8";

/* ==========================
   主题颜色变量（统一管理）
   ========================== */
:root {
  --color-primary: #f2990d;
  --color-primary-dark: #ae6600;
  --color-border: #eee;
  --color-white: #fff;
  --color-text: #333;
  --color-text-muted: #999;
  --color-danger: #FD0303;
  --notice-bg: #fff4e5;
}

/* ==========================
   盒模型 & 全局基础
   ========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html { height: 100%; }

body {
  margin: 0;
  background: #f8f8f8;
  font-family: 'Helvetica Neue', 'STHeiti', '微软雅黑', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 140%;
  color: var(--color-text);
}

ul, ol, li, dt, dd { margin: 0; padding: 0; list-style: none; }
dl { margin-top: 0; margin-bottom: 0; }
p { margin: 0 0 10px; }

img { border: 0; vertical-align: middle; }
img.img-responsive { max-width: 100%; width: 100%; height: auto; display: block; object-fit: cover; }

input { outline: none; -webkit-tap-highlight-color: rgba(0,0,0,0); }
input:focus {
  border-color: var(--color-primary);
  -webkit-box-shadow: inset 0 1px 1px rgba(255,136,0,.075), 0 0 8px rgba(255,136,0,.6);
}
/* ==========================
   容器 & 布局
   ========================== */
.container {
  width: 1400px;
  position: relative;
  padding-right: 15px;
  padding-left: 15px;
  margin: 0 auto;
}

.row {
  position: relative;
  margin-right: -15px;
  margin-left: -15px;
}

.container::before, .container::after,
.row::before, .row::after,
.clearfix::before, .clearfix::after {
  display: table;
  content: " ";
  clear: both;
}

.stui-warp-head { float: left; width: 20%; min-height: 1px; padding-right: 20px; }
.stui-warp-content { float: left; width: 80%; }
.stui-warp-content.active { width: 100%; }

/* ==========================
   文本样式
   ========================== */
h1 { font-size: 22px; line-height: 28px; }
h2 { font-size: 20px; line-height: 26px; }
h3 { font-size: 18px; line-height: 24px; }
h4 { font-size: 16px; line-height: 22px; }
h5 { font-size: 14px; line-height: 20px; }
h6 { font-size: 12px; line-height: 18px; }

h1,h2,h3,h4,h5,h6 { font-weight: 400; margin-top: 10px; margin-bottom: 10px; }

a, button { text-decoration: none; outline: none; -webkit-tap-highlight-color: rgba(0,0,0,0); }
a, h1, h2, h3, h4, h5, h6 { color: var(--color-text); }
a:focus, a:hover, a:active { text-decoration: none; color: var(--color-primary-dark); }

.text-red { color: red; }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

.split-line {
  display: inline-block;
  margin-left: 12px;
  margin-right: 12px;
  width: 1px;
  height: 14px;
  vertical-align: -2px;
  background-color: var(--color-border);
}

/* ==========================
   播放器相关
   ========================== */
.play {
  display: none;
  position: absolute;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1) 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><polygon points="10,6 26,16 10,26" fill="white"/></svg>') center no-repeat;
  background-size: 55px 55px;
}
.pic-text {
  position: absolute;
  z-index: 2;
  bottom: 5px;
  right: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-repeat: no-repeat;
  background-color: rgba(0,0,0,.6);
  color: #fff;
}

.stui-player__video { padding: 10px; }
.stui-player__foot  { padding: 10px; }

/* ==========================
   header
   ========================== */
.stui-header__top {
  border-radius: 5px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px var(--color-border);
  overflow: hidden;
}

.stui-header__logo { float: left; margin: 10px 0 10px 20px; }
.stui-header__logo .logo {
  display: block;
  width: 282px;
  height: 60px;
}
.stui-header__logo .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stui-header__search {
  float: right;
  position: relative;
  width: 280px;
  margin: 25px 20px 10px 0;
}
.stui-header__search .form-control {
  display: block;
  width: 100%;
  height: 35px;
  padding: 6px 45px 6px 10px;
  font-size: 12px;
  line-height: 32px;
  border-radius: 5px;
  transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  background-color: #f5f5f5;
  color: var(--color-text-muted);
  border: 0;
}

/* 搜索按钮 */
.stui-header__search .submit {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  height: 35px;
  border: 0;
  cursor: pointer;
  background: transparent;
  padding: 0;
  color: var(--color-text);
}
.stui-header__search .submit svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
  fill: none;
}

.stui-header__menu { background-color: var(--color-primary); }
.stui-header__menu li { position: relative; float: left; }
.stui-header__menu li a {
  display: inline-block;
  padding: 20px 30px;
  font-size: 15px;
  color: #fff;
}
.stui-header__menu li.active a { background-color: var(--color-primary-dark); color: #fff; }

.stui-header__nav {
  float: right;
  margin-right: 20px;
  margin-top: 30px;
  display: block;
  width: 30px;
  height: 50px;
}
.stui-header__nav span {
  display: block;
  width: 30px;
  height: 5px;
  margin-bottom: 5px;
  background-color: var(--color-primary);
}
.stui-header__nav span:last-child { margin-bottom: 0; }

.stui-top-menu { width: 260px; }
.stui-top-menu.floatTop { position: fixed; top: 0; }
.stui-top-menu.floatBottom { position: fixed; bottom: 130px; }

/* ==========================
   pannel
   ========================== */
.stui-pannel {
  position: relative;
  margin-top: 8px;
  border-radius: 5px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px var(--color-border);
}
.stui-pannel-bd { padding: 10px; }
.stui-pannel__head { padding: 10px 20px; line-height: 25px; border-bottom: 1px solid var(--color-border); }
.stui-pannel__head .title { margin: 0; }

.stui-pannel__menu li { border-bottom: 1px solid var(--color-border); }
.stui-pannel__menu li:last-child { border-bottom: 0; }
.stui-pannel__menu li a {
  display: block;
  padding: 10px 20px;
  font-weight: bold;
  color: var(--color-primary);
}
.stui-pannel__menu li a:hover, .stui-pannel__menu li.active a:hover {
  background-color: var(--color-primary);
  color: #fff;
}
.stui-pannel__menu li.active a { background-color: #f5f5f5; }
.stui-pannel__menu li a .count {
  padding: 2px 8px;
  border-radius: 4px;
  background-color: var(--color-primary);
  font-size: 12px;
  color: #fff;
}
.stui-pannel__menu li a:hover .count { background-color: var(--color-primary-dark); }

/* ==========================
   VOD list
   ========================== */
.stui-vodlist li { padding: 10px; float: left; width: 20%; }
.stui-vodlist__thumb {
  position: relative;
  display: block;
  padding-top: 70%;
  border-radius: 5px;
  overflow: hidden;
}
.stui-vodlist__thumb img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; }
.stui-vodlist__thumb.active { padding-top: 50%; background-position: 50% 50%; background-size: cover; }
.stui-vodlist__thumb:hover .play { display: block; }

.stui-vodlist__detail .title {
  font-size: 14px;
  margin-bottom: 0;
  width: 100%;
  height: 38px;
  line-height: 18px;
  overflow: hidden;
}
.stui-vodlist__detail .sub { margin-bottom: 0; font-size: 12px; color: var(--color-text-muted); }

/* ==========================
   page 分页
   ========================== */
.stui-page { margin-bottom: 20px; }
.stui-page li { display: inline-block; margin-left: 10px; }
.stui-page li .num, .stui-page li a {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 4px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
}
.stui-page li.active a, .stui-page li.disabled a {
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #fff;
}
/* ==========================
   更多工具类
   ========================== */
.margin-0 { margin: 0 !important; }
.padding-0 { padding: 0 !important; }
.pull-left { float: left !important; }
.pull-right { float: right !important; display: inline-flex; align-items: center; gap: 2px; }
.hide, .visible-lg, .visible-md, .visible-sm, .visible-xs, .visible-mi { display: none !important; }

.stui-foot {
  margin: 20px 0;
  padding: 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  text-align: center;
  color: var(--color-text-muted);
}

/* ==========================
   响应式断点（保留你原始的规则与数值）
   ========================== */
@media (min-width: 1200px) {
  .visible-lg { display: block !important; }
  .hidden-lg { display: none !important; }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .visible-md { display: block !important; }
  .hidden-md { display: none !important; }
}

@media (max-width: 991px) and (min-width: 768px) {
  .visible-sm { display: block !important; }
  .hidden-sm { display: none !important; }
}

@media (max-width: 1399px) {
  .container { width: 100%; padding-left: 30px; padding-right: 30px; }
}

@media (max-width: 1023px) {
  .stui-warp-head { display: none; float: none; width: 100%; padding-right: 0; }
  .stui-warp-content { float: none; width: 100%; }
  .stui-top-menu { width: 100%; }
}

@media (max-width: 767px) {
  .visible-xs { display: block !important; }
  .hidden-xs { display: none !important; }
  .container { padding: 0; }
  .row { margin: 0; }

  .stui-player__video { padding: 5px; }
  .stui-player__foot  { padding: 5px; }

  /* header 手机调整（保留原有定位） */
  .stui-header__top { margin-top: 0; border: 0; box-shadow: none; border-radius: 0; }
  .stui-header__logo { margin: 10px 0 10px 10px; padding: 0; }
  .stui-header__logo .logo { width: 148px; height: 35px; }

  .stui-header__search {
    float: none;
    width: auto;
    margin: 0;
    position: absolute;
    top: 15px;
    right: 50px;
    left: 168px;
  }
  .stui-header__search .form-control {
    height: 30px;
    line-height: 30px;
    border-radius: 5px;
    padding: 6px 40px 6px 10px;
    border: 0;
  }

  .stui-header__search .submit {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border: 0;
    cursor: pointer;
    background: transparent;
    color: var(--color-text);
    padding: 0;
  }
  .stui-header__search .submit svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
    fill: none;
  }

  .stui-header__nav { height: 30px; margin-top: 18px; margin-right: 10px; }
  .stui-header__menu {
    position: relative;
    margin: 0;
    overflow: auto;
    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .stui-header__menu li { float: none; display: inline-block; }
  .stui-header__menu li a { padding: 15px 10px; font-size: 14px; }
  .stui-header__menu li:hover .dropdown { display: none; }

  /* pannel */
  .stui-pannel { margin-top: 0px; border: 0; border-radius: 0; box-shadow: none; }
  .stui-pannel-bd { padding: 5px; }
  .stui-pannel__head { padding: 10px; line-height: 25px; }
  .stui-pannel__head .title { font-size: 16px; }

  /* vodlist */
  .stui-vodlist li { padding: 5px; width: 50%; }

  /* page */
  .stui-page { padding: 0 10px; }
  .stui-page li { float: left; width: 20%; margin: 0; padding: 0 5px 0 5px; }
  .stui-page li a, .stui-page li .num { display: block; padding: 5px 0; text-align: center; }
}

/* ==========================
   公告滚动（保留原动画逻辑）
   ========================== */
.notice {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--notice-bg);
  border-radius: 5px;
  overflow: hidden;
}
.notice-text {
  flex: 1;
  margin-left: 8px;
  color: var(--color-danger);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.scroll-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 16s linear infinite;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ==========================
   文字广告
   ========================== */
.pannel-title-right a {
  display: inline-block;
  color: var(--color-danger);
  text-decoration: none;
}
.pannel-title-right a:hover {
  color: #ff5500;
}