/*
Theme Name: Bet852 Style Theme
Description: 模仿 lok88.hk 的 WordPress 主题，黑红风格，专为博彩推广类 SEO 网站设计
Version: 1.0
Author: Bet852
*/

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: #dc2626;
    margin-bottom: 20px;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(220, 38, 38, 0.5);
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    color: #ef4444;
}

/* 链接样式 */
a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ef4444;
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* 顶部信息栏 */
.header-top {
    background: linear-gradient(90deg, #000 0%, #1a1a1a 100%);
    padding: 8px 0;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
}

.header-top-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-top-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #333;
    color: #dc2626;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #dc2626;
    color: #000;
    transform: translateY(-2px);
}

/* 导航栏 */
.navbar {
    background: linear-gradient(90deg, #000 0%, #1a1a1a 50%, #000 100%);
    padding: 15px 0;
    border-bottom: 3px solid #dc2626;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #dc2626;
    font-size: 1.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #ef4444;
    transform: scale(1.05);
}

.logo img {
    max-height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc2626;
    text-shadow: 2px 2px 4px rgba(220, 38, 38, 0.3);
}

.logo-tagline {
    font-size: 0.7rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 主导航 */
.main-navigation {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: #dc2626;
}

/* Active 狀態樣式 - 當前頁面高亮 */
.nav-menu li.active > a,
.nav-menu .active > a {
    color: #ffb400;
    font-weight: 600;
}

.nav-menu li.active > a:after,
.nav-menu .active > a:after {
    width: 100%;
    background: linear-gradient(90deg, #ffb400, #ffd700);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background-color: #dc2626;
    color: #fff;
}

.register-btn {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #dc2626;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #dc2626;
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    position: relative;
    z-index: 2;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.menu-toggle:hover::before {
    opacity: 1;
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle.active {
    background-color: #dc2626;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.menu-toggle.active::before {
    opacity: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: #000;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #000;
}

/* 菜单展开动画 */
@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@-webkit-keyframes menuSlideDown {
    from {
        opacity: 0;
        -webkit-transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0) scale(1);
    }
}

@keyframes menuSlideUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

@-webkit-keyframes menuSlideUp {
    from {
        opacity: 1;
        -webkit-transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        -webkit-transform: translateY(-20px) scale(0.95);
    }
}

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes menuItemFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* 搜索表单 */
.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1001;
    min-width: 300px;
    border: 1px solid #333;
}

.search-form.active {
    display: block;
}

.search-form input {
    width: 100%;
    padding: 12px;
    background-color: #000;
    border: 2px solid #333;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: #dc2626;
}

/* Banner 区域 */
.banner-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    overflow: hidden;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffd700" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffd700" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="400" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(220, 38, 38, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 80px 0;
}

.banner-title {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-highlight {
    color: #dc2626;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.banner-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.banner-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: #000;
    padding: 18px 40px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #dc2626;
    border: 3px solid #dc2626;
    padding: 15px 35px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background-color: #dc2626;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(220, 38, 38, 0.8);
    }
}

/* 游戏分类区块 */
.games-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.game-card:hover {
    border-color: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.15);
}

.game-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-card:hover:before {
    left: 100%;
}

.game-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

/* Figure 和 Figcaption 样式 */
.game-image figure {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.game-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #dc2626;
    padding: 15px 10px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateY(10px);
}

.game-card:hover .game-image figcaption {
    opacity: 1;
    transform: translateY(0);
}

.game-content {
    padding: 20px;
    text-align: left;
}

.game-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #333;
    font-weight: bold;
}

.game-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.game-btn {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.game-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 资讯列表 */
.news-section {
    background: #0a0a0a;
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border: 1px solid #333;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: #dc2626;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.2);
}

.news-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(45deg, #333, #555);
    display: block;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 文章特色圖片區塊 */
.post-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-thumbnail {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #333, #555);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-thumbnail.no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #333, #555);
}

.post-thumbnail.no-thumb img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* 確保圖片容器正確顯示 */
.post-thumbnail-wrapper img,
.post-thumbnail img {
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #dc2626;
    line-height: 1.3;
}

.news-title a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #ef4444;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta i {
    color: #dc2626;
}

.news-excerpt {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-read-more {
    color: #dc2626;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-read-more:hover {
    color: #ef4444;
    transform: translateX(5px);
}

/* 主要内容区域 */
.main-content {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.content-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 侧边栏 */
.sidebar {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sidebar h3 {
    color: #dc2626;
    margin-bottom: 20px;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.sidebar ul li:before {
    content: "▶";
    color: #dc2626;
    position: absolute;
    left: 0;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-top: 3px solid #dc2626;
    padding: 60px 0 30px;
    color: #ccc;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #dc2626;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #dc2626;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    color: #999;
}

.footer-bottom a {
    color: #dc2626;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ef4444;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        display: none;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: flex;
        width: 55px;
        height: 55px;
    }
    
    .main-navigation {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(135deg, #000 0%, #1a1a1a 100%) !important;
        transform: translateY(-100%) !important;
        -webkit-transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
        border: 1px solid #333 !important;
        border-radius: 0 0 15px 15px !important;
        z-index: 9999 !important;
        max-height: calc(100vh - 70px) !important;
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    .main-navigation.active {
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        animation: menuSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        -webkit-animation: menuSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .main-navigation.closing {
        animation: menuSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .main-navigation .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .main-navigation .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #333;
    }
    
    .main-navigation .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .main-navigation .nav-menu a {
        display: block;
        padding: 15px 0;
        text-align: center;
        border-radius: 8px;
        margin: 5px 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .main-navigation .nav-menu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .main-navigation .nav-menu a:hover {
        background-color: rgba(220, 38, 38, 0.1);
        color: #dc2626;
        transform: translateX(5px);
    }
    
    .main-navigation .nav-menu a:hover::before {
        left: 100%;
    }
    
    .main-navigation .nav-menu li {
        animation: menuItemFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    }
    
    .main-navigation .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .main-navigation .nav-menu li:nth-child(2) { animation-delay: 0.15s; }
    .main-navigation .nav-menu li:nth-child(3) { animation-delay: 0.2s; }
    .main-navigation .nav-menu li:nth-child(4) { animation-delay: 0.25s; }
    .main-navigation .nav-menu li:nth-child(5) { animation-delay: 0.3s; }
    .main-navigation .nav-menu li:nth-child(6) { animation-delay: 0.35s; }
    .main-navigation .nav-menu li:nth-child(7) { animation-delay: 0.4s; }
    
    /* 菜单开启时防止背景滚动 */
    body.menu-open {
        overflow: hidden;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .register-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* 超小屏幕优化 (375px-480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-text {
        display: none;
    }
    
    .register-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .search-form {
        min-width: 200px;
        right: -50px;
    }
    
    .menu-toggle {
        width: 45px;
        height: 45px;
        padding: 8px;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
    
    /* Banner 区域优化 */
    .banner-section {
        min-height: 60vh;
        padding: 40px 0;
    }
    
    .banner-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .banner-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .banner-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* 游戏分类优化 */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    
    .game-card {
        margin-bottom: 10px;
    }
    
    .game-image {
        height: 150px;
    }
    
    .game-content {
        padding: 20px;
    }
    
    .game-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .game-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .game-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* 资讯列表优化 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    
    .news-card {
        margin-bottom: 10px;
    }
    
    .news-thumbnail,
    .post-thumbnail-wrapper {
        height: 150px;
    }
    
    .post-thumbnail {
        height: 100%;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .news-meta {
        font-size: 0.8rem;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    /* 优惠活动优化 */
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    
    .promotion-card {
        margin-bottom: 10px;
    }
    
    .promotion-image {
        height: 120px;
        font-size: 1.5rem;
    }
    
    .promotion-content {
        padding: 20px;
    }
    
    .promotion-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .promotion-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    /* 页脚优化 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .contact-info {
        font-size: 0.85rem;
    }
    
    .payment-methods span {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    /* 浮动按钮优化 */
    .floating-support {
        bottom: 15px !important;
        left: 15px !important;
    }
    
    .support-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }
    
    #back-to-top {
        bottom: 15px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    
    /* 标题优化 */
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
}

/* 特殊效果 */
.glow {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ef4444;
}

/* 无文章状态 */
.no-posts {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    opacity: 0.7;
}

.no-posts h2 {
    color: #dc2626;
    font-size: 2rem;
    margin-bottom: 20px;
}

.no-posts p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ====== Breadcrumb 美化樣式 ====== */
.breadcrumbs-container {
  margin: 10px 0 20px;
  font-size: 14px;
  color: #ccc;
}
.breadcrumbs-container a {
  color: #ff4b4b;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs-container a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ✅ Logo 顯示修復與尺寸控制 */
.custom-logo,
.default-logo {
  display: block !important;
  max-width: 180px !important;
  height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 🚫 強制移除遊戲卡片與縮略圖的偽元素圖示 */
article.game-card .game-image::before,
article.game-card .game-image:before,
div.game-image::before,
div.game-image:before,
.news-thumbnail::before,
.news-thumbnail:before,
div.news-thumbnail::before,
div.news-thumbnail:before {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* 🖥️ 桌面版特別強化 - 確保偽元素完全移除 */
@media (min-width: 768px) {
  article.game-card .game-image::before,
  article.game-card .game-image:before,
  div.game-image::before,
  div.game-image:before,
  .news-thumbnail::before,
  .news-thumbnail:before,
  div.news-thumbnail::before,
  div.news-thumbnail:before {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
    transition: none !important;
  }
}
