/* 推廣活動匯總頁面樣式 */

/* Banner Section */
.affiliate-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.affiliate-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Make banner title & subtitle text white for readability */
.banner-title {
    color: #ffffff;
}
.banner-subtitle {
    color: #ffffff;
}

.banner-features {
    margin-bottom: 2.5rem;
}

.banner-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.banner-features .feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #ffd700;
}

.banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Keep banner action buttons as clean white outline */
.banner-actions .btn {
    border-radius: .3rem;
    font-weight: 500;
    box-shadow: none;
}

/* Banner buttons default: white background with purple text */
.banner-actions .btn.btn-light {
    background-color: #ffffff !important;
    color: #6f42c1 !important;
    border: 1px solid #ffffff !important;
}

/* Hover: keep same as default (no color flip) */
.banner-actions .btn.btn-light:hover,
.banner-actions .btn.btn-light:focus,
.banner-actions .btn.btn-light:active {
    background-color: #ffffff !important;
    color: #6f42c1 !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
}

/* Remove any inherited gradient overrides */
.btn--primary, .btn--primary:hover,
.btn--outline, .btn--outline:hover {
    background: none !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Explicit outline-light hover for good contrast on gradient bg */
.btn-outline-light:hover {
    color: #667eea; /* subtle contrast on hover */
    background-color: #ffffff;
    border-color: #ffffff;
}

.banner-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Section Styles */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Invite Rewards Section */
.invite-rewards-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.rewards-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.rewards-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.rewards-steps {
    margin-bottom: 3rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.step-content p {
    color: #666;
    margin: 0;
}

.rewards-highlights {
    display: grid;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.highlight-item i {
    color: #28a745;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.rewards-image {
    text-align: center;
}

.rewards-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* First Deposit Section */
.first-deposit-section {
    padding: 100px 0;
    background: white;
}

.deposit-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.deposit-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.commission-example {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.commission-example h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.example-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.example-item:last-child {
    border-bottom: none;
}

.example-item .label {
    font-weight: 500;
    color: #666;
}

.example-item .value {
    font-weight: 600;
    color: #333;
}

.example-item .value.highlight {
    color: #28a745;
    font-size: 1.2rem;
}

.deposit-features {
    display: grid;
    gap: 1.5rem;
}

.deposit-features .feature-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.deposit-features .feature-item:hover {
    transform: translateY(-3px);
}

.deposit-features .feature-item i {
    font-size: 2rem;
    color: #667eea;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.deposit-features .feature-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.deposit-features .feature-item p {
    color: #666;
    margin: 0;
}

.deposit-image {
    text-align: center;
}

.deposit-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* How to Start Section */
.how-to-start-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.how-to-start-section .section-title,
.how-to-start-section .section-subtitle {
    color: #ffffff;
}

.start-step {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.start-step:hover {
    transform: translateY(-10px);
}

/* Step icon: white circle, purple icon */
.how-to-start-section .step-icon {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.how-to-start-section .step-icon i {
    font-size: 2.5rem;
    color: #6f42c1;
}

.start-step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.start-step p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.faq-question i {
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-question {
    background-color: #667eea;
    color: white;
}

.faq-item.active .faq-question h4 {
    color: white;
}

.faq-item.active .faq-question i {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .banner-actions {
        flex-direction: column;
    }
    
    .banner-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .deposit-features .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .deposit-features .feature-item i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .example-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .affiliate-banner {
        padding: 60px 0;
    }
    
    .invite-rewards-section,
    .first-deposit-section,
    .how-to-start-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .banner-features .feature-item {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-question h4 {
        font-size: 1.1rem;
    }
    
    .faq-answer p {
        padding: 0 1.5rem 1rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Button Styles */
.btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn--outline {
    background: transparent;
    border: 2px solid currentColor;
    color: currentColor;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn--outline:hover {
    background: currentColor;
    color: white;
    transform: translateY(-2px);
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Placeholder Image Styles */
.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    border: 2px dashed rgba(255,255,255,0.3);
    padding: 2rem;
    text-align: center;
}

.placeholder-image i {
    margin-bottom: 1rem;
}

.placeholder-image p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* 针对不同背景的占位图片样式 */
.invite-rewards-section .placeholder-image,
.first-deposit-section .placeholder-image {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.invite-rewards-section .placeholder-image i,
.first-deposit-section .placeholder-image i {
    color: #667eea !important;
    opacity: 0.3;
}

.invite-rewards-section .placeholder-image p,
.first-deposit-section .placeholder-image p {
    color: #666;
} 

/* How to Start CTA button: white border by default */
.how-to-start-section .btn {
    border: 1px solid #ffffff !important;
} 

/* Banner spacing refinements */
.banner-subtitle { margin-bottom: 24px; }
.banner-features { margin-top: 8px; }

/* Ensure banner buttons don’t stretch */
.banner-actions .btn { flex: 0 0 auto; }

/* Mobile spacing normalization */
@media (max-width: 767.98px) {
    /* Section paddings */
    .affiliate-banner { padding: 48px 0; }
    .invite-rewards-section,
    .first-deposit-section,
    .how-to-start-section,
    .faq-section { padding: 48px 0; }

    /* Section headers */
    .section-header { margin-bottom: 24px; }
    .section-title { margin-bottom: 8px; font-size: 1.75rem; }
    .section-subtitle { margin-bottom: 4px; }

    /* Banner content spacing and button sizing */
    .banner-actions { margin-top: 16px; margin-bottom: 16px; display: block; text-align: left; }
    .affiliate-banner .banner-actions .btn { width: auto !important; padding: 10px 18px; font-size: 1rem; display: inline-block; flex: 0 0 auto; }

    /* Ensure space between banner image and preceding content */
    .banner-image { margin-top: 12px; }

    /* Two-column sections stack spacing */
    .rewards-image,
    .deposit-image { margin-bottom: 16px; }

    /* Content blocks internal rhythm */
    .rewards-content { margin-bottom: 12px; }
    .rewards-content > * + * { margin-top: 12px; }
    .rewards-highlights .highlight-item { padding: 12px; }

    .deposit-content { margin-bottom: 16px; }
    .deposit-content > * + * { margin-top: 12px; }
    .commission-example { padding: 16px; margin-bottom: 16px; }
    .deposit-features { gap: 12px; }
    .deposit-features .feature-item { padding: 12px; }

    /* How-to-start cards */
    .start-step { padding: 16px; margin-bottom: 16px; }
    .step-icon { width: 72px; height: 72px; }

    /* FAQ items */
    .faq-list .faq-item + .faq-item { margin-top: 12px; }
    .faq-question { padding: 12px 16px; }
    .faq-answer p { padding: 0 16px 12px; }
} 