/* ====== 免费获取方案 蓝色横向胶囊样式 ====== */

.free-solution-section {
    padding: 50px 0;
}

/* 外层容器：横向单条蓝色圆角条 */
.free-solution-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: linear-gradient(90deg, #0066cc 0%, #1a6fd6 50%, #0052a3 100%);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.25);
    padding: 24px 36px;
    overflow: hidden;
}

/* ============== 左侧：图标 + 标题 ============== */
.fs-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    color: #fff;
}

.fs-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    font-size: 24px;
    color: #fff;
}

.fs-header h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.fs-header .fs-notice {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.2;
}

/* ============== 中间：胶囊式统计区 ============== */
.fs-pill {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 48px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* 胶囊左侧：已申请 */
.fs-pill-applied {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 22px;
    height: 100%;
    background: rgba(230, 240, 255, 0.95);
    white-space: nowrap;
}

/* 胶囊中间：用户滚动条 */
.fs-pill-marquee {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 8px;
    background: #fff;
    position: relative;
}

.fs-arrow {
    font-size: 12px;
    color: #94b8e6;
    flex-shrink: 0;
    padding: 0 4px;
    user-select: none;
}

.fs-user-viewport {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.fs-user-track {
    display: flex;
    flex-direction: column;
    animation: fs-scroll 32s linear infinite;
    /* 不设固定高度，使用自然内容高度 (16条 × 48px = 768px) */
}

.fs-user-item {
    height: 48px;
    line-height: 48px;
    padding: 0 10px;
    font-size: 14px;
    color: #4a4a4a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    flex-shrink: 0;
}

/* 16 items (8x2), scroll -50% exactly matches the duplicate start → seamless */
@keyframes fs-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* 胶囊右侧：剩余名额 */
.fs-pill-remain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 22px;
    height: 100%;
    background: rgba(230, 240, 255, 0.95);
    white-space: nowrap;
}

.fs-label {
    font-size: 15px;
    color: #555;
}

.fs-number {
    font-size: 16px;
    font-weight: 700;
    color: #0066cc;
}

/* ============== 右侧：按钮 ============== */
.fs-buttons {
    display: flex;
    flex-shrink: 0;
}

.btn-get {
    display: inline-block;
    padding: 11px 26px;
    background: #fff;
    color: #0066cc;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-get:hover {
    background: #f0f6ff;
    color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* ============== 响应式 ============== */
@media (max-width: 1200px) {
    .free-solution-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        padding: 20px 24px;
    }

    .fs-left {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .fs-pill {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .free-solution-container {
        gap: 14px;
        padding: 16px 14px;
    }

    .fs-header h3 {
        font-size: 18px;
    }

    .fs-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .fs-pill {
        height: auto;
        flex-direction: column;
        border-radius: 12px;
    }

    .fs-pill-applied,
    .fs-pill-remain {
        width: 100%;
        padding: 10px 12px;
    }

    .fs-pill-marquee {
        width: 100%;
        padding: 6px 8px;
        min-height: 40px;
    }

    .fs-pill-marquee .fs-user-viewport {
        height: 40px;
        max-height: 40px;
    }

    .fs-user-item {
        height: 40px;
        line-height: 40px;
        font-size: 13px;
    }

    .btn-get {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .fs-buttons {
        width: 100%;
    }
}
