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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 100px; /* 为悬浮按钮留出空间 */
}

.container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1296db, #1565c0);
    color: white;
    padding: 20px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

.main-content {
    padding: 20px;
}

.rich-text {
    margin-bottom: 30px;
    line-height: 1.8;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
}

.rich-text h2 {
    font-size: 20px;
    color: #1296db;
    margin: 20px 0 10px 0;
}

.rich-text p {
    margin-bottom: 15px;
}

.payment-section {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.price {
    font-size: 32px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
}

.pay-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.pay-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.pay-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 悬浮按钮样式 */
.floating-btn-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
}

.floating-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
    text-align: center;
}

.floating-btn:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 107, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }
}

.success-section {
    background-color: #f0fff4;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 20px;
    border: 2px solid #4ade80;
}

.success-section h2 {
    color: #16a34a;
    margin-bottom: 15px;
    font-size: 24px;
}

.success-section p {
    margin-bottom: 20px;
    color: #333;
}

.pan-link {
    background-color: #16a34a;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.pan-link:hover {
    background-color: #15803d;
}
.success-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #f1f9ff;
    margin-top: 20px;
    border-radius: 12px;
}

.success-section h2 {
    color: #27ae60;
    margin-bottom: 15px;
}

.pan-link {
    display: inline-block;
    background-color: #1296db;
    color: white;
    padding: 12px 30px;
    margin-top: 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pan-link:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

/* 适配微信内置浏览器 */
@media (max-width: 480px) {
    body {
        margin: 0;
        border-radius: 0;
    }
    
    .container {
        border-radius: 0;
        box-shadow: none;
    }
}