/* style.css - 2025 最终修复版 */

:root {
    --bg-body: #1b1b1b;
    --bg-row: #262626;
    --bg-article: #222222;
    --text-white: #f0f0f0;
    --text-grey: #b3b3b3;
    --green-btn: #4CAF50;
    --green-hover: #45a049;
    --gold: #ffc107;
    /* 统一金色变量 */
    --border-color: #3d3d3d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* =========================================
   1. 导航栏 (Header) - 重点修复区域
   ========================================= */
.main-navbar {
    background-color: rgba(18, 18, 18, 0.98);
    border-bottom: 1px solid #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    /* 关键：让Logo在左，菜单在右 */
    align-items: center;
}

/* Logo */
.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    z-index: 1001;
    letter-spacing: 1px;
}

.nav-logo span {
    color: var(--gold);
}

/* 桌面端菜单 */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--gold);
}

/* 下拉菜单 (Dropdown) */
.nav-item-dropdown {
    position: relative;
    padding: 10px 0;
}

/* 增加一点热区 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    /*稍微往左一点对齐 */
    background-color: #222;
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-top: 3px solid var(--gold);
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
    list-style: none;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.dropdown-menu li a:hover {
    background: #333;
    color: var(--gold);
    padding-left: 25px;
}

/* --- 桌面与手机 显示逻辑 (关键修复) --- */

/* 1. 汉堡图标：默认隐藏 (只在手机显示) */
.hamburger {
    display: none;
    cursor: pointer;
}

/* 2. 手机专用按钮：默认隐藏 (只在手机菜单里显示) */
.mobile-only-btn {
    display: none;
}

/* 3. 桌面专用按钮：默认显示 (你截图里右边那个) */
.nav-btn-desktop {
    background-color: var(--gold);
    color: #000;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
    /* 防止文字换行 */
}

.nav-btn-desktop:hover {
    background-color: #fff;
    transform: scale(1.05);
}


/* =========================================
   2. 移动端适配 (Max Width 768px)
   ========================================= */
@media (max-width: 768px) {

    /* 显示汉堡图标 */
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: #fff;
    }

    /* 汉堡变叉叉动画 */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--gold);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--gold);
    }

    /* 隐藏桌面专用的大按钮 */
    .nav-btn-desktop {
        display: none;
    }

    /* 菜单样式 (滑下来) */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #121212;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        gap: 0;
        border-top: 1px solid #333;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
        border-bottom: 1px solid #222;
    }

    /* 手机下拉菜单 */
    .nav-item-dropdown:hover .dropdown-menu {
        position: static;
        display: block;
        background-color: #1a1a1a;
        box-shadow: none;
        border-top: none;
        width: 100%;
    }

    .dropdown-menu li a {
        text-align: center;
        padding-left: 0;
        color: #888;
    }

    /* 显示手机专用按钮 (黄色那个) */
    .mobile-only-btn {
        display: block;
        margin: 20px 20px 10px 20px;
    }
}


/* =========================================
   3. 页面其他样式 (列表、文章、表格)
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.header-section {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.header-section h1 {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

/* Casino List */
.casino-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

.casino-row {
    display: flex;
    align-items: center;
    background: var(--bg-row);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    transition: 0.2s;
}

.casino-row:hover {
    transform: translateY(-2px);
    border-color: #555;
}

.col-rank {
    width: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #555;
}

.col-logo {
    width: 120px;
    padding: 0 20px;
}

.col-logo img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.col-rating {
    width: 100px;
    text-align: center;
    border-right: 1px solid #444;
    margin-right: 20px;
}

.score-box {
    font-size: 1.8rem;
    font-weight: 800;
}

.score-stars {
    color: var(--gold);
    font-size: 0.8rem;
}

.col-info {
    flex: 1;
}

.bonus-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    display: block;
}

.features-tags span {
    display: inline-block;
    font-size: 0.8rem;
    color: #aaa;
    margin-right: 10px;
    background: #333;
    padding: 2px 8px;
    border-radius: 4px;
}

.col-action {
    width: 160px;
    text-align: center;
}

.btn-visit {
    display: block;
    background: var(--green-btn);
    color: #fff;
    text-decoration: none;
    padding: 12px 0;
    border-radius: 4px;
    font-weight: bold;
}

.btn-visit:hover {
    background: var(--green-hover);
}

/* Article & SEO */
.seo-container {
    background: var(--bg-article);
    padding: 40px;
    border-radius: 10px;
    border-top: 4px solid var(--green-btn);
    color: #ddd;
    margin-top: 30px;
}

.seo-content h2 {
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-top: 40px;
}

.seo-content h3 {
    color: var(--green-btn);
    margin-top: 30px;
}

.toc-box {
    background: #262626;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #2a2a2a;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #444;
    padding: 15px;
    text-align: left;
}

.comparison-table th {
    background-color: #333;
    color: var(--gold);
}

.author-box {
    background: #222;
    padding: 20px;
    border-left: 4px solid var(--gold);
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 移动端 列表适配 */
@media (max-width: 768px) {
    .casino-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 15px 15px 15px;
        /* Top padding for Rank */
        position: relative;
    }

    .col-rank {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.2rem;
        width: auto;
    }

    .col-rating {
        display: none;
    }

    /* Hide stars on mobile to save space */

    .col-logo {
        width: auto;
        max-width: 100%;
        margin: 0 0 15px 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .col-logo img {
        max-width: 140px;
        /* Slightly larger for visibility */
        height: auto;
    }

    .col-info {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
    }

    .bonus-title {
        font-size: 1.2rem;
    }

    .col-action {
        width: 100%;
    }

    .btn-visit {
        width: 100%;
        padding: 15px 0;
        font-size: 1rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    /* SEO Container Mobile Optimization */
    .seo-container {
        padding: 20px;
    }

    .header-section h1 {
        font-size: 1.8rem;
    }
}/* =========================================
   4. SEO Content & FAQ Grid System (New)
   ========================================= */

/* Grid Container for Criteria and FAQs */
.criteria-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Common Box Style */
.criteria-item,
.faq-item,
.review-block {
    background: #262626;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.criteria-item:hover,
.faq-item:hover,
.review-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
}

/* Headers inside boxes */
.criteria-item h3,
.faq-item h4,
.review-block h3 {
    margin-top: 0;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

/* Detailed Review Block Specifics */
.review-block {
    margin-bottom: 25px;
    background: #222; /* Slightly darker to standout */
}

.pros-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--green-btn);
}

.pros-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #ccc;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--gold);
    color: #000;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: 0.2s;
}

.read-more-btn:hover {
    background-color: #fff;
    color: #000;
}

/* FAQ Specifics */
.faq-item h4 {
    color: #fff; /* Question in white for better contrast */
    font-weight: 600;
}

.faq-item p {
    color: #b3b3b3;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Mobile Adjustments for Grid */
@media (max-width: 768px) {
    .criteria-grid,
    .faq-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}
