/**
 * 付费内容前端样式
 * 
 * @package UserAuthPro
 * @subpackage PaidContent
 * @since 2.0.0
 */

/* ========================================
   付费墙容器
   ======================================== */

.uap-paywall {
    margin: 60px 0;
    padding: 0;
}

.uap-paywall-container {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 50px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 10px 40px -10px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.uap-paywall-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #d97706 100%);
}

/* ========================================
   装饰线条
   ======================================== */

.uap-paywall-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.uap-paywall-decoration__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #d1d5db 50%, transparent 100%);
    max-width: 120px;
}

.uap-paywall-decoration__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-radius: 16px;
    box-shadow: 
        0 8px 16px -4px rgba(17, 24, 39, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.uap-paywall-decoration__icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 2.5;
}

/* ========================================
   标题和描述
   ======================================== */

.uap-paywall-container .uap-paywall-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.uap-paywall-container .uap-paywall-desc {
    margin: 0 0 40px;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   价格展示
   ======================================== */

.uap-paywall-price {
    margin: 0 0 40px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
}

/* 会员免费 */
.uap-price-member-free {
    text-align: center;
}

.uap-price-member-free .uap-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 
        0 8px 16px -4px rgba(16, 185, 129, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.uap-price-badge__icon {
    width: 20px;
    height: 20px;
}

.uap-price-member-free .uap-price-tip {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* 会员折扣 */
.uap-price-discount {
    text-align: center;
}

.uap-price-discount__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 20px;
}

.uap-price-discount__badge svg {
    width: 16px;
    height: 16px;
}

.uap-price-discount__amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.uap-price-original {
    font-size: 18px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.uap-price-current {
    font-size: 36px;
    font-weight: 700;
    color: #d97706;
    letter-spacing: -0.02em;
}

.uap-price-discount__save {
    display: inline-block;
    padding: 6px 16px;
    background: #fef3c7;
    color: #d97706;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

/* 普通价格 */
.uap-price-normal {
    text-align: center;
}

.uap-price-normal__label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.uap-price-normal__amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 12px;
}

.uap-price-currency {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-right: 4px;
}

.uap-price-value {
    font-size: 48px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1;
}

.uap-price-normal__desc {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* ========================================
   操作按钮区域
   ======================================== */

.uap-paywall-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.uap-paywall-container .uap-paywall-tip {
    margin: 8px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

/* ========================================
   会员权益
   ======================================== */

.uap-paywall-benefits {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-align: left;
}

.uap-benefits-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.uap-benefits-header__desc {
    font-size: 14px;
    font-weight: 500;
    color: #d97706;
}

.uap-benefits-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.uap-benefits-header .uap-benefits-header__icon {
    width: 24px;
    height: 24px;
    color: #d97706;
}

.uap-benefits-header .uap-benefits-header__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.01em;
}

.uap-paywall-benefits .uap-benefits-list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.uap-paywall-benefits .uap-benefits-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}

.uap-benefits-list__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #10b981;
    stroke-width: 2.5;
}

.uap-paywall-benefits .uap-benefits-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.uap-paywall-benefits .uap-benefits-link:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateX(4px);
}

.uap-paywall-benefits .uap-benefits-link svg {
    width: 16px;
    height: 16px;
    color: #d97706;
    transition: transform 0.2s ease;
}

.uap-paywall-benefits .uap-benefits-link:hover svg {
    transform: translateX(2px);
}

/* ========================================
   按钮组件（BEM）
   ======================================== */

.uap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 220px;
    letter-spacing: -0.01em;
}

.uap-btn__icon {
    width: 20px;
    height: 20px;
}

.uap-btn--primary {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 16px -4px rgba(17, 24, 39, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.uap-btn--primary:hover {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 20px -4px rgba(17, 24, 39, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

a.uap-btn--primary:hover{
    color: #FFFFFF;
}

.uap-btn--primary:active {
    transform: translateY(0);
}

.uap-btn--secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.04);
}

.uap-btn--secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
}

.uap-btn__loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   模态框组件（BEM）- 紧凑优化版
   ======================================== */

.uap-purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.uap-purchase-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: uapOverlayFadeIn 0.2s ease;
}

@keyframes uapOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.uap-purchase-modal__wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 16px;
    z-index: 1;
}

.uap-purchase-modal__container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: uapModalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes uapModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 头部 - 极简设计 */
.uap-purchase-modal__header {
    position: relative;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.uap-purchase-modal__header .uap-purchase-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.01em;
}

.uap-purchase-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.uap-purchase-modal__close:hover {
    background: #f3f4f6;
}

.uap-purchase-modal__close svg {
    width: 18px;
    height: 18px;
    stroke: #9ca3af;
    stroke-width: 2;
}

/* 主体内容 - 紧凑布局 */
.uap-purchase-modal__body {
    padding: 20px 24px;
}

/* 价格展示 - 突出显示 */
.uap-purchase-modal__price-display {
    text-align: center;
    padding: 16px 0;
    margin-bottom: 16px;
}

.uap-purchase-modal__price-label {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
    font-weight: 500;
}

.uap-purchase-modal__price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* 订单详情 - 紧凑列表 */
.uap-purchase-modal__details {
    background: #fafafa;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.uap-purchase-modal__detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.uap-purchase-modal__detail-row:first-child {
    padding-top: 0;
}

.uap-purchase-modal__detail-row:last-child {
    padding-bottom: 0;
}

.uap-purchase-modal__detail-row + .uap-purchase-modal__detail-row {
    border-top: 1px solid #f3f4f6;
}

.uap-purchase-modal__detail-label {
    flex-shrink: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.uap-purchase-modal__detail-value {
    flex: 1;
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    text-align: right;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
}

/* 支付方式 - 紧凑设计 */
.uap-purchase-modal__payment {
    margin-bottom: 0;
}

.uap-purchase-modal__payment-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.uap-purchase-modal__payment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uap-purchase-modal__payment-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: #9ca3af;
    font-size: 13px;
}

.uap-content-payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uap-content-payment-method:hover {
    border-color: #d1d5db;
    background: #fafafa;
}

.uap-content-payment-method.selected {
    border-color: #111827;
    background: #fafafa;
}

.uap-content-payment-method__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: unset;
    border-radius: 8px;
}

.uap-content-payment-method__icon img {
    max-width: 100%;
    max-height: 100%;
}

.uap-content-payment-method__info {
    flex: 1;
    min-width: 0;
}

.uap-content-payment-method__name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.uap-content-payment-method__desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.3;
    margin-top: 2px;
}

.uap-content-payment-method__radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.uap-content-payment-method.selected .uap-content-payment-method__radio {
    border-color: #111827;
}

.uap-content-payment-method.selected .uap-content-payment-method__radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #111827;
    border-radius: 50%;
}

/* 底部按钮 - 紧凑布局 */
.uap-purchase-modal__footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
}

.uap-purchase-modal__footer .uap-btn {
    flex: 1;
    min-width: 0;
    padding: 12px 20px;
    font-size: 15px;
}

.uap-purchase-modal__cancel {
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.uap-purchase-modal__cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

/* ========================================
   加载动画组件（BEM）
   ======================================== */

.uap-spinner {
    width: 16px;
    height: 16px;
    animation: uapSpin 1s linear infinite;
}

@keyframes uapSpin {
    to {
        transform: rotate(360deg);
    }
}

.uap-spinner__track {
    stroke: rgba(17, 24, 39, 0.2);
}

.uap-spinner__head {
    stroke: currentColor;
    stroke-dasharray: 50;
    stroke-dashoffset: 25;
}

.uap-btn__loading .uap-spinner__track {
    stroke: rgba(255, 255, 255, 0.3);
}

.uap-btn__loading .uap-spinner__head {
    stroke: #ffffff;
}

/* 禁用body滚动 */
body.uap-modal-open {
    overflow: hidden;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 640px) {
    .uap-paywall-container {
        padding: 40px 24px;
        border-radius: 16px;
    }
    
    .uap-paywall-decoration {
        gap: 16px;
    }
    
    .uap-paywall-decoration__line {
        max-width: 80px;
    }
    
    .uap-paywall-decoration__icon {
        width: 48px;
        height: 48px;
    }
    
    .uap-paywall-decoration__icon svg {
        width: 24px;
        height: 24px;
    }
    
    .uap-paywall-container .uap-paywall-title {
        font-size: 24px;
    }
    
    .uap-paywall-container .uap-paywall-desc {
        font-size: 15px;
    }
    
    .uap-paywall-price {
        padding: 24px;
    }
    
    .uap-price-current {
        font-size: 32px;
    }
    
    .uap-price-value {
        font-size: 40px;
    }
    
    .uap-price-currency {
        font-size: 20px;
    }
    
    .uap-btn {
        padding: 14px 32px;
        font-size: 15px;
        min-width: 180px;
    }
    
    .uap-paywall-actions {
        width: 100%;
    }
    
    .uap-paywall-actions .uap-btn {
        width: 100%;
    }
    
    .uap-paywall-benefits {
        padding: 24px;
    }
    
    .uap-benefits-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .uap-benefits-header__desc {
        font-size: 13px;
    }

    .uap-benefits-header .uap-benefits-header__title {
        font-size: 16px;
    }

    .uap-paywall-benefits .uap-benefits-list__item {
        font-size: 14px;
    }
    
    /* 购买弹窗移动端优化 - 紧凑版 */
    .uap-purchase-modal__wrapper {
        max-width: 100%;
        margin: 0 12px;
    }
    
    .uap-purchase-modal__header {
        padding: 16px 20px 14px;
    }
    
    .uap-purchase-modal__header .uap-purchase-modal__title {
        font-size: 17px;
    }
    
    .uap-purchase-modal__close {
        top: 14px;
        right: 14px;
        width: 30px;
        height: 30px;
    }
    
    .uap-purchase-modal__close svg {
        width: 16px;
        height: 16px;
    }
    
    .uap-purchase-modal__body {
        padding: 16px 20px;
    }
    
    .uap-purchase-modal__price-display {
        padding: 12px 0;
        margin-bottom: 14px;
    }
    
    .uap-purchase-modal__price-label {
        font-size: 12px;
    }
    
    .uap-purchase-modal__price-amount {
        font-size: 32px;
    }
    
    .uap-purchase-modal__details {
        padding: 10px 14px;
        margin-bottom: 14px;
    }
    
    .uap-purchase-modal__detail-row {
        padding: 7px 0;
    }
    
    .uap-purchase-modal__detail-label {
        font-size: 13px;
    }
    
    .uap-purchase-modal__detail-value {
        font-size: 13px;
    }
    
    .uap-purchase-modal__payment-label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .uap-content-payment-method {
        padding: 9px 11px;
        gap: 10px;
    }
    
    .uap-content-payment-method__icon {
        width: 34px;
        height: 34px;
    }
    
    .uap-content-payment-method__name {
        font-size: 13px;
    }
    
    .uap-content-payment-method__desc {
        font-size: 11px;
    }
    
    .uap-content-payment-method__radio {
        width: 18px;
        height: 18px;
    }
    
    .uap-content-payment-method.selected .uap-content-payment-method__radio::after {
        width: 8px;
        height: 8px;
    }
    
    .uap-purchase-modal__footer {
        padding: 14px 20px;
        gap: 8px;
    }
    
    .uap-purchase-modal__footer .uap-btn {
        padding: 11px 18px;
        font-size: 14px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .uap-purchase-modal__wrapper {
        margin: 0 10px;
    }
    
    .uap-purchase-modal__header {
        padding: 14px 16px 12px;
    }
    
    .uap-purchase-modal__body {
        padding: 14px 16px;
    }
    
    .uap-purchase-modal__footer {
        padding: 12px 16px;
    }
}

/* ========================================
   打印样式
   ======================================== */

@media print {
    .uap-paywall {
        display: none;
    }
}


/* ========================================
   紧凑型付费墙
   ======================================== */

.uap-paywall--compact {
    margin: 40px 0;
    padding: 0;
}

.uap-paywall-compact {
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 顶部装饰线 */
.uap-paywall-compact::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #d97706 100%);
}

/* 主要内容行 */
.uap-paywall-compact__main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

/* 图标 */
.uap-paywall-compact__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(17, 24, 39, 0.2);
}

.uap-paywall-compact__icon svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    stroke-width: 2;
}

/* 信息区 */
.uap-paywall-compact__info {
    flex: 1;
    min-width: 0;
}

.uap-paywall-compact__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 2px;
}

.uap-paywall-compact__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* 价格区 */
.uap-paywall-compact__price {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.uap-paywall-compact__price-free {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}

.uap-paywall-compact__price-original {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.uap-paywall-compact__price-current {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

/* 按钮区 */
.uap-paywall-compact__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 紧凑按钮 */
.uap-paywall .uap-btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.uap-btn-compact--primary {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(17, 24, 39, 0.2);
}

.uap-btn-compact--primary:hover {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(17, 24, 39, 0.25);
}

.uap-paywall .uap-btn-compact--primary {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(17, 24, 39, 0.2);
}

.uap-paywall .uap-btn-compact--primary:hover {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(17, 24, 39, 0.25);
    border: none;
}

a.uap-btn-compact--primary:hover {
    color: #ffffff;
}

.uap-btn-compact--secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.uap-paywall .uap-btn-compact--secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.uap-btn-compact--secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.uap-paywall .uap-btn-compact--secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

a.uap-btn-compact--secondary:hover {
    color: #111827;
}

/* 会员权益折叠区 */
.uap-paywall-compact__benefits {
    border-top: 1px solid #f3f4f6;
}

.uap-paywall-compact__benefits-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 24px;
    background: #fafafa;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
}

.uap-paywall-compact__benefits-desc {
    color: #d97706;
    font-size: 13px;
    font-weight: 500;
}

.uap-paywall-compact__benefits-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.uap-paywall-compact__benefits-toggle:hover {
    background: #f5f5f5;
    color: #374151;
}

.uap-paywall-compact__benefits-toggle:focus {
    outline: none;
    background: #fafafa;
    color: #6b7280;
}

.uap-paywall-compact__benefits-toggle:focus-visible {
    outline: 2px solid #d1d5db;
    outline-offset: -2px;
}

.uap-paywall-compact__benefits-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.uap-paywall-compact__benefits-toggle.active .uap-paywall-compact__benefits-arrow {
    transform: rotate(180deg);
}

.uap-paywall-compact__benefits-content {
    padding: 16px 24px 20px;
    background: #fafafa;
}

.uap-paywall-compact__benefits-list {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.uap-paywall-compact__benefits-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

.uap-paywall-compact__benefits-list svg {
    width: 16px;
    height: 16px;
    color: #10b981;
    flex-shrink: 0;
}

.uap-paywall .uap-paywall-compact__benefits-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #d97706;
    text-decoration: none;
    transition: color 0.2s ease;
}

.uap-paywall-compact__benefits-link:hover {
    color: #b45309;
}

/* 紧凑型响应式 */
@media (max-width: 768px) {
    .uap-paywall-compact__main {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .uap-paywall-compact__icon {
        width: 40px;
        height: 40px;
    }
    
    .uap-paywall-compact__icon svg {
        width: 20px;
        height: 20px;
    }
    
    .uap-paywall-compact__info {
        flex: 1;
        min-width: 0;
    }
    
    .uap-paywall-compact__title {
        font-size: 15px;
    }
    
    .uap-paywall-compact__desc {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .uap-paywall-compact__price {
        flex-shrink: 0;
    }
    
    .uap-paywall-compact__price-current {
        font-size: 18px;
    }
    
    .uap-paywall-compact__price-original {
        font-size: 12px;
    }
    
    .uap-paywall-compact__price-free {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .uap-paywall-compact__actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .uap-paywall-compact__actions .uap-btn-compact {
        flex: 1;
    }
    
    .uap-paywall-compact__benefits-toggle {
        flex-direction: column;
        gap: 6px;
        padding: 10px 20px;
        font-size: 12px;
    }

    .uap-paywall-compact__benefits-desc {
        font-size: 12px;
    }
    
    .uap-paywall-compact__benefits-content {
        padding: 14px 20px 16px;
    }
    
    .uap-paywall-compact__benefits-list {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .uap-paywall-compact__main {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .uap-paywall-compact__icon {
        width: 36px;
        height: 36px;
    }
    
    .uap-paywall-compact__icon svg {
        width: 18px;
        height: 18px;
    }
    
    .uap-paywall-compact__title {
        font-size: 14px;
    }
    
    .uap-paywall-compact__desc {
        display: none;
    }
    
    .uap-paywall-compact__price-current {
        font-size: 16px;
    }
    
    .uap-btn-compact {
        padding: 9px 16px;
        font-size: 13px;
    }
}

/* ========================================
   紧凑型下载区域
   ======================================== */

.uap-download-area--compact {
    margin: 40px 0;
}

.uap-download-compact {
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 顶部装饰线 */
.uap-download-compact::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #10b981 100%);
}

/* 标题行 */
.uap-download-compact__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f3f4f6;
}

.uap-download-compact__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

.uap-download-compact__icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2.5;
}

.uap-download-compact__title {
    flex: 1;
    line-height: 1.2;
}

.uap-download-compact__title strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.uap-download-compact__title span {
    font-size: 13px;
    color: #6b7280;
}

/* 下载列表 */
.uap-download-compact__list {
    padding: 12px 16px;
}

.uap-download-compact__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.15s ease;
}

.uap-download-compact__item:last-child {
    margin-bottom: 0;
}

.uap-download-compact__item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.uap-download-compact__item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.uap-download-compact__item-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uap-download-compact__item-code {
    flex-shrink: 0;
    font-size: 12px;
    color: #6b7280;
    padding: 3px 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.uap-download-compact__item-code strong {
    color: #d97706;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.uap-download-compact__item .uap-download-compact__item-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(17, 24, 39, 0.2);
}

.uap-download-compact__item .uap-download-compact__item-btn:hover {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(17, 24, 39, 0.25);
    border-bottom: none!important;
}

.uap-download-compact__item-btn:focus {
    outline: none;
    color: #ffffff;
}

.uap-download-compact__item-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* 紧凑下载区响应式 */
@media (max-width: 640px) {
    .uap-download-compact__header {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .uap-download-compact__icon {
        width: 32px;
        height: 32px;
    }
    
    .uap-download-compact__icon svg {
        width: 16px;
        height: 16px;
    }
    
    .uap-download-compact__title strong {
        font-size: 13px;
    }
    
    .uap-download-compact__title span {
        font-size: 11px;
    }
    
    .uap-download-compact__list {
        padding: 8px 10px;
    }
    
    .uap-download-compact__item {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px 10px;
        margin-bottom: 6px;
    }
    
    .uap-download-compact__item-info {
        flex: 1;
        min-width: 0;
        gap: 6px;
    }
    
    .uap-download-compact__item-title {
        font-size: 12px;
        flex: 1;
        min-width: 0;
    }
    
    .uap-download-compact__item-code {
        font-size: 10px;
        padding: 2px 5px;
        flex-shrink: 0;
    }
    
    .uap-download-compact__item-btn {
        flex-shrink: 0;
        padding: 5px 10px;
        font-size: 11px;
        gap: 3px;
    }
    
    .uap-download-compact__item-btn svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 400px) {
    .uap-download-compact__header {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .uap-download-compact__icon {
        width: 28px;
        height: 28px;
    }
    
    .uap-download-compact__icon svg {
        width: 14px;
        height: 14px;
    }
    
    .uap-download-compact__title strong {
        font-size: 12px;
    }
    
    .uap-download-compact__title span {
        display: none;
    }
    
    .uap-download-compact__list {
        padding: 6px 8px;
    }
    
    .uap-download-compact__item {
        gap: 6px;
        padding: 6px 8px;
        margin-bottom: 4px;
    }
    
    .uap-download-compact__item-info {
        gap: 4px;
    }
    
    .uap-download-compact__item-title {
        font-size: 11px;
    }
    
    .uap-download-compact__item-code {
        display: none;
    }
    
    .uap-download-compact__item-btn {
        padding: 4px 8px;
        font-size: 10px;
        gap: 2px;
    }
    
    .uap-download-compact__item-btn svg {
        width: 10px;
        height: 10px;
    }
}
