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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8a3bc 0%, #e91e63 100%);
    min-height: 100vh;
    padding: 10px;
    line-height: 1.6;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-size: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 在现有样式基础上添加以下样式 */

/* 优化头部设计 */
.header {
    background: linear-gradient(135deg, #f8a3bc 0%, #e91e63 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-text {
    flex: 1;
    text-align: left;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.stats-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.stats-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stats-icon {
    font-size: 18px;
}

.stats-text {
    font-size: 14px;
}

/* 快速统计预览 - 已注释 */
/*
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 25px;
}

.quick-stat-item {
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-stat-item::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.5s;
}

.quick-stat-item:hover::before {
    left: 100%;
}

.quick-stat-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quick-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.quick-stat-label {
    font-size: 13px;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.quick-stats.loading {
    opacity: 0.6;
}

.quick-stats.loading .quick-stat-value {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
*/

/* 响应式设计 */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stats-button {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .quick-stats {
        padding: 15px;
    }
    
    .quick-stat-item {
        padding: 12px 8px;
    }
    
    .quick-stat-value {
        font-size: 18px;
    }
}

.title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.donation-form {
    padding: 25px;
}

/* 优化表单设计 */
.form-section {
    margin-bottom: 30px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 25px;
    border-radius: 24px;
    border: 1px solid rgba(248, 163, 188, 0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e9ecef;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f8a3bc, #e91e63);
    border-radius: 2px;
}

.icon {
    font-size: 20px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group input:focus {
    outline: none;
    border-color: #f8a3bc;
    background: white;
    box-shadow: 0 0 0 4px rgba(248, 163, 188, 0.1), 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
    font-size: 15px;
}

.form-group input:valid {
    border-color: #28a745;
}

/* 助力等级简洁列表样式 */
.level-grid,
.level-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.level-option {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.level-option:hover {
    border-color: #f8a3bc;
    background: #fdf2f8;
    transform: none;
    box-shadow: 0 2px 6px rgba(248, 163, 188, 0.1);
}

.level-option.selected,
.level-option.active {
    background: #f8a3bc;
    color: white;
    border-color: #f8a3bc;
    transform: none;
    box-shadow: 0 2px 8px rgba(248, 163, 188, 0.2);
}

.level-icon {
    display: none;
}

.level-name {
    font-weight: 500;
    font-size: 14px;
    margin: 0;
    flex: 1;
    text-align: left;
}

.level-amount {
    font-weight: 600;
    font-size: 14px;
    color: #f8a3bc;
    margin: 0;
}

.level-option.selected .level-amount,
.level-option.active .level-amount {
    color: white;
}

/* 助力等级列表样式 */
.level-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.level-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.level-item:hover {
    border-color: #f8a3bc;
    background: #fdf2f8;
}

.level-item input[type="radio"] {
    margin-right: 12px;
    accent-color: #f8a3bc;
}

.level-item input[type="radio"]:checked + .level-content {
    color: #f8a3bc;
    font-weight: 600;
}

.level-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 在level-item相关样式后添加 */
.level-icon {
    font-size: 20px;
    margin-right: 12px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    transition: transform 0.2s ease;
}

.level-item:hover .level-icon {
    transform: scale(1.1);
}

.level-item input[type="radio"]:checked ~ .level-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(248, 163, 188, 0.3));
}

.custom-amount {
    display: none;
    animation: slideDown 0.3s ease-out;
}

.custom-amount.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
    }
}

/* 优化班级选择 - 更紧凑简洁 */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.class-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.class-option {
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.class-option:hover {
    border-color: #f8a3bc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 163, 188, 0.15);
}

.class-option.selected {
    border-color: #f8a3bc;
    background: linear-gradient(135deg, #f8a3bc 0%, #e91e63 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(248, 163, 188, 0.25);
}

.class-option.active {
    background: linear-gradient(135deg, #f8a3bc 0%, #e91e63 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(248, 163, 188, 0.25);
}

.class-option.active .class-name {
    color: white;
}

.class-name {
    line-height: 1.2;
    word-break: keep-all;
}

.order-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid #e1e5e9;
}

.preview-content {
    space-y: 12px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-item.total {
    font-weight: bold;
    font-size: 18px;
    color: #f8a3bc;
    border-top: 2px solid #e1e5e9;
    padding-top: 15px;
    margin-top: 10px;
}

.label {
    color: #666;
    font-weight: 500;
}

.value {
    color: #333;
    font-weight: 600;
}

.value.amount {
    color: #f8a3bc;
    font-size: 20px;
}

/* 优化支付按钮 */
.pay-button {
    width: 100%;
    background: linear-gradient(135deg, #f8a3bc 0%, #e91e63 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(248, 163, 188, 0.3);
}

.pay-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;
}

.pay-button:hover::before {
    left: 100%;
}

.pay-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(248, 163, 188, 0.4);
}

.pay-button:active {
    transform: translateY(-1px) scale(0.98);
}

.pay-button:disabled {
    background: linear-gradient(135deg, #cbd5e0, #a0aec0);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-icon {
    font-size: 20px;
}

.button-text {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.pay-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6c757d;
}

.pay-button.disabled:hover {
    background: #6c757d;
    transform: none;
}

.pay-button.loading .button-text {
    opacity: 0;
}

.pay-button.loading .button-loading {
    display: block !important;
}

.button-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    display: none;
    padding: 8px 12px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border-left: 3px solid #e74c3c;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 二维码弹窗样式 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.qr-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.qr-code {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.qr-order {
    color: #666;
    font-size: 14px;
    margin: 15px 0;
}

.qr-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

.qr-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.qr-button.close {
    background: #6c757d;
    color: white;
}

.qr-button.check {
    background: #28a745;
    color: white;
}

.qr-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* QR码相关样式 */
.qr-code-container {
    text-align: center;
    margin: 20px 0;
}

.qr-code-image {
    max-width: 256px;
    width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-fallback {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.payment-link-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.payment-link {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f8f9fa;
}

.copy-btn, .copy-btn-small {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.copy-btn-small {
    padding: 4px 8px;
    font-size: 10px;
    margin-left: 8px;
}

.copy-btn:hover, .copy-btn-small:hover {
    background-color: #0056b3;
}

.payment-info {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.order-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.order-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amount {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2em;
}

.payment-guide {
    margin-top: 20px;
    text-align: center;
}

.guide-text {
    color: #666;
    margin-bottom: 16px;
    font-size: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.total {
    font-weight: 600;
    font-size: 16px;
    color: #e74c3c;
    border-top: 2px solid #e74c3c;
    margin-top: 10px;
    padding-top: 15px;
}

.detail-row .label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
}

.detail-row .value {
    font-weight: 600;
    color: #333;
    text-align: right;
    flex: 1;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.status-btn, .new-order-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.status-btn {
    background-color: #28a745;
    color: white;
}

.status-btn:hover {
    background-color: #218838;
}

.new-order-btn {
    background-color: #6c757d;
    color: white;
}

.new-order-btn:hover {
    background-color: #545b62;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    
    .container {
        margin: 10px;
        border-radius: 20px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .donation-form {
        padding: 20px;
    }
    
    .form-section {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .level-option {
        padding: 10px 14px;
    }
    
    .level-name {
        font-size: 13px;
    }
    
    .level-amount {
        font-size: 13px;
    }
    
    .class-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .class-option {
        padding: 12px 10px;
        font-size: 13px;
        min-height: 45px;
    }
    
    .payment-link-container {
        flex-direction: column;
    }
    
    .payment-link {
        min-width: auto;
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .status-btn, .new-order-btn {
        width: 100%;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .header-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 5px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    .header {
        padding: 20px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .donation-form {
        padding: 20px;
    }
    
    .level-option {
        padding: 15px 10px;
    }
    
    .class-options {
        grid-template-columns: 1fr;
    }
    
    .qr-content {
        padding: 25px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .level-option {
        padding: 8px 12px;
    }
    
    .level-name {
        font-size: 12px;
    }
    
    .level-amount {
        font-size: 12px;
    }
    
    .level-item {
        padding: 10px 12px;
    }
    
    .level-item .level-name,
    .level-item .level-amount {
        font-size: 13px;
    }
    
    .class-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .class-option {
        padding: 8px 6px;
        font-size: 11px;
        min-height: 38px;
    }
    
    .header-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard {
        padding: 15px;
    }
}

@media (max-width: 400px) {

    
    .preview-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* 针对极小屏幕的优化 */
@media (max-width: 375px) {
    body {
        padding: 3px;
        font-size: 14px;
    }
    
    .container {
        margin: 5px;
        border-radius: 12px;
    }
    
    .header {
        padding: 15px;
        border-radius: 0 0 15px 15px;
    }
    
    .title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .donation-form {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 16px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 15px;
        gap: 10px;
    }
    
    .level-option {
        padding: 10px 12px;
    }
    
    .level-name {
        font-size: 12px;
    }
    
    .level-amount {
        font-size: 13px;
    }
    
    .class-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .class-option {
        padding: 8px 6px;
        font-size: 11px;
        min-height: 35px;
    }
    
    .form-group input {
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .stats-button {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .stats-text {
        font-size: 12px;
    }
    
    .payment-info {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .payment-amount {
        font-size: 16px;
    }
    
    .guide-text {
        font-size: 12px;
    }
    
    .qr-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .copy-link-btn {
        padding: 10px;
        font-size: 12px;
    }
}

/* 针对iPhone SE等超小屏幕的特殊优化 */
@media (max-width: 320px) {
    .level-option {
        padding: 12px 8px;
    }
    
    .level-name {
        font-size: 12px;
    }
    
    .level-amount {
        font-size: 14px;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .title {
        font-size: 16px;
    }
}

/* 微信支付引导样式 */
.wechat-payment-guide {
    text-align: center;
    padding: 20px;
}

/* 统一二维码显示样式 */
.payment-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment-amount {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin: 5px 0;
}

.payment-guide {
    margin: 20px 0;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.guide-title {
    font-weight: bold;
    color: #155724;
    margin-bottom: 10px;
    text-align: center;
}

.guide-content {
    text-align: left;
}

.guide-text {
    color: #155724;
    margin: 5px 0;
    font-size: 14px;
}

.qr-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.qr-button.copy {
    background: #17a2b8;
    color: white;
}

.qr-button.copy:hover {
    background: #138496;
}

.qr-button.check {
    background: #28a745;
    color: white;
}

.qr-button.check:hover {
    background: #218838;
}

.qr-button.copy {
    background: #17a2b8;
    color: white;
}

.qr-button.copy:hover {
    background: #138496;
}

/* 二维码占位符样式 */
.qr-placeholder {
    padding: 20px;
    text-align: center;
}

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

.qr-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.payment-link-container {
    margin-top: 15px;
}

.payment-link {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    resize: none;
    background: #f8f9fa;
    margin-bottom: 10px;
    font-family: monospace;
}

.copy-link-btn {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.copy-link-btn:hover {
    background: #218838;
}

.copy-link-btn:active {
    background: #1e7e34;
}

/* 统一按钮基础样式 */
.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-base:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-base:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 主要按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #f8a3bc 0%, #e91e63 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f48fb1 0%, #d81b60 100%);
}

/* 成功按钮样式 */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ba085 100%);
}

/* 次要按钮样式 */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #6c757d 100%);
}

/* 小按钮样式 */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

#customAmount {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#customAmount label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

#customAmountInput {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#customAmountInput:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#customAmountInput.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

/* 付款确认对话框样式 */
.payment-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.payment-confirmation-modal.show {
    opacity: 1;
    visibility: visible;
}

.payment-confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.payment-confirmation-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 20px;
    padding: 25px;
    max-width: 420px;
    width: 90%;
    height: auto;
    max-height: none;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.payment-confirmation-modal.show .payment-confirmation-content {
    transform: translate(-50%, -50%) scale(1);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.confirmation-header h3 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 700;
}

.payment-recipient {
    background: linear-gradient(135deg, #f8a3bc 0%, #e91e63 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.recipient-label {
    font-size: 14px;
    opacity: 0.9;
}

.recipient-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.confirmation-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.total-amount {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    margin: 15px -15px 0;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid rgba(248, 163, 188, 0.2);
}

.detail-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.detail-value.amount {
    font-size: 18px;
    color: #f8a3bc;
    font-weight: 700;
}

.confirmation-notice {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #f8a3bc;
}

.confirmation-notice p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.confirmation-notice p:first-child {
    margin-bottom: 8px;
    color: #f8a3bc;
    font-weight: 600;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirmation-buttons button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #f0f0f0;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-confirm {
    background: linear-gradient(135deg, #f8a3bc 0%, #e91e63 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(248, 163, 188, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 163, 188, 0.4);
}

.btn-confirm.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-confirm .button-loading {
    position: absolute;
    right: 15px;
}

.btn-confirm .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 确保对话框在小屏幕上也能完全显示 */
@media (max-height: 700px) {
    .payment-confirmation-content {
        padding: 20px;
        max-width: 380px;
    }
    
    .confirmation-details {
        margin-bottom: 15px;
    }
    
    .detail-item {
        padding: 8px 0;
    }
    
    .confirmation-notice {
        margin-bottom: 15px;
    }
}

@media (max-height: 600px) {
    .payment-confirmation-content {
        padding: 15px;
        max-width: 350px;
    }
    
    .confirmation-header {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .confirmation-header h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .detail-item {
        padding: 6px 0;
    }
    
    .detail-label, .detail-value {
        font-size: 13px;
    }
    
    .confirmation-notice {
        margin-bottom: 12px;
    }
    
    .confirmation-notice p {
        font-size: 12px;
    }
    
    .confirmation-buttons button {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 防止页面滚动 */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .payment-confirmation-content {
        padding: 20px;
        width: 95%;
    }
    
    .confirmation-buttons {
        flex-direction: column;
    }
    
    .confirmation-buttons button {
        width: 100%;
    }
}

/* 代收方信息和联系方式样式 */
.payment-notice {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.notice-section, .contact-section {
    margin-bottom: 20px;
}

.notice-section:last-child, .contact-section:last-child {
    margin-bottom: 0;
}

.notice-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-content, .contact-content {
    font-size: 14px;
    line-height: 1.6;
}

.collector-info {
    margin-bottom: 10px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.info-label {
    font-weight: 600;
    color: #856404;
}

.info-value {
    color: #856404;
    font-weight: 500;
}

.risk-notice {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

.contact-text {
    margin-bottom: 12px;
    color: #495057;
}

.wechat-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    margin-bottom: 10px;
}

.wechat-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #0066cc;
    font-size: 15px;
    flex: 1;
    user-select: all;
}

.copy-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.copy-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-success {
    color: #28a745;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* Native支付样式 */
.native-payment {
    text-align: center;
    padding: 20px;
}

.payment-url-container {
    margin: 20px 0;
}

.url-actions {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.pay-link-btn {
    background-color: #07c160;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}

.pay-link-btn:hover {
    background-color: #06ad56;
}

.copy-btn {
    background-color: #1989fa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #147ce0;
}

.url-display {
    margin: 15px 0;
}

.url-input {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f8f9fa;
    color: #666;
}

.payment-tip {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .url-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .pay-link-btn,
    .copy-btn {
        width: 200px;
    }
}

/* 备用支付按钮样式 */
.backup-pay-button {
    width: 100%;
    padding: 16px 24px;
    background: #e0e0e0; /* 默认禁用状态 */
    color: #999;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* 启用状态样式 */
.backup-pay-button.enabled,
.backup-pay-button:not(:disabled) {
    background: linear-gradient(135deg, #1989fa 0%, #147ce0 100%);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(25, 137, 250, 0.3);
}

.backup-pay-button.enabled:hover,
.backup-pay-button:not(:disabled):hover {
    background: linear-gradient(135deg, #147ce0 0%, #0e6bc2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 137, 250, 0.4);
}

.backup-pay-button.enabled:active,
.backup-pay-button:not(:disabled):active {
    transform: translateY(0);
}

.backup-pay-button:disabled {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.backup-pay-button.loading {
    pointer-events: none;
}

.backup-pay-button.loading .button-text {
    opacity: 0;
}

.backup-pay-button.loading .button-loading {
    display: flex !important;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .payment-notice {
        margin-top: 20px;
        padding: 16px;
    }
    
    .wechat-contact {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .copy-button {
        justify-content: center;
    }
}

/* 众筹关闭页面样式 */
.crowdfunding-closed {
    padding: 40px 30px;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.closed-header {
    margin-bottom: 40px;
}

.closed-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.closed-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.closed-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.closed-content {
    max-width: 500px;
    margin: 0 auto;
}

.closed-message {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border-left: 4px solid #e91e63;
}

.closed-message h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.closed-message p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.closed-message p:last-child {
    margin-bottom: 0;
}

.stats-button-wrapper {
    margin-bottom: 30px;
}

.view-stats-button {
    background: linear-gradient(135deg, #f8a3bc 0%, #e91e63 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.view-stats-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.closed-contact {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
}

.closed-contact h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.closed-contact p {
    color: #666;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
}

.contact-number {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
}

.copy-contact-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.copy-contact-button:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .crowdfunding-closed {
        padding: 20px 15px;
    }
    
    .closed-icon {
        font-size: 60px;
    }
    
    .closed-title {
        font-size: 24px;
    }
    
    .closed-subtitle {
        font-size: 16px;
    }
    
    .closed-message {
        padding: 20px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-number {
        font-size: 16px;
    }
}