/* ===== 内页（栏目页 / 文章页）共用样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #0d0418;
    color: #fff;
    min-width: 1200px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

ul, li {
    list-style: none;
}

/* ===== 页面主体 ===== */
.page-main {
    padding-top: 90px;
    flex: 1 0 auto;
    background:
        url('../image/1766380006947150.webp') center / cover no-repeat,
        linear-gradient(to bottom, #1a0b2e, #0d0418);
    background-attachment: fixed;
}

/* 视觉隐藏（供 SEO 标题使用，不影响布局） */
.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;
}

/* 内页横幅 */
.page-banner {
    text-align: center;
    padding: 50px 0 20px;
}

.page-banner img {
    height: 64px;
    width: auto;
}

.page-banner .banner-sub {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    letter-spacing: 2px;
}

/* 面包屑 */
.breadcrumb {
    max-width: 1160px;
    margin: 20px auto 0;
    padding: 12px 24px 12px 56px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: url('../image/tips_bg.webp') center / 100% 100% no-repeat;
}

.breadcrumb a {
    color: #1a1a1a;
}

.breadcrumb a:hover {
    color: #8a6d1a;
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #999;
}

/* ===== 内容容器 ===== */
.page-container {
    max-width: 1160px;
    margin: 20px auto 180px;
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.page-main-col {
    flex: none;
    width: 836px;
    min-width: 0;
    min-height: 900px;
    background: url('../image/qkbj.webp') center / 100% 100% no-repeat, #f5f3ec;
    border: 1px solid rgba(180, 160, 90, 0.4);
    border-radius: 12px;
    padding: 28px 52px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.page-side {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* 文章页：侧栏不与主内容等高，下载卡片固定高度不变形 */
.article-container {
    align-items: flex-start;
}

.article-container .side-card.download-card {
    flex: none;
    min-height: 520px;
}

.article-container .side-card.download-card h3 {
    margin-top: -30px;
}

/* ===== 侧栏卡片 ===== */
.side-card {
    background: url('../image/lihui-46b8a3fa2d.png') center / 100% 100% no-repeat #f5f3ec;
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
}

.side-card h3 {
    font-size: 18px;
    color: #3a2e1f;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(58, 46, 31, 0.15);
    position: relative;
    padding-left: 14px;
}

.side-card h3 {
    text-align: center;
    padding-left: 0;
}

/* 游戏下载卡片加长，与文章列表对齐 */
.side-card.download-card {
    min-height: 520px;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.side-card.download-card h3 {
    margin-top: -80px;
}

.side-card .side-list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(58, 46, 31, 0.15);
    font-size: 14px;
    color: #3a2e1f;
    transition: color 0.3s;
    cursor: pointer;
}

.side-card .side-list li:last-child {
    border-bottom: none;
}

.side-card .side-list li:hover {
    color: #8a6d1a;
}

.side-card .side-list li .date {
    float: right;
    font-size: 12px;
    color: rgba(58, 46, 31, 0.45);
}

/* 侧栏标签云 */
.side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.side-tags a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    color: #3a2e1f;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(138, 109, 26, 0.35);
    border-radius: 20px;
    transition: all 0.3s;
}

.side-tags a:hover {
    color: #fff;
    background: #b8860b;
}

/* 侧栏手机端二维码 */
.side-card .qr-box {
    width: 172px;
    height: 172px;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: url('../image/ercode_border-8ae24ee984.png') center / contain no-repeat;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.side-card .qr-box .qr-scan {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 12px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.9), transparent);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    pointer-events: none;
    z-index: 3;
    animation: qr-scan-move 2.2s ease-in-out infinite;
}

@keyframes qr-scan-move {
    0% { top: 12px; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { top: 158px; opacity: 0; }
}

.side-card .qr-code {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.side-card .qr-code img,
.side-card .qr-code canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.side-card .qr-code .qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: #fff;
    border: 4px solid #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.side-card .qr-code .qr-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    padding: 3px;
    box-sizing: border-box;
}

.side-card .qr-tip {
    text-align: center;
    font-size: 12px;
    color: rgba(58, 46, 31, 0.55);
    margin-bottom: 14px;
}

/* 侧栏下载按钮 */
.side-download {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(to right, #ffd700, #b8860b);
    color: #0d0418;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 2px;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 12px;
}

.side-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

/* ===== 栏目页：新闻列表 ===== */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.category-tabs a {
    display: inline-block;
    padding: 6px 22px;
    font-size: 15px;
    color: #444;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    transition: all 0.3s;
}

.category-tabs a:hover {
    color: #8a6d1a;
    border-color: rgba(138, 109, 26, 0.5);
}

.category-tabs a.active {
    color: #0d0418;
    background: linear-gradient(to right, #ffd700, #b8860b);
    border-color: transparent;
}

/* 列表项 */
.news-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.news-item:hover {
    background: rgba(138, 109, 26, 0.08);
    transform: scale(1.02);
}

.news-item .item-thumb {
    flex-shrink: 0;
    position: relative;
}

.news-item .item-thumb img {
    display: none;
}

.news-item .item-thumb .tag {
    position: static;
    top: auto;
    left: auto;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.news-item .item-body {
    flex: 1;
    min-width: 0;
}

.news-item .item-title {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.news-item:hover .item-title {
    color: #8a6d1a;
}

.news-item .item-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-item .item-meta {
    flex-shrink: 0;
    text-align: right;
    font-size: 12px;
    color: #777;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-item .item-meta .views {
    color: #999;
}

/* 标签色 */
.tag {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    color: #fff;
}

.tag-hot { background: #e64545; }
.tag-new { background: #3a8ee6; }
.tag-gift { background: #e6863a; }
.tag-guide { background: #3abf8a; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 54px;
    padding: 0;
    font-size: 15px;
    font-weight: bold;
    color: #111;
    background: url('../image/game_circle1.png') center / 100% 100% no-repeat;
    border: none;
    transition: all 0.3s;
    text-indent: 0;
    flex-shrink: 0;
}

.pagination a:hover {
    color: #8a6d1a;
    transform: translateY(-2px);
}

.pagination a.active {
    color: #111;
    font-weight: bold;
}

.pagination a.prev,
.pagination a.next {
    width: 96px;
    height: 60px;
    font-size: 0;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
    background-image: url('../image/game_circle1.png');
}

.pagination a.prev {
    background-image: url('../image/gift_prev.png');
}

.pagination a.next {
    background-image: url('../image/gift_next.png');
}

/* ===== 文章页 ===== */
.article-head {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
}

.article-head h1 {
    font-size: 28px;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 14px;
}

.article-head .article-meta {
    font-size: 13px;
    color: #777;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.article-head .article-meta .tag {
    color: #fff;
}

.article-body {
    font-size: 16px;
    color: #333;
    line-height: 2;
}

.article-body p {
    margin-bottom: 18px;
    text-indent: 2em;
}

.article-body h3 {
    font-size: 20px;
    color: #8a6d1a;
    margin: 26px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #8a6d1a;
}

.article-body img {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.article-body .article-banner-img {
    text-indent: 0;
}

.article-body ul {
    padding-left: 2em;
    margin-bottom: 18px;
}

.article-body ul li {
    list-style: disc;
    margin-bottom: 8px;
}

/* 文章导航（上一篇/下一篇） */
.article-pager {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 14px;
    gap: 20px;
}

.article-pager a {
    color: #555;
    transition: color 0.3s;
    max-width: 45%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.article-pager a:hover {
    color: #8a6d1a;
}

/* 返回列表 */
.back-list {
    display: inline-block;
    margin-top: 28px;
    padding: 8px 24px;
    font-size: 14px;
    color: #8a6d1a;
    border: 1px solid rgba(138, 109, 26, 0.5);
    border-radius: 20px;
    transition: all 0.3s;
}

.back-list:hover {
    background: rgba(138, 109, 26, 0.1);
}

/* ===== 页脚 ===== */
.page-footer {
    flex-shrink: 0;
    background-color: #05020a;
    background-image: url('../image/rolebg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    padding: 30px 0;
}

.page-footer .friend-links {
    width: 100%;
    text-align: center;
    color: #999;
    font-size: 20px;
    padding: 6px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-footer .friend-links a {
    color: #aaa;
    margin: 0 2px;
    transition: color 0.3s;
}

.page-footer .friend-links a:hover {
    color: #ffd700;
}

.footer-inner {
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 20px 0;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.footer-logo .brand {
    color: #ff3333;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.footer-logo span:last-child {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.footer-info p {
    color: #777;
    font-size: 12px;
    line-height: 1.8;
}

/* 空态提示 */
.empty-tip {
    text-align: center;
    padding: 60px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}
