/* ==================== VN02 模板 - 金色赌场风格 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fix for H1UserAgentFontSizeInSection warning - explicitly set font-size for headings in sections */
section h1 {
    font-size: 2em;
}
section h2 {
    font-size: 1.5em;
}
section h3 {
    font-size: 1.17em;
}
section h4 {
    font-size: 1em;
}
section h5 {
    font-size: 0.83em;
}
section h6 {
    font-size: 0.67em;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1c1917 0%, #292524 25%, #44403c 50%, #292524 75%, #1c1917 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    min-height: 100vh;
    color: #fafaf9;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    /* Prevent layout shift */
    font-display: swap;
}

/* 移除网格背景以提升性能 */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Header 样式 ==================== */
.header {
    background: rgba(28, 25, 23, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(245, 158, 11, 0.4);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

/* Header Container 布局 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Logo 链接样式 */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 主导航样式 */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(28, 25, 23, 0.98);
    border-radius: 8px;
    min-width: 180px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.2);
    z-index: 1000;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #fafaf9;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-dropdown .dropdown-menu li a:hover {
    background: rgba(245, 158, 11, 0.3);
    color: white;
}

.logo {
    height: 55px;
    max-width: 200px;
    object-fit: contain;
}

a .logo {
    display: block;
    transition: opacity 0.3s, transform 0.3s;
}

a:hover .logo {
    opacity: 0.9;
    transform: scale(1.05);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4),
                0 0 0 1px rgba(59, 130, 246, 0.2) inset;
    position: relative;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none !important;
}

.btn-login:hover,
.btn-login:focus,
.btn-login:active {
    text-decoration: none !important;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 35px rgba(59, 130, 246, 0.6),
                0 0 0 1px rgba(59, 130, 246, 0.3) inset,
                0 0 30px rgba(59, 130, 246, 0.4);
    animation: none;
    opacity: 1;
}

.btn-login:hover::before {
    transform: translateX(0);
}

.btn-register {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5),
                0 0 0 1px rgba(249, 115, 22, 0.2) inset;
    position: relative;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none !important;
}

.btn-register:hover,
.btn-register:focus,
.btn-register:active {
    text-decoration: none !important;
}

.btn-register::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-register:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 50%, #b91c1c 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 35px rgba(249, 115, 22, 0.7),
                0 0 0 1px rgba(249, 115, 22, 0.3) inset,
                0 0 30px rgba(249, 115, 22, 0.5);
    animation: none;
    opacity: 1;
}

.btn-register:hover::before {
    transform: translateX(0);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    animation: none;
    opacity: 1;
}

/* ==================== 导航样式 ==================== */
.nav {
    background: rgba(41, 37, 36, 0.6);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    min-width: max-content;
    justify-content: center;
}

.nav-item {
    flex-shrink: 0;
}

.nav-link {
    color: #fafaf9;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
    white-space: nowrap;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.nav-link:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
}

/* ==================== Footer 样式 ==================== */
.footer {
    background: rgba(28, 25, 23, 0.95);
    padding: 50px 20px 30px;
    margin-top: 60px;
    border-top: 3px solid rgba(245, 158, 11, 0.4);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

.footer-section {
    margin-bottom: 0;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-info {
    font-size: 14px;
    line-height: 1.8;
    color: #d6d3d1;
}

.footer-info strong {
    color: #fbbf24;
}

.footer-info a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #fcd34d;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    margin-top: 15px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d6d3d1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #fbbf24;
    transform: translateX(5px);
}

/* Footer 资讯列表样式 */
.footer-articles {
    margin-top: 15px;
    min-height: 150px;
}

.footer-articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-article-item {
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

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

.footer-article-item::before {
    content: "▶";
    color: #60a5fa;
    margin-right: 10px;
    font-size: 12px;
    display: inline-block;
}

.footer-article-item a {
    color: #d6d3d1;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s;
    display: inline-block;
    width: calc(100% - 25px);
    word-wrap: break-word;
}

.footer-article-item a:hover {
    color: #60a5fa;
    text-decoration: underline;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    color: #a8a29e;
    font-size: 13px;
}

/* ==================== Main Footer 样式 (匹配 footer.html) ==================== */
.main-footer {
    background: rgba(28, 25, 23, 0.95);
    padding: 50px 20px 30px;
    margin-top: 60px;
    border-top: 3px solid rgba(245, 158, 11, 0.4);
}

.main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
}

.main-footer .footer-column {
    margin-bottom: 0;
}

.main-footer .footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-footer .footer-column p {
    font-size: 14px;
    line-height: 1.8;
    color: #d6d3d1;
    margin-bottom: 8px;
}

.main-footer .footer-column p strong {
    color: #fbbf24;
}

.main-footer .footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-footer .footer-column ul li {
    margin-bottom: 12px;
}

.main-footer .footer-column ul li a {
    color: #d6d3d1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.main-footer .footer-column ul li a:hover {
    color: #fbbf24;
    transform: translateX(5px);
}

.main-footer .footer-column address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: #d6d3d1;
}

.main-footer .footer-column address p {
    margin-bottom: 10px;
}

.main-footer .footer-column address a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s;
}

.main-footer .footer-column address a:hover {
    color: #fcd34d;
    text-decoration: underline;
}

.main-footer .footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    color: #a8a29e;
    font-size: 13px;
}

.main-footer .footer-bottom p {
    margin-bottom: 5px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(28, 25, 23, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        border-right: 2px solid rgba(245, 158, 11, 0.3);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
    
    .main-nav .nav-item {
        width: 100%;
    }
    
    .main-nav .nav-link {
        width: 100%;
        padding: 12px 15px;
        text-align: left;
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(245, 158, 11, 0.1);
        margin-top: 5px;
    }
    
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .auth-buttons {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 12px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-container {
        gap: 10px;
    }
    
    .header-top {
        margin-bottom: 12px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .logo {
        height: 40px;
        max-width: 140px;
    }
    
    .auth-buttons {
        gap: 8px;
        flex-shrink: 0;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    /* Main Footer 响应式 */
    .main-footer {
        padding: 35px 15px 25px;
        margin-top: 40px;
    }
    
    .main-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .main-footer .footer-column {
        margin-bottom: 15px;
    }
    
    .main-footer .footer-column h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .main-footer .footer-bottom {
        padding-top: 20px;
        margin-top: 20px;
    }
    
    .nav {
        padding: 10px;
        margin-top: 8px;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .footer-articles {
        min-height: auto;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 1200px;
    }
}

/* ==================== 首页特有样式 - VN10 模板 ==================== */
.hero {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-radius: 16px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #fafaf9;
    position: relative;
    z-index: 1;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 20px 45px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
    position: relative;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(59, 130, 246, 0.7);
}

.games-section {
    padding: 50px 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.game-card {
    background: rgba(41, 37, 36, 0.6);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid rgba(245, 158, 11, 0.3);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.game-icon {
    font-size: 56px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.game-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fbbf24;
    position: relative;
    z-index: 1;
}

.game-desc {
    font-size: 14px;
    color: #d6d3d1;
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.game-btn {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

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

.promo-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-radius: 16px;
    padding: 50px 30px;
    margin: 40px 20px;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.promo-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fbbf24;
}

.promo-list {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.promo-list li {
    font-size: 16px;
    color: #fafaf9;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.promo-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.promo-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 20px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(245, 158, 11, 0.7);
}

.ad-banner {
    background: rgba(41, 37, 36, 0.6);
    border-radius: 16px;
    padding: 35px;
    margin: 40px 20px;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ad-text {
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 20px;
}

.ad-btn {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
}

.ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
}

/* 移动端优化 */
@media (max-width: 767px) {
    .hero {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .btn-hero {
        padding: 16px 30px !important;
        font-size: 15px !important;
        width: auto;
        max-width: 95%;
        display: inline-block;
        margin: 0 auto;
        white-space: normal !important;
        line-height: 1.5 !important;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .promo-section {
        padding: 30px 20px;
        margin: 30px 15px;
    }
    
    .promo-title {
        font-size: 22px;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 22px;
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 极简文章页面样式（专为 VN11 加速） */
:root {
    --bg: #1c1917;
    --panel: rgba(41, 37, 36, 0.85);
    --stroke: rgba(245, 158, 11, 0.2);
    --text: #fafaf9;
    --muted: #a8a29e;
    --accent: #fbbf24;
    --accent-strong: #f59e0b;
}

body.minimal-layout {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #0f172a 0%, #030712 55%, #01030a 100%);
    color: var(--text);
    font-family: 'Poppins', 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 60px;
    box-sizing: border-box;
    padding-top: 24px;
    /* Prevent layout shift */
    font-display: swap;
    /* Reserve space to prevent shift */
    min-width: 320px;
}

.minimal-header {
    position: sticky;
    top: 0;
    z-index: 1000; /* 最高层级，确保始终在最上层 */
    width: 100%;
    max-width: 960px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 7, 18, 0.98); /* 提高背景不透明度 */
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 18px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    margin-bottom: 20px;
    margin-top: 10px; /* 与顶部保持距离 */
    /* 确保header始终可见且不被覆盖 */
    transform: translateZ(0); /* 启用硬件加速 */
    will-change: transform; /* 优化滚动性能 */
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--muted);
}

.brand-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

.action-buttons {
    display: flex;
    gap: 14px;
}

.glow-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    min-height: 48px;
    padding: 14px 32px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-decoration: none !important;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    /* Prevent layout shift from font loading */
    font-display: swap;
    /* Reserve space to prevent CLS */
    box-sizing: border-box;
    /* Prevent text reflow */
    white-space: nowrap;
    line-height: 1.2;
}

.glow-btn:hover,
.glow-btn:focus,
.glow-btn:active {
    text-decoration: none !important;
}

.glow-btn span {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
}

.glow-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: 1;
}

.glow-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: inherit;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

.glow-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.glow-btn:hover::before {
    transform: translateX(0);
}

.glow-btn:hover::after {
    opacity: 1;
    animation: none;
}

.glow-btn:active {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.1s ease;
}

.btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4),
                0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.btn-login::after {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 8px 35px rgba(59, 130, 246, 0.6),
                0 0 0 1px rgba(59, 130, 246, 0.3) inset,
                0 0 30px rgba(59, 130, 246, 0.4);
}

.btn-register {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5),
                0 0 0 1px rgba(249, 115, 22, 0.2) inset;
}

.btn-register::after {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
}

.btn-register:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 50%, #b91c1c 100%);
    box-shadow: 0 8px 35px rgba(249, 115, 22, 0.7),
                0 0 0 1px rgba(249, 115, 22, 0.3) inset,
                0 0 30px rgba(249, 115, 22, 0.5);
}

/* 页面内大号注册按钮样式优化 */
.glow-btn.btn-register[style*="padding: 18px 50px"] {
    padding: 18px 50px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    min-width: 220px;
    letter-spacing: 0.15em;
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.6),
                0 0 0 2px rgba(249, 115, 22, 0.3) inset,
                0 0 40px rgba(249, 115, 22, 0.4) !important;
}

.glow-btn.btn-register[style*="padding: 18px 50px"]:hover {
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow: 0 12px 45px rgba(249, 115, 22, 0.8),
                0 0 0 2px rgba(249, 115, 22, 0.4) inset,
                0 0 50px rgba(249, 115, 22, 0.6) !important;
}

.glow-btn.btn-register[style*="padding: 18px 50px"] span {
    font-size: 18px !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    text-decoration: none !important;
}

/* 移动端：缩小页面内大号注册按钮 */
@media (max-width: 768px) {
    .glow-btn.btn-register[style*="padding: 18px 50px"] {
        padding: 12px 20px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        min-width: auto !important;
        max-width: calc(100% - 32px) !important;
        width: auto !important;
        letter-spacing: 0.03em !important;
        box-sizing: border-box !important;
        display: inline-block !important;
        margin: 0 auto !important;
    }
    
    .glow-btn.btn-register[style*="padding: 18px 50px"] span {
        font-size: 12px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        line-height: 1.2 !important;
        display: inline-block !important;
        text-decoration: none !important;
    }
    
    .glow-btn.btn-register[style*="padding: 18px 50px"]:hover {
        transform: translateY(-2px) scale(1.02) !important;
    }
    
    /* 优化包含按钮的容器 */
    .article-content > div[style*="padding: 40px"] {
        padding: 24px 16px !important;
    }
    
    .article-content > div[style*="padding: 40px"] h2 {
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }
    
    .article-content > div[style*="padding: 40px"] p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
}

.article-shell {
    width: 100%;
    max-width: 840px;
    margin: 28px auto 0;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    padding: 36px;
    /* Prevent layout shift - reserve accurate minimum height */
    min-height: 1600px;
    /* Use content-visibility for performance */
    content-visibility: auto;
    contain-intrinsic-size: auto 1600px;
    /* Optimize rendering performance */
    will-change: auto;
    /* Prevent layout shifts from font loading */
    font-display: swap;
    /* Reserve space for content to prevent CLS */
    box-sizing: border-box;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(25px);
    position: relative;
    z-index: 1; /* 确保在主内容层，低于菜单栏 */
    /* Prevent layout shifts during content load */
    overflow: hidden;
}

.article-headline {
    margin-bottom: 28px;
    border-bottom: 1px solid var(--stroke);
    padding-bottom: 18px;
}

.article-title {
    font-size: clamp(26px, 4vw, 38px);
    margin: 0 0 12px;
    color: var(--text);
    line-height: 1.25;
}

.article-time {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #d6d3d1;
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(41, 37, 36, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.article-content h2,
.article-content h3 {
    color: #fbbf24;
    margin: 28px 0 12px;
}

.article-content p {
    margin-bottom: 18px;
    /* Prevent layout shift from font loading */
    min-height: 1.8em;
    line-height: 1.8;
}

.article-content a {
    color: #fbbf24;
    text-decoration: underline;
}

.article-content a:hover {
    color: #fcd34d;
}

/* Image section - prevent layout shift */
.image-section {
    margin: 30px auto;
    width: 100%;
    max-width: 800px;
    /* Simplify: remove flex container and aspect-ratio from container */
    background: transparent;
    border-radius: 12px;
    padding: 0;
    position: relative;
}

.image-section img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    margin: 0;
    padding: 0;
    /* Remove aspect-ratio and object-fit to let image display naturally */
    object-fit: cover;
}

.minimal-nav {
    position: sticky;
    /* 桌面端：top值 = header的top(0) + header的margin-top(10px) + header高度(约70px) + 间距(10px) */
    top: calc(0px + 10px + 70px + 10px); /* 约90px，确保在header下方 */
    z-index: 998; /* 确保在header(1000)下方，但在内容之上 */
    width: 100%;
    max-width: 940px;
    margin: 10px 0 0; /* 减少margin-top，使用top定位 */
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(3, 7, 18, 0.98); /* 提高背景不透明度，确保可见 */
    border: 1px solid var(--stroke);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.25), 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    /* 确保菜单栏始终可见且不被覆盖 */
    transform: translateZ(0); /* 启用硬件加速 */
    will-change: transform; /* 优化滚动性能 */
}

.minimal-nav .nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
    display: inline-block; /* 桌面端显示 */
}

.minimal-nav .nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.minimal-nav .nav-link.active {
    color: var(--accent);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3), inset 0 0 10px rgba(245, 158, 11, 0.1);
    font-weight: 600;
}

/* 桌面端：隐藏菜单图标按钮 */
.minimal-header .nav-menu-toggle,
.minimal-nav .nav-menu-toggle {
    display: none;
}

.related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid rgba(245, 158, 11, 0.3);
}

.related-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fbbf24;
}

.related-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* 兼容旧的 related-articles-list 结构 */
.related-articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.related-cards > *,
.related-article-item {
    display: block;
    padding: 16px 20px;
    border-radius: 10px;
    background: rgba(41, 37, 36, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: #fafaf9;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-cards > *:hover,
.related-article-item:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(41, 37, 36, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(245, 158, 11, 0.2) inset;
}

.related-cards > *:hover::before,
.related-article-item:hover::before {
    transform: scaleY(1);
}

/* 相关文章标题样式 */
.related-article-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: var(--text);
}

.related-article-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.related-article-title a:hover {
    color: var(--accent);
}

.related-article-item:hover .related-article-title a {
    color: var(--accent);
}

/* 相关文章元信息样式 */
.related-article-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.related-article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .related-section {
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .related-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .related-cards > *,
    .related-article-item {
        padding: 16px 18px;
    }
    
    .related-article-title {
        font-size: 15px;
    }
    
    .related-article-meta {
        font-size: 12px;
    }
}

.article-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-content pre {
    background: rgba(2, 6, 23, 0.85);
    border-radius: 12px;
    padding: 18px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.article-content table th,
.article-content table td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
}

.minimal-footer {
    /* Prevent layout shift - reserve minimum height */
    min-height: 200px;
    /* Use content-visibility for performance */
    content-visibility: auto;
    contain-intrinsic-size: auto 200px;
    width: 100%;
    max-width: 960px;
    margin-top: 32px;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    padding: 30px 34px 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.footer-card h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 16px;
}

.footer-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-card li + li {
    margin-top: 6px;
}

.footer-card a {
    color: inherit;
    text-decoration: none;
}

.footer-card a:hover {
    color: var(--accent);
}

.footer-copy {
    margin: 26px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

@keyframes pulseGlow {
    0% { opacity: 0.25; }
    50% { opacity: 0.8; }
    100% { opacity: 0.25; }
}

@media (max-width: 768px) {
    .minimal-header {
        flex-direction: column; /* 纵向布局 */
        align-items: stretch;
        gap: 10px;
        position: sticky; /* 保持sticky以便内容滑动时悬浮 */
        top: 10px; /* 与顶部保持距离 */
        margin-top: 10px; /* 与顶部保持距离 */
        margin-bottom: 0; /* 移除margin-bottom，让菜单紧贴 */
        padding: 12px 16px; /* 减少padding */
        z-index: 1000; /* 确保在菜单之上 */
    }
    
    /* 第一行：brand（logo + brand-name）+ 语言选择器 */
    .minimal-header > .brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
        position: relative; /* 为语言选择器绝对定位提供参考 */
        padding-right: 60px; /* 为语言选择器留出空间 */
    }
    
    /* 移动端logo变小 */
    .brand img.logo {
        width: 100px !important;
        height: 30px !important;
        max-width: 100px;
        flex-shrink: 0;
    }
    
    /* 移动端brand-name变小 */
    .brand-name {
        font-size: 12px !important;
    }
    
    .brand-meta {
        font-size: 10px;
        flex: 1;
        min-width: 0; /* 允许收缩 */
    }
    
    /* 语言选择器从action-buttons移到第一行（brand右侧） */
    .minimal-header .action-buttons .language-switcher {
        position: absolute;
        right: 0;
        top: -40px; /* 精确移动到brand行位置（考虑gap和padding） */
        z-index: 10;
    }
    
    /* 第二行：菜单图标 + 登录和注册按钮 */
    .minimal-header .action-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-top: 0;
        position: relative; /* 为语言选择器定位提供参考 */
        z-index: 1001; /* 确保按钮可以点击 */
    }
    
    /* 移动端：在action-buttons中显示菜单图标（在登录和注册按钮的左边） */
    .minimal-header .action-buttons .nav-menu-toggle {
        /* 显示和布局 */
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative !important;
        
        /* 尺寸和间距 */
        padding: 8px 14px;
        margin: 0;
        min-width: 44px; /* 确保足够的点击区域 */
        min-height: 44px; /* 确保足够的点击区域 */
        
        /* 外观 */
        background: rgba(245, 158, 11, 0.2);
        border: 1px solid rgba(245, 158, 11, 0.4);
        border-radius: 999px;
        color: var(--accent);
        font-size: 18px;
        line-height: 1;
        font-family: Arial, sans-serif !important;
        text-align: center !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
        
        /* 交互 */
        cursor: pointer !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(245, 158, 11, 0.3);
        -webkit-user-select: none;
        user-select: none;
        
        /* 层级 */
        z-index: 10000 !important; /* 超高 z-index 确保在最上层 */
        order: 0;
        
        /* 过渡 */
        transition: all 0.3s ease;
        outline: none;
        flex-shrink: 0;
    }
    
    .minimal-header .action-buttons .nav-menu-toggle:hover,
    .minimal-header .action-buttons .nav-menu-toggle:active {
        background: rgba(245, 158, 11, 0.3);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        transform: scale(1.05);
    }
    
    .minimal-header .glow-btn {
        flex: 1;
        min-width: 0;
        font-size: 11px; /* 移动端按钮文字稍大，更清晰 */
        padding: 10px 14px; /* 增加padding提升点击区域 */
        order: 1; /* 在菜单图标之后 */
        min-width: 80px; /* 确保按钮有最小宽度 */
    }
    
    .minimal-header .glow-btn span {
        font-size: 11px; /* 确保span内的文字也清晰 */
        white-space: nowrap; /* 防止文字换行 */
        font-weight: 800; /* 加粗字体，更醒目 */
    }
    
    .minimal-header .glow-btn:hover {
        transform: translateY(-2px) scale(1.03); /* 移动端悬停效果稍小 */
    }
    
    .article-shell {
        padding: 26px 20px;
        /* Reduce initial min-height on mobile to prevent layout shift */
        min-height: 1000px !important;
        contain-intrinsic-size: auto 1000px !important;
    }
    
    /* Reduce image-section spacing on mobile */
    .image-section {
        margin: 15px auto !important;
    }

    /* 移动端：菜单容器默认隐藏 */
    .minimal-nav {
        border-radius: 18px;
        /* 移动端：菜单跟随header，top值 = header的top(10px) + header的margin-top(10px) + header高度(约60px) + 间距(10px) */
        top: calc(10px + 10px + 60px + 10px); /* 约90px，确保在header下方 */
        margin-top: 0; /* 移除margin-top，使用top定位 */
        transition: all 0.3s ease; /* 添加过渡动画 */
        position: sticky !important; /* 确保sticky定位 */
        z-index: 998 !important; /* 确保在header(1000)下方，但在内容之上 */
        background: rgba(3, 7, 18, 0.98) !important; /* 提高背景不透明度 */
        
        /* 默认隐藏整个菜单容器 */
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        
        /* 确保菜单栏始终可见且不被覆盖 */
        transform: translateZ(0) !important; /* 启用硬件加速 */
        will-change: transform !important; /* 优化滚动性能 */
    }
    
    /* 移动端默认隐藏所有菜单项（只在移动端生效） */
    /* .minimal-nav .nav-link {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    } */
    
    /* 菜单展开状态（点击图标后）- 显示整个菜单容器 */
    .minimal-nav.expanded {
        /* 显示菜单容器 */
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        
        /* 布局样式 - 像桌面端一样横向排列 */
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 18px !important;
        gap: 12px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
        min-height: 50px !important;
        overflow: visible !important;
        
        /* 确保展开时菜单栏在最上层且不被覆盖 */
        z-index: 998 !important; /* 保持在header下方但在内容之上 */
        transform: translateZ(0) !important; /* 启用硬件加速 */
    }
    
    /* 菜单项继承桌面端样式，不需要额外的隐藏/显示逻辑 */
    
    /* 展开时菜单图标仍然显示在action-buttons中，不需要隐藏 */

    .footer-columns {
        grid-template-columns: 1fr;
    }
}



/* ==================== 通用页面样式（用于thethao, songbai等页面）- VN11 模板 ==================== */

.page-hero {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-radius: 16px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.page-hero .icon {
    font-size: 72px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 19px;
    margin-bottom: 30px;
    color: #fafaf9;
    position: relative;
    z-index: 1;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    padding: 40px 20px;
}

.content-box {
    background: rgba(41, 37, 36, 0.6);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.content-box h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fbbf24;
}

.content-box p {
    font-size: 17px;
    line-height: 1.8;
    color: #fafaf9;
    margin-bottom: 25px;
}

.features-list {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.features-list li {
    padding: 18px 20px;
    margin-bottom: 15px;
    background: rgba(41, 37, 36, 0.4);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    font-size: 16px;
    color: #fafaf9;
    line-height: 1.6;
}

.features-list li::before {
    content: '✓ ';
    color: #ea580c;
    font-weight: 900;
    margin-right: 12px;
}

.games-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 30px 0;
}

.game-item {
    background: rgba(41, 37, 36, 0.6);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-item:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    background: rgba(41, 37, 36, 0.8);
}

.game-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fbbf24;
}

.game-item p {
    font-size: 16px;
    color: #d6d3d1;
    line-height: 1.7;
}

.image-section {
    margin: 35px 0;
    text-align: center;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cta-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-radius: 16px;
    padding: 50px 30px;
    margin: 40px 20px;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fbbf24;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #fafaf9;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 20px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(245, 158, 11, 0.7);
}

.ad-banner {
    background: rgba(41, 37, 36, 0.6);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 20px;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ad-text {
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 20px;
}

.ad-btn {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
}

.ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
}

/* 移动端优化 */
@media (max-width: 767px) {
    .page-hero {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .page-hero h1 {
        font-size: 26px;
        margin-bottom: 18px;
    }
    
    .page-hero .icon {
        font-size: 48px;
        margin-bottom: 18px;
    }
    
    .page-hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .content-box {
        padding: 25px 20px;
    }
    
    .content-box h2 {
        font-size: 22px;
    }
    
    .cta-section {
        padding: 35px 20px;
        margin: 30px 15px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-text {
        font-size: 16px;
    }
    
    .cta-btn {
        padding: 16px 35px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .page-hero h1 {
        font-size: 48px;
    }
    
    .games-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== Download页面专用样式 ==================== */
.download-top-btn {
    text-align: center;
    padding: 0 0 30px 0;
    margin-bottom: 0;
}

.download-top-btn .btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 20px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-top-btn .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(245, 158, 11, 0.7);
}

.download-hero {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-radius: 16px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(245, 158, 11, 0.3);
}


.download-hero .icon {
    font-size: 72px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.download-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.download-hero p {
    font-size: 19px;
    margin-bottom: 30px;
    color: #fafaf9;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.rating-section {
    text-align: center;
    padding: 40px 25px;
    margin: 40px 0;
    background: rgba(41, 37, 36, 0.6);
    border-radius: 16px;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.rating-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fbbf24;
}

.rating-stars {
    font-size: 36px;
    margin-bottom: 15px;
}

.rating-text {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 12px;
}

.rating-count {
    font-size: 15px;
    color: #d6d3d1;
    line-height: 1.7;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: rgba(41, 37, 36, 0.6);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(245, 158, 11, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    background: rgba(41, 37, 36, 0.8);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fbbf24;
}

.feature-desc {
    font-size: 16px;
    color: #d6d3d1;
    line-height: 1.7;
}

.app-screenshot {
    text-align: center;
    margin: 40px 0;
}

.app-screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.download-buttons {
    text-align: center;
    margin: 40px 0;
}

.download-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 20px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(245, 158, 11, 0.7);
}

/* Download页面移动端优化 */
@media (max-width: 767px) {
    .download-hero {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .download-hero h1 {
        font-size: 26px;
        margin-bottom: 18px;
    }
    
    .download-hero .icon {
        font-size: 48px;
        margin-bottom: 18px;
    }
    
    .download-hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .rating-section {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .rating-title {
        font-size: 22px;
    }
    
    .download-btn {
        padding: 16px 35px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .download-hero h1 {
        font-size: 48px;
    }
    
    .app-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Language Switcher Styles - 紧凑下拉框样式 */
.language-switcher {
    display: inline-block;
    position: relative;
}

.language-switcher .lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 28px 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}

.language-switcher .lang-select:hover {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.language-switcher .lang-select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Header中的语言切换器 - 右上角位置 */
.minimal-header .action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.minimal-header .language-switcher {
    margin-left: auto; /* 自动推到最右边 */
    margin-right: 0;
}

/* 登录/注册页面的语言切换器 */
.login-container .logo-section,
.register-container .logo-section {
    position: relative;
}

.login-container .logo-section > div:first-child,
.register-container .logo-section > div:first-child {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .language-switcher .lang-select {
        font-size: 12px;
        padding: 5px 20px 5px 8px;
        min-width: 50px; /* 移动端更窄，显示简写 */
        width: 50px; /* 固定宽度 */
        text-align: center;
        background-position: right 6px center;
        background-size: 10px;
    }
    
    /* 移动端显示简写：通过data-display属性 */
    .language-switcher .lang-select[data-display] {
        font-size: 11px;
        font-weight: 600;
    }
    
    /* 移动端隐藏下拉箭头（可选） */
    .language-switcher .lang-select {
        padding-right: 8px;
    }
    
    /* 移动端：语言切换器与logo同一行（已在article.css中处理） */
    .minimal-header .language-switcher {
        position: static; /* 改为静态定位，与logo同一行 */
        margin-left: auto;
        margin-right: 0;
        flex-shrink: 0;
    }
    
    /* 登录/注册页面移动端 */
    .login-container .logo-section,
    .register-container .logo-section {
        padding-top: 45px; /* 为语言切换器留出合适空间 */
        padding-right: 10px; /* 确保右侧有足够空间 */
    }
    
    .login-container .logo-section > div:first-child,
    .register-container .logo-section > div:first-child {
        top: 10px;
        right: 10px;
    }
}


/* ==================== 底部广告横幅 ==================== */
.bottom-ad-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 100%;
    max-width: 960px;
    background: rgba(28, 25, 23, 0.98);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}
.ad-banner-content {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    box-sizing: border-box;
}
.ad-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.ad-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.ad-images-container {
    position: relative;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(220, 38, 38, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-images-container::before {
    content: "▶";
    font-size: 32px;
    opacity: 0.5;
    position: absolute;
}
.ad-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.ad-image.active {
    opacity: 1;
    z-index: 1;
}
.ad-text-content {
    flex: 1;
    min-width: 0;
}
.ad-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.ad-description {
    font-size: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}
.ad-register-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .bottom-ad-banner {
        max-width: 100%;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 16px 16px 0 0;
    }
    .ad-banner-content {
        padding: 12px;
        gap: 10px;
    }
    .ad-images-container {
        width: 70px;
        height: 55px;
    }
    .ad-title {
        font-size: 13px;
    }
    .ad-description {
        font-size: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .ad-register-btn {
        padding: 10px 16px;
        font-size: 11px;
    }
}
