/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f0f0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 滚动容器 */
.scroll-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 自定义滚动条 */
.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #ff9900;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #e68900;
}

/* 背景iframe容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 弹窗覆盖层 */
.popup-overlay {
    min-height: 200vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background-color: transparent;
}

/* 弹窗容器 */
.popup-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 900px;
    width: 90%;
    padding: 40px;
    margin-top: 50px;
    position: relative;
    border: 1px solid rgba(229, 231, 235, 0.3);
}

/* 抖动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.popup-container.shake {
    animation: shake 0.6s ease-in-out;
}

/* 弹窗头部 */
.popup-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 153, 0, 0.1);
    position: relative;
}

.popup-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ff9900, #ffb84d);
    border-radius: 1px;
}

.popup-header h2 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.popup-header p {
    color: #4a5568;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* 保证政策 */
.refund-policy {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.08) 0%, rgba(255, 183, 77, 0.05) 100%);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

.refund-policy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9900, #ffb84d);
}

.refund-policy p {
    color: #2d3748;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refund-policy p:last-child {
    margin-bottom: 0;
}

.refund-policy p::before {
    content: '✓';
    color: #ff9900;
    font-weight: 700;
    font-size: 16px;
}

/* 套餐容器 */
.packages-container {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 套餐卡片 */
.package {
    flex: 1;
    max-width: 240px;
    min-width: 200px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.package::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e0);
    transition: all 0.3s ease;
}

.package:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    border-color: #cbd5e0;
}

.package:hover::before {
    background: linear-gradient(90deg, #ff9900, #ffb84d);
}

.package.selected {
    border-color: #ff9900;
    box-shadow: 
        0 20px 40px rgba(255, 153, 0, 0.2),
        0 0 0 1px rgba(255, 153, 0, 0.1);
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
}

.package.selected::before {
    background: linear-gradient(90deg, #ff9900, #ffb84d);
}

.package.popular {
    /* 移除默认高亮，只有选中时才高亮 */
}

.package-image {
    width: 130px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.package:hover .package-image {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 套餐详情 */
.package-details {
    padding-top: 8px;
}

.deal-label {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.deal-label.popular {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9900 100%);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.package-details h3 {
    color: #1a202c;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.price-info {
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.current-price {
    color: #ff9900;
    font-size: 20px;
    font-weight: 800;
}

.save-info {
    color: #38a169;
    font-size: 13px;
    font-weight: 600;
    background: rgba(56, 161, 105, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

/* 表单区域 */
.form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9900, #ffb84d);
    border-radius: 16px 16px 0 0;
}

.form-section h3 {
    color: #1a202c;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.form-section h3 .icon {
    font-size: 22px;
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.3s ease;
    color: #374151;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
    background: #fffbf5;
}

.form-group input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group input.success {
    border-color: #10b981;
    background: #f0fdf4;
}

/* 配送信息 */
.delivery-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 197, 253, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.delivery-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
}

.delivery-info h4 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-info h4 .icon {
    font-size: 20px;
}

.delivery-info p {
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

/* 购买按钮 */
.buy-button {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9900 50%, #ffb84d 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(255, 153, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    min-width: 280px;
    margin: 30px auto;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.buy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.buy-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(255, 153, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.buy-button:hover:not(:disabled)::before {
    left: 100%;
}

.buy-button:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 15px rgba(156, 163, 175, 0.2);
    transform: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .popup-container {
        width: 75%;
        padding: 32px 24px;
        margin-top: 30px;
    }
    
    .popup-header h2 {
        font-size: 26px;
    }
    
    .popup-header p {
        font-size: 15px;
    }
    
    .packages-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .package {
        max-width: 100%;
        min-width: auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-section {
        padding: 24px 20px;
    }
    
    .form-section h3 {
        font-size: 18px;
    }
    
    .buy-button {
        min-width: 100%;
        padding: 16px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        width: 70%;
        padding: 28px 20px;
    }
    
    .popup-header h2 {
        font-size: 22px;
    }
    
    .popup-header p {
        font-size: 14px;
    }
    
    .package-image {
        width: 110px;
        height: 68px;
    }
    
    .deal-label {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .package-details h3 {
        font-size: 16px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .form-section {
        padding: 20px 16px;
    }
    
    .form-section h3 {
        font-size: 16px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }
}



/* 信用卡图标样式 */
.card-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.card-icon {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.card-icon.visa {
    color: #1a1f71;
    border-color: #1a1f71;
}

.card-icon.mastercard {
    color: #eb001b;
    border-color: #eb001b;
}

.card-icon.amex {
    color: #006fcf;
    border-color: #006fcf;
}

.card-icon.discover {
    color: #ff6000;
    border-color: #ff6000;
}

