/* 8gbet CSS - 完全不同的设计 */
/* 配色：深蓝色 #0A1E3D + 金橙色 #FF8C00 + 翠绿色 #00C896 */

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

/* 图片基础规则 - 防止溢出 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1A2332;
    color: #E8EDF2;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* 侧边栏导航 - 桌面端 */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0A1E3D 0%, #162B4D 100%);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #FF8C00;
}

.sidebar-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 3px solid #FF8C00;
}

.sidebar-brand {
    font-size: 32px;
    font-weight: bold;
    color: #FF8C00;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #E8EDF2;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 140, 0, 0.1);
    border-left-color: #FF8C00;
    transform: translateX(5px);
}

.nav-link.active {
    background-color: rgba(255, 140, 0, 0.2);
    border-left-color: #FF8C00;
    color: #FF8C00;
}

.nav-link.cta {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    color: #0A1E3D;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    border: none;
}

.nav-link.cta:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFB700 100%);
    transform: translateX(0) scale(1.05);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 2px solid rgba(255, 140, 0, 0.3);
    text-align: center;
    font-size: 12px;
    color: #B0B8C0;
}

.age-restriction {
    font-size: 24px;
    margin-bottom: 10px;
}

.license-info {
    font-size: 11px;
    color: #00C896;
}

/* 主内容区域 */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px;
    max-width: 1400px;
}

/* 面包屑导航 */
.breadcrumb {
    font-size: 14px;
    color: #B0B8C0;
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: rgba(10, 30, 61, 0.5);
    border-radius: 8px;
}

.breadcrumb a {
    color: #FF8C00;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero区域 */
.hero-section {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 30, 61, 0.95) 0%, transparent 100%);
    padding: 60px 40px 40px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #FF8C00;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 24px;
    color: #E8EDF2;
    margin-bottom: 25px;
}

.hero-cta {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    color: #0A1E3D;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.6);
}

/* 内容包装器 - 杂志式双栏布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 50px;
}

/* 主文章区域 */
.main-article {
    background-color: rgba(10, 30, 61, 0.3);
    border-radius: 15px;
    padding: 40px;
}

.intro-section,
.games-section,
.payment-section,
.about-section,
.responsible-gaming,
.faq-section,
.reviews-section,
.support-section {
    margin-bottom: 50px;
}

.intro-section h2,
.games-section h2,
.payment-section h2,
.about-section h2,
.responsible-gaming h2,
.faq-section h2,
.reviews-section h2,
.support-section h2 {
    font-size: 32px;
    color: #FF8C00;
    margin-bottom: 20px;
    border-bottom: 3px solid #FF8C00;
    padding-bottom: 10px;
}

.intro-section p,
.games-section p,
.payment-section p,
.about-section p,
.responsible-gaming p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

/* 游戏网格 - 瀑布流风格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    background-color: rgba(26, 35, 50, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: #FF8C00;
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.3);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card h3 {
    font-size: 24px;
    color: #FF8C00;
    padding: 20px 20px 10px;
}

.game-card p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #B0B8C0;
}

.game-link {
    display: block;
    margin: 0 20px 20px;
    padding: 12px;
    background-color: #FF8C00;
    color: #0A1E3D;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.game-link:hover {
    background-color: #FFA500;
}

/* 支付方式网格 */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.payment-method {
    background-color: rgba(26, 35, 50, 0.6);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #00C896;
}

.payment-method h3 {
    color: #00C896;
    margin-bottom: 15px;
    font-size: 20px;
}

.payment-method img {
    margin-bottom: 15px;
}

.payment-info {
    background-color: rgba(0, 200, 150, 0.1);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border: 2px solid #00C896;
}

.payment-info h3 {
    color: #00C896;
    margin-bottom: 20px;
}

.payment-info ul {
    list-style: none;
    padding: 0;
}

.payment-info li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 200, 150, 0.2);
}

.payment-info li:last-child {
    border-bottom: none;
}

/* FAQ - 自定义手风琴（不用details） */
.faq-container {
    margin-top: 30px;
}

.faq-item {
    background-color: rgba(26, 35, 50, 0.6);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 140, 0, 0.1);
}

.faq-question h3 {
    font-size: 18px;
    color: #FF8C00;
    margin: 0;
}

.faq-icon {
    font-size: 24px;
    color: #FF8C00;
    font-weight: bold;
}

.faq-answer {
    padding: 0 25px 20px;
    color: #B0B8C0;
    line-height: 1.8;
}

/* 评论网格 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.review-card {
    background-color: rgba(26, 35, 50, 0.8);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #00C896;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info h3 {
    font-size: 18px;
    color: #FF8C00;
    margin-bottom: 5px;
}

.reviewer-location {
    font-size: 14px;
    color: #B0B8C0;
}

.review-rating {
    font-size: 18px;
}

.review-text {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #E8EDF2;
}

.review-date {
    font-size: 12px;
    color: #B0B8C0;
    font-style: italic;
}

/* 侧边栏小部件 */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #FF8C00;
    position: sticky;
    top: 20px;
}

.sidebar-widget h3 {
    color: #FF8C00;
    margin-bottom: 15px;
    font-size: 20px;
}

.bonus-amount {
    font-size: 36px;
    font-weight: bold;
    color: #00C896;
    margin: 10px 0;
}

.widget-cta {
    display: block;
    padding: 15px;
    background-color: #FF8C00;
    color: #0A1E3D;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.widget-cta:hover {
    background-color: #FFA500;
    transform: scale(1.05);
}

.license-widget {
    text-align: center;
}

.license-widget img {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.license-text {
    font-weight: bold;
    color: #00C896;
    margin-bottom: 5px;
}

.license-number {
    font-size: 12px;
    color: #B0B8C0;
}

/* 支持网格 */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.support-method {
    background-color: rgba(26, 35, 50, 0.6);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid #00C896;
}

.support-method h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* 页脚 */
.footer {
    margin-left: 280px;
    background-color: #0A1E3D;
    padding: 50px 40px 30px;
    border-top: 3px solid #FF8C00;
}

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

.footer-column h3 {
    color: #FF8C00;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-column a,
.footer-column span {
    display: block;
    color: #B0B8C0;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #FF8C00;
}

.footer-column img {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 140, 0, 0.3);
    color: #B0B8C0;
    font-size: 14px;
}

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

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

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 内页样式 */
.page-content {
    background-color: rgba(10, 30, 61, 0.3);
    border-radius: 15px;
    padding: 40px;
}

.page-content h1 {
    font-size: 42px;
    color: #FF8C00;
    margin-bottom: 30px;
    border-bottom: 3px solid #FF8C00;
    padding-bottom: 15px;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 28px;
    color: #FF8C00;
    margin-bottom: 20px;
    margin-top: 30px;
}

.content-section h3 {
    font-size: 22px;
    color: #00C896;
    margin-bottom: 15px;
    margin-top: 25px;
}

.content-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.content-section ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-section a {
    color: #00C896;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

.cta-section {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
    border: 2px solid #FF8C00;
}

.cta-section h2 {
    font-size: 32px;
    color: #FF8C00;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    color: #0A1E3D;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.6);
}

/* ========================================
   手机端响应式设计
   ======================================== */

/* 平板和大屏手机 */
@media screen and (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .sidebar-widget {
        position: static;
    }
}

/* 手机端 - 关键修复 */
@media screen and (max-width: 768px) {
    /* 强制body为垂直布局 */
    body {
        flex-direction: column;
    }
    
    /* 侧边栏变为顶部导航 */
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 20px;
        box-shadow: none;
    }
    
    .sidebar-header {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .sidebar-logo {
        width: 80px;
        height: 80px;
    }
    
    .sidebar-brand {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    /* 导航横向排列 */
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-link {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
        padding: 12px 10px;
        font-size: 14px;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .nav-link:hover {
        transform: none;
        border-left: none;
        border-bottom-color: #FF8C00;
    }
    
    .nav-link.active {
        border-left: none;
        border-bottom-color: #FF8C00;
    }
    
    .nav-link.cta {
        flex: 1 1 100%;
        margin-top: 10px;
    }
    
    .sidebar-footer {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    /* 主内容区占满宽度 */
    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
    }
    
    /* 页脚占满宽度 */
    .footer {
        margin-left: 0;
        padding: 30px 20px;
        width: 100%;
    }
    
    /* Hero区域调整 */
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-overlay {
        padding: 30px 20px 25px;
    }
    
    .hero-cta {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    /* 内容区域调整 */
    .main-article {
        padding: 25px;
    }
    
    .page-content {
        padding: 25px;
    }
    
    /* 标题缩小 */
    .intro-section h2,
    .games-section h2,
    .payment-section h2,
    .about-section h2,
    .responsible-gaming h2,
    .faq-section h2,
    .reviews-section h2,
    .support-section h2,
    .page-content h1 {
        font-size: 26px;
    }
    
    .content-section h2 {
        font-size: 22px;
    }
    
    .content-section h3 {
        font-size: 18px;
    }
    
    /* 网格变单列 */
    .games-grid,
    .payment-grid,
    .reviews-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-button {
        padding: 14px 35px;
        font-size: 17px;
    }
}

/* 小屏手机 */
@media screen and (max-width: 480px) {
    .sidebar {
        padding: 15px;
    }
    
    .sidebar-logo {
        width: 60px;
        height: 60px;
    }
    
    .sidebar-brand {
        font-size: 20px;
    }
    
    /* 导航变单列 */
    .nav-link {
        flex: 1 1 100%;
        font-size: 13px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .main-article,
    .page-content {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-overlay {
        padding: 25px 15px 20px;
    }
    
    .hero-cta {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .intro-section h2,
    .games-section h2,
    .payment-section h2,
    .about-section h2,
    .responsible-gaming h2,
    .faq-section h2,
    .reviews-section h2,
    .support-section h2,
    .page-content h1 {
        font-size: 22px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .content-section h3 {
        font-size: 16px;
    }
    
    .cta-section h2 {
        font-size: 20px;
    }
    
    .cta-button {
        padding: 12px 28px;
        font-size: 15px;
    }
}
