/* 全局 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #111;
    color: #e6e6e6;
    line-height: 1.8;
}
a {
    color: #ffd700;
    text-decoration: none;
}
a:hover {
    color: #fff;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.section {
    padding: 60px 0;
}
.dark1 {
    background: #151515;
}
.dark2 {
    background: #1a1a1a;
}
.section-title {
    text-align: center;
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

/* 头部 */
.header {
    background: #000;
    border-bottom: 2px solid #ff4c00;
    position: sticky;
    top: 0;
    z-index: 999;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo a {
    font-size: 26px;
    font-weight: bold;
    color: #ffd700;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}
.nav-menu a {
    font-size: 16px;
    font-weight: 500;
}

/* 轮播 */
.slider-box {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}
.slider-wrapper {
    display: flex;
    height: 100%;
}
.slide-item {
    width: 100%;
    flex-shrink: 0;
}
.slide-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* 金刚广告 */
.ads-king {
    padding: 30px 0;
    background: #1a1a1a;
}
.ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.ad-item {
    border: 2px solid #ff4c00;
    border-radius: 6px;
    overflow: hidden;
    background: #222;
}
.ad-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}
.ad-item p {
    text-align: center;
    padding: 8px 5px;
    font-size: 14px;
}

/* 网格 */
.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.job-box, .pic-item, .news-card {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.pic-item img {
    border-radius: 6px;
    margin-bottom: 12px;
    height: 140px;
    object-fit: cover;
    width: 100%;
}
.pic-item h4 {
    color: #ffd700;
    margin-bottom: 5px;
}
.pic-item p {
    font-size: 14px;
    color: #ccc;
}

/* 日志伸缩 */
.log-box {
    position: relative;
}
.log-list {
    max-height: 150px;
    overflow: hidden;
    transition: all 0.4s ease;
    list-style: none;
}
.log-list.open {
    max-height: 2000px;
}
.log-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #333;
}
.log-btn {
    background: #ff4c00;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
}

/* 游戏视频板块 - 修复排版 */
.video-section {
    padding: 60px 0;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px !important;
}
/* 视频容器适配 */
.video-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* 标准视频比例 */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}
/* 响应式适配 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 资讯左图右文 */
.news-img-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-img-item {
    display: flex;
    gap: 20px;
    background: #222;
    padding: 20px;
    border-radius: 8px;
    align-items: center;
}
.thumb img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}
.info {
    flex: 1;
}
.info h3 {
    margin-bottom: 8px;
}
.meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.excerpt {
    font-size: 14px;
    color: #ccc;
}
.pagination {
    text-align: center;
    margin: 40px 0;
}

/* 文章详情 */
.article-box {
    padding: 20px 0;
}
.article-title {
    text-align: center;
    color: #ffd700;
    margin-bottom: 15px;
}
.article-meta {
    text-align: center;
    color: #999;
    margin-bottom: 30px;
}
.article-content, .page-content {
    background: #222;
    padding: 40px;
    border-radius: 8px;
    line-height: 2;
}

/* 底部 */
.footer {
    background: #000;
    border-top: 2px solid #ff4c00;
    padding: 30px 0;
    text-align: center;
}
.copyright {
    color: #888;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .grid4, .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slider-box, .slide-item img {
        height: 300px;
    }
    .news-img-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .thumb img {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .grid3, .grid4, .ads-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        gap: 15px;
    }
}
/* 悬浮固定侧边栏 */
.float-sidebar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 9999;
    width: 130px;
}
.float-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.float-item {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #ff4c00;
    cursor: pointer;
    transition: 0.2s;
}
.float-item:hover {
    background: #ff4c00;
    color: #fff;
}
.float-item a {
    color: inherit;
    display: block;
}
.float-item.server p {
    font-size: 12px;
    color: #ffd700;
    margin: 4px 0 0;
}
.float-item.qrcode img {
    width: 100px;
    margin: 8px auto 0;
    border-radius: 4px;
}
.download { background: #ff4c00; color: #fff; font-weight: bold; }
.pay { background: #ff9c00; color: #fff; font-weight: bold; }

/* 移动端自动隐藏悬浮栏 */
@media (max-width: 768px) {
    .float-sidebar {
        display: none;
    }
}
/* 面包屑导航 */
.breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #333;
}
.breadcrumb a {
    color: #ffd700;
}
.breadcrumb a:hover {
    color: #fff;
}
.breadcrumb .current {
    color: #ccc;
}
/* 文章标签 */
.article-tags {
  margin: 20px 0;
  padding: 15px;
  background: #222;
  border-radius: 8px;
  color: #ccc;
}
.article-tags a {
  display: inline-block;
  margin: 0 5px;
  padding: 3px 8px;
  background: #333;
  border-radius: 4px;
  color: #ffd700;
  font-size: 14px;
}
.article-tags a:hover {
  background: #ff4c00;
  color: #fff;
}

/* 上一篇下一篇 */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  padding: 15px;
  background: #222;
  border-radius: 8px;
  font-size: 14px;
}
.article-nav a {
  color: #ffd700;
}
.article-nav a:hover {
  color: #fff;
}

/* 相关资讯 */
.related-news {
  margin-top: 40px;
}
.related-title {
  font-size: 20px;
  color: #ffd700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #333;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.related-item {
  display: flex;
  gap: 15px;
  background: #222;
  padding: 15px;
  border-radius: 8px;
  align-items: center;
}
.related-thumb img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}
.related-info {
  flex: 1;
}
.related-info h4 {
  margin-bottom: 5px;
  font-size: 16px;
}
.related-time {
  font-size: 13px;
  color: #999;
}

@media (max-width: 768px) {
  .related-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .related-thumb img {
    width: 100%;
    height: auto;
  }
}