/* 联盟计划 — V1（仅本页样式，不引入 Bootstrap / main.css） */
.static-band {
    background: linear-gradient(180deg, var(--color-brand-soft, #fff3f1) 0%, color-mix(in srgb, var(--color-brand-soft, #fff4f2) 25%, var(--color-card, #fff)) 260px, var(--color-background, #f6f7f9) 520px);
    padding: 0 0 4rem;
}

.aff-wrap {
    width: 100%;
    max-width: var(--max-width-mall, 1440px);
    margin-inline: auto;
    padding-inline: var(--spacing-gutter, clamp(0.875rem, 2.5vw, 1.5rem));
}

/* Hero：对齐线上 container + flex，文案不设窄 max-width */
.aff-hero {
    background-image: linear-gradient(to bottom, var(--color-brand-soft, #fce9e9) 0%, var(--color-brand-soft, #fce9e9) 60%, var(--color-card, #fff) 100%);
}

.aff-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .aff-hero-inner {
        padding-block: 5rem 2rem;
    }
}

.aff-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
    /* 给右侧图留位，但不把文案压到 xl 那么窄 */
    max-width: min(40rem, 100%);
}

.aff-hero-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-foreground, #111214);
}

@media (min-width: 768px) {
    .aff-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .aff-hero-title {
        font-size: 3rem;
    }
}

.aff-hero-lead {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-foreground, #111214);
}

@media (min-width: 768px) {
    .aff-hero-lead {
        margin-bottom: 2.5rem;
        font-size: 1.125rem;
    }
}

.aff-hero-cta {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    background: var(--color-brand, #e23a2e);
    color: var(--color-brand-foreground, #fff);
    font-size: 1rem;
    font-weight: 800;
}

.aff-hero-cta:hover {
    opacity: 0.92;
    color: var(--color-brand-foreground, #fff);
}

@media (min-width: 768px) {
    .aff-hero-cta {
        margin-bottom: 2rem;
    }
}

.aff-hero-terms {
    display: block;
    color: var(--color-header, #333);
    font-size: 0.875rem;
}

.aff-hero-visual {
    display: none;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .aff-hero-visual {
        display: block;
    }
}

.aff-hero-visual img {
    display: block;
    max-width: min(28rem, 42vw);
    height: auto;
}

.aff-flag svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.aff-faq-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-foreground, #111214);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    cursor: pointer;
}

.aff-faq-btn[aria-expanded="true"] {
    background: var(--color-brand-soft, __V15__);
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
    border-radius: 0.5rem 0.5rem 0 0;
    border-bottom-color: transparent;
}

.aff-faq-panel {
    padding: 0 0.75rem 1.25rem;
    color: var(--color-muted-foreground, #666);
    font-size: 1rem;
    line-height: 1.65;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.aff-faq-chevron {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.aff-faq-btn[aria-expanded="true"] .aff-faq-chevron {
    transform: rotate(180deg);
}

/* ---------- 申请页 ---------- */
.aff-apply {
    padding-block: 3rem 4rem;
}

.aff-apply-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.aff-apply-title {
    margin: 0 0 1.5rem;
    max-width: 50rem;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-foreground, #111214);
}

.aff-apply-img {
    display: block;
    width: min(100%, 22rem);
    height: auto;
}

@media (min-width: 768px) {
    .aff-apply-img {
        width: min(100%, 37.5rem);
    }
}

.aff-apply-lead {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-foreground, #111214);
}

.aff-apply-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.875rem 2.5rem;
    border: 0;
    border-radius: 9999px;
    background: var(--color-brand, #e23a2e);
    color: var(--color-brand-foreground, #fff);
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
}

.aff-apply-cta:hover:not(:disabled) {
    opacity: 0.92;
    color: var(--color-brand-foreground, #fff);
}

.aff-apply-cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.aff-flash {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: color-mix(in srgb, var(--color-positive, #00b67a) 10%, var(--color-card, #fff));
    color: var(--color-positive, #065f46);
    font-size: 0.9375rem;
    font-weight: 600;
    border-bottom: 1px solid color-mix(in srgb, var(--color-positive, #00b67a) 40%, var(--color-card, #fff));
}

.aff-flash.is-warn {
    background: color-mix(in srgb, var(--color-warning, #b5761b) 10%, var(--color-card, #fff));
    color: var(--color-warning, #92400e);
    border-bottom-color: color-mix(in srgb, var(--color-warning, #b5761b) 45%, var(--color-card, #fff));
}

.aff-flash-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.aff-flash-close:hover {
    opacity: 1;
}
