:root {
  --primary: #ff6428;
  --primary-hover: #ff7039;
  --blue: #0889f6;
  --bg: #f8f8f8;
  --text: #333;
  --muted: #999;
  --line: #eee;
  --white: #fff;
  --header-grad: linear-gradient(90deg, rgba(52, 207, 255, 0.2) 0%, rgba(155, 123, 255, 0.2) 51%, rgba(255, 122, 161, 0.2) 100%);
  --search-grad: linear-gradient(90deg, rgba(52, 207, 255, 0.2) 0%, rgba(155, 123, 255, 0.2) 51%, rgba(255, 122, 161, 0.2) 100%);
  --container: 1200px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.shoutu-body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; vertical-align: middle; border: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.clearfix::after { content: ""; display: block; clear: both; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

/* header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 99;
  background: var(--white) var(--header-grad);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

.hd-flex {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 10px;
}

.logo {
  flex: 0 0 auto;
  max-width: 160px;
}

.logo a {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 70px;
}

.nav-drawer-hd { display: none; }

.nav-mask { display: none; }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
}

.main-nav { flex: 1; min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-item a {
  display: block;
  padding: 0 12px;
  line-height: 70px;
  font-size: 16px;
  white-space: nowrap;
}

.nav-item a:hover { color: var(--primary); }

.nav-item.has-sub { position: relative; }

.sub-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 120px;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 20;
}

.sub-nav li { list-style: none; }

.sub-nav a {
  display: block;
  padding: 8px 14px;
  line-height: 1.4;
  font-size: 14px;
  white-space: nowrap;
}

.sub-nav a:hover {
  background: #fff5f0;
  color: var(--primary);
}

.nav-item.has-sub:hover .sub-nav { display: block; }

.search-container { flex: 0 0 auto; }

.search-wrapper {
  position: relative;
  width: 260px;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 34px;
  padding: 6px 36px 6px 14px;
  border: none;
  border-radius: 17px;
  background: var(--search-grad);
  color: #666;
  font-size: 16px;
  text-align: left;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 100, 40, 0.25);
}

.sbt {
  position: absolute;
  top: 0;
  right: 8px;
  height: 34px;
  width: 34px;
  border: 0;
  background: none;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sbt:hover { color: var(--primary); }

.main {
  padding-top: 86px;
  padding-bottom: 30px;
  min-height: 60vh;
}

.crumbs {
  padding: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; opacity: 0.5; }
.crumbs em { font-style: normal; color: var(--text); }

/* sections */
.new-hot-up,
.hot-section { margin-bottom: 18px; }

.card-wrap {
  background: var(--white);
  border-radius: 4px;
  padding: 16px 16px 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.title .theme {
  float: left;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  padding-left: 10px;
  border-left: 4px solid var(--primary);
  line-height: 1.2;
}

.title .theme a {
  color: inherit;
  text-decoration: none;
}

.title .theme a:hover {
  color: var(--primary);
}

.title .more {
  float: right;
  font-size: 13px;
  color: var(--muted);
}

.title .more a {
  margin-left: 8px;
  color: var(--primary);
}

.tab-tit-box {
  float: right;
  font-size: 14px;
}

.tab-tit {
  display: inline-block;
  margin-left: 14px;
  padding-bottom: 4px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab-tit:hover,
.tab-tit.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* vod grid */
.vod-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.vod-list .item {
  width: 14.2857%;
  padding: 0 8px;
  margin-bottom: 18px;
}

.item-con { width: 100%; }

.thumb {
  display: block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 3 / 4;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.thumb:hover img { transform: scale(1.05); }

.state {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 2px 8px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tip-score {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 3px;
}

.subject {
  margin: 8px 0 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  height: 2.9em;
  overflow: hidden;
}

.subject a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subject a:hover { color: var(--primary); }

.tags {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vod-list.tab-panel { display: none !important; }
.vod-list.tab-panel.is-active { display: flex !important; }

/* page head */
.page-head { margin-bottom: 12px; }

.page-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.page-desc { margin: 0; color: var(--muted); font-size: 13px; }

/* detail */
.detail-box { margin-bottom: 18px; }

.detail-top { display: flex; gap: 24px; }

.detail-pic {
  flex: 0 0 260px;
  max-width: 260px;
}

.detail-pic img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.detail-info { flex: 1; min-width: 0; }

.detail-info h1 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.35;
}

.detail-note {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 14px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.detail-tags li {
  padding: 3px 10px;
  background: #f5f5f5;
  border-radius: 3px;
  font-size: 12px;
  color: #666;
}

.detail-row {
  margin: 8px 0;
  color: #555;
  line-height: 1.7;
}

.detail-row span {
  color: var(--muted);
  margin-right: 8px;
}

.detail-desc {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: #666;
  line-height: 1.8;
  max-height: 200px;
  overflow: auto;
}

.play-panel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.play-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--primary);
}

.ep-list { display: flex; flex-wrap: wrap; gap: 8px; }

.ep-btn {
  display: inline-block;
  padding: 7px 14px;
  min-height: 40px;
  line-height: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  background: #fafafa;
}

.ep-btn:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.ep-btn.active,
.ep-btn.active:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.play-panel.play-src-colored .play-title { color: var(--src-color); }

.play-panel.play-src-colored .ep-btn {
  color: #fff;
  background: var(--src-color);
  border-color: var(--src-color);
}

.play-panel.play-src-colored .ep-btn:hover {
  color: #fff;
  background: var(--src-color);
  border-color: var(--src-color);
  opacity: 0.88;
}

.play-panel.play-src-colored .ep-btn.active,
.play-panel.play-src-colored .ep-btn.active:hover {
  color: #fff;
  background: var(--src-color);
  border-color: var(--src-color);
  opacity: 1;
}

.related-box { margin-top: 18px; }

/* player */
.play-page .player-card { margin-bottom: 16px; }
.play-page .play-detail { margin-top: 0; }
.play-page .play-info-hd { font-size: 18px; margin: 0 0 8px; }
.play-page .play-info-hd a { color: var(--text); }
.play-page .card-wrap { padding: 20px; }

.play-hd {
  margin: 0 0 8px;
  font-size: 22px;
}

.play-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.player-box {
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.player-box video {
  width: 100%;
  max-height: 72vh;
  display: block;
  background: #000;
}

.play-actions { margin-top: 16px; }

/* pager & empty */
.pager {
  padding: 16px 0 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pager-btn {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font-size: 14px;
}

.pager-btn:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.pager-info { color: var(--muted); font-size: 14px; }

.empty,
.empty-box {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

.empty-page .empty-icon {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: 8px;
}

.empty-page h1 { margin: 0 0 8px; color: var(--text); }
.empty-page p { margin: 0 0 20px; }

/* footer */
.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 24px 0;
  text-align: center;
}

.footer-text {
  margin: 0 0 6px;
  color: #666;
  font-size: 14px;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-friend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 0 10px;
  font-size: 13px;
}

.footer-friend-label {
  color: var(--muted);
}

.footer-friend a {
  color: #666;
  text-decoration: none;
}

.footer-friend a:hover {
  color: var(--primary, #6366f1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1200px) {
  .vod-list .item { width: 16.666%; }
}

@media (max-width: 992px) {
  .vod-list .item { width: 20%; }
  .search-wrapper { width: 200px; }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }

  .hd-flex {
    flex-wrap: nowrap;
    height: 70px;
    padding: 0;
    align-items: center;
    gap: 8px;
  }

  .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
  }

  .logo a {
    line-height: 70px;
    padding: 0;
    font-size: 18px;
  }

  .nav-toggle { display: block; }

  .nav-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .nav-mask.open {
    opacity: 1;
    visibility: visible;
  }

  body.nav-drawer-open { overflow: hidden; }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 85vw);
    flex: unset;
    min-width: 0;
    background: var(--white);
    z-index: 201;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
    padding: 0 0 24px;
  }

  .main-nav.open { transform: translateX(0); }

  .nav-drawer-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
    z-index: 1;
  }

  .nav-drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
  }

  .nav-close {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 28px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
  }

  .nav-list { flex-direction: column; align-items: stretch; }

  .nav-item a {
    line-height: 1.4;
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .nav-item.has-sub .sub-nav {
    position: static;
    box-shadow: none;
    display: none;
    padding: 0 0 6px;
    background: #fafafa;
  }

  .nav-item.has-sub .sub-nav a {
    padding-left: 28px;
    border-bottom: 0;
    min-height: 40px;
  }

  .nav-item.has-sub.sub-open .sub-nav { display: block; }

  .nav-item.has-sub:hover .sub-nav { display: none; }

  .nav-item.has-sub.sub-open:hover .sub-nav { display: block; }

  .search-container {
    flex: 1;
    min-width: 0;
    width: auto;
    margin-top: 0;
  }

  .search-wrapper { width: 100%; }

  .main { padding-top: 86px; }

  .title .theme { float: none; margin-bottom: 10px; font-size: 18px; }

  .title .more,
  .tab-tit-box {
    float: none;
    display: block;
    margin-top: 8px;
  }

  .tab-tit-box {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .tab-tit { margin: 0 14px 0 0; display: inline-block; }

  .vod-list .item { width: 33.3333%; }

  .detail-top { flex-direction: column; }

  .detail-pic { max-width: 220px; margin: 0 auto; }

  .detail-info h1 { font-size: 20px; }

  .play-hd { font-size: 18px; }

  .pager-btn { min-height: 40px; line-height: 24px; display: inline-flex; align-items: center; }
}

@media (max-width: 480px) {
  .vod-list .item { width: 50%; }

  .logo a { font-size: 18px; }

  .card-wrap { padding: 12px 12px 6px; }
}

/* visitor reviews */
.vod-reviews { margin-top: 16px; }
.vod-reviews .title small { font-size: 14px; color: var(--muted, #999); font-weight: 400; margin-left: 8px; }
.review-form { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed rgba(0,0,0,.08); }
.review-form-row { margin-bottom: 10px; }
.review-label { display: block; margin-bottom: 4px; color: #888; font-size: 13px; }
.review-form input[type=text], .review-form textarea {
  width: 100%; border: 1px solid #e8e8e8; border-radius: 6px; padding: 8px 10px; font-size: 14px; font-family: inherit;
}
.review-form textarea { resize: vertical; min-height: 88px; }
.review-stars-input { display: inline-flex; gap: 2px; }
.star-btn { border: 0; background: none; font-size: 22px; line-height: 1; color: #ddd; cursor: pointer; padding: 0 2px; }
.star-btn.active { color: #ffb400; }
.review-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.review-submit { border: 0; cursor: pointer; }
.review-msg { font-size: 13px; color: #888; }
.review-msg.ok { color: #389e0d; }
.review-msg.err { color: #cf1322; }
.review-empty { color: #999; font-size: 14px; padding: 8px 0 4px; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-item { padding: 12px 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.review-item:last-child { border-bottom: 0; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.review-user { font-size: 14px; }
.review-stars { color: #ffb400; letter-spacing: 1px; }
.review-time { color: #999; margin-left: auto; }
.review-text { color: #555; line-height: 1.7; word-break: break-word; }
.review-pager { text-align: center; padding-top: 12px; }
.review-more { background: #fff; color: var(--theme, #ff5a5f); border: 1px solid var(--theme, #ff5a5f); cursor: pointer; }
.review-more:hover { background: var(--theme, #ff5a5f); color: #fff; }

.vod-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.vod-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px;
  background: rgba(255, 90, 95, 0.08); border: 1px solid rgba(255, 90, 95, 0.35); color: #e0454a;
}
.vod-tag:hover { background: var(--theme, #ff5a5f); border-color: var(--theme, #ff5a5f); color: #fff; }

.article-list-page { padding: 4px 0 8px; }
.article-list-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.article-list-title h1 { margin: 0; font-size: 22px; line-height: 1.35; color: #222; }
.article-list-stat { margin: 6px 0 0; font-size: 13px; color: #999; }
.article-list-stat em { font-style: normal; color: var(--theme, #ff5a5f); font-weight: 600; }
.article-cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.article-cat-tab { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: #666; background: #f5f5f5; text-decoration: none; transition: background .2s, color .2s; }
.article-cat-tab:hover { color: var(--theme, #ff5a5f); background: #fff0f0; }
.article-cat-tab.is-active { color: #fff; background: var(--theme, #ff5a5f); }
.article-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.article-card { border-bottom: 1px solid #eee; }
.article-card:last-child { border-bottom: 0; }
.article-card-link { display: flex; gap: 14px; padding: 16px 0; color: inherit; text-decoration: none; transition: background .2s; }
.article-card-link:hover { background: rgba(255, 90, 95, 0.04); }
.article-thumb { flex: 0 0 168px; width: 168px; height: 94px; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.article-card-link:hover .article-thumb img { transform: scale(1.05); }
.article-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.article-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.article-card-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; color: #222; flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-cat { flex-shrink: 0; margin: 2px 0 0; padding: 2px 8px; border-radius: 4px; font-size: 12px; line-height: 1.4; color: var(--theme, #ff5a5f); background: rgba(255, 90, 95, 0.08); white-space: nowrap; }
.article-card-link:hover .article-card-title { color: var(--theme, #ff5a5f); }
.article-card-note { margin: 0 0 8px; font-size: 13px; line-height: 1.65; color: #777; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 12px; color: #999; }
.meta-hits { margin-left: auto; }
.article-empty { text-align: center; padding: 48px 16px; color: #999; font-size: 15px; }
.home-news-list { list-style: none; margin: 0; padding: 0; }
.home-news-item { border-bottom: 1px dashed #eee; }
.home-news-item:last-child { border-bottom: 0; }
.home-news-link { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; }
.home-news-link:hover .home-news-title { color: var(--theme, #ff5a5f); }
.home-news-thumb { flex: 0 0 72px; width: 72px; height: 48px; border-radius: 6px; overflow: hidden; background: #f5f5f5; }
.home-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-news-body { flex: 1; min-width: 0; }
.home-news-title { display: block; font-size: 14px; line-height: 1.45; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-news-meta { display: flex; gap: 12px; margin-top: 4px; font-size: 12px; color: #999; }
.article-detail .article-hd { margin-bottom: 16px; }
.article-detail h1 { font-size: 24px; line-height: 1.4; margin: 0 0 8px; }
.article-cover img { max-width: 100%; height: auto; border-radius: 6px; margin: 12px 0; }
.article-summary { background: #fff8f8; padding: 12px 14px; border-left: 3px solid var(--theme, #ff5a5f); line-height: 1.7; margin: 12px 0; }
.article-body { line-height: 1.85; font-size: 15px; }
.article-body img { max-width: 100%; height: auto; }
.related-articles { margin-top: 28px; padding-top: 16px; border-top: 1px solid #eee; }
