﻿/* ============================================================
 * 游戏CMS导航站 - 前台样式  By 青酒 9664985
 * 仿 hpmir.com 前台 game.css（黑金风格）
 * ============================================================ */

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



body {
    background: #121418;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 0;
    font-family: PingFang SC, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    font-size: 14px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 头部导航 - 黑金风格 */
.header {
    background: #181A1E;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #FDCB32;
    text-decoration: none;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.logo img {
    max-height: 70px;
    width: auto;
    display: block;
}

.logo:hover {
    color: #ffd700;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.3s;
    font-weight: 320;
    padding: 8px 30px;
    font-size: 16px;
}

/* 汉堡按钮 - 默认隐藏，移动端显示 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 0 auto;
    background: #FDCB32;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links a:hover {
    color: #1a1a1a !important;
    background: #FDCB32;
    border-radius: 10px;
}

.active {
    color: #1a1a1a !important;
    background: #FDCB32;
    border-radius: 10px;
}

/* BANNER容器 */
.banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: top;
    /* 顶部对齐，隐藏下方 */
}

.slogen {
    position: absolute;
    width: 100%;
    max-width: 1400px;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}



.banner-video {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: top;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #0a0a0a 0%, transparent 100%);
    pointer-events: none;
}

.banner-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.banner-text {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    z-index: 5;
    width: 100%;
    padding: 0 20px;
}

.banner-text h1 {
    font-size: 48px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #FDCB32;
}

.banner-text p {
    font-size: 18px;
    opacity: 0.9;
}

/* 搜索模块 - 黑金风格 */
.search-section {
    background: #111111;
    padding: 25px 0;
    border-bottom: 1px solid #2a2a2a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.tags-list {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tags-label {
    font-size: 14px;
    padding: 8px 18px;
    color: #FDCB32 !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.tags-label-title {
    position: relative;
    display: inline-block;
    font-size: 26px;
    padding: 8px 25px;
    font-weight: 700;
    color: #ffffff !important;
    text-align: center;
    margin-left: -25px;
    margin-right: 10px;
}

.tags-label-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: #FDCB32;
    border-radius: 100px;
}

.tag-item {
    display: inline-block;
    padding: 8px 18px;
    /* background: #1a1a1a; */
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    /* border-radius: 30px; */
    font-size: 14px;
    transition: all 0.3s;
    /* border: 1px solid #333; */
    margin-top: 10px;
}

.tag-item:hover,
.tag-item.active {
    font-size: 14px;
    padding: 8px 18px;
    color: #FDCB32 !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.search-box {
    flex: 1;
    display: flex;
    gap: 10px;
    min-width: 280px;
}

.search-input {
    flex: 1;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 0px solid #333;
    border-radius: 40px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    ;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #FDCB32;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.9);
}

.search-btn {
    padding: 10px 30px;
    background: #FDCB32;
    color: #0a0a0a;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 320;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #ffd700;
    transform: scale(1.01);
}

.clear-search {
    padding: 8px 20px;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #ffd700;
    border: 0px solid #333;
    margin-top: 10px;
}

.clear-search:hover {
    background: #333;
    color: #FDCB32;
}

/* 分类标题 - 黑金风格 */
.section-wrapper {
    text-align: center;
    margin: 50px 0 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #FDCB32;
    display: inline-block;
    padding-bottom: 12px;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e74c3c 20%, #e74c3c 80%, transparent 100%);
    border-radius: 3px;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .section-title {
        font-size: 22px;
    }

    .section-title::after {
        width: 100%;
        background: linear-gradient(90deg, transparent 0%, #e74c3c 10%, #e74c3c 90%, transparent 100%);
    }
}

/* 游戏网格 - 一行4个 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 35px;
}

/* 游戏卡片 - 黑金风格 */
.game-card {
    background: #111111;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-6px);
}

.game-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #1a1a1a;
}

.game-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 6px 14px;
    border-radius: 0 6px 0 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 1px;
}

.badge-hot {
    background: #e74c3c;
    color: white;
}

.badge-new {
    background: #2ecc71;
    color: white;
}

.badge-featured {
    background: #FDCB32;
    color: #0a0a0a;
}

.game-info {
    padding: 16px;
}

/* 游戏标题行：标题和标签同行 */
.game-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.game-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.game-tag {
    display: inline-block;
    background: #1a1a1a;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    color: #FDCB32;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
    /* border: 1px solid #333; */
}

.game-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

/* 三个按钮组 - 黑金风格 */
.game-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn {
    flex: 1;
    display: inline-block;
    padding: 7px 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: #FDCB32;
    color: #0a0a0a;
}

.btn-primary:hover {
    background: #FDCB32;
    transform: translateY(-2px);
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.btn-warning {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.btn-warning:hover {
    background: #FDCB32;
    transform: translateY(-2px);
    color: #0a0a0a;
}

/* 搜索结果显示 */
.search-result-info {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-result-info span {
    color: #FDCB32;
    font-weight: 600;
}

/* 文章区域 - 黑金风格 */
.articles-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    position: relative;
    z-index: 9999;
}

.card {
    background: #111111;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.card-header {
    padding: 16px 20px;
    background: #0d0d0d;
    border-bottom: 1px solid #2a2a2a;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #FDCB32;
}

.article-list {
    list-style: none;
}

.article-list li {
    padding: 12px 20px;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.3s;
}

.article-list li:hover {
    background: #1a1a1a;
}

.article-list li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.article-list li a:hover {
    color: #FDCB32;
}

.article-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
}

/* 关于我们卡片 */
.about-card {
    padding: 20px;
}

.about-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #FDCB32;
}

.about-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 13px;
}

/* 页脚 - 黑金风格 */
footer {
    background: #0d0d0d;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 13px;
    border-top: 1px solid #2a2a2a;
    line-height: 1.7;
}

footer a {
    /* 正确：这表示 footer 内的 a 标签 */
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.7;
}

footer p {
    line-height: 1.7;
}

footer a:hover {
    /* 正确：这表示 footer 内的 a 标签 */
    color: rgba(255, 255, 255, 0.5);
}

footer img {
    margin-top: 5px;
}

footer a,
footer a:link,
footer a:visited,
footer a:active,
footer a:focus {
    text-decoration: none;
}

/* 版权提示链接（95Nice） */
.copyright-wrap {
    margin-top: 16px !important;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}

.copyright-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.copyright-link:hover {
    color: #FDCB32 !important;
    background: rgba(253, 203, 50, 0.08);
    border-color: rgba(253, 203, 50, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 203, 50, 0.15);
}

/* 文章详情页样式 */
.article-detail {
    max-width: 1400px;
    margin: 40px auto;
    background: #111111;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
    position: relative;
    z-index: 99;
    min-height: 500px;
}

.article-detail h1 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #FDCB32;
}

.article-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 24px;
}

.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-content p {
    margin-bottom: 16px;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: #FDCB32;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: white;
    padding: 70px 0;
    text-align: center;
    border-bottom: 1px solid #FDCB32;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
    color: #FDCB32;
}

.hero p {
    font-size: 18px;
    opacity: 0.8;
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px;
    border-radius: 12px;
    min-height: 400px;
    margin-top: 50px;
}

.empty-state p {
    margin-bottom: 20px;
}

.empty-state a {
    display: inline-block;
}

.empty-state p {
    color: #999;
}

/* 响应式 */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .tags-list {
        justify-content: center;
    }

    .search-box {
        width: 100%;
    }

    .banner-text h1 {
        font-size: 32px;
    }

    .banner-text p {
        font-size: 14px;
    }

    .banner-image,
    .banner-video {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .articles-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 22px;
    }

    .game-buttons {
        flex-wrap: wrap;
    }

    .btn {
        padding: 6px 0;
        font-size: 11px;
    }

    .banner-text h1 {
        font-size: 24px;
    }

    .banner-image,
    .banner-video {
        height: 280px;
    }

    .banner-text {
        bottom: 40px;
    }

    /* ========== 移动端导航 ========== */
    .nav-toggle {
        display: flex;
    }

    .logo img {
        max-height: 44px;
    }

    .header .container {
        padding: 0 12px;
        flex-wrap: nowrap;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #181A1E;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

    .nav-links.open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links a {
        margin-left: 0;
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(253, 203, 50, 0.1);
        color: #FDCB32 !important;
        border-radius: 0;
    }

    /* 搜索区移动端 */
    .tags-label-title {
        font-size: 20px;
        margin-left: 0;
        padding: 6px 16px;
    }

    .tags-label {
        margin-top: 0;
    }

    .tag-item {
        margin-top: 0;
    }

    .search-section .container {
        padding: 0 12px;
    }

    .container {
        padding: 0 12px;
    }

    .article-detail {
        padding: 20px 16px;
        margin: 20px 12px;
    }

    .article-detail h1 {
        font-size: 22px;
    }
}





/* Toast 样式 */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
}

.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20001;
    animation: fadeInScale 0.3s ease;
}

.toast-content {
    background: #292929;
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    min-width: 280px;
}

.toast-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.5s ease;
}

.toast-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}