/* 订阅按钮样式 */

.subscribe:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

.subscribe i {
    font-size: 16px;
}

/* 订阅成功按钮样式 */
.subscribe-success {
    background-color: #fff;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 5px 15px;
    border: 2px solid #B886F8;
    border-radius: 22px;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 229, 132, 0.2);
}

.subscribe-success.show {
    opacity: 1;
    visibility: visible;
}

/* 订阅成功内容样式 */
.sub-succ-1 {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 奖杯图标样式 */
.trophy {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 分数样式 */
.score_1 {
    font-size: 18px;
    font-weight: 600;
    color: #fec43c;
    line-height: 1;
}

/* 分数百分比样式 */
.score_1:last-child {
    font-size: 15px;
    opacity: 0.9;
    color: #B886F8;
}

/* 订阅弹窗样式 */
.subscribe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.subscribe-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.subscribe-modal .modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 480px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.subscribe-modal.active .modal-content {
    transform: translateY(0);
}

/* 关闭按钮 */
.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Logo */
.sub_logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

/* 标题 */
.sub_title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* 输入框 */
.sub_email {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.sub_email:focus {
    border-color: #B886F8;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 134, 248, 0.1);
}

/* 错误提示 */
.sub_e {
    display: none;
    margin-bottom: 15px;
}

.sub_e.show {
    display: block;
}

.sub_e_s {
    color: #FF5E5E;
    font-size: 14px;
    display: block;
    text-align: left;
    margin-top: 5px;
}

/* 描述文字 */
.sub_desc {
    display: block;
    font-size: 14px;
    color: #666;
    margin: 20px 0;
    line-height: 1.5;
}

/* 订阅按钮 */
.sub_button {
    background-color: #B886F8;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(184, 134, 248, 0.2);
}

.sub_button:hover {
    background-color: #9A6FD8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 248, 0.3);
}

.sub_button:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 30px auto;
    }

    .sub_title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .sub_email {
        padding: 12px 15px;
        font-size: 15px;
    }

    .sub_button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .sub_logo {
        width: 100px;
        margin-bottom: 15px;
    }

    .close {
        top: 15px;
        right: 15px;
    }

    .subscribe-success {
        padding: 10px 20px;
        font-size: 16px;
    }

    .trophy {
        width: 20px;
        height: 20px;
    }

    .score_1 {
        font-size: 16px;
    }

    .score_1:last-child {
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    animation: fadeInUp 0.4s ease-out;
}

/* 为偏好减少动画的用户禁用动画 */
@media (prefers-reduced-motion: reduce) {
    .subscribe,
    .subscribe-success,
    .subscribe-modal,
    .modal-content,
    .sub_button {
        transition: none;
        animation: none;
    }
}

/* 加载更多按钮样式 */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 0;
    padding: 0;
}

.load-more-button {
    background-color: #fff;
    color: #B886F8;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 40px;
    border: 2px solid #B886F8;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(184, 134, 248, 0.1);
    width: 50%;
}

.load-more-button:hover {
    background-color: #B886F8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 248, 0.2);
}

.load-more-button:disabled {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-button .loading-icon {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

.load-more-button.loading .loading-icon {
    display: inline-block;
}

.load-more-button.loading .button-text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式调整 */
@media (max-width: 767px) {
    .load-more-container {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 0;
    }

    .load-more-button {
        font-size: 16px;
        padding: 10px 30px;
        width: 100%;
    }

    .subscribe-success {
        padding: 3px 5px;
    }
}
