@charset 'utf-8';

/* ============================================================
   首页 UI 重设计 — 仅作用于 body.bgindex
   ============================================================ */

body.bgindex {
  --oa-primary: #1a5fb4;
  --oa-primary-dark: #0d3d7a;
  --oa-primary-light: #3d8fd9;
  --oa-accent: #e67e22;
  --oa-accent-hover: #d35400;
  --oa-bg: #f0f4f8;
  --oa-surface: #ffffff;
  --oa-text: #2c3e50;
  --oa-text-muted: #6b7c93;
  --oa-border: #e2e8f0;
  --oa-shadow: 0 4px 24px rgba(26, 95, 180, 0.08);
  --oa-shadow-lg: 0 12px 40px rgba(26, 95, 180, 0.15);
  --oa-radius: 12px;
  --oa-radius-sm: 8px;
  --oa-max-width: 1200px;
  --oa-transition: 0.25s ease;

  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--oa-text);
  background-color: var(--oa-bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(26, 95, 180, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(230, 126, 34, 0.04) 0%, transparent 50%);
  min-height: 100vh;
  line-height: 1.6;
}

body.bgindex *,
body.bgindex *::before,
body.bgindex *::after {
  box-sizing: border-box;
}

/* 覆盖 style.css 中 * { margin: 0 auto } 对布局的影响 */
body.bgindex #wrapper,
body.bgindex .container,
body.bgindex #navegacion,
body.bgindex #navegacion ul,
body.bgindex #navegacion li,
body.bgindex #header,
body.bgindex #header .logo,
body.bgindex .nav_global,
body.bgindex .nav_global ul,
body.bgindex .nav_global li,
body.bgindex .hdm,
body.bgindex #playBox,
body.bgindex .qds-search-common,
body.bgindex .qds-search-common form,
body.bgindex .footer-wrap,
body.bgindex #footer {
  margin-left: auto;
  margin-right: auto;
}

body.bgindex #navegacion li,
body.bgindex .nav_global li,
body.bgindex #playBox .smalltitle ul li {
  margin-left: 0;
  margin-right: 0;
}

body.bgindex a,
body.bgindex a:link,
body.bgindex a:visited {
  color: var(--oa-primary);
  text-decoration: none;
  transition: color var(--oa-transition);
}

body.bgindex a:hover {
  color: var(--oa-accent);
}

body.bgindex img {
  border: none;
  max-width: 100%;
  vertical-align: middle;
}

body.bgindex ul,
body.bgindex ol,
body.bgindex li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- 主容器 ---- */
body.bgindex #wrapper {
  width: 100%;
  max-width: var(--oa-max-width);
  margin: 0 auto;
  padding: 0 16px 40px;
  position: relative;
  min-height: auto;
}

/* ---- 顶部工具栏 ---- */
body.bgindex .container {
  width: 100%;
  max-width: var(--oa-max-width);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  text-align: left;
}

body.bgindex #navegacion {
  height: auto;
  line-height: 1;
  padding: 10px 0;
  border-bottom: 1px solid var(--oa-border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--oa-radius-sm) var(--oa-radius-sm) 0 0;
}

body.bgindex #navegacion ul {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 16px;
}

body.bgindex #navegacion li {
  float: none;
  padding: 0;
  font-size: 13px;
  color: var(--oa-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

body.bgindex #navegacion li a {
  color: var(--oa-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--oa-transition);
}

body.bgindex #navegacion li a:hover {
  color: var(--oa-primary);
  background: rgba(26, 95, 180, 0.06);
}

body.bgindex #navegacion li img {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

body.bgindex #navegacion li.qqdenglu img {
  width: auto;
  height: 22px;
  border-radius: 4px;
}

body.bgindex #navegacion li.denglu {
  order: -1;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 6px;
}

body.bgindex #navegacion li.qqdenglu {
  order: -2;
}

body.bgindex #navegacion input[type='text'],
body.bgindex #navegacion input[type='password'] {
  height: 28px;
  width: 90px;
  padding: 0 8px;
  border: 1px solid var(--oa-border);
  border-radius: 4px;
  background: var(--oa-surface);
  font-size: 12px;
}

body.bgindex #navegacion input[type='submit'],
body.bgindex #navegacion input[type='button'] {
  height: 28px;
  width: auto;
  padding: 0 12px;
  border: none;
  border-radius: 4px;
  background: var(--oa-primary);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--oa-transition);
}

body.bgindex #navegacion input[type='submit']:hover,
body.bgindex #navegacion input[type='button']:hover {
  background: var(--oa-primary-dark);
}

/* ---- 头部 Logo + 分类导航 ---- */
body.bgindex #header {
  margin: 0;
  height: auto;
  min-height: 72px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--oa-surface);
  border-radius: 0 0 var(--oa-radius-sm) var(--oa-radius-sm);
  box-shadow: var(--oa-shadow);
}

body.bgindex #header .logo {
  float: none;
  margin: 0;
  height: auto;
  flex-shrink: 0;
}

body.bgindex #header .logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity var(--oa-transition);
}

body.bgindex #header .logo a:hover img {
  opacity: 0.85;
}

body.bgindex .container #header .nav_global {
  height: auto;
  padding: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

body.bgindex .container #header .nav_global ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
}

body.bgindex .container #header .nav_global li {
  float: none;
  height: auto;
  line-height: 1;
  margin: 0;
  font-size: 14px;
}

body.bgindex #header .nav_global li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--oa-text);
  background: var(--oa-bg);
  border: 1px solid var(--oa-border);
  border-radius: 20px;
  transition: all var(--oa-transition);
}

body.bgindex #header .nav_global li a:hover {
  color: #fff !important;
  background: var(--oa-primary);
  border-color: var(--oa-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 95, 180, 0.25);
}

body.bgindex #header .nav_global li.curr a {
  color: #fff;
  background: var(--oa-primary);
  border-color: var(--oa-primary);
}

/* ---- 轮播区域 ---- */
body.bgindex .hdm {
  margin: 24px auto 0;
  padding: 0 0 8px;
  height: auto;
  clear: both;
  text-align: center;
}

body.bgindex #playBox {
  width: 100% !important;
  max-width: var(--oa-max-width);
  height: 360px !important;
  margin: 0 auto 0 !important;
  background: var(--oa-primary-dark);
  border-radius: var(--oa-radius);
  overflow: hidden;
  box-shadow: var(--oa-shadow-lg);
  position: relative;
}

body.bgindex #playBox .oUlplay li img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

body.bgindex #playBox .pre,
body.bgindex #playBox .next {
  width: 44px;
  height: 44px;
  top: 50%;
  margin-top: -22px;
  background-color: rgba(255, 255, 255, 0.9);
  background-size: 12px;
  background-position: center;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity var(--oa-transition), transform var(--oa-transition);
}

body.bgindex #playBox .pre {
  left: 16px;
}

body.bgindex #playBox .next {
  right: 16px;
}

body.bgindex #playBox:hover .pre,
body.bgindex #playBox:hover .next {
  opacity: 1;
}

body.bgindex #playBox .pre:hover,
body.bgindex #playBox .next:hover {
  transform: scale(1.08);
  background-color: #fff;
}

body.bgindex #playBox .smalltitle {
  width: 100%;
  height: auto;
  bottom: 20px;
  z-index: 5;
}

body.bgindex #playBox .smalltitle ul {
  width: auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
}

body.bgindex #playBox .smalltitle ul li {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--oa-transition);
  float: none;
}

body.bgindex #playBox .smalltitle .thistitle {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

/* ---- 搜索区域 ---- */
body.bgindex .qds-search-common {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 28px auto 0 !important;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  clear: both;
}

body.bgindex .qds-search-common form {
  display: flex;
  align-items: stretch;
  background: var(--oa-surface);
  border-radius: var(--oa-radius);
  box-shadow: var(--oa-shadow-lg);
  border: 1px solid var(--oa-border);
  overflow: hidden;
  transition: box-shadow var(--oa-transition);
}

body.bgindex .qds-search-common form:focus-within {
  box-shadow: 0 8px 32px rgba(26, 95, 180, 0.2);
  border-color: var(--oa-primary-light);
}

body.bgindex .qds-search-common .search-select {
  float: none;
  width: 130px;
  min-width: 130px;
  height: auto;
  margin: 0;
  padding: 0 12px;
  font-size: 14px;
  line-height: 56px;
  color: var(--oa-text);
  background: var(--oa-bg);
  border: none;
  border-right: 1px solid var(--oa-border);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7c93' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border-radius: 0;
}

body.bgindex .qds-search-common .search-text {
  float: none;
  flex: 1;
  width: auto;
  height: 56px;
  line-height: 56px;
  padding: 0 20px 0 44px;
  border: none;
  font-size: 15px;
  color: var(--oa-text);
  background: var(--oa-surface) url(../images/search.png) no-repeat 14px center;
}

body.bgindex .qds-search-common .search-text::placeholder,
body.bgindex .qds-search-common .search-text::-webkit-input-placeholder {
  color: #a0aec0;
  font-size: 14px;
  font-family: 'Microsoft YaHei', sans-serif;
}

body.bgindex .qds-search-common .search-btn {
  float: none;
  width: 120px;
  min-width: 120px;
  height: 56px;
  border: none;
  border-radius: 0;
  background: linear-gradient(135deg, var(--oa-accent) 0%, var(--oa-accent-hover) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--oa-transition);
  background-image: none;
}

body.bgindex .qds-search-common .search-btn:hover {
  background: linear-gradient(135deg, var(--oa-accent-hover) 0%, #c0392b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.bgindex .qds-search-common .search-btn span {
  display: none !important;
}

body.bgindex .qds-search-common .search-btn::after {
  content: '搜索';
}

/* ---- 间距修正 ---- */
body.bgindex .gao {
  margin-top: 32px;
}

body.bgindex .clearfloat {
  clear: both;
  height: 0;
  font-size: 0;
  line-height: 0;
}

/* ---- 页脚 ---- */
body.bgindex .footer-wrap {
  width: 100%;
  min-width: auto;
  margin-top: 0;
  background: linear-gradient(180deg, var(--oa-primary-dark) 0%, #0a2540 100%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  border-radius: var(--oa-radius) var(--oa-radius) 0 0;
  overflow: hidden;
}

body.bgindex #footer {
  width: 100%;
  max-width: var(--oa-max-width);
  margin: 0 auto;
  padding: 32px 20px 24px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  text-align: center;
}

body.bgindex #footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--oa-transition);
}

body.bgindex #footer a:hover {
  color: var(--oa-accent);
}

body.bgindex #footer .aboutus ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  height: auto;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.bgindex #footer .aboutus li {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  line-height: 1.6;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

body.bgindex #footer .aboutus li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

body.bgindex #footer > span {
  display: block;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.8;
}

body.bgindex #footer .copyright {
  height: auto;
  margin-top: 8px;
}

body.bgindex #footer .copyright p {
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

body.bgindex #footer .copyright strong a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ---- 响应式 ---- */
@media screen and (max-width: 1024px) {
  body.bgindex #header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.bgindex .container #header .nav_global {
    width: 100%;
    justify-content: flex-start;
  }

  body.bgindex #playBox {
    height: 280px !important;
  }

  body.bgindex #playBox .oUlplay li img {
    height: 280px;
  }
}

@media screen and (max-width: 768px) {
  body.bgindex #wrapper {
    padding: 0 12px 32px;
  }

  body.bgindex #navegacion ul {
    justify-content: center;
  }

  body.bgindex #header .nav_global li a {
    padding: 6px 12px;
    font-size: 13px;
  }

  body.bgindex #playBox {
    height: 220px !important;
    border-radius: var(--oa-radius-sm);
  }

  body.bgindex #playBox .oUlplay li img {
    height: 220px;
  }

  body.bgindex .qds-search-common {
    margin-top: 24px !important;
    padding: 0 12px;
  }

  body.bgindex .qds-search-common .search-select {
    width: 110px;
    min-width: 110px;
    font-size: 13px;
  }

  body.bgindex .qds-search-common .search-text {
    height: 48px;
    line-height: 48px;
    font-size: 14px;
  }

  body.bgindex .qds-search-common .search-btn {
    width: 90px;
    min-width: 90px;
    height: 48px;
  }

  body.bgindex .gao {
    margin-top: 24px;
  }

  body.bgindex #footer .aboutus li:not(:last-child)::after {
    display: none;
  }

  body.bgindex #footer .aboutus li {
    padding: 4px 12px;
  }
}

@media screen and (max-width: 480px) {
  body.bgindex #header .logo img {
    height: 40px;
  }

  body.bgindex #playBox {
    height: 180px !important;
  }

  body.bgindex #playBox .oUlplay li img {
    height: 180px;
  }

  body.bgindex .qds-search-common {
    margin-top: 20px !important;
  }

  body.bgindex .qds-search-common form {
    flex-wrap: wrap;
    border-radius: var(--oa-radius-sm);
  }

  body.bgindex .qds-search-common .search-select {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--oa-border);
    line-height: 44px;
  }

  body.bgindex .qds-search-common .search-text {
    width: 100%;
    height: 44px;
    line-height: 44px;
  }

  body.bgindex .qds-search-common .search-btn {
    width: 100%;
    min-width: 100%;
    height: 44px;
  }
}
