* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: #000;
  font-family: PingFangSC-Regular, "Microsoft YaHei", Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, sans-serif;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  border: 0;
}

ul,
li {
  list-style: none;
}

/* ========== 通用页面框架 ========== */
.page-wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 80px;
  margin: 0 auto;
  background: url(../img/news/page-bg.png) center top no-repeat;
  background-size: 100% calc(100% - 80px);
  background-color: #000;
  overflow: hidden;
}

/* ========== 头部 ========== */
.head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    margin: auto;
    padding: 20px 60px;
}

.head .logo {
  width: 160px;
}

.head .logo img {
  width: 100%;
}

.head .nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 50px;
}

.head .nav a {
  font-size: 16px;
  line-height: 22px;
  color: #fff;
  font-family: PingFangSC-Regular;
  cursor: pointer;
  transition: color 0.2s;
}

.head .nav a:hover,
.head .nav a.active {
  color: rgba(198, 236, 75, 1);
}

/* ========== 底部 - 同 index.html ========== */
.footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #000;
}

.about-footer {
  height: 60px;
  width: 100%;
  font-size: 12px;
  text-align: center;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 4;
}

.about-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.about-footer a:hover {
  text-decoration: underline;
}

/* ========== 资讯页 - NEWS标题区 ========== */
.news-title-box {
  position: relative;
  width: 354px;
  height: 86px;
  margin: 43px auto 0;
}

.news-title-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 354px;
  height: 86px;
  background: url(../img/news/news-title.png) 0 0 no-repeat;
  background-size: 354px 86px;
}
/* ========== 资讯卡片网格 ========== */
.news-grid {
  width: 1200px;
  margin: 42px auto 0;
  padding-bottom: 68px;
}

.news-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.news-row:last-child {
  margin-bottom: 0;
}

.news-card {
  width: 282px;
}

.news-card .pic {
  width: 282px;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.news-card .pic.b1 { background-image: url(../img/news/card-1.png); }
.news-card .pic.b2 { background-image: url(../img/news/card-2.png); border: 1px solid rgba(151, 151, 151, 1); }
.news-card .pic.b3 { background-image: url(../img/news/card-3.png); border: 1px solid rgba(151, 151, 151, 1); }
.news-card .pic.b4 { background-image: url(../img/news/card-4.png); border: 1px solid rgba(151, 151, 151, 1); }

.news-card .title {
  width: 272px;
  height: 22px;
  margin-top: 12px;
  font-size: 16px;
  font-family: PingFangSC-Medium;
  font-weight: 500;
  color: #fff;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card .underline {
  width: 282px;
  height: 1px;
  background-color: rgba(198, 236, 75, 1);
  margin-top: 12px;
}

/* ========== 资讯列表页 ========== */

.list-panel-wrap {
  position: relative;
  width: 1240px;
  margin: 33px auto 0;
}

.list-panel-wrap .label-left,
.list-panel-wrap .label-right {
  position: absolute;
  top: -8px;
  width: 37px;
  height: 30px;
  background: url(../img/news/label.png) center no-repeat;
  background-size: 100% 100%;
  z-index: 3;
}

.list-panel-wrap .label-left { left: 50px; }
.list-panel-wrap .label-right { right: 50px; }

.list-panel {
  position: relative;
  background-color: rgba(202, 202, 202, 1);
  border-radius: 10px;
  border: 3px solid #000;
  padding: 10px;
}

.list-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 1220px;
  height: 140px;
  border-radius: 6px 6px 0 0;
  border: 3px solid #000;
  background: url(../img/news/list-banner.png) center no-repeat;
  background-size: cover;
  overflow: hidden;
}

.list-banner .game-cn {
  margin-left: 30px;
  font-size: 28px;
  font-family: "Microsoft YaHei", MicrosoftYaHei;
  color: #fff;
  line-height: 59px;
  white-space: nowrap;
}

/* 列表网格 */
.list-row {
  display: flex;
  justify-content: space-between;
  width: 1200px;
  margin: 30px auto 0;
}

.list-card {
  width: 282px;
  cursor: pointer;
}

.list-card .pic {
  width: 282px;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.list-card .desc {
  width: 282px;
  height: 40px;
  margin-top: 14px;
  font-size: 14px;
  font-family: PingFangSC-Medium;
  font-weight: 500;
  color: rgba(58, 58, 58, 1);
  line-height: 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-card .date-item {
  margin-top: 14px;
}

/* 日期项 */
.date-item {
  position: relative;
  width: 282px;
  height: 70px;
  background: url(../img/news/date-bg.png) center no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  cursor: pointer;
}

.date-item .date-text {
  display: -webkit-box;
  width: 254px;
  font-size: 16px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  line-height: 26px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.date-item .date-text .date {
  color: rgba(198, 236, 75, 1);
}

.date-item .date-text .sep {
  color: rgba(57, 52, 76, 1);
  margin: 0 6px;
}

.date-item .date-text .name {
  color: #fff;
}

/* 分页 - 按设计稿规格 */
.pagination {
  width: 404px;
  height: 21px;
  margin: 53px auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: "Microsoft YaHei", MicrosoftYaHei;
  font-weight: bold;
  color: rgba(255, 255, 255, 1);
  line-height: 21px;
  white-space: nowrap;
}

.pagination a {
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.pagination a.prev {
  width: 53px;
}

.pagination a.num {
  width: 10px;
  margin-left: 20px;
}

.pagination a.next {
  width: 53px;
  margin-left: 28px;
}

.pagination a.active {
  color: rgba(198, 236, 75, 1);
}

.pagination a:hover {
  color: rgba(198, 236, 75, 1);
}

/* 列表页的分页（灰色背景）- 使用黑色文字 */
.list-panel .pagination {
  color: rgba(0, 0, 0, 1);
}

.list-panel .pagination a.active,
.list-panel .pagination a:hover {
  color: rgba(51, 24, 174, 1);
}

/* ========== 资讯详情页 ========== */
.detail-breadcrumb {
  width: 940px;
  height: 40px;
  margin: 33px auto 0;
  background-color: rgba(25, 19, 45, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 14px;
  font-family: PingFangSC-Medium;
  font-weight: 500;
  color: rgba(186, 186, 186, 1);
  line-height: 20px;
}

.detail-breadcrumb .crumb a:hover {
  color: rgba(198, 236, 75, 1);
}

.detail-breadcrumb .back {
  cursor: pointer;
}

.detail-breadcrumb .back:hover {
  color: rgba(198, 236, 75, 1);
}

.detail-title {
  width: 940px;
  margin: 30px auto 0;
  font-size: 44px;
  font-family: "Microsoft YaHei", MicrosoftYaHei;
  color: #fff;
  line-height: 59px;
}

.detail-meta {
  width: 940px;
  margin: 9px auto 0;
  font-size: 14px;
  font-family: PingFangSC-Medium;
  font-weight: 500;
  color: rgba(80, 80, 98, 1);
  line-height: 40px;
}

.detail-divider {
  width: 940px;
  height: 1px;
  margin: 11px auto 0;
  background-color: rgba(80, 80, 98, 0.6);
}

.detail-content {
  width: 940px;
  margin: 28px auto 0;
  font-size: 16px;
  font-family: PingFangSC-Medium;
  font-weight: 500;
  color: rgba(186, 186, 186, 1);
  line-height: 30px;
  text-align: left;
}

.detail-content p {
  margin: 0 0 16px;
}

.detail-figure {
  width: 940px;
  margin: 20px auto 44px;
}

.detail-figure img {
  width: 940px;
  height: 245px;
  object-fit: cover;
  display: block;
}

/* ========== Markdown 内容样式 ========== */
.markdown-body p {
  margin: 0 0 16px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: #fff;
  margin: 24px 0 12px;
  font-weight: 600;
  line-height: 1.4;
}

.markdown-body h1 { font-size: 28px; }
.markdown-body h2 { font-size: 24px; }
.markdown-body h3 { font-size: 20px; }
.markdown-body h4 { font-size: 18px; }
.markdown-body h5,
.markdown-body h6 { font-size: 16px; }

.markdown-body a {
  color: rgba(198, 236, 75, 1);
  text-decoration: underline;
}

.markdown-body strong,
.markdown-body b {
  color: #fff;
  font-weight: 600;
}

.markdown-body em,
.markdown-body i {
  font-style: italic;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 16px;
  padding-left: 28px;
}

.markdown-body li {
  margin-bottom: 6px;
  list-style: inherit;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
}

.markdown-body blockquote {
  border-left: 4px solid rgba(198, 236, 75, 1);
  background: rgba(255, 255, 255, 0.04);
  margin: 16px 0;
  padding: 12px 16px;
  color: #ccc;
}

.markdown-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 14px;
}

.markdown-body pre {
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 16px 0;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

.markdown-body table {
  border-collapse: collapse;
  margin: 16px 0;
  width: 100%;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  text-align: left;
}

.markdown-body th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.markdown-body hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 24px 0;
}
