
/* 基础设置与变量 */
:root {
    --gl-primary-color: #00b42a;
    --gl-primary-color-dark: #008a20;
    --gl-primary-color-light: #f0f9f0;
    --gl-text-code: #e96900;
    --gl-background-code: #f6f8fa;
}

/* === 分类标签样式 === */
.news_tags {
    padding: .2rem;
    background-color: #fff;
    margin-top: 0.1rem;
    margin-bottom: 0.15rem;
    box-shadow: 0 .02rem .08rem rgba(0,0,0,.05);
    width: 100%;
    box-sizing: border-box;
}

.news_tags ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news_tags ul li {
    width: 1.6rem;
    height: .54rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: .01rem solid #667eea;
    border-radius: .08rem;
    margin: 0 .13rem .3rem 0;
    background-color: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.news_tags ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #667eea;
    border-radius: .08rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news_tags ul li:hover a {
    background-color: rgba(102, 126, 234, 0.1);
}

.news_tags ul li.current {
    border: none !important;
    background: #667eea;
}

.news_tags ul li.current a {
    color: #fff;
}

.news_tags ul li.current a:hover {
    background-color: transparent;
    text-decoration: none;
}

/* 标签文字样式 */
.news_tags ul li a h4 {
    font-size: 0.28rem;
    color: #667eea; /* 默认主题颜色文字 */
    margin: 0; /* 去除默认边距 */
    font-weight: 500; /* 使用H4默认字体粗细 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: normal;
}

.news_tags ul li.current a h4 {
    color: #ffffff; /* 选中状态白色文字 */
}

/* 导航路径样式 */
.nav-path {
    color: #999 !important;
    font-size: 0.26rem !important;
}

.nav-path a {
    color: #999 !important;
}

.nav-path span {
    color: #999 !important;
}

/* 布局容器样式 */
.gl-detail-container {
    max-width: 7.5rem;
    margin: 0 auto;
    padding: .2rem;
    background-color: #fff;
    position: relative;
}

/* 内容核心样式 */
.gl-title {
    margin: 0 0 .2rem;
    font-size: 0.40rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.gl-info {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0;
    font-size: 0.22rem;
    color: #888;
    padding: .1rem;
    background-color: #f8f9fa;
    border-top-left-radius: .08rem;
    border-top-right-radius: .08rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    gap: .3rem;
    border-left: .03rem solid var(--gl-primary-color);
    border-right: .03rem solid var(--gl-primary-color);
}

.gl-info .author {
    font-weight: 500;
    color: #888;
}

.gl-info .date {
    color: #888;
}

.gl-info .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    margin-left: .2rem;
}

.gl-info .tag {
    padding: .025rem .1rem;
    background: #fff;
    border-radius: .2rem;
    color: var(--gl-primary-color);
    text-decoration: none;
    transition: all .2s ease;
    font-size: .16rem;
    border: .01rem solid var(--gl-primary-color);
}

.gl-info .tag:hover {
    background: var(--gl-primary-color);
    color: white;
    transform: translateY(-.02rem);
    box-shadow: 0 .04rem .08rem rgba(0, 180, 42, .2);
}

.gl-summary {
    padding: 0.2rem;
    background: #f8f9fa;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0.08rem;
    border-bottom-right-radius: 0.08rem;
    margin-bottom: 0.2rem;
    border-left: .03rem solid var(--gl-primary-color);
    border-right: .03rem solid var(--gl-primary-color);
}

.gl-summary p {
    line-height: 1.8;
    color: #666;
    text-align: justify;
    font-size: 0.26rem;
    text-indent: 2em;
}

/* 游戏下载模块样式 */
.game-download-module {
    display: flex;
    align-items: center;
    background: white;
    padding: .2rem .2rem;
    margin-bottom: .2rem;
    border-radius: .1rem;
    border: .01rem solid #e8e8e8;
    box-shadow: 
        0 .04rem .12rem rgba(0, 0, 0, .1),
        0 .01rem .03rem rgba(0, 0, 0, .05),
        inset 0 .01rem 0 rgba(255, 255, 255, .8);
    position: relative;
    z-index: 1;
    transition: transform .2s ease, box-shadow .2s ease;
}

.game-download-module:hover {
    transform: translateY(-.02rem);
    box-shadow: 
        0 .06rem .16rem rgba(0, 0, 0, .12),
        0 .02rem .04rem rgba(0, 0, 0, .08),
        inset 0 .01rem 0 rgba(255, 255, 255, .9);
}

.game-logo {
    width: 1rem;
    height: 1rem;
    border-radius: .1rem;
    margin-right: .2rem;
}

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: .18rem !important;
}

.game-name {
    color: #000;
    font-size: 0.3rem;
    font-weight: bold;
    margin-bottom: 0.15rem;
}

.game-details {
    display: flex;
    gap: .2rem;
    font-size: .24rem !important;
    color: #666;
}

.discount-tag {
    background-color: #ff6b6b;
    color: white;
    padding: .02rem .08rem;
    border-radius: .04rem;
    font-weight: bold;
    font-size: .24rem;
    margin-left: .15rem;
    display: inline-block;
    vertical-align: middle;
}

.game-size, .game-score, .game-players {
    color: #666;
    font-weight: normal;
    font-size: .24rem;
}

/* 游戏下载模块内的查看按钮样式 */
.game-download-module .btn-download {
    font-size: 0.3rem;
}

/* 正文内容样式 */
.gl-content {
    margin-bottom: .4rem;
}

.gl-content h1, .gl-content h2, .gl-content h3, 
.gl-content h4, .gl-content h5, .gl-content h6 {
    scroll-margin-top: .4rem;
}


.gl-content h1 {
    border-bottom: .03rem solid var(--gl-primary-color);
    padding-bottom: .2rem;
    margin-top: 0.2;
}

.gl-content h2 {
    padding-bottom: .1rem;
    position: relative;
    margin-top: 0.2rem;
}

.gl-content h2::after {
    content: '';
    display: block;
    width: 100%;
    height: .02rem;
    background: linear-gradient(to right, var(--gl-primary-color), transparent);
    margin-top: .1rem;
}

.gl-content h2:first-child {
    margin-top: 0;
}

.gl-content p {
    margin-bottom: .3rem;
    color: #333;
    text-align: justify;
    text-indent: 2em;
}

.gl-content table {
    width: 100%;
    border-collapse: collapse;
    margin: .5rem 0;
    font-size: .2rem;
    border: .01rem solid #e0e0e0;
    border-radius: .08rem;
    overflow: hidden;
    box-shadow: 0 .01rem .03rem rgba(0, 0, 0, .05);
}

.gl-content th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: .3rem;
    border-bottom: .02rem solid #e0e0e0;
}

.gl-content td {
    padding: .3rem;
    border-bottom: .01rem solid #e0e0e0;
    vertical-align: top;
}

.gl-content tr:last-child td {
    border-bottom: none;
}

.gl-content tr:hover {
    background-color: #f0f2f5;
}

.gl-content ul, .gl-content ol {
    margin: .3rem 0;
    padding-left: .4rem;
}

.gl-content ul {
    list-style-type: disc;
}

.gl-content ul li, .gl-content ol li, .gl-content li {
    margin-bottom: .2rem;
    color: #333;
}



.gl-content strong {
    color: #333;
    font-weight: 600;
}

.gl-content em, .gl-content i {
    font-style: italic;
}

.gl-content blockquote {
    margin: .3rem 0;
    padding: .2rem .3rem;
    border-left: .03rem solid var(--gl-primary-color);
    background-color: #f8f9fa;
    color: #666;
    font-style: italic;
    border-radius: 0 .05rem .05rem 0;
    font-size: .22rem;
}

.gl-content hr {
    margin: .5rem 0;
    border: none;
    height: .01rem;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

.gl-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: .4rem auto;
    border-radius: .08rem;
    box-shadow: 0 .01rem .03rem rgba(0, 0, 0, .05);
    transition: transform .2s ease;
}

.gl-content img:hover {
    transform: scale(1.01);
}

.gl-content figure {
    margin: .5rem 0;
    text-align: center;
}

.gl-content figcaption {
    margin-top: .2rem;
    font-size: .22rem;
    color: #666;
    font-style: italic;
}

/* 游戏推荐样式 */
.game-recommendations {
    margin: .2rem 0 .2rem 0;
    padding: .2rem .2rem .3rem .2rem;
    background-color: white;
    position: relative;
}

.game-recommendations h2 {
    margin-bottom: .3rem;
    display: flex;
    align-items: center;
}

.game-recommendations h2::before {
    content: '🎮';
    margin-right: .1rem;
    font-size: .3rem;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .15rem;
}

.game-item {
    background: white;
    border-radius: .06rem;
    overflow: hidden;
    transition: all .2s ease;
    border: .01rem solid #e0e0e0;
}

.game-item:hover {
    transform: translateY(-.02rem);
    box-shadow: 0 .02rem .06rem rgba(0, 0, 0, .1);
}

.game-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: .05rem .05rem 0 0;
    display: block;
}

.game-item .game-info {
    padding: 0 .03rem;
}

.game-item h4 {
    margin: .1rem 0 .05rem 0;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-item p {
    font-size: .16rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    text-indent: 0 !important;
    width: 100%;
    margin: 0 0 .1rem 0;
}

/* 游戏图片容器 */
.game-item .game-img {
    width: 100%;
    height: auto;
}

.game-item .game-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* 游戏信息区域 */
.game-item .game-info {
    padding: .1rem;
}

.game-item .game-info h4 a {
    color: #000;
    text-decoration: none;
}

/* 查看按钮样式 - 使用与shouyou页面一致的btn-download样式 */
.game-item .btn-download {
    display: block;
    margin: .1rem auto .1rem;
    text-align: center;
    background: white !important;
    color: #667eea !important;
    border: .01rem solid #667eea !important;
    box-shadow: 0 .02rem .08rem rgba(102, 126, 234, .3);
    padding: .05rem .2rem;
    border-radius: .3rem;
    font-size: .28rem;
    text-decoration: none;
    transition: all .3s ease;
}

.game-item .btn-download:hover {
    background: #667eea !important;
    color: white !important;
    border: .01rem solid #667eea !important;
    box-shadow: 0 .04rem .12rem rgba(102, 126, 234, .4);
}

.game-item .btn-download:active {
    box-shadow: 0 .02rem .06rem rgba(102, 126, 234, .3);
}

/* 热门分类推荐和相关游戏攻略模块容器样式 - 与shouyou页面保持一致 */
.hot-recommendations,
.related-strategies {
    margin: 0 auto 0.2rem;
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    border-radius: 0.08rem;
    padding: 0.2rem;
    box-sizing: border-box;
}

.hot-recommendations h2,
.related-strategies h2 {
    border-left: .12rem solid #667eea;
    padding-left: .2rem;
    margin: 0;
    display: flex;
    align-items: center;
    margin-bottom: 0.2rem;
}

/* 热门分类推荐和相关游戏攻略内容区域样式 */
.hot-recommendations ul,
.related-strategies ul {
    border-radius: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.15rem;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

/* 卡片样式 */
.card-item {
    background: #fff;
    border-radius: 0.08rem;
    padding: 0.2rem 0;
    box-shadow: 0 0.02rem 0.1rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* 确保卡片内所有内容不溢出 */
}

.card-item:hover {
    transform: translateY(-0.02rem);
    box-shadow: 0 0.04rem 0.2rem rgba(0, 0, 0, 0.08);
}

/* 卡片内链接样式 */
.card-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding-left: 0;
    margin-left: 0;
    text-indent: 0;
}

/* 卡片内标题样式 */
.card-item h4 {
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    margin-left: 0;
    text-indent: 0;
}

/* 确保日期和标题完全对齐 */
.card-item p.meta {
    margin-left: 0;
    text-indent: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 卡片内元数据样式（时间和浏览数） */
.card-item .meta {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.26rem;
    color: #999;
    margin: 0.08rem 0 0 0;
    line-height: 1.4;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

/* 确保日期在左，浏览人数在右 */
.card-item .meta .date {
    order: 1;
}

.card-item .meta .hits {
    order: 2;
    margin-left: auto;
}

/* 固定导航栏样式 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 100%;
    max-width: 7.5rem;
    background-color: #667eea;
    box-shadow: 0 .02rem .08rem rgba(0, 0, 0, .1);
    z-index: 999;
    transition: transform .3s ease;
}

.fixed-header.visible {
    transform: translateX(-50%) translateY(0);
}

.fixed-header-content {
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: .2rem;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: .6rem;
    height: .6rem;
    margin-right: 0;
    color: #fff;
    text-decoration: none;
    font-size: .40rem;
    transition: all .3s ease;
}

.back-button:hover {
    transform: scale(1.1);
}

.fixed-logo-container {
    width: .5rem;
    height: .5rem;
    border-radius: .06rem;
    overflow: hidden;
    background-color: #fff;
    padding: .01rem;
    margin-right: .1rem;
}

.fixed-game-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .04rem;
}

.fixed-game-title {
    flex: 1;
    margin-right: .1rem;
    font-size: .3rem;
    font-weight: bold;
    color: #fff;
    text-align: left;
}

.fixed-download-btn {
    background-color: #fff;
    color: #667eea;
    border: none;
    padding: .05rem .2rem;
    border-radius: .3rem;
    font-size: .3rem;
    font-weight: normal;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease;
}

.fixed-download-btn:hover {
    background-color: #f0f9ff;
    transform: translateY(-.01rem);
    box-shadow: 0 .02rem .08rem rgba(102, 126, 234, .4);
}

.fixed-download-container {
    display: flex;
    align-items: center;
}


/* ========== 资讯列表模块样式 ========== */
.zx-article_list {
  max-width: 7.5rem;
  margin: 0 auto;
  text-align: left;
  position: relative;
}

.zx-article_list.bg {
  background: #ffffff;
  margin: 0.1rem auto 0.15rem;
  padding: 0.15rem;
  border-radius: 0.08rem;
  box-shadow: 0 .02rem .06rem rgba(0,0,0,.05);
  border: .01rem solid #f5f5f5;
  position: relative;
  z-index: 1;
}

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

/* ========== 卡片样式 ========== */
.article-item {
  display: flex;
  align-items: stretch;
  padding: 0.15rem;
  margin-bottom: 0.15rem;
  border-bottom: .005rem solid #f8f8f8;
  border-radius: 0.08rem;
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.article-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* 链接样式 */
.article-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
  width: 100%;
  box-sizing: border-box;
}

/* 图片和标题容器 */
.article-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.12rem;
}

/* 图片容器样式 */
.article-image {
  flex-shrink: 0;
  margin-right: 0.15rem;
}

/* 图片样式 */
.article-image img {
  width: 0.88rem;
  height: 0.62rem;
  object-fit: cover;
  border-radius: 0.04rem;
  background-color: #f8f9fa;
  transition: transform 0.2s ease;
}

/* 标题样式 */
.article-title {
  color: #333;
  margin: 0;
  font-size: 0.28rem;
  font-weight: 500;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

/* 元数据和描述容器 */
.article-footer {
  width: 100%;
}

/* 元数据容器样式 */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 0.1rem;
  min-height: 0.24rem;
}

/* ========== 标签样式 ========== */
.zx-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.06rem;
  height: 0.22rem;
  font-size: 0.16rem;
  color: #FFF;
  background-color: #80deea;
  border-radius: 0.02rem;
  margin-right: 0.05rem;
  white-space: nowrap;
}

.zx-hot-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.08rem;
  height: 0.24rem;
  background-color: #f5f5f5;
  border-radius: 0.03rem;
  margin-right: 0.06rem;
  color: #666;
  font-size: 0.18rem;
  border: .005rem solid rgba(0,0,0,.05);
}

.zx-time {
  color: #888;
  font-size: 0.20rem;
  margin-left: auto;
  white-space: nowrap;
}

.zx-hits {
  color: #888;
  font-size: 0.20rem;
  margin-left: 0.1rem;
  white-space: nowrap;
}

.zx-description {
  color: #666;
  font-size: 0.22rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

/* ========== 悬停效果优化 ========== */
.article-item:hover {
  transform: translateY(-.02rem);
  box-shadow: 0 .04rem .12rem rgba(0,0,0,.08);
  z-index: 10;
}

.article-item:hover .article-title {
  color: #667eea;
}

.article-item:hover .article-image img {
  transform: scale(1.03);
}

.article-item:hover .zx-time,
.article-item:hover .zx-hits {
  color: #667eea;
}

