* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background: #f9f9fb;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 12px;
}

.v-header {
  background: #003366;
  color: #eee;
}

.header-row {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-left: 20px;
  gap: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 18%;
  color: #ffbf00;
  font-size: 20px;
  white-space: nowrap;
}

.logo img {
  display: block;
  width: 40px;
  height: 30px;
  object-fit: contain;
}

.nav-list {
  flex: 1 1 0;
  text-align: center;
  color: #eee;
  font-size: 14px;
  line-height: 1.25;
  padding: 6px 4px;
}

.nav-list div {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(238, 238, 238, 0.72);
}

.nav-list .search-icon {
  display: inline-block;
  vertical-align: -3px;
  margin-left: 2px;
}

.nav-list:hover,
.nav-list:focus-visible {
  color: #ffbf00;
}

.top-menu {
  margin: 8px 0 10px;
  padding: 0 20px;
  background: #0086cf;
  border-radius: 5px;
  color: #fff;
  text-shadow: 1.5px 1.5px 3px #000;
}

.row-dl {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.row-dl:last-child {
  border-bottom: 0;
}

.row-dt {
  flex: 0 0 101px;
  width: 101px;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  color: #fff;
  text-shadow:
    1px 1px 2px #000,
    0 0 5px #f56c6c,
    0 0 10px orange;
}

.row-dd {
  flex: 0 0 12.5%;
  max-width: 145px;
  padding: 0 6px;
  font-size: 15px;
  line-height: 40px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1.5px 1.5px 3px #000;
}

.row-dd:hover,
.row-dd:focus-visible {
  color: #ffe08a;
}

.ad-strip {
  height: 72px;
  margin: 8px 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ad-blue {
  background: linear-gradient(90deg, #1a6fd4, #3aa0ff 40%, #1a6fd4);
}

.ad-red {
  background: linear-gradient(90deg, #c62828, #ef5350 45%, #c62828);
}

.block {
  margin: 12px 0 18px;
}

.page-title {
  background: #0086cf;
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 5px;
  margin: 0 0 6px;
}

.video-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -2.5px;
}

.video-col {
  width: 20%;
  padding: 2.5px;
}

.video-block {
  position: relative;
  display: block;
  background: #fff;
  overflow: hidden;
}

.video-block .cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eee;
}

.date-left-down {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
  color: #f5f5f5;
  font-size: 10px;
  line-height: 14px;
}

.video-title {
  margin: 5px 0 8px;
  color: #111;
  font-size: 12px;
  line-height: 25px;
  height: 25px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 99;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 30, 60, 0.92);
  color: #fff;
  font-size: 13px;
}

.toast[hidden] {
  display: none;
}

.loading-tip {
  width: 100%;
  padding: 28px 12px;
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.nav-list.muted {
  opacity: 0.85;
  cursor: default;
}

.detail-page {
  padding-bottom: 40px;
}

.crumb {
  margin: 12px 0 10px;
  color: #666;
  font-size: 13px;
}

.crumb a {
  color: #0086cf;
}

.crumb .sep {
  margin: 0 6px;
  color: #aaa;
}

.player-wrap {
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  min-height: 200px;
}

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

.article-wrap {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e8eef4;
}

.article-content {
  color: #222;
  font-size: 15px;
  line-height: 1.85;
  word-break: break-word;
}

.article-content p {
  margin: 0 0 14px;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  border-radius: 4px;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 18px;
}

.text-list {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 6px;
  overflow: hidden;
}

.text-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f6;
  color: #222;
  font-size: 14px;
  line-height: 1.45;
}

.text-item:last-child {
  border-bottom: 0;
}

.text-item:hover,
.text-item:focus-visible {
  background: #f5f9fc;
  color: #0086cf;
}

.text-item-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.text-item-date {
  flex: 0 0 auto;
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}

.detail-title {
  margin: 14px 0 6px;
  font-size: 22px;
  line-height: 1.35;
  color: #111;
}

.detail-meta,
.detail-tags {
  margin: 0 0 8px;
  color: #666;
  font-size: 13px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 36px;
}

.pager-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  background: #0086cf;
  color: #fff;
  font-size: 14px;
}

.pager-btn:hover {
  background: #0070ad;
}

.pager-info {
  color: #555;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .video-col {
    width: 25%;
  }

  .row-dl {
    flex-wrap: wrap;
  }

  .row-dd {
    flex: 0 0 25%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }

  .header-row {
    min-height: 44px;
    padding: 6px 0;
  }

  .logo {
    flex: 1 1 auto;
    font-size: 17px;
  }

  .logo img {
    width: 34px;
    height: 26px;
  }

  /* 手机导航：原风格；分类名置顶，链接一行四个 */
  .top-menu {
    margin: 8px 0 10px;
    padding: 4px 8px 8px;
    background: #0086cf;
    border-radius: 5px;
    color: #fff;
    text-shadow: 1.5px 1.5px 3px #000;
  }

  .row-dl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .row-dl:last-child {
    border-bottom: 0;
  }

  .row-dt {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    margin: 0 0 2px;
    padding: 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 28px;
    text-align: left;
    color: #fff;
    text-shadow:
      1px 1px 2px #000,
      0 0 5px #f56c6c,
      0 0 10px orange;
  }

  .row-dt::before,
  .row-dt::after {
    content: none;
  }

  .row-dd {
    flex: 0 0 25%;
    width: 25%;
    max-width: none;
    margin: 0;
    padding: 0 4px;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    line-height: 32px;
    color: #fff;
    text-align: center;
    text-shadow: 1.5px 1.5px 3px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: none;
  }

  .row-dd:hover,
  .row-dd:focus-visible,
  .row-dd:active {
    background: transparent;
    color: #ffe08a;
    transform: none;
  }

  .page-title {
    font-size: 13px;
    padding: 7px 10px;
  }

  .video-col {
    width: 50%;
  }

  .video-title {
    font-size: 12px;
    line-height: 20px;
    height: 20px;
    margin: 4px 0 6px;
  }

  .detail-title {
    font-size: 17px;
    margin-top: 10px;
  }

  .player {
    max-height: 56vh;
  }

  .pager {
    gap: 10px;
    padding: 14px 0 28px;
  }

  .pager-btn {
    padding: 7px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .top-menu {
    padding: 2px 6px 6px;
  }

  .row-dt {
    font-size: 13px;
    line-height: 26px;
  }

  .row-dd {
    font-size: 12px;
    line-height: 30px;
    padding: 0 2px;
  }

  .date-left-down {
    font-size: 9px;
    line-height: 12px;
    padding: 1px 3px;
  }

  .crumb {
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }
}
