/**
 * 支付宝会员订阅支付页面样式
 * 移动端适配设计
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #1677ff 0%, #0056d6 100%);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(22, 119, 255, 0.3);
}

.crown {
    font-size: 48px;
    margin-bottom: 10px;
}

.header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 商品卡片 */
.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffa940 0%, #ff7a45 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.vip-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
}

.product-image .icon {
    font-size: 40px;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1f1f1f;
}

.desc {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

.price-tag {
    display: flex;
    align-items: baseline;
}

.currency {
    font-size: 16px;
    color: #ff4d4f;
    font-weight: 600;
}

.amount {
    font-size: 28px;
    color: #ff4d4f;
    font-weight: 700;
}

.unit {
    font-size: 14px;
    color: #888;
    margin-left: 2px;
}

/* 特权列表 */
.benefits {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.benefits h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #1f1f1f;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.check {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}

/* 价格对比 */
.price-compare {
    background: linear-gradient(135deg, #fff2e8 0%, #fff7e6 100%);
    border: 1px dashed #ffa940;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.original .label {
    color: #999;
    font-size: 13px;
}

.line-through {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-left: 5px;
}

.save-tag {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

/* 支付按钮区域 */
.pay-section {
    margin-bottom: 20px;
}

.pay-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1677ff 0%, #0056d6 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pay-btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.btn-text {
    margin-bottom: 4px;
}

.btn-sub {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
}

.secure-note {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.lock {
    font-size: 14px;
}

/* 底部说明 */
.footer-note {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    line-height: 1.8;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 加载动画 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #1677ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-content p {
    color: #666;
    font-size: 16px;
}

/* 响应式适配 */
@media (max-width: 375px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 25px 0;
    }
    
    .crown {
        font-size: 40px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-image {
        width: 70px;
        height: 70px;
    }
    
    .product-image .icon {
        font-size: 32px;
    }
    
    .amount {
        font-size: 24px;
    }
}
