.sp-container {
    max-width: 1200px;
    margin: 5px auto;
    padding: 0 15px;
}

.sp-balance-box {
    background: linear-gradient(45deg, #5a7be0 0%, #3f51b5 25%, #2196f3 50%, #00c6fb 75%, #4facfe 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.sp-balance-text {
    font-size: 18px;
    margin-right: 15px;
}

.sp-btn {
    transition: all 0.3s;
}

.sp-btn-pay {
    background: #f0f8ff; /* 浅蓝背景 */
    color: #2196f3;      /* 主色蓝 */
    border: 2px solid #1565c0; /* 深蓝边框 */
    border-radius: 10px;
    padding: 10px 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.15);
}

.sp-btn-pay:hover {
    background: #2196f3;
    color: #fff;
    border-color: #0d47a1;
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.35);
}




.sp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sp-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
    margin-bottom: 20px;
    padding: 10px 20px;
}

.sp-title {
    font-size: 18px;
    color: #333;
    border-left: 4px solid #2575fc;
    padding-left: 10px;
    margin: 7px 0;
}

.sp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.sp-rank-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.sp-notice {
    background: #fff8e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.sp-notice p {
    margin-bottom: 10px;
    color: #666;
}

.sp-tab {
    margin-bottom: 0;
}

.layui-tab-content {
    padding: 5px 0;
}

.sp-form-item {
    margin: 15px 0;
}

.sp-form-label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.sp-price-tag {
    color: #ff5722;
    font-weight: bold;
}

@media (max-width: 768px) {
    .sp-rank-box {
        order: 2;
    }
}

/* 新增的样式 */
.sp-notice-list {
    padding-left: 20px;
    margin: 10px 0;
    list-style-type: none;
}

.sp-notice-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.sp-notice-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2575fc;
}

.sp-notice-icon {
    color: #2575fc;
    margin-right: 5px;
}

.sp-text-important {
    color: red;
}

.sp-text-muted {
    color: #999;
}

.sp-form-tip {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.sp-notice-special {
    background: #f0f8ff;
    border-left-color: #2575fc;
    margin-bottom: 20px;
}

.sp-notice-icon-special {
    color: #ffc107;
    margin-right: 5px;
}

.sp-text-special {
    color: #2575fc;
    font-weight: bold;
}

.sp-contact-item {
    display: inline-block;
    background: #f5f7fa;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 5px;
    cursor: pointer;
}

.sp-contact-item i {
    margin-right: 5px;
    color: #4a7afe;
}

.sp-contact-item,
.sp-contact-item:visited,
.sp-contact-item:hover,
.sp-contact-item:active {
    text-decoration: none !important;
    color: inherit;
}

/* 新增的优化样式 */
.sp-rank-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-rank-name {
    flex: 1;
}

.sp-rank-amount {
    min-width: 80px;
    text-align: right;
    margin-right: 15px;
}

.sp-rank-comment {
    color: #999;
    font-size: 12px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-bot-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.sp-bot-card:hover {
    border-color: #2575fc;
    box-shadow: 0 2px 10px rgba(37, 117, 252, 0.1);
}

.sp-bot-card.active {
    border-color: #2575fc;
    background-color: #f0f8ff;
}

.sp-bot-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.sp-bot-price {
    color: #ff5722;
    font-weight: bold;
    margin-bottom: 5px;
}

.sp-bot-desc {
    color: #666;
    font-size: 13px;
}

.sp-brand-card {
    display: inline-block;
    width: 27%;
    margin: 0 1% 15px 1%;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.sp-brand-card:hover {
    border-color: #2575fc;
}

.sp-brand-card.active {
    border-color: #2575fc;
    background-color: #f0f8ff;
}

.sp-brand-img {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-brand-img img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.sp-brand-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.sp-brand-price {
    color: #ff5722;
    font-size: 14px;
}

.sp-link {
    color: #2575fc;
    cursor: pointer;
}

.sp-link:hover {
    text-decoration: underline;
}

/* 感恩提示框新样式 */
.sp-thank-box {
    background: #f8faff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e1e8ff;
    position: relative;
    overflow: hidden;
}

.sp-thank-box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #6a11cb, #2575fc);
}

.sp-thank-title {
    font-size: 18px;
    color: #2575fc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sp-thank-title i {
    margin-right: 10px;
    font-size: 22px;
}

.sp-thank-list {
    margin: 15px 0;
    padding-left: 20px;
}

.sp-thank-list li {
    margin-bottom: 8px;
    position: relative;
    color: #555;
}

.sp-thank-list li:before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #2575fc;
}

.sp-thank-highlight {
    color: #2575fc;
    font-weight: bold;
}

.sp-thank-footer {
    margin-top: 15px;
    font-style: italic;
    color: #888;
    text-align: right;
}

/* 分页器样式 */
.sp-pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 0;
}

.sp-page-item {
    margin: 0 5px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
}

.sp-page-item:hover {
    border-color: #2575fc;
    color: #2575fc;
}

.sp-page-item.active {
    background: #2575fc;
    color: white;
    border-color: #2575fc;
}

.sp-page-item.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}

.sp-page-prev, .sp-page-next {
    padding: 0 12px;
    width: auto;
}

/* 赞助列表加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sp-rank-item {
    animation: fadeIn 0.3s ease-out forwards;
}

.sp-page-item .fa {
    padding: 0;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sp-page-item {
        width: 30px;
        height: 30px;
        line-height: 30px;
        margin: 0 3px;
    }


    .sp-page-prev, .sp-page-next {
        padding: 0 8px;
    }
}

.login_hide {
    display: none;
}

.lay-margin-bottom {
    margin: 10px 0 0 0;
}
.lay-margin-bottom .sp-link{
    margin: 0 6px 0 4px;
}

.pay-container {
    padding: 15px;
    max-width: 320px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.pay-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.pay-methods {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pay-method {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 4px;
    margin: 0 3px;
    min-width: 0;
}

.pay-method:hover {
    background-color: #f5f5f5;
}

.pay-method.active {
    background-color: #f0f0f0;
}

.pay-icon {
    font-size: 24px;
    margin-bottom: 5px;
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    text-align: center;
    color: white;
}

.pay-icon.wechat {
    background-color: #09BB07;
}

.pay-method div .fa {
    margin-right: 0 !important;
}

.pay-icon.alipay {
    background-color: #1296DB;
}

.pay-icon.qq {
    background-color: #12B7F5;
}

.pay-method-name {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qrcode-container {
    text-align: center;
    margin: 10px 0;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-img {
    width: 180px;
    height: 180px;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease;
}

.pay-thanks {
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.pay-thanks i {
    color: #FF9800;
    margin-right: 3px;
    font-size: 12px;
}

/* 小屏幕调整 */
@media (max-width: 480px) {
    .pay-container {
        padding: 10px;
        max-width: 280px;
    }

    .qrcode-img {
        width: 160px;
        height: 160px;
    }

    .pay-icon {
        font-size: 20px;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
}

/* 加载遮罩层样式 */
.pay-loading-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-loading-content {
    text-align: center;
    color: #666;
}

.pay-loading-text {
    margin-top: 10px;
    font-size: 14px;
}

/* 确保容器有相对定位 */
/* 确保每个rank容器是定位上下文 */
.sp-rank-container {
    position: relative;
    min-height: 200px;
}

/* 遮罩层样式调整 */
.pay-loading-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 头像容器样式 */
.pay-avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* VIP图标样式 */
.pay-vip-icon {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 16px;
    height: 16px;
    background: #ffd700;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 保护性容器样式 - 防止父容器flex等布局影响 */
.sp-rank-item.pay-no-sponsor-container {
    display: block !important;
    width: 100% !important;
    min-height: 200px !important;
    position: relative !important;
}

/* 内部容器 - 确保居中不受影响 */
.pay-no-sponsor-inner {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80% !important;
    max-width: 300px !important;
    text-align: center !important;
    padding: 20px !important;
    border-radius: 8px !important;
    background-color: #f8f8f8 !important;
    color: #666 !important;
    border: 1px dashed #e6e6e6 !important;
    box-sizing: border-box !important;
}

/* 图标样式 */
.pay-no-sponsor-inner .pay-icon-sad {
    font-size: 40px !important;
    color: #ff6b81 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

/* 文字样式 */
.pay-no-sponsor-inner .pay-text-muted {
    font-size: 18px !important;
    margin-bottom: 5px !important;
    color: #ff4757 !important;
    display: block !important;
}

.pay-no-sponsor-inner .pay-subtext {
    font-size: 14px !important;
    color: #999 !important;
    margin-bottom: 15px !important;
    display: block !important;
}

/* 动画容器 */
.pay-no-sponsor-inner .pay-heart-animation {
    display: block !important;
    margin-top: 15px !important;
}

/* 动画效果 */
.pay-animation-pulse {
    animation: payPulse 2s infinite !important;
}

.pay-heart-beat {
    color: #ff6b81 !important;
    animation: payHeartBeat 1.5s infinite !important;
    font-size: 24px !important;
    display: inline-block !important;
}

/* 动画定义 */
@keyframes payPulse {
    0% {
        transform: translate(-50%, -50%) scale(1) !important;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.02) !important;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

@keyframes payHeartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* 云手机品牌卡片 - 移动端优先设计 */
.sp-phone-brand-options {
    margin: 0 -5px;
}

.sp-phone-brand-card {
    padding: 5px;
    box-sizing: border-box;
}

.sp-phone-brand-card-inner {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.sp-phone-brand-card-inner:hover {
    border-color: #1E9FFF;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.1);
}

.sp-phone-brand-card.active .sp-phone-brand-card-inner {
    border-color: #1E9FFF;
    background-color: #f2f9ff;
}

.sp-phone-brand-img {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.sp-phone-brand-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-phone-brand-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-phone-brand-price {
    color: #FF5722;
    font-size: 13px;
    text-align: center;
    margin-bottom: 4px;
}

.sp-phone-brand-desc {
    color: #999;
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-phone-brand-check {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #1E9FFF;
    opacity: 0;
    font-size: 14px;
    transition: opacity 0.3s;
}

.sp-phone-brand-card.active .sp-phone-brand-check {
    opacity: 1;
}

/* 套餐选项 - 紧凑布局 */
.sp-phone-package-options {
    margin: 0 -5px;
}

.sp-phone-package-option {
    padding: 5px;
    box-sizing: border-box;
}

.sp-phone-package-option-inner {
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 10px 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: #fff;
    height: 100%;
}

.sp-phone-package-option-inner:hover {
    border-color: #1E9FFF;
}

.sp-phone-package-option.active .sp-phone-package-option-inner {
    border-color: #1E9FFF;
    background-color: #f2f9ff;
}

.sp-phone-package-name {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-phone-package-price {
    color: #FF5722;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.sp-phone-package-desc {
    color: #999;
    font-size: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 20px;
}

.sp-phone-discount-badge {
    display: inline-block;
    padding: 1px 4px;
    background: #FF5722;
    color: white;
    border-radius: 8px;
    font-size: 9px;
    margin-left: 3px;
    vertical-align: middle;
    line-height: 1.2;
}

/* 价格汇总 - 紧凑设计 */
.sp-phone-price-summary {
    background: #f8f8f8;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 10px 0 15px;
}

.sp-phone-price-display {
    font-size: 15px;
    margin-bottom: 5px;
    /*display: flex;
    align-items: center;
    justify-content: space-between;*/
}

.sp-phone-price-tag {
    color: #FF5722;
    font-weight: bold;
    font-size: 18px;
}

/* 确认按钮 - 移动端优化 */
.sp-phone-confirm-btn {
    height: 42px;
    line-height: 42px;
    font-size: 15px;
    border-radius: 4px;
}

/* 响应式调整 - 超小屏幕 */
@media (max-width: 360px) {
    .sp-phone-brand-card {
        width: 100% !important;
    }

    .sp-phone-package-option {
        width: 50% !important;
    }
}
.sp-bot-type-selector {
    display: flex;
    margin: 10px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.sp-bot-type-option {
    flex: 1;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.sp-bot-type-option:first-child {
    border-right: none;
}

.sp-bot-type-option:last-child {
    border-left: none;
}

.sp-bot-type-option:hover {
    background-color: #f9f9f9;
}

.sp-bot-type-option.active {
    background: #1E9FFF;
    color: #fff;
    border-color: #1E9FFF;
    z-index: 1;
}

.sp-bot-type-option.active:hover {
    background: #0d8aeb;
}

.sp-type-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.25s ease;
}

.sp-bot-type-option.active .sp-type-icon {
    background: rgba(255, 255, 255, 0.2);
}

.sp-type-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.25s ease;
}


.sp-type-content {
    flex: 1;
    min-width: 0; /* 防止文本溢出 */
}

.sp-type-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-type-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-bot-type-option.active .sp-type-desc {
    color: rgba(255, 255, 255, 0.85);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .sp-bot-type-selector {
        flex-direction: column;
        border-radius: 10px;
    }

    .sp-bot-type-option {
        padding: 10px;
        border: 1px solid #e8e8e8;
        border-bottom: none;
    }

    .sp-bot-type-option:first-child {
        border-radius: 10px 10px 0 0;
        border-right: 1px solid #e8e8e8;
    }

    .sp-bot-type-option:last-child {
        border-radius: 0 0 10px 10px;
        border-bottom: 1px solid #e8e8e8;
        border-left: 1px solid #e8e8e8;
    }

    .sp-type-icon {
        width: 32px;
        height: 32px;
    }

    .sp-type-icon img {
        width: 20px;
        height: 20px;
    }
}

/* 点击反馈效果 */
.sp-bot-type-option {
    -webkit-tap-highlight-color: transparent;
}

.sp-bot-type-option:active {
    transform: scale(0.98);
}
/* 原价（划线） */
.sp-price-original {
    font-size: 14px;
    color: #9e9e9e;
    text-decoration: line-through;
    margin-right: 6px;
    vertical-align: middle;
}

/* 折扣价（高亮） */
.sp-price-discount {
    font-weight: 700;
    margin-right: 4px;
    vertical-align: middle;
}

/* 活动截止时间 */
.sp-promo-deadline {
    font-size: 12px;
    color: #ff9800; /* 橙色提示 */
    margin-top: 4px;
    display: inline-block;
    font-style: italic;
}

/* 选中时图标放大一点 */
.sp-bot-type-option.active .type-icon img {
    transform: scale(1.1);
}

.sp-feature-list {
    margin: 15px 0;
    padding-left: 20px;
}

.sp-feature-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    list-style: none;
}

.sp-feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #52c41a;
    font-weight: bold;
}

.sp-feature-list li.disabled:before {
    content: "✗";
    color: #f5222d;
}

.sp-feature-list li.question:before {
    content: "?";
    color: #ff9800;
}
.sp-feature-list code {
    display: inline;
    font-size: 13px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    color: #409eff;
    background-color: rgba(27, 31, 35, 0.05); /* 淡灰底 */
    padding: 0.2em 0.4em;
    margin: 0 2px;
    border-radius: 4px;
    white-space: nowrap;
    word-break: normal;
    text-indent: 0;
    user-select: text;
}
