/* style/affiliate-program.css */

/* --- General Styles --- */
.page-affiliate-program {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #f8f8f8; /* Slightly off-white background for sections */
}

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

.page-affiliate-program__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: #ffffff; /* White background for sections */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-affiliate-program__section:nth-child(even) {
    background-color: #fefefe; /* Slightly different background for alternating sections */
}

.page-affiliate-program__section-title {
    font-size: 36px;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.page-affiliate-program__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-affiliate-program__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-affiliate-program__text-block a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-affiliate-program__text-block a:hover {
    text-decoration: underline;
}

/* --- Hero Section --- */
.page-affiliate-program__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #FFD700, #000000); /* Brand colors */
    color: #ffffff;
    overflow: hidden; /* Ensure content does not overflow */
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-affiliate-program__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.page-affiliate-program__hero-image img:hover {
    transform: scale(1.03);
}

.page-affiliate-program__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-affiliate-program__hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-affiliate-program__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-affiliate-program__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #FFD700;
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-affiliate-program__cta-button:hover {
    background: #e6c200;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Features Section (Why Join) --- */
.page-affiliate-program__why-join {
    background-color: #fefefe;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-affiliate-program__feature-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-affiliate-program__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-affiliate-program__feature-card img {
    max-width: 100%;
    height: auto;
    width: 100%; /* Ensure image fills card width */
    max-height: 250px; /* Limit height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.page-affiliate-program__card-title {
    font-size: 24px;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-affiliate-program__feature-card p {
    font-size: 16px;
    color: #555555;
    text-align: center;
}

/* --- Commission Structure Section --- */
.page-affiliate-program__commission-structure {
    background-color: #f8f8f8;
}

.page-affiliate-program__commission-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-affiliate-program__table-header,
.page-affiliate-program__table-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.page-affiliate-program__table-header {
    background-color: #FFD700;
    color: #000000;
    font-weight: bold;
    font-size: 18px;
}

.page-affiliate-program__table-row:nth-child(even) {
    background-color: #f9f9f9;
}

.page-affiliate-program__table-row:last-child {
    border-bottom: none;
}

.page-affiliate-program__table-cell {
    flex: 1;
    padding: 18px 20px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.page-affiliate-program__table-cell:last-child {
    border-right: none;
}

.page-affiliate-program__btn-primary {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    padding: 15px 35px;
    background: #FFD700;
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.page-affiliate-program__btn-primary:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- Marketing & Support Section --- */
.page-affiliate-program__marketing-support {
    background-color: #ffffff;
}

.page-affiliate-program__marketing-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-affiliate-program__tool-item {
    background: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-affiliate-program__tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__tool-item img {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.page-affiliate-program__tool-title {
    font-size: 22px;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-affiliate-program__tool-item p {
    font-size: 16px;
    color: #555555;
    text-align: center;
}

.page-affiliate-program__btn-secondary {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    padding: 15px 35px;
    background: #000000;
    color: #FFD700;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #FFD700;
    cursor: pointer;
}

.page-affiliate-program__btn-secondary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- How to Join Section --- */
.page-affiliate-program__how-to-join {
    background-color: #fefefe;
}

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

.page-affiliate-program__step-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.page-affiliate-program__step-number {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #FFD700;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-affiliate-program__step-title {
    font-size: 24px;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-affiliate-program__step-item p {
    font-size: 16px;
    color: #555555;
    text-align: center;
}

.page-affiliate-program__cta-button--bottom {
    margin-top: 60px;
}

/* --- FAQ Section --- */
.page-affiliate-program__faq-area {
    background-color: #f8f8f8;
}

.page-affiliate-program__faq-list {
    margin-top: 40px;
}

/* FAQ容器样式 */
.page-affiliate-program__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-affiliate-program__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 20px;
    opacity: 0;
    background: #fdfdfd;
    color: #444;
    font-size: 16px;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid #eee;
}

/* 问题样式 */
.page-affiliate-program__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    font-weight: 600;
    color: #333;
}

.page-affiliate-program__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-affiliate-program__faq-question:active {
    background: #eeeeee;
}

/* 问题标题样式 */
.page-affiliate-program__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #000000;
}

/* 切换图标 */
.page-affiliate-program__faq-toggle {
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-toggle {
    color: #000000;
    transform: rotate(45deg);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-affiliate-program__hero-title {
        font-size: 40px;
    }
    .page-affiliate-program__hero-description {
        font-size: 18px;
    }
    .page-affiliate-program__section-title {
        font-size: 32px;
    }
    .page-affiliate-program__features,
    .page-affiliate-program__marketing-tools,
    .page-affiliate-program__steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}