/* style/vip-club.css */
/* 页面所有样式代码 */

/* 基础设置 */
.page-vip-club {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* 深色背景配浅色文字 */
    background-color: #0a0a0a; /* 与body背景色一致 */
}

.page-vip-club__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-vip-club__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* 使用品牌色 */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-vip-club__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* 按钮样式 */
.page-vip-club__btn-primary,
.page-vip-club__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* 确保按钮在移动端不超出 */
    white-space: normal; /* 允许文字换行 */
    word-wrap: break-word; /* 允许文字换行 */
}

.page-vip-club__btn-primary {
    background-color: #26A9E0; /* 主色调 */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-vip-club__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

.page-vip-club__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* 主色调 */
    border: 2px solid #26A9E0;
}

.page-vip-club__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-vip-club__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* 移动端按钮换行 */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-vip-club__cta-buttons .page-vip-club__btn-primary,
.page-vip-club__cta-buttons .page-vip-club__btn-secondary {
    flex-grow: 1;
    max-width: 300px; /* 限制按钮最大宽度 */
}

/* Hero Section */
.page-vip-club__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* 桌面端间距 */
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
}

.page-vip-club__hero-section.page-vip-club__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-vip-club__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* 使背景图片变 mờ để chữ rõ hơn */
    min-width: 200px; /* 最小尺寸要求 */
    min-height: 200px; /* 最小尺寸要求 */
}

.page-vip-club__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-vip-club__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Benefits Section */
.page-vip-club__benefits-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* 稍浅的深色背景 */
    color: #ffffff;
}

.page-vip-club__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-vip-club__card {
    background-color: rgba(255, 255, 255, 0.08); /* 半透明白色背景 */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff; /* 确保文字颜色在深色背景上可见 */
}

.page-vip-club__card:hover {
    transform: translateY(-10px);
}

.page-vip-club__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-vip-club__card-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-vip-club__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* How to Join Section */
.page-vip-club__how-to-join-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* 深色背景 */
    color: #ffffff;
}

.page-vip-club__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-vip-club__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-vip-club__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-vip-club__step-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-vip-club__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-vip-club__step-text a {
    color: #EA7C07; /* 登录/注册链接颜色 */
    text-decoration: underline;
}

.page-vip-club__step-text a:hover {
    color: #d16e06;
}

.page-vip-club__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Levels Section */
.page-vip-club__levels-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-vip-club__levels-table {
    width: 100%;
    margin-top: 50px;
    border-collapse: collapse;
    overflow-x: auto; /* 确保表格在小屏幕上可滚动 */
    display: block; /* 使overflow-x生效 */
}

.page-vip-club__table-header,
.page-vip-club__table-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-vip-club__table-header {
    background-color: #26A9E0;
    font-weight: bold;
    color: #ffffff;
}

.page-vip-club__table-cell {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    min-width: 120px; /* 确保单元格有最小宽度 */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-vip-club__table-row:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* FAQ Section */
.page-vip-club__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-vip-club__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-vip-club__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-vip-club__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-vip-club__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-vip-club__faq-title {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.page-vip-club__faq-toggle {
    font-size: 1.8em;
    color: #ffffff;
    font-weight: bold;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-vip-club__faq-item.active .page-vip-club__faq-toggle {
    transform: rotate(45deg); /* Plus becomes an X */
}

.page-vip-club__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03);
    color: #f0f0f0;
}

.page-vip-club__faq-item.active .page-vip-club__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-vip-club__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* Final CTA Section */
.page-vip-club__cta-final {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* 使用主色调作为背景 */
    color: #ffffff;
}

.page-vip-club__cta-final .page-vip-club__section-title {
    color: #ffffff;
}

.page-vip-club__cta-final .page-vip-club__section-intro {
    color: #f0f0f0;
}

.page-vip-club__cta-final .page-vip-club__btn-primary {
    background-color: #EA7C07; /* 登录/注册颜色 */
    border-color: #EA7C07;
}

.page-vip-club__cta-final .page-vip-club__btn-primary:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

.page-vip-club__cta-final .page-vip-club__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.page-vip-club__cta-final .page-vip-club__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* ========================================= */
/* 响应式设计 - 移动端适配 */
/* ========================================= */
@media (max-width: 768px) {
    .page-vip-club {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-vip-club__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* 移动端间距 */
        padding-bottom: 60px;
    }

    .page-vip-club__hero-title {
        font-size: 2.5em;
    }

    .page-vip-club__hero-description {
        font-size: 1.1em;
    }

    .page-vip-club__section-title {
        font-size: 2em;
    }

    .page-vip-club__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* 图片响应式 */
    .page-vip-club img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* 最小尺寸要求 */
        min-height: 200px !important; /* 最小尺寸要求 */
    }

    .page-vip-club__hero-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* 确保所有包含图片的容器在移动端不超出 */
    .page-vip-club__benefits-section,
    .page-vip-club__how-to-join-section,
    .page-vip-club__levels-section,
    .page-vip-club__faq-section,
    .page-vip-club__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* 防止内容溢出 */
    }

    .page-vip-club__card,
    .page-vip-club__step-item,
    .page-vip-club__faq-item {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-vip-club__card-image {
        height: auto; /* 确保图片高度自适应 */
        min-height: 200px !important;
    }

    /* 按钮响应式 */
    .page-vip-club__cta-buttons {
        flex-direction: column; /* 按钮垂直堆叠 */
        gap: 15px;
        padding: 0 15px; /* 添加内边距 */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-vip-club__cta-buttons .page-vip-club__btn-primary,
    .page-vip-club__cta-buttons .page-vip-club__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 表格响应式 */
    .page-vip-club__levels-table {
        overflow-x: auto; /* 确保表格在小屏幕上可滚动 */
        white-space: nowrap; /* 防止单元格内容换行 */
    }

    .page-vip-club__table-header,
    .page-vip-club__table-row {
        min-width: 600px; /* 确保表格在小屏幕上有足够宽度 */
    }
    .page-vip-club__table-cell {
        min-width: 100px; /* 调整单元格最小宽度 */
    }

    .page-vip-club__faq-question {
        padding: 15px 20px;
    }
    .page-vip-club__faq-title {
        font-size: 1.1em;
    }
    .page-vip-club__faq-answer {
        padding: 15px 20px;
    }
}