/* XBinPay 付费阅读插件样式 */
/* 新UI样式 - 付费阅读支付面板 */
.paywall-container {
    width: 90%;
    max-width: 480px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    position: relative;
    margin: 20px auto;
}

/* 右上角标签 */
.content-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-tag i {
    font-size: 9px;
}

/* 顶部区域 */
.paywall-header {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    padding: 15px;
    text-align: center;
}

.paywall-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.paywall-title i {
    font-size: 16px;
}

.header-note {
    font-size: 10px;
    opacity: 0.9;
    margin-bottom: 0;
}

/* 内容区域 */
.paywall-content {
    display: flex;
    flex-direction: row;
    min-height: 160px;
}

/* 左侧支付方式区域 */
.payment-section {
    width: 240px;
    padding: 12px 15px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.payment-notice {
    font-size: 12px;
    color: #333;
    line-height: 1.3;
    margin: 3px 0 10px;
    font-weight: 500;
}

/* 支付方式选项 */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e0e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8fafc;
    height: 42px;
    user-select: none;
}

.payment-option:hover {
    background-color: #f0f5ff;
    transform: translateY(-1px);
}

.payment-option.selected {
    border-color: #0072ff !important;
    background-color: #e6f0ff !important;
    box-shadow: 0 2px 8px rgba(0, 114, 255, 0.2) !important;
}

.payment-option.selected .payment-icon {
    transform: scale(1.1);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-icon {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.alipay .payment-icon {
    background: linear-gradient(135deg, #1677ff, #4a9aff);
}

.wechat .payment-icon {
    background: linear-gradient(135deg, #00d2a5, #00b894);
}

.qq .payment-icon {
    background: linear-gradient(135deg, #12b7f5, #0088cc);
}

.payment-label {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

/* 右侧按钮区域 */
.action-section {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.price-info {
    text-align: center;
    margin-bottom: 15px;
}

.price-tag {
    font-size: 20px;
    font-weight: 700;
    color: #0072ff;
    margin-bottom: 3px;
}

.price-description {
    font-size: 10px;
    color: #666;
}

.purchase-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 114, 255, 0.3);
}

.purchase-button:hover {
    background: linear-gradient(135deg, #00b4e6 0%, #0062d6 100%);
    box-shadow: 0 3px 8px rgba(0, 114, 255, 0.4);
}

.purchase-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* 底部提示文字 */
.footer-note {
    text-align: center;
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .paywall-content {
        flex-direction: row; /* 保持左右布局 */
    }

    .payment-section {
        width: 140px; /* 缩窄左侧支付方式栏 */
        padding: 10px 12px;
    }

    .payment-option {
        padding: 6px 8px; /* 减小内边距 */
        height: 38px;
    }

    .payment-icon {
        width: 22px;
        height: 22px;
        margin-right: 8px;
        font-size: 11px;
    }

    .payment-label {
        font-size: 11px;
    }

    .payment-notice {
        font-size: 11px;
        margin: 2px 0 8px;
    }
}

@media (max-width: 400px) {
    .payment-section {
        width: 120px; /* 更窄的屏幕进一步缩窄 */
        padding: 8px 10px;
    }

    .payment-option {
        padding: 5px 6px;
        height: 36px;
    }

    .payment-icon {
        width: 20px;
        height: 20px;
        margin-right: 6px;
        font-size: 10px;
    }

    .payment-label {
        font-size: 10px;
    }

    .action-section {
        padding: 12px;
    }

    .price-tag {
        font-size: 18px;
    }

    .purchase-button {
        padding: 8px;
        font-size: 13px;
    }
}

/* 超小屏幕 */
@media (max-width: 320px) {
    .paywall-content {
        flex-direction: column; /* 只有超小屏幕才变垂直布局 */
    }

    .payment-section {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .action-section {
        width: 100%;
        padding: 15px;
    }
}

/* 兼容原有类名 - 已付费内容样式 */
.xbinpay-paid {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    border-left: 4px solid #0072ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.xbinpay-paid .xbinpay-content {
    margin-top: 30px;
}
.xbinpay-content {
    color: #333;
}
.xbinpay-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
}
.xbinpay-tag-text {
    margin-right: 5px;
}

/* 未授权提示框样式 */
.xbinpay-form {
    width: 90%;
    max-width: 480px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    margin: 20px auto;
}

.xbinpay-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 15px;
    text-align: center;
}

.xbinpay-title {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.xbinpay-body {
    padding: 25px 20px;
    text-align: center;
}

.xbinpay-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.xbinpay-button {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 25px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 114, 255, 0.3);
    cursor: pointer;
    border: none;
    text-decoration: none !important;
}

.xbinpay-button:hover {
    background: linear-gradient(135deg, #00b4e6 0%, #0062d6 100%);
    box-shadow: 0 3px 8px rgba(0, 114, 255, 0.4);
    transform: translateY(-2px);
}

.xbinpay-footer {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.xbinpay-tip {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}
